My thought was having it run until it found a single solution, whether or not it has already been found. There will of course be higher order solutions, but they will presumably give more complicated solutions to the ODE in question.