Static Opt - DLASD4 paramater number -1 had an illegal value

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
User avatar
Michael Sherman
Posts: 807
Joined: Fri Apr 01, 2005 6:05 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Michael Sherman » Sun Mar 15, 2015 3:20 pm

Hi, Alex. We still don't have the "official" fix in place. But try this and post to let us know if it works:

Warning: this is only for 64 bit Windows installations of OpenSim!
  • Download this replacement Lapack library liblapack.dll from GitHub. (Select the link, then pick "view the full file" and it should download.)
  • Locate the old liblapack.dll in your OpenSim3.2/bin directory.
  • Rename the old liblapack.dll to OLDliblapack.dll (for safety)
  • Copy in the downloaded liblapack.dll to OpenSim3.2/bin/liblapack.dll
  • Try the static optimization again.
  • Post here to let us know what happens.
In the above "OpenSim3.2" is your OpenSim installation directory; might have a different name on your machine.

Regards,
Sherm

User avatar
Alex MacIntosh
Posts: 31
Joined: Tue Jan 22, 2013 5:15 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Alex MacIntosh » Mon Mar 16, 2015 3:09 pm

Thanks so much for the quick reply!

I tried what you suggested and I am SO is running now! (both in the gui and via CMD called from matlab)

Instead of the DLASD4 error and crash i am getting much more useful messages:
StaticOptimization.record: WARN- The optimizer could not find a solution at time = 0.72

The model appears too weak for static optimization.
Try increasing the strength and/or range of the following force(s):
FDPL approaching upper bound of 1


time = 0.72 Performance =8.37197 Constraint violation = 35206.6
SimTK Exception thrown at InteriorPointOptimizer.cpp:261:
Optimizer failed: Ipopt: Infeasible problem detected (status 2)
OPTIMIZATION FAILED...

StaticOptimization.record: WARN- The optimizer could not find a solution at time = 0.73

The model appears unsuitable for static optimization.
Try appending the model with additional force(s) or locking joint(s) to reduce the following acceleration constraint violation(s):
I will let you know if anything else related to this comes up.

Really, thank you again I can't tell you how much it means.

Please let me know if there is anything I can do to help troubleshoot in the future.

Alex

User avatar
Michael Sherman
Posts: 807
Joined: Fri Apr 01, 2005 6:05 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Michael Sherman » Mon Mar 16, 2015 3:22 pm

You're welcome! Sorry for the earlier trouble. And thanks for the report, Alex.

Sherm

User avatar
Alex MacIntosh
Posts: 31
Joined: Tue Jan 22, 2013 5:15 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Alex MacIntosh » Wed Jun 10, 2015 5:08 am

Thanks for all the help!

I have come across a similar error that also forces Static Optimization to quit. I was unable to find any mention of it on the forum. The error is:

"** On entry to DLASCL parameter number 4 had an illegal value"

Before it exits, it mentions that a muscle reaches its minimum length, however when I plot muscle length over the motion I do not show any jumps in length.
I have tried to reinstall the Lapack Library from this post, and the error persists.

I was wondering you have heard of this error before and if you have any suggestions.
Any comments or ideas would be a huge help!

Thanks,

Alex

User avatar
Michael Sherman
Posts: 807
Joined: Fri Apr 01, 2005 6:05 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Michael Sherman » Wed Jun 10, 2015 10:20 am

Hi, Alex. No, I have never seen that message before. It is from a low-level linear algebra routine used for scaling a matrix. It is complaining that the scale factor is zero. It's hard to guess the context, but it is likely that it reflects some problem with the model or tool parameters you are using. If you figure out what it was please let us know because obviously the error should have been caught earlier with a helpful message, not allowed to leak all the way down to the linear algebra computations.

Regards,
Sherm

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Ayman Habib » Tue Jun 30, 2015 1:31 pm

Hi,

A release candidate of OpenSim 3.3 has been posted that contains a fix to this DLASD4 error. It also includes other fixes to StaticOptimization. Please give it a spin if you're still running into problems with StaticOptimization.

Best regards,
-Ayman

User avatar
Alex MacIntosh
Posts: 31
Joined: Tue Jan 22, 2013 5:15 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Alex MacIntosh » Fri Jul 31, 2015 1:09 pm

Hello,

I have tried to retry my analysis with OpenSim 3.3 however I still get the error:

"** On entry to DLASCL parameter number 4 had an illegal value "

When running through cmd.
When I run the same analysis in the GUI the program crashes and closes.

Any advice would be a huge help.

Thanks,

Alex

User avatar
Michael Sherman
Posts: 807
Joined: Fri Apr 01, 2005 6:05 pm

Re: Static Opt - DLASD4 paramater number -1 had an illegal v

Post by Michael Sherman » Fri Jul 31, 2015 1:24 pm

Hi, Alex. That is essentially a divide-by-zero error. It isn't obvious exactly what's wrong, but a likely candidate is that a mass or inertia diagonal element for a Body in your model is zero.

Regards,
Sherm

POST REPLY