Transformation of energy systems