Removed static declarations - gave wrong results with multiple calls of ode2odes.