This is the second law of thermodynamics. The challenge with building a heat engine that has an efficiency close to the Carnot heat engine is it takes infinite time to do the work with minimal power ...