Do you have an example including a small diesel emergency generator?
The attached example shows a small industrial grid where
1. At 0 seconds the connection to the external grid is opened
2. At 1 second the diesel unit is connected to the internal grid. Before it was initialized as "spinning if circuit-breaker is open", see load-flow page.
3. At 10 seconds a motor load and an inductive load are connected.
Consider that you will have to adapt the machine data, controller types and settings before using this example in your own studies.