Working double pendulum and energy