Test the mode of ipopt.