Modeling, simulation and control of water supply system