This popped up on HN reasonably recently https://caseyhandmer.wordpress.com/2021/05/04/so-you-want-to... - basically "it's not necessarily as simple as that, where are you getting the water from?".
The fusion energy that is powering the system is that of our sun. No perpetual motion machine required, our planet is being bathed in outside energy.