remove the print message in model.checkgrad