consolidated ode_system code for unknown initial position