Dynamic Process Modeling Of Wastewater-Energy Systems