By default, AI starts with full tank and only stops when the fuel tank is empty. Said that, there is some variation in the pit lap (most AI cars stops in the same lap, but there is a few that stops 1 lap before or after).
To simulate pitstops in single race, i usually put a x4 or x5 fuel consumption and start a race with full tank. The amount of stops will depend on the number of laps and fuel consumption setting.
Note: AI does not bother about tyres, and dont seem to lose performance due to tyre degradation. So, dont spend too much time on track to the point of you lose much grip, cause you will find yourself too much slow comparing to the AI. Keep tyre consumption in normal and use fuel consumption to regulate the stint duration.