Adapt to the removal of roboptim::UserIntermediateCallback

Compared to the former version, some elements have been removed:
* the test of RegularMode
* dual_inf, complem, overallError are not stored anymore