Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyInitial.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.Introductory.SimulationSteadyInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyInitial") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyInitial") [: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.001684/0.001685, allocations: 191.4 kB / 8.139 MB, free: 2.203 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.372/1.372, allocations: 194.2 MB / 202.8 MB, free: 8.656 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.001755/0.001756, allocations: 116.3 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1815/0.1815, allocations: 37.91 MB / 330.5 MB, free: 6.961 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.552e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09793/0.09796, allocations: 53.24 MB / 443 MB, free: 24.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3197/0.4177, allocations: 98.02 MB / 0.5284 GB, free: 8.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.4181, allocations: 82.86 kB / 0.5285 GB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.07564/0.4937, allocations: 26.5 MB / 0.5543 GB, free: 3.082 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.461e-05/0.4938, allocations: 35.92 kB / 0.5544 GB, free: 3.047 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003046/0.4969, allocations: 1.079 MB / 0.5554 GB, free: 1.969 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.4969, allocations: 8.031 kB / 0.5554 GB, free: 1.961 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001539/0.4985, allocations: 202.4 kB / 0.5556 GB, free: 1.766 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004009/0.5025, allocations: 1.376 MB / 0.557 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.659e-05/0.5026, allocations: 28 kB / 0.557 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003222/0.5029, allocations: 52 kB / 0.557 GB, free: 0.5195 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00188/0.5048, allocations: 0.8443 MB / 0.5579 GB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.5068, allocations: 1.086 MB / 0.5589 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.35e-05/0.5069, allocations: 7.938 kB / 0.5589 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.698e-05/0.507, allocations: 4 kB / 0.5589 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001036/0.5071, allocations: 57.03 kB / 0.559 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006395/0.5135, allocations: 4.491 MB / 0.5634 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.5145, allocations: 0.631 MB / 0.564 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006277/0.5152, allocations: 482.1 kB / 0.5644 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.028e-05/0.5153, allocations: 16.08 kB / 0.5645 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006926/0.516, allocations: 0.5208 MB / 0.565 GB, free: 9.738 MB / 378.7 MB Notification: Performance of pre-optimization done (n=75): time 3.387e-06/0.516, allocations: 0 / 0.565 GB, free: 9.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.004832/0.5208, allocations: 2.627 MB / 0.5675 GB, free: 7.496 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.521, allocations: 222.4 kB / 0.5677 GB, free: 7.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006073/0.5216, allocations: 456.5 kB / 0.5682 GB, free: 6.875 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.096e-05/0.5217, allocations: 26.45 kB / 0.5682 GB, free: 6.844 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/0.522, allocations: 380.4 kB / 0.5686 GB, free: 6.508 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002552/0.5222, allocations: 267.1 kB / 0.5688 GB, free: 6.277 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.5223, allocations: 0 / 0.5688 GB, free: 6.277 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.5224, allocations: 389.6 kB / 0.5692 GB, free: 5.918 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000559/0.523, allocations: 394.2 kB / 0.5696 GB, free: 5.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007282/0.5237, allocations: 0.6098 MB / 0.5702 GB, free: 5.098 MB / 378.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.008817/0.5326, allocations: 2.049 MB / 0.5722 GB, free: 3.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.5326, allocations: 7.938 kB / 0.5722 GB, free: 3.25 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/AC3ph/Sources.mo:22:5-22:65:writable] Error: Initialization problem is structurally singular, error found sorting equations 72: lineL.term_p.v[2] = voltageL.V * sin(transPh.y[2]); 47: lineL.v[2] = lineL.term_p.v[2] - lineL.term_n.v[2]; 19: $DER.lineR.i[3] + $DER.lineB.i[3] - $DER.lineL.i[3] = 0.0; 5: voltageB.V = 400000.0 * voltageB.v0; 26: lineB.L * $DER.lineB.i[2] + lineB.i[1] * lineB.omega[2] * lineB.L + lineB.i[2] * lineB.R = lineB.v[2]; 23: lineB.term_n.v[2] = voltageB.V * sin(voltageB.alpha0); 51: lineR.L * $DER.lineR.i[2] + lineR.i[1] * lineR.omega[2] * lineR.L + lineR.i[2] * lineR.R = lineR.v[2]; 42: lineR.term_n.v[2] = voltageR.V * sin(voltageR.alpha0); 28: lineB.v[2] = lineB.term_p.v[2] - lineB.term_n.v[2]; 53: lineR.v[2] = lineL.term_n.v[2] - lineR.term_n.v[2]; 35: lineB.i[2] = if switch.closed then switch.s[2] * (switch.r[1] * switch.epsG + switch.r[2]) else switch.s[2] * (switch.r[1] + switch.r[2] * switch.epsG); 32: switch.v[2] = lineL.term_n.v[2] - lineB.term_p.v[2]; 36: lineB.i[1] = if switch.closed then switch.s[1] * (switch.r[1] * switch.epsG + switch.r[2]) else switch.s[1] * (switch.r[1] + switch.r[2] * switch.epsG); 40: switch.r = PowerSystems.AC3ph.Breakers.ForcedSwitch$switch.relaxation(time - switch.t0, switch.t_relax, /*Real*/(switch.p_relax)); 38: switch.v[2] = if switch.closed then switch.s[2] * (switch.r[1] + switch.r[2] * switch.epsR) else switch.s[2] * (switch.r[1] * switch.epsR + switch.r[2]); 39: switch.v[1] = if switch.closed then switch.s[1] * (switch.r[1] + switch.r[2] * switch.epsR) else switch.s[1] * (switch.r[1] * switch.epsR + switch.r[2]); 24: lineB.term_n.v[1] = voltageB.V * cos(voltageB.alpha0); 33: switch.v[1] = lineL.term_n.v[1] - lineB.term_p.v[1]; 30: lineB.omega[2] = $DER.voltageB.theta; 12: lineR.i[1] + lineB.i[1] - lineL.i[1] = 0.0; 29: lineB.v[1] = lineB.term_p.v[1] - lineB.term_n.v[1]; 27: lineB.L * $DER.lineB.i[1] - lineB.i[2] * lineB.omega[2] * lineB.L + lineB.i[1] * lineB.R = lineB.v[1]; 4: lineB.omega[1] = 0.0; 7: lineR.omega[1] = lineB.omega[1]; 77: $DER.voltageB.theta = 314.1592653589793; 49: lineL.omega[2] = $DER.voltageB.theta; 76: transPh.y[1] = 0.5 * (transPh.a_end + transPh.a_start + (transPh.a_end - transPh.a_start) * tanh(transPh.coef * (time - transPh.t_change))); 74: voltageL.V = 400000.0 * transPh.y[1]; 75: transPh.y[2] = 0.5 * (transPh.ph_end + transPh.ph_start + (transPh.ph_end - transPh.ph_start) * tanh(transPh.coef * (time - transPh.t_change))); 46: lineL.L * $DER.lineL.i[1] - lineL.i[2] * lineL.omega[2] * lineL.L + lineL.i[1] * lineL.R = lineL.v[1]; 73: lineL.term_p.v[1] = voltageL.V * cos(transPh.y[2]); 9: voltageR.V = 400000.0 * voltageR.v0; 48: lineL.v[1] = lineL.term_p.v[1] - lineL.term_n.v[1]; 43: lineR.term_n.v[1] = voltageR.V * cos(voltageR.alpha0); 55: lineR.omega[2] = $DER.voltageB.theta; 13: lineR.i[2] + lineB.i[2] - lineL.i[2] = 0.0; 1: {$DER.lineR.i[1], $DER.lineR.i[2], $DER.lineR.i[3]} = {(-lineR.i[2]) * lineR.omega[1], lineR.i[1] * lineR.omega[1], 0.0}; 54: lineR.v[1] = lineL.term_n.v[1] - lineR.term_n.v[1]; 6: {$DER.lineB.i[1], $DER.lineB.i[2], $DER.lineB.i[3]} = {(-lineB.i[2]) * lineB.omega[1], lineB.i[1] * lineB.omega[1], 0.0}; 52: lineR.L * $DER.lineR.i[1] - lineR.i[2] * lineR.omega[2] * lineR.L + lineR.i[1] * lineR.R = lineR.v[1]; 8: lineL.omega[1] = lineB.omega[1]; 20: $DER.lineR.i[2] + $DER.lineB.i[2] - $DER.lineL.i[2] = 0.0; 45: lineL.L * $DER.lineL.i[2] + lineL.i[1] * lineL.omega[2] * lineL.L + lineL.i[2] * lineL.R = lineL.v[2]; 21: $DER.lineR.i[1] + $DER.lineB.i[1] - $DER.lineL.i[1] = 0.0; 2: {$DER.lineL.i[1], $DER.lineL.i[2], $DER.lineL.i[3]} = {(-lineL.i[2]) * lineL.omega[1], lineL.i[1] * lineL.omega[1], 0.0}; for variables $DER.lineR.i[3](86), lineR.v[2](57), $PRE.relayNet.y[1](22), switch.r[1](31), lineL.v[3](46), $DER.lineL.i[2](42), meter.cos_phi(61), lineR.term_n.v[1](60), $PRE.switch.closed(24), lineL.term_n.v[1](50), lineB.term_p.v[1](20), lineL.v[1](48), $PRE.switch.open(26), lineR.i[3](54), lineL.term_p.v[2](51), switch.s[3](27), lineR.omega[1](4), lineL.v[2](47), lineR.i[1](56), voltageR.neutral.i(38), switch.r[2](30), lineL.i[2](43), lineB.v[1](16), switch.open(25), lineB.term_n.v[1](18), $DER.voltageB.theta(87), lineB.omega[1](3), voltageR.V(1), lineR.term_n.v[2](59), voltageB.V(2), meter.alpha_i(62), relayNet.y[1](21), switch.t0(32), lineB.term_p.v[2](19), lineR.i[2](55), meter.i[1](68), switch.control[1](34), $DER.lineB.i[3](8), lineB.i[3](9), lineB.v[2](15), meter.i[2](67), $DER.lineB.i[1](12), $PRE.switch.t0(33), $DER.lineB.i[2](10), lineL.term_n.v[2](49), switch.v[1](37), lineB.omega[2](7), $whenCondition2(83), $DER.lineL.i[3](40), switch.s[2](28), lineB.v[3](14), lineB.i[1](13), lineL.omega[1](5), lineB.i[2](11) Error: No system for the symbolic initialization was generated