rpv_invert: added debug message for testing the new minimization function