specified should probably be `None`, `generate_ode_function` has `specified` as an optional argument.