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...