Generalizing WDN simulation models to variable tank levels