MocoCasADiSolver did NOT succeed
Posted: Mon May 18, 2020 5:52 am
Hi
I am getting the following error when I am trying to run gait prediction(as in example2DWalking.m) for my model. Please find the entire error below. Kindly let me know how to overcome this:
Thanks,
Mritula
I am getting the following error when I am trying to run gait prediction(as in example2DWalking.m) for my model. Please find the entire error below. Kindly let me know how to overcome this:
Thanks,
Mritula
iter objective inf_pr inf_du lg(mu) ||d|| lg(rg) alpha_du alpha_pr ls
1000r 3.5742236e+05 1.43e+01 2.29e+03 -1.4 5.32e+00 - 1.26e-01 7.23e-02f 1
Number of Iterations....: 1000
(scaled) (unscaled)
Objective...............: 3.5742236080410802e-03 3.5742236080410803e+05
Dual infeasibility......: 2.2913762598033854e+03 2.2913762598033853e+11
Constraint violation....: 7.0749741003037458e+00 1.4262685376925276e+01
Complementarity.........: 3.6855009971073222e-01 3.6855009971073218e+07
Overall NLP error.......: 2.2913762598033854e+03 2.2913762598033853e+11
Number of objective function evaluations = 2836
Number of objective gradient evaluations = 406
Number of equality constraint evaluations = 2836
Number of inequality constraint evaluations = 0
Number of equality constraint Jacobian evaluations = 1025
Number of inequality constraint Jacobian evaluations = 0
Number of Lagrangian Hessian evaluations = 0
Total CPU secs in IPOPT (w/o function evaluations) = 376.476
Total CPU secs in NLP function evaluations = 3141.000
EXIT: Maximum Number of Iterations Exceeded.
t_proc [s] t_wall [s] n_eval
callback_fun 0.479 0.469 1024
nlp 3.52e+03 3.52e+03 1
nlp_f 30 30 2836
nlp_g 64.7 64.7 2836
nlp_grad_f 76.9 76.9 407
nlp_jac_g 2.97e+03 2.97e+03 1026
Breakdown of objective (including weights):
effort: 357422
Active or violated continuous variable bounds
L and U indicate which bound is active; '*' indicates a bound is violated.
The case of lower==upper==value is ignored.
State bounds: no bounds active or violated
Control bounds: no bounds active or violated
Multiplier bounds: no bounds active or violated
Derivative bounds: no bounds active or violated
Active or violated parameter bounds
L and U indicate which bound is active; '*' indicates a bound is violated.
The case of lower==upper==value is ignored.
Time bounds: no bounds active or violated
Parameter bounds: no bounds active or violated
Total number of constraints: 4789.
Differential equation defects:
L2 norm across mesh, max abs value (L1 norm), time of max abs
/jointset/groundPelvis/pelvis_tilt/value 8.97e-06 3.59e-06 0.000000
/jointset/groundPelvis/pelvis_tx/value 9.54e-08 2.49e-08 0.196001
/jointset/groundPelvis/pelvis_ty/value 3.77e-09 9.50e-10 0.084001
/jointset/hip_l/hip_flexion_l/value 3.36e-06 1.65e-06 0.000000
/jointset/hip_r/hip_flexion_r/value 3.81e-06 1.51e-06 0.000000
/jointset/lumbar/lumbar/value 2.22e-05 1.90e-05 0.164001
/jointset/knee_l/knee_angle_l/value 9.44e-07 3.68e-07 0.028000
/jointset/knee_r/knee_angle_r/value 7.69e-07 2.11e-07 0.028000
/jointset/ankle_l/ankle_angle_l/value 3.41e-07 7.01e-08 0.148001
/jointset/ankle_r/ankle_angle_r/value 6.38e-07 2.11e-07 0.156001
/jointset/groundPelvis/pelvis_tilt/speed 2.82e-01 1.16e-01 0.048000
/jointset/groundPelvis/pelvis_tx/speed 1.13e-02 4.20e-03 0.048000
/jointset/groundPelvis/pelvis_ty/speed 2.01e-02 8.34e-03 0.048000
/jointset/hip_l/hip_flexion_l/speed 3.64e-01 1.20e-01 0.020000
/jointset/hip_r/hip_flexion_r/speed 3.58e-01 1.13e-01 0.020000
/jointset/lumbar/lumbar/speed 3.21e-01 1.02e-01 0.020000
/jointset/knee_l/knee_angle_l/speed 1.13e-01 3.82e-02 0.012000
/jointset/knee_r/knee_angle_r/speed 1.28e-01 4.46e-02 0.012000
/jointset/ankle_l/ankle_angle_l/speed 4.08e-01 1.71e-01 0.192001
/jointset/ankle_r/ankle_angle_r/speed 1.93e+00 6.35e-01 0.128001
/hamstrings_r/activation 2.29e-03 1.55e-03 0.196001
/bifemsh_r/activation 1.21e-04 4.82e-05 0.152001
/glut_max_r/activation 1.26e-03 4.68e-04 0.008000
/iliopsoas_r/activation 1.54e-03 7.99e-04 0.016000
/rect_fem_r/activation 7.46e-04 4.70e-04 0.148001
/vasti_r/activation 2.42e-03 7.24e-04 0.004000
/gastroc_r/activation 1.00e-03 4.79e-04 0.012000
/soleus_r/activation 9.65e-04 3.14e-04 0.120001
/tib_ant_r/activation 1.11e-03 6.63e-04 0.124001
/hamstrings_l/activation 2.34e-03 9.37e-04 0.196001
/bifemsh_l/activation 1.87e-04 1.01e-04 0.016000
/glut_max_l/activation 1.38e-03 5.94e-04 0.052000
/iliopsoas_l/activation 1.45e-03 8.56e-04 0.020000
/rect_fem_l/activation 6.60e-04 3.06e-04 0.040000
/vasti_l/activation 1.69e-03 8.15e-04 0.052000
/gastroc_l/activation 4.94e-04 2.46e-04 0.020000
/soleus_l/activation 7.80e-04 1.89e-04 0.196001
/tib_ant_l/activation 1.27e-04 8.10e-05 0.000000
Kinematic constraints: none
Path constraints: none
-------------------------------------------------------------------------------
Elapsed real time: 3520 second(s) (58 minute(s), 40 second(s)).
18/05/2020 13:10:10
MocoCasADiSolver did NOT succeed:
Maximum_Iterations_Exceeded
===============================================================================
Error using example2DWalkingGaitPred_CM (line 114)
Java exception occurred:
java.lang.RuntimeException: This trajectory is sealed, to force you to acknowledge the solver failed; call
unseal() to gain access.
Thrown at MocoTrajectory.cpp:1347 in ensureUnsealed().
at org.opensim.modeling.opensimMocoJNI.createPeriodicTrajectory__SWIG_4(Native Method)
at org.opensim.modeling.opensimMoco.createPeriodicTrajectory(opensimMoco.java:145)