During high demand periods, electricity is produced by using the water flow from the upper to the lower storage reservoir. When demand is low and electricity prices are lower, the water is pumped back up. For more information on pumped storage, check out this article “Mining for Megawatts in Mamora”.