Dynamic modelling of complex hydraulic systems