There is at least a bad initialization from a_init in bioptim/optimization/receding_horizon_optimization.py, but there might be other problems.