I hope this will enlighten the common mistakes about orbits evolution.
First one: the energy is ever constant but this means the energy of all COMPLETE system, in the case of a moon and planet It means:
Moon Rotational E. + Planet Rot. E. + Moon-Planet system rotation E. = Constant
(E. = Energy)
If one sumand is getting smaller then other must be bigger.
Second one: Tides slow down or fast up the rotation of a moon or planet depending of wich one is faster than the other. If the planet is faster then the tides slow the rotation and viceversa.
This means that in the case most common: Io, Europa, Earth moon, etc. The distance of this moon to its planets is getting bigger because the tides they generates in the planet overtake the rotation of the moon "stealing" the rotational Energy of his parent planet and increasing the potential E. of the moon and its own orbital distance. The planet does the same on the moon but more quickly (because it has more mass) slowing the moon "day" and increasing the moon planet distance.
This will happend until the moon day and moon orbital period are the same, locking one moon side to the planet ( case of all near moons: earth moon, Io, europa, ganymede.... ) But the moon continues reducing rotational speed of the planet and increasing its own orbit until the total lock of the system, the lock of the planet too ( case of Pluto and Charon) at this point there is no more evolution. (Earth day is getting longer; 900 millions years ago the day only had 18 hours and the moon was much more near of the Earth: Today the moon orbit is getting bigger by 3cms/year )
The other possible case is Triton and Phobos. Triton rotates arond Neptune in the "wrong" way and Phobos rotates faster than Mars. This produces that they overtake the tides in its planet, so the planet rotates fast and the moon losts potential energy reducing its orbit and eventually hitting the planet (case of small phobos) or breaking into parts in the Roche's limit (case of big Triton).
So the energy to moltening interior of Io and Europa are from the lost rotational energy of Jupiter this only happend when the tidal force are extreme because the proximity to the planet and the huge planet mass (don't worry Jupiter is very massive so don't sense this lost of rotational speed very much).
Almost all increase their distances of his parent planet except the counter rotation moons and the very close moons. (There are complex resonancies between the diferents moons of a planet too but this is another task to explain in other post)
I hope this could be usseful for all of you. I am working hard in the planet generator add-on for Celestia and the Tidal lock is a hard point to take into account in the planets and moons generation.
If anybody have any doubt about this or want all the formulae
ask me here or directly by messenger.
Sorry for my bad english.