Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationSteadyInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyInitial") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001715/0.001715, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008626/0.0008626, allocations: 86.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1705/0.1705, allocations: 37.98 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.065e-05, allocations: 4 kB / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3707/0.4801, allocations: 103 MB / 0.5566 GB, free: 7.895 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002545/0.4804, allocations: 83.89 kB / 0.5566 GB, free: 7.812 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07648/0.5569, allocations: 26.8 MB / 0.5828 GB, free: 12.7 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.557, allocations: 0 / 0.5828 GB, free: 12.7 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.313e-05/0.557, allocations: 27.94 kB / 0.5828 GB, free: 12.68 MB / 427.1 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.001982/0.559, allocations: 1.08 MB / 0.5839 GB, free: 11.54 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.5591, allocations: 12.02 kB / 0.5839 GB, free: 11.52 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00118/0.5603, allocations: 194.5 kB / 0.5841 GB, free: 11.33 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003328/0.5636, allocations: 1.358 MB / 0.5854 GB, free: 9.934 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.5637, allocations: 28.75 kB / 0.5855 GB, free: 9.906 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.5638, allocations: 55.91 kB / 0.5855 GB, free: 9.852 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001341/0.5652, allocations: 0.8121 MB / 0.5863 GB, free: 9.039 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.5668, allocations: 1.062 MB / 0.5873 GB, free: 7.91 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.928e-05/0.5668, allocations: 11.94 kB / 0.5873 GB, free: 7.898 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-05/0.5669, allocations: 0 / 0.5873 GB, free: 7.898 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.477e-05/0.567, allocations: 53.98 kB / 0.5874 GB, free: 7.844 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005242/0.5722, allocations: 4.463 MB / 0.5918 GB, free: 3.207 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009552/0.5732, allocations: 0.6397 MB / 0.5924 GB, free: 2.547 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005847/0.5738, allocations: 463.5 kB / 0.5928 GB, free: 2.09 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.799e-05/0.5739, allocations: 16.55 kB / 0.5928 GB, free: 2.074 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006952/0.5746, allocations: 0.5102 MB / 0.5933 GB, free: 1.531 MB / 427.1 MB Notification: Performance of pre-optimization done (n=75): time 3.005e-06/0.5746, allocations: 0 / 0.5933 GB, free: 1.531 MB / 427.1 MB Notification: Performance of matching and sorting (n=79): time 0.004423/0.579, allocations: 2.58 MB / 0.5959 GB, free: 14.89 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.5792, allocations: 230.4 kB / 0.5961 GB, free: 14.61 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006503/0.5799, allocations: 454.3 kB / 0.5965 GB, free: 14.16 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 6.132e-05/0.5799, allocations: 29.64 kB / 0.5965 GB, free: 14.13 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003988/0.5803, allocations: 467.1 kB / 0.597 GB, free: 13.66 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000238/0.5806, allocations: 260.3 kB / 0.5972 GB, free: 13.41 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/0.5806, allocations: 0 / 0.5972 GB, free: 13.41 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.5808, allocations: 394.7 kB / 0.5976 GB, free: 13.01 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005347/0.5814, allocations: 382.4 kB / 0.598 GB, free: 12.64 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007188/0.5821, allocations: 0.5979 MB / 0.5986 GB, free: 11.94 MB / 443.1 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.008831/0.5909, allocations: 2.578 MB / 0.6011 GB, free: 9.363 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.591, allocations: 0 / 0.6011 GB, free: 9.363 MB / 443.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/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