Modelling of water resources systems