Magnetism is the key to free energy