Joule heating
The magnetic energy is thus transformed into Joule heating.