Building Cyber-Physical Energy Systems