CMC and Static Optimization fails with Disabled Muscle

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Alex MacIntosh
Posts: 31
Joined: Tue Jan 22, 2013 5:15 pm

CMC and Static Optimization fails with Disabled Muscle

Post by Alex MacIntosh » Mon Jan 06, 2014 7:57 am

Hello,

I am trying to analyze a model while removing the influence of a muscle. In the OpenSim GUI I have disabled a muscle and then tried to run an analysis. When I do this however, either the tool immediately fails or I get an error message (below).

When I try to run CMC with a disabled muscle the tool closes and says:
Tool execution failed or cancelled by user. Output files were not written
When I try to run a static optimization with a disabled muscle I get this error:
java.lang.RuntimeException: SimTK Exception thrown at State.cpp:2080:
State Cache entry was out of date at Stage Acceleration. This entry depends on version 23 of Stage Velocity but was last updated at version 3.
at org.opensim.modeling.opensimModelJNI.AnalyzeTool_run__SWIG_0(Native Method)
at org.opensim.modeling.AnalyzeTool.run(AnalyzeTool.java:154)
at org.opensim.tracking.AnalyzeToolModel$AnalyzeToolWorker.construct(AnalyzeToolModel.java:136)
at org.opensim.swingui.SwingWorker$2.run(SwingWorker.java:108)
[catch] at java.lang.Thread.run(Thread.java:662)
I have reproduced this issue with OpenSim 3.1, 3.0 and on multiple models. This also occurs while running through the command line.

If anyone has/has not had this issue, or has suggestions as to how to fix/work around it, your help would be greatly appreciated.

Thanks,

Alex

User avatar
Ilan Eskinazi
Posts: 24
Joined: Fri Mar 19, 2010 5:35 am

Re: CMC and Static Optimization fails with Disabled Muscle

Post by Ilan Eskinazi » Mon Jan 06, 2014 1:58 pm

What happens if you delete the muscle altogether, and try to run it?

User avatar
Yusuke Okita
Posts: 44
Joined: Sun Nov 21, 2010 11:25 pm

Re: CMC and Static Optimization fails with Disabled Muscle

Post by Yusuke Okita » Mon Jan 06, 2014 8:25 pm

Hi Alex,

I am working on the similar topic.
So far I never succeeded in running CMC or static optimization with disabled muscles on version 3.1.
I run them after deleting muscles from the .osim file as said above.

Best regards,
Yusuke Okita

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

Re: CMC and Static Optimization fails with Disabled Muscle

Post by Alex MacIntosh » Tue Jan 07, 2014 9:52 am

Thank you for your replies,

I too am deleting the muscles to get the same effect, and this works fine. I just wanted to make sure I was not the only one with the issue.

Thanks

Alex

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: CMC and Static Optimization fails with Disabled Muscle

Post by jimmy d » Tue Jan 07, 2014 11:04 am

Hi-
We have been able to reproduce this bug and will address. The problem seemingly comes from the tools using a getMuscles() method that results in the number of possible states not matching the states being initialized.

As you you have seen, the workaround is to delete the muscle and run.

Thanks for finding!
-james

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

Re: CMC and Static Optimization fails with Disabled Muscle

Post by Alex MacIntosh » Tue Jan 07, 2014 12:07 pm

Thanks so much for taking a look at it so quickly.

Alex

POST REPLY