I got a good answer in another place.
It's not a perpetual motion machine at all: it's a machine which converts energy from the Sun to electrical energy, indirectly:
the sun heats water in the sea and elsewhere, which evaporates;
this condenses out as rain and falls on high up bits of land...
'spontaneously' it is copy from wikipedia article https://en.wikipedia.org/wiki/Perpetual_motion#Classification
I mean without Sun's thermal energy water behind the dam will be finished in 1 month or so. How water gets back behind the dam? Because Sun's energy leads to water evaporation from...
It is definitely not PMM of the first kind.
Why it is not a perpetual motion machine of the second kind, which is a machine which spontaneously converts thermal energy into mechanical work?
eventually It converts solar thermal energy to mechanical work.
Is Hydroelectric power plant a perpetual motion machine of second kind from this classification
https://en.wikipedia.org/wiki/Perpetual_motion#Classification
?
or not? If not which kind of perpetual motion machine is it? :)