Managing a hydraulic system in district heating by