Development of grid code handling process and simulation models for synchronous machines