A model of a stiff axis with an ideal gear.
Simulate the system for 6 seconds. Observe that a constant torque results in a constant angular acceleration. This results in a ramp in the angular velocity w, and a square curve for the angle of the axis phi:
For a step by step tutorial see Multidomain—A Servo Mechanism.