Modelling and control of hydraulic system