Lumped-Element Dynamic Electro-Thermal model of a superconducting magnet