Is R2BP an ODESystem? ODESystems are symbolic objects, so every time you go symbolic → code it has to compile. I would recommend compiling it once and then using tools like remake to change u0, tspan, and p.
4 Likes