Hi michalbaron3,
You probably want to use a prescribe displacement to rotate one of the gears and define surface to surface contact between the teeth. Optionally, you can apply a resisting moment to the driven gear to simulate the load.
- For the prescribe displacement, see "Start & Learn > Learn > Tutorials", then "Analyzing and Evaluating Results Tutorials > Piston Mechanical Event Simulation".
- For the surface to surface contact, see "Start & Learn > Learn > Help", then "User's Guide > Examples > Mechanical Event Simulation > Surface to Surface Contacts". (I see that you have contact defined already, so you may not need this step, but others who read this thread may benefit from it.)
I'm not sure what constraint you have applied, so you may need to change it following the example in the Piston tutorial. The piston tutorial used the "Joint" command to create the spoke of beams where the shaft is. That command only works with 3D CAD models, but you can use the "Draw > Design > Contact Elements" command to generate the same type of lines in a 2D model.
P.S. Those are some really large gears! They must be heavy since it is a solid face. You should either accelerate them slowly, or define an initial angular velocity for each of the parts. If you were to start at time 0 with no initial velocity and instantaneously rotate them at N rpm, the inertia will lead to huge stresses and problems with the surface contact, etc.