RRA failed - Search direction becomes too sma
Posted: Wed Mar 23, 2011 9:27 pm
I first time to see this error message, and got confused about it, I searched in the forum and got no others' experience about this. The below error is what I saw when RRA failed.
-------------------------------------------------------
This program includes software developed by the
Apache Software Foundation (http://www.apache.org/).
-------------------------------------------------------
Constructing investigation from setup file B010_SMALL_FLAT_LF_1_Setup_RRA.xml.
AbstractTool B010_SMALL_FLAT_LF_1_walk1_RRA loading model 'B010_knee_adduction_final_lock.osim'
Loaded model subject01 from file B010_knee_adduction_final_lock.osim
Adding force object set from Common_RRA_Actuators.xml
-----------------------------------------------------------------------
Loaded library
-----------------------------------------------------------------------
MODEL: subject01
forces: 23
analyses: 0
bodies: 13
joints: 12
markers: 17
-----------------------------------------------------------------------
Running tool B010_SMALL_FLAT_LF_1_walk1_RRA.
taskSet size = 23
WARN- a desired points file was not specified.
Loading desired kinematics from file B010_SMALL_FLAT_LF_1_output_ik.mot ...
Loading q's from file B010_SMALL_FLAT_LF_1_output_ik.mot.
Storage: file=B010_SMALL_FLAT_LF_1_output_ik.mot (nr=125 nc=79)
Found 125 q's with time stamps ranging
from 0 to 2.06667.
Low-pass filtering desired kinematics with a cutoff frequency of 6...
MODEL: subject01
ANALYSES (0)
BODIES (13)
body[0] = ground (mass: 0) (inertia: 0 0 0 0 0 0 0 0 0)
body[1] = pelvis (mass: 11.2812) (inertia: 0.0984719 0 0 0 0.0834329 0 0 0 0.0554623)
body[2] = femur_r (mass: 8.90979) (inertia: 0.128263 0 0 0 0.0336222 0 0 0 0.135255)
body[3] = tibia_r (mass: 3.55141) (inertia: 0.0482781 0 0 0 0.00488528 0 0 0 0.0489486)
body[4] = talus_r (mass: 0.0957898) (inertia: 0.0009579 0 0 0 0.0009579 0 0 0 0.0009579)
body[5] = calcn_r (mass: 1.19737) (inertia: 0.00134106 0 0 0 0.0037358 0 0 0 0.00392738)
body[6] = toes_r (mass: 0.207481) (inertia: 9.579e-005 0 0 0 0.00019158 0 0 0 9.579e-005)
body[7] = femur_l (mass: 8.90979) (inertia: 0.128263 0 0 0 0.0336222 0 0 0 0.135255)
body[8] = tibia_l (mass: 3.55141) (inertia: 0.0482781 0 0 0 0.00488528 0 0 0 0.0489486)
body[9] = talus_l (mass: 0.0957898) (inertia: 0.0009579 0 0 0 0.0009579 0 0 0 0.0009579)
body[10] = calcn_l (mass: 1.19737) (inertia: 0.00134106 0 0 0 0.0037358 0 0 0 0.00392738)
body[11] = toes_l (mass: 0.207481) (inertia: 9.579e-005 0 0 0 0.00019158 0 0 0 9.579e-005)
body[12] = torso (mass: 32.7952) (inertia: 1.41242 0 0 0 0.723692 0 0 0 1.37113)
ACTUATORS (23)
actuator[0] = FX
actuator[1] = FY
actuator[2] = FZ
actuator[3] = MX
actuator[4] = MY
actuator[5] = MZ
actuator[6] = hip_flexion_r
actuator[7] = hip_adduction_r
actuator[8] = hip_rotation_r
actuator[9] = knee_angle_r
actuator[10] = ankle_angle_r
actuator[11] = subtalar_angle_r
actuator[12] = mtp_angle_r
actuator[13] = hip_flexion_l
actuator[14] = hip_adduction_l
actuator[15] = hip_rotation_l
actuator[16] = knee_angle_l
actuator[17] = ankle_angle_l
actuator[18] = subtalar_angle_l
actuator[19] = mtp_angle_l
actuator[20] = lumbar_extension
actuator[21] = lumbar_bending
actuator[22] = lumbar_rotation
numStates = 46
numCoordinates = 23
numSpeeds = 23
numActuators = 23
numBodies = 13
numConstraints = 0
STATES (46)
y[0] = pelvis_tilt
y[1] = pelvis_list
y[2] = pelvis_rotation
y[3] = pelvis_tx
y[4] = pelvis_ty
y[5] = pelvis_tz
y[6] = hip_flexion_r
y[7] = hip_adduction_r
y[8] = hip_rotation_r
y[9] = knee_angle_r
y[10] = ankle_angle_r
y[11] = subtalar_angle_r
y[12] = mtp_angle_r
y[13] = hip_flexion_l
y[14] = hip_adduction_l
y[15] = hip_rotation_l
y[16] = knee_angle_l
y[17] = ankle_angle_l
y[18] = subtalar_angle_l
y[19] = mtp_angle_l
y[20] = lumbar_extension
y[21] = lumbar_bending
y[22] = lumbar_rotation
y[23] = pelvis_tilt_u
y[24] = pelvis_list_u
y[25] = pelvis_rotation_u
y[26] = pelvis_tx_u
y[27] = pelvis_ty_u
y[28] = pelvis_tz_u
y[29] = hip_flexion_r_u
y[30] = hip_adduction_r_u
y[31] = hip_rotation_r_u
y[32] = knee_angle_r_u
y[33] = ankle_angle_r_u
y[34] = subtalar_angle_r_u
y[35] = mtp_angle_r_u
y[36] = hip_flexion_l_u
y[37] = hip_adduction_l_u
y[38] = hip_rotation_l_u
y[39] = knee_angle_l_u
y[40] = ankle_angle_l_u
y[41] = subtalar_angle_l_u
y[42] = mtp_angle_l_u
y[43] = lumbar_extension_u
y[44] = lumbar_bending_u
y[45] = lumbar_rotation_u
Loading external loads kinematics from file B010_SMALL_FLAT_LF_1_output_ik.mot ...
Storage: file=B010_SMALL_FLAT_LF_1_output_ik.mot (nr=125 nc=79)
Low-pass filtering external load kinematics with a cutoff frequency of 6...
Storage: file=D:\Applications\OpenSim 2.2\examples\Yi\20110308-Alltrails with wand markers\B010_SMALL_FLAT_LF_1_kinetics.mot (nr=1241 nc=19)
Note: requested COM adjustment time range 0.53667 - 1.89334 clamped to nearest available data times 0.53272 - 1.88218
Computing average residuals between 0.53272 and 1.88218
Average residuals before adjusting torso COM:
FX=-0.206598 FY=53.8366 FZ=-11.2503
MX=9.28513 MY=-2.94917 MZ=36.7663
CMCTool.adjustCOMToReduceResiduals:
torso weight = 321.611
dx=0.1, dz=-0.0288707
dmass = -5.48981
Recommended mass adjustments:
ground: orig mass = 0, new mass = 0
pelvis: orig mass = 11.2812, new mass = 10.421
femur_r: orig mass = 8.90979, new mass = 8.23044
tibia_r: orig mass = 3.55141, new mass = 3.28062
talus_r: orig mass = 0.0957898, new mass = 0.0884861
calcn_r: orig mass = 1.19737, new mass = 1.10608
toes_r: orig mass = 0.207481, new mass = 0.191661
femur_l: orig mass = 8.90979, new mass = 8.23044
tibia_l: orig mass = 3.55141, new mass = 3.28062
talus_l: orig mass = 0.0957898, new mass = 0.0884861
calcn_l: orig mass = 1.19737, new mass = 1.10608
toes_l: orig mass = 0.207481, new mass = 0.191661
torso: orig mass = 32.7952, new mass = 30.2946
Computing average residuals between 0.53272 and 1.88218
Average residuals after adjusting torso COM:
FX=0.0720428 FY=54.4982 FZ=-10.3568
MX=19.8871 MY=-3.09726 MZ=67.7389
Constructing function set for tracking desired kinematics...
No Actuation analysis found in analysis set -- adding one
No Kinematics analysis found in analysis set -- adding one
Using the generalized coordinates specified in B010_SMALL_FLAT_LF_1_output_ik.mot to set the initial configuration.
Using IPOPT optimizer algorithm.
Setting optimizer print level to 0.
Setting optimizer convergence criterion to 1e-006.
Setting optimizer maximum iterations to 2000.
Setting cmc controller to not use verbose printing.
CMC.computeControls: t = 0.53667
================================================================
================================================================
Using CMC to track the specified kinematics
Integrating from 0.53667 to 1.89334
Start time = Wed Mar 23 22:13:55 2011
================================================================
CMC.computeControls: t = 0.53667
......................
CMC.computeControls: t = 0.97867
SimTK Exception thrown at InteriorPointOptimizer.cpp:262:
Optimizer failed: Ipopt: Search direction becomes too small (status 3)
OPTIMIZATION FAILED...
CMC.computeControls: WARN- The optimizer could not find a solution at time = 0.978670.
If using the fast target, try using the slow target.
Starting at a slightly different initial time may also help.
------------------------------------------
Some time the error is about "Maximum iterations exceeded (status -1)", what reasons could cause these two errors? Any suggestion could help.
Thanks in advance.
Yi.
-------------------------------------------------------
This program includes software developed by the
Apache Software Foundation (http://www.apache.org/).
-------------------------------------------------------
Constructing investigation from setup file B010_SMALL_FLAT_LF_1_Setup_RRA.xml.
AbstractTool B010_SMALL_FLAT_LF_1_walk1_RRA loading model 'B010_knee_adduction_final_lock.osim'
Loaded model subject01 from file B010_knee_adduction_final_lock.osim
Adding force object set from Common_RRA_Actuators.xml
-----------------------------------------------------------------------
Loaded library
-----------------------------------------------------------------------
MODEL: subject01
forces: 23
analyses: 0
bodies: 13
joints: 12
markers: 17
-----------------------------------------------------------------------
Running tool B010_SMALL_FLAT_LF_1_walk1_RRA.
taskSet size = 23
WARN- a desired points file was not specified.
Loading desired kinematics from file B010_SMALL_FLAT_LF_1_output_ik.mot ...
Loading q's from file B010_SMALL_FLAT_LF_1_output_ik.mot.
Storage: file=B010_SMALL_FLAT_LF_1_output_ik.mot (nr=125 nc=79)
Found 125 q's with time stamps ranging
from 0 to 2.06667.
Low-pass filtering desired kinematics with a cutoff frequency of 6...
MODEL: subject01
ANALYSES (0)
BODIES (13)
body[0] = ground (mass: 0) (inertia: 0 0 0 0 0 0 0 0 0)
body[1] = pelvis (mass: 11.2812) (inertia: 0.0984719 0 0 0 0.0834329 0 0 0 0.0554623)
body[2] = femur_r (mass: 8.90979) (inertia: 0.128263 0 0 0 0.0336222 0 0 0 0.135255)
body[3] = tibia_r (mass: 3.55141) (inertia: 0.0482781 0 0 0 0.00488528 0 0 0 0.0489486)
body[4] = talus_r (mass: 0.0957898) (inertia: 0.0009579 0 0 0 0.0009579 0 0 0 0.0009579)
body[5] = calcn_r (mass: 1.19737) (inertia: 0.00134106 0 0 0 0.0037358 0 0 0 0.00392738)
body[6] = toes_r (mass: 0.207481) (inertia: 9.579e-005 0 0 0 0.00019158 0 0 0 9.579e-005)
body[7] = femur_l (mass: 8.90979) (inertia: 0.128263 0 0 0 0.0336222 0 0 0 0.135255)
body[8] = tibia_l (mass: 3.55141) (inertia: 0.0482781 0 0 0 0.00488528 0 0 0 0.0489486)
body[9] = talus_l (mass: 0.0957898) (inertia: 0.0009579 0 0 0 0.0009579 0 0 0 0.0009579)
body[10] = calcn_l (mass: 1.19737) (inertia: 0.00134106 0 0 0 0.0037358 0 0 0 0.00392738)
body[11] = toes_l (mass: 0.207481) (inertia: 9.579e-005 0 0 0 0.00019158 0 0 0 9.579e-005)
body[12] = torso (mass: 32.7952) (inertia: 1.41242 0 0 0 0.723692 0 0 0 1.37113)
ACTUATORS (23)
actuator[0] = FX
actuator[1] = FY
actuator[2] = FZ
actuator[3] = MX
actuator[4] = MY
actuator[5] = MZ
actuator[6] = hip_flexion_r
actuator[7] = hip_adduction_r
actuator[8] = hip_rotation_r
actuator[9] = knee_angle_r
actuator[10] = ankle_angle_r
actuator[11] = subtalar_angle_r
actuator[12] = mtp_angle_r
actuator[13] = hip_flexion_l
actuator[14] = hip_adduction_l
actuator[15] = hip_rotation_l
actuator[16] = knee_angle_l
actuator[17] = ankle_angle_l
actuator[18] = subtalar_angle_l
actuator[19] = mtp_angle_l
actuator[20] = lumbar_extension
actuator[21] = lumbar_bending
actuator[22] = lumbar_rotation
numStates = 46
numCoordinates = 23
numSpeeds = 23
numActuators = 23
numBodies = 13
numConstraints = 0
STATES (46)
y[0] = pelvis_tilt
y[1] = pelvis_list
y[2] = pelvis_rotation
y[3] = pelvis_tx
y[4] = pelvis_ty
y[5] = pelvis_tz
y[6] = hip_flexion_r
y[7] = hip_adduction_r
y[8] = hip_rotation_r
y[9] = knee_angle_r
y[10] = ankle_angle_r
y[11] = subtalar_angle_r
y[12] = mtp_angle_r
y[13] = hip_flexion_l
y[14] = hip_adduction_l
y[15] = hip_rotation_l
y[16] = knee_angle_l
y[17] = ankle_angle_l
y[18] = subtalar_angle_l
y[19] = mtp_angle_l
y[20] = lumbar_extension
y[21] = lumbar_bending
y[22] = lumbar_rotation
y[23] = pelvis_tilt_u
y[24] = pelvis_list_u
y[25] = pelvis_rotation_u
y[26] = pelvis_tx_u
y[27] = pelvis_ty_u
y[28] = pelvis_tz_u
y[29] = hip_flexion_r_u
y[30] = hip_adduction_r_u
y[31] = hip_rotation_r_u
y[32] = knee_angle_r_u
y[33] = ankle_angle_r_u
y[34] = subtalar_angle_r_u
y[35] = mtp_angle_r_u
y[36] = hip_flexion_l_u
y[37] = hip_adduction_l_u
y[38] = hip_rotation_l_u
y[39] = knee_angle_l_u
y[40] = ankle_angle_l_u
y[41] = subtalar_angle_l_u
y[42] = mtp_angle_l_u
y[43] = lumbar_extension_u
y[44] = lumbar_bending_u
y[45] = lumbar_rotation_u
Loading external loads kinematics from file B010_SMALL_FLAT_LF_1_output_ik.mot ...
Storage: file=B010_SMALL_FLAT_LF_1_output_ik.mot (nr=125 nc=79)
Low-pass filtering external load kinematics with a cutoff frequency of 6...
Storage: file=D:\Applications\OpenSim 2.2\examples\Yi\20110308-Alltrails with wand markers\B010_SMALL_FLAT_LF_1_kinetics.mot (nr=1241 nc=19)
Note: requested COM adjustment time range 0.53667 - 1.89334 clamped to nearest available data times 0.53272 - 1.88218
Computing average residuals between 0.53272 and 1.88218
Average residuals before adjusting torso COM:
FX=-0.206598 FY=53.8366 FZ=-11.2503
MX=9.28513 MY=-2.94917 MZ=36.7663
CMCTool.adjustCOMToReduceResiduals:
torso weight = 321.611
dx=0.1, dz=-0.0288707
dmass = -5.48981
Recommended mass adjustments:
ground: orig mass = 0, new mass = 0
pelvis: orig mass = 11.2812, new mass = 10.421
femur_r: orig mass = 8.90979, new mass = 8.23044
tibia_r: orig mass = 3.55141, new mass = 3.28062
talus_r: orig mass = 0.0957898, new mass = 0.0884861
calcn_r: orig mass = 1.19737, new mass = 1.10608
toes_r: orig mass = 0.207481, new mass = 0.191661
femur_l: orig mass = 8.90979, new mass = 8.23044
tibia_l: orig mass = 3.55141, new mass = 3.28062
talus_l: orig mass = 0.0957898, new mass = 0.0884861
calcn_l: orig mass = 1.19737, new mass = 1.10608
toes_l: orig mass = 0.207481, new mass = 0.191661
torso: orig mass = 32.7952, new mass = 30.2946
Computing average residuals between 0.53272 and 1.88218
Average residuals after adjusting torso COM:
FX=0.0720428 FY=54.4982 FZ=-10.3568
MX=19.8871 MY=-3.09726 MZ=67.7389
Constructing function set for tracking desired kinematics...
No Actuation analysis found in analysis set -- adding one
No Kinematics analysis found in analysis set -- adding one
Using the generalized coordinates specified in B010_SMALL_FLAT_LF_1_output_ik.mot to set the initial configuration.
Using IPOPT optimizer algorithm.
Setting optimizer print level to 0.
Setting optimizer convergence criterion to 1e-006.
Setting optimizer maximum iterations to 2000.
Setting cmc controller to not use verbose printing.
CMC.computeControls: t = 0.53667
================================================================
================================================================
Using CMC to track the specified kinematics
Integrating from 0.53667 to 1.89334
Start time = Wed Mar 23 22:13:55 2011
================================================================
CMC.computeControls: t = 0.53667
......................
CMC.computeControls: t = 0.97867
SimTK Exception thrown at InteriorPointOptimizer.cpp:262:
Optimizer failed: Ipopt: Search direction becomes too small (status 3)
OPTIMIZATION FAILED...
CMC.computeControls: WARN- The optimizer could not find a solution at time = 0.978670.
If using the fast target, try using the slow target.
Starting at a slightly different initial time may also help.
------------------------------------------
Some time the error is about "Maximum iterations exceeded (status -1)", what reasons could cause these two errors? Any suggestion could help.
Thanks in advance.
Yi.