Wikipedia says, “A perpetual motion machine is a hypothetical machine that can do work infinitely without an external energy source. This kind of machine is impossible, since its existence would violate either the first or second law of thermodynamics, or both.”
In the real world, systemic failure is inevitable. The most sophisticated humanly devised machinery eventually breaks down and grinds to a halt.