Dynamic simulation and control of the heat supply system of a civic building with thermal energy storage units