Modelling of a hydraulic system coupled with lumped masses