save error param to 'param_error.dat'

cf is not passed to mopt_obj_wrapper, so can  not be called