Topology reduction through machine learning to accelerate dynamic simulation of district heating | Synapse