Hi,
I understand that your robot is moving even for zero input torque. One of the possible reasons is that the robot has initial conditions or velocities that cause it to move, even with zero torque input. Verify that the initial conditions for the robot's position, velocity, and acceleration are correctly set.
Hope it helps!