Ho to make an Pendulum that oscillate forever?

I'm trying to create a pendulum. Actually I did it but I want to oscillate forever. The one I created reduces its movement despite the fact that I've put the friction to 0 on the body def. I also put the body.m_angularDamping = 0 and body.m_linearDamping = 0 and still no progress. Just to make sure I've tried to put the restitution to 0.

My pendulum is very simple:
- a small circle with density 0 to hand on the pendulum.
- a body to simulate a bar made of a box with a big circle attached to one head.
- a revolution joint that connect the other head of the bar to the small circle.

The bar starts in the horizontal position.

Could you tell me what else can I change to have the pendulum oscillating forever?
Euler integration is not a perfect integration technique, in fact it is the weakest. Energy is not conserved perfectly. I suggest you make tweaks to the velocity of the pendulum to keep it moving.
I advise you check when it is on vertical (or nearby nonetheless) , you remove all velocity/inerty and you give it a sideway force.
Thanks, this is what I intend to do. Initially, I though is some nasty flag I didn't set and it's related to friction. It seems not so I have to tweak it as you mentioned.
i also need exactly the same thing. can you please, tell me that how you got it ...

waiting for your positive reply.
I recorded the maximum speed during the first oscillation. Then when the pendulum is close to the vertical position I set the maximum recorded speed.

Original thread: https://box2d.org/forum/viewtopic.php?t=4516