There seems to be an issue with the diesel generator.
Detail: When the problem happens I can see on the information panel that the "temperature" and "available performance" start to gradually drop, and goes to almost zero. Fuel shows 10.0 and generator is connected to power grid.
How to repeat: Sometimes this issue happens when loading game, but it seems to be reproducible by removing the power pole that connects the generator the grid, and rebuilding it. Also disconnecting fuel and reconnecting may trigger the issue. This can require a few attempts. I'm not sure if it's important to mention, but I usually have more than on generator connecting to same power pole/fuel supply. I have also used the new power-switch to try creating a sort of backup power generator system, but this bug is causing this to sometimes not work. So far, the only 100% reliable way to stop the issue is to deconstruct the diesel generator and place it back. Removing power pole and rebuild it can also fix it, but this does not work 100% of the time.
My factorio version 0.13.15. (Latest beta via steam). The issue has been present in at least a few of the latest versions.