Finite element solution of the 3D mold filling problem for viscous incompressible fluid