Right, I'll try to get this question across. Say you have 2 bar electromagnets, aligned so when you turn them on they are attracted to each other. You start with them touching, turn them on and pull them apart. You then turn of the current and put them back together. If you continue to repeat this, you are putting a lot of energy in, but where does it go? The only two answers I can think of are heat and EM radiation.