Modeling of Hydraulic Systems by Finite-Element Methods