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: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") [: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.001196/0.001196, allocations: 189.8 kB / 8.136 MB, free: 2.215 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.17/1.17, allocations: 194.2 MB / 202.8 MB, free: 8.758 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.001719/0.001719, allocations: 121.9 kB / 247.7 MB, free: 6.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1611/0.1611, allocations: 37.92 MB / 330.5 MB, free: 6.938 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.143e-06/7.163e-06, allocations: 0 / 389.8 MB, free: 78.1 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 53.23 MB / 443 MB, free: 24.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2931/0.4018, allocations: 106.4 MB / 0.5365 GB, free: 1.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.4021, allocations: 89.14 kB / 0.5366 GB, free: 1.469 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07716/0.4793, allocations: 29.18 MB / 0.5651 GB, free: 8.852 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.725e-05/0.4794, allocations: 20 kB / 0.5651 GB, free: 8.832 MB / 378.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.001802/0.4812, allocations: 1.047 MB / 0.5661 GB, free: 7.793 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.4812, allocations: 8.031 kB / 0.5661 GB, free: 7.785 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001079/0.4823, allocations: 190.6 kB / 0.5663 GB, free: 7.598 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002762/0.4851, allocations: 1.179 MB / 0.5675 GB, free: 6.582 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/0.4851, allocations: 28 kB / 0.5675 GB, free: 6.555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.4853, allocations: 51.94 kB / 0.5676 GB, free: 6.508 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00109/0.4864, allocations: 0.7513 MB / 0.5683 GB, free: 5.996 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.4878, allocations: 0.9943 MB / 0.5693 GB, free: 5.195 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.929e-05/0.4879, allocations: 3.938 kB / 0.5693 GB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.535e-05/0.4879, allocations: 0 / 0.5693 GB, free: 5.191 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.802e-05/0.488, allocations: 68.53 kB / 0.5693 GB, free: 5.129 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004741/0.4928, allocations: 3.923 MB / 0.5732 GB, free: 1.594 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004203/0.4932, allocations: 295.9 kB / 0.5734 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.4936, allocations: 260 kB / 0.5737 GB, free: 1.203 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.4936, allocations: 8.359 kB / 0.5737 GB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.4937, allocations: 42.12 kB / 0.5737 GB, free: 1.148 MB / 378.7 MB Notification: Performance of pre-optimization done (n=47): time 2.494e-06/0.4937, allocations: 0 / 0.5737 GB, free: 1.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=59): time 0.004087/0.4978, allocations: 2.353 MB / 0.576 GB, free: 15.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.125e-05/0.4978, allocations: 81.61 kB / 0.5761 GB, free: 15.09 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004418/0.4983, allocations: 423.2 kB / 0.5765 GB, free: 14.75 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.4983, allocations: 25.7 kB / 0.5765 GB, free: 14.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.4985, allocations: 412.5 kB / 0.5769 GB, free: 14.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.4987, allocations: 209.1 kB / 0.5771 GB, free: 14.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.643e-05/0.4987, allocations: 4.031 kB / 0.5771 GB, free: 14.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4989, allocations: 371.9 kB / 0.5775 GB, free: 13.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004267/0.4993, allocations: 309 kB / 0.5778 GB, free: 13.62 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005364/0.4998, allocations: 0.5394 MB / 0.5783 GB, free: 13.1 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.003709/0.5036, allocations: 0.9393 MB / 0.5792 GB, free: 12.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.5036, allocations: 7.844 kB / 0.5792 GB, free: 12.31 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