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: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyInitial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001812/0.001813, allocations: 179.1 kB / 8.351 MB, free: 0.7227 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.693/1.693, allocations: 194.3 MB / 203.1 MB, free: 12.96 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.002036/0.002036, allocations: 124.3 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2117/0.2117, allocations: 37.93 MB / 330.9 MB, free: 2.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.002e-05/2.001e-05, allocations: 4 kB / 390.4 MB, free: 7.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3026/0.3026, allocations: 53.23 MB / 443.7 MB, free: 17.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5551/0.8577, allocations: 98.06 MB / 0.529 GB, free: 90.8 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004435/0.8582, allocations: 81.78 kB / 0.5291 GB, free: 90.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1068/0.9651, allocations: 26.8 MB / 0.5553 GB, free: 73.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.9652, allocations: 0 / 0.5553 GB, free: 73.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.766e-05/0.9652, allocations: 24.75 kB / 0.5553 GB, free: 73.5 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002513/0.9678, allocations: 1.079 MB / 0.5564 GB, free: 72.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.9678, allocations: 11.97 kB / 0.5564 GB, free: 72.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.9696, allocations: 194.6 kB / 0.5566 GB, free: 72.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004075/0.9737, allocations: 1.355 MB / 0.5579 GB, free: 70.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.545e-05/0.9738, allocations: 28 kB / 0.5579 GB, free: 70.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001873/0.974, allocations: 55.91 kB / 0.558 GB, free: 70.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001906/0.9759, allocations: 0.8121 MB / 0.5588 GB, free: 69.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002213/0.9781, allocations: 1.081 MB / 0.5598 GB, free: 68.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.516e-05/0.9782, allocations: 7.938 kB / 0.5598 GB, free: 68.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.9783, allocations: 0 / 0.5598 GB, free: 68.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001163/0.9784, allocations: 53.98 kB / 0.5599 GB, free: 68.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007905/0.9864, allocations: 4.457 MB / 0.5642 GB, free: 64.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.9878, allocations: 0.6358 MB / 0.5648 GB, free: 63.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008425/0.9887, allocations: 467.3 kB / 0.5653 GB, free: 62.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.914e-05/0.9888, allocations: 8.562 kB / 0.5653 GB, free: 62.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009967/0.9898, allocations: 0.5141 MB / 0.5658 GB, free: 62.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=75): time 5.009e-06/0.9898, allocations: 4 kB / 0.5658 GB, free: 62.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.007059/0.9969, allocations: 2.587 MB / 0.5683 GB, free: 59.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.272e-05/0.997, allocations: 230.3 kB / 0.5686 GB, free: 59.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000841/0.9979, allocations: 450.4 kB / 0.569 GB, free: 59.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.899e-05/0.998, allocations: 25.7 kB / 0.569 GB, free: 59.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004474/0.9984, allocations: 467.1 kB / 0.5695 GB, free: 58.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003284/0.9988, allocations: 263.3 kB / 0.5697 GB, free: 58.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.9989, allocations: 0 / 0.5697 GB, free: 58.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.999, allocations: 398.7 kB / 0.5701 GB, free: 57.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008065/0.9999, allocations: 378.5 kB / 0.5704 GB, free: 57.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009392/1.001, allocations: 0.5979 MB / 0.571 GB, free: 56.82 MB / 378.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01353/1.014, allocations: 2.574 MB / 0.5735 GB, free: 54.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/1.014, allocations: 4 kB / 0.5735 GB, free: 54.24 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