Stat residual is nan

Hi,

I’m rather new to acados and recently I’m trying to translate my already-running code written with casadi opti stack into acados (python interface). I haven’t so far get my code successfully running in acados yet due to a reported error of stat residual to be nan, all other residuals seem fine. I was just wondering what could be the source of my error and where should I be looking at to resolve it?\

Thanks,

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 3.279021e+00 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 0 failed with status 1
Current state: [[2.985 ]
[0.149 ]
[0. ]
[0.04987485]
[1.538 ]
[0. ]
[0. ]
[0. ]]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 1 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 2 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 3 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 4 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 5 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 6 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]

it stat eq ineq comp qp_stat qp_iter alpha

0 nan 5.596420e-01 2.885000e+00 0.000000e+00 0 0 3.000000e-01
Stopped: NaN detected in iterate.
Iteration 7 failed with status 1
Current state: [0. 0. 0. 0. 0. 0. 0. 0.]