Modeling and Control of Hydrosystems