res_energy_steady_and_derivs