Implementation f an extended generator sybsystem in OpenModelica and comparative analysis with DIgSILENT PowerFactory