Page 1 of 1

Warning after changing the metabolic probe to "integrate"

Posted: Fri May 15, 2020 12:25 am
by caesarlinxw
Hi All,

When I change the probe operation of the gait2392 model to "integrate" and run the CMC tool, a warning raises saying "WARNING::metabolics: Sdot (glut_min2_l) = NaN!" for all the forces. And the process becomes so slow. I wonder what happens and how can I fix this problem?

Thank you in advance for your warm help!

Appreciatively,
Caesar

Re: Warning after changing the metabolic probe to "integrate"

Posted: Fri May 15, 2020 5:40 am
by tkuchida
I'll assume you're using Umberger2010MuscleMetabolicsProbe. You begin with "When I change the probe operation," which suggests that you don't see NaNs when the probe is set to "value" -- however, you might want to check that there are no NaNs (for any time point) when the probe is set to "value." You could also try checking the code (https://github.com/opensim-org/opensim- ... e.cpp#L234) and looking for a scenario in which a division by zero might be occurring (e.g., due to an unexpected muscle state or a bad parameter value).