Modeling for Energy Systems