I've encountered the same problem previously. And after comparing my model and the official model, I found out that Endogenous Capacity of electricity plants should be set ONLY to scenarios, and that one of Current Accounts should remain default with no settings.