Modeling the hydraulic pump