Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PowerAngle,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_PowerAngle",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001094/0.001094, allocations: 182.9 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1/1, allocations: 194.2 MB / 202.8 MB, free: 8.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001663/0.001663, allocations: 122.5 kB / 247.7 MB, free: 6.285 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1548/0.1548, allocations: 37.92 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1708/0.3256, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06798/0.3936, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2378/0.6314, allocations: 106.4 MB / 0.5366 GB, free: 1.574 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.6316, allocations: 93.22 kB / 0.5367 GB, free: 1.527 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.08163/0.7133, allocations: 30.25 MB / 0.5662 GB, free: 7.859 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.7133, allocations: 12 kB / 0.5662 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001291/0.7146, allocations: 193.7 kB / 0.5664 GB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00336/0.718, allocations: 1.18 MB / 0.5676 GB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.7181, allocations: 24 kB / 0.5676 GB, free: 6.621 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002708/0.7184, allocations: 51.98 kB / 0.5677 GB, free: 6.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00143/0.7198, allocations: 0.7522 MB / 0.5684 GB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.7215, allocations: 0.9914 MB / 0.5694 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.673e-05/0.7216, allocations: 3.938 kB / 0.5694 GB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.97e-05/0.7217, allocations: 4 kB / 0.5694 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.7218, allocations: 65.64 kB / 0.5694 GB, free: 5.195 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005124/0.7269, allocations: 3.925 MB / 0.5733 GB, free: 1.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004146/0.7274, allocations: 303.6 kB / 0.5735 GB, free: 1.434 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.7277, allocations: 254.3 kB / 0.5738 GB, free: 1.262 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.35e-05/0.7277, allocations: 8.359 kB / 0.5738 GB, free: 1.254 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.7278, allocations: 38.56 kB / 0.5738 GB, free: 1.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=47): time 2.665e-06/0.7278, allocations: 0 / 0.5738 GB, free: 1.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.004083/0.7319, allocations: 2.347 MB / 0.5761 GB, free: 15.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.7319, allocations: 92.02 kB / 0.5762 GB, free: 15.14 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004649/0.7324, allocations: 421.5 kB / 0.5766 GB, free: 14.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.255e-05/0.7325, allocations: 25.7 kB / 0.5766 GB, free: 14.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.7327, allocations: 409.3 kB / 0.577 GB, free: 14.42 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.7328, allocations: 210.3 kB / 0.5772 GB, free: 14.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.7328, allocations: 0 / 0.5772 GB, free: 14.23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.733, allocations: 374.5 kB / 0.5776 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000406/0.7334, allocations: 314.1 kB / 0.5779 GB, free: 13.68 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.7339, allocations: 0.5341 MB / 0.5784 GB, free: 13.16 MB / 394.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003668/0.7376, allocations: 0.943 MB / 0.5793 GB, free: 12.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.7376, allocations: 3.906 kB / 0.5793 GB, free: 12.38 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/AC3ph/Sources.mo:128:5-128:17:writable] Error: Initialization problem is structurally singular, error found sorting equations 65: infBus.V = 20000.0 * infBus.v0; 68: generator.omega[1] = 0.0; 39: generator.omega[2] = $DER.Vbus1.theta; 1: generator.w_el = generator.omega[1] + generator.omega[2]; 10: generator.v[2] = infBus.V * sin(infBus.alpha0); 9: generator.v[1] = infBus.V * cos(infBus.alpha0); 12: /*Real*/(powerAngle.pp) * generator.w_el = $DER.powerAngle.phi_el; 16: $DER.generator.v[1] = 0.0; 17: $DER.generator.v[2] = 0.0; 11: $DER.Vbus1.theta = 314.1592653589793; 13: $DER.powerAngle.phi_el = (if noEvent(generator.v[2] == 0.0) then generator.v[2] else (generator.v[1] * $DER.generator.v[2] - $DER.generator.v[1] * generator.v[2]) / (generator.v[2] ^ 2.0 * (1.0 + (generator.v[1] / generator.v[2]) ^ 2.0))) + $DER.Vbus1.theta; for variables RLgen1.i[2](18), RLgen1.omega[2](13), generator.v[1](55), $DER.powerAngle.phi_el(66), Vgen1.neutral.i(25), RLgen1.term_p.v[1](24), RLgen1.i[1](20), Vbus1.theta(7), generator.omega[1](5), sensor.p[1](28), generator.psi_e(6), $DER.RLgen1.i[3](15) Error: No system for the symbolic initialization was generated Error: Internal error SimCode: The model PowerSystems.Examples.AC3ph.Generation.PowerAngle could not be translated to FMU