Well, i finally found out what makes the trainer stop working!
It does not support more than 80 factions. That includes separatists, rebels etc.
So, if the trainer stops working, just reduce the number of factions by diplomacy or war.
This is official, I spent hours veryfying this by testing...