ddrCost only added once to obj per timestep, not deg times
move dae and related stuff to dae module
use single residual in dae, not separate ode and dae residuals