This can't work, energy is lost as sound, heat from rolling friction in the ball, the track, and the other moving parts, and via viscous dissipation of the air that has to move out of the way of the ball. That energy comes from the kinetic energy in the ball.
A grandfather clock maintains its...