From using OpenSim's Windows GUI, I recently started using OpenSim on Linux with the API instead, which I believe is associated to SimBody 4.0. I am trying to run CMC on my model, but with the latest change I made (the addition of a degree of freedom), I cannot successfully run CMC from the API. At around half the simulation time, I have the following message, for all muscles in the model, and the computations stop.
Code: Select all
Exception caught in Millard2012EquilibriumMuscle::calcMuscleDynamicsInfo from MUSCLE
Exception caught in Millard2012EquilibriumMuscle::calcFiberVelocityInfo from MUSCLE
SimTK Exception thrown at MuscleFixedWidthPennationModel.cpp:161:
Error detected by Simbody method MuscleFixedWidthPennationModel::calcPennationAngularVelocity: Fiber length cannot be zero.
(Required condition 'fiberLength > 0' was not met.)
WARNING- MuscleAnalysis::record() unable to evaluate muscle forces at time 3.69311 for reason: Exception caught in Millard2012EquilibriumMuscle::calcMuscleDynamicsInfo from MUSCLE
Exception caught in Millard2012EquilibriumMuscle::calcFiberVelocityInfo from MUSCLE
SimTK Exception thrown at MuscleFixedWidthPennationModel.cpp:161:
Error detected by Simbody method MuscleFixedWidthPennationModel::calcPennationAngularVelocity: Fiber length cannot be zero.
(Required condition 'fiberLength > 0' was not met.)
Would anybody have any idea what I've been doing wrong, or if there was a change in the implementation that could explain this?
I may be forgetting something, because CMC from the API was working before this last change...
Best,
Pierre