The simultaneous solution and sensitivity analysis of systems described by ordinary differential equations