ODE based system with source terms