Notification: Performance of loadModel(PowerSystems): time 1.943/1.943, allocations: 232.3 MB / 238.2 MB, free: 0.5742 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.189/2.132, allocations: 55.35 MB / 293.5 MB, free: 11.14 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/2.22, allocations: 53.06 MB / 346.6 MB, free: 5.98 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3262/2.547, allocations: 111.6 MB / 458.2 MB, free: 10.89 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/2.547, allocations: 93.09 kB / 458.2 MB, free: 10.8 MB / 392.6 MB Notification: Performance of Generate backend data structure: time 0.193/2.74, allocations: 46.52 MB / 0.4929 GB, free: 11.57 MB / 440.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/2.74, allocations: 15.94 kB / 0.4929 GB, free: 11.56 MB / 440.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003948/2.744, allocations: 401.2 kB / 0.4933 GB, free: 11.16 MB / 440.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008794/2.753, allocations: 2.233 MB / 0.4955 GB, free: 8.883 MB / 440.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/2.753, allocations: 59.98 kB / 0.4956 GB, free: 8.824 MB / 440.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006328/2.754, allocations: 99.91 kB / 0.4957 GB, free: 8.727 MB / 440.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004865/2.759, allocations: 1.924 MB / 0.4975 GB, free: 6.801 MB / 440.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00564/2.764, allocations: 2.21 MB / 0.4997 GB, free: 4.465 MB / 440.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.449e-05/2.764, allocations: 15.92 kB / 0.4997 GB, free: 4.449 MB / 440.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/2.765, allocations: 15.97 kB / 0.4997 GB, free: 4.434 MB / 440.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002332/2.765, allocations: 126.9 kB / 0.4999 GB, free: 4.309 MB / 440.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01859/2.783, allocations: 8.813 MB / 0.5085 GB, free: 11.21 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003487/2.787, allocations: 1.56 MB / 0.51 GB, free: 9.641 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/2.79, allocations: 1.174 MB / 0.5111 GB, free: 8.461 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001359/2.79, allocations: 21.3 kB / 0.5111 GB, free: 8.441 MB / 456.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002851/2.793, allocations: 1.302 MB / 0.5124 GB, free: 7.098 MB / 456.6 MB Notification: Performance of pre-optimization done (n=213): time 8.342e-06/2.793, allocations: 0 / 0.5124 GB, free: 7.098 MB / 456.6 MB Notification: Performance of matching and sorting (n=221): time 0.0145/2.807, allocations: 5.534 MB / 0.5178 GB, free: 1.508 MB / 456.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001854/2.807, allocations: 273.3 kB / 0.5181 GB, free: 1.184 MB / 456.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001451/2.809, allocations: 0.7218 MB / 0.5188 GB, free: 452 kB / 456.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0003857/2.809, allocations: 37.7 kB / 0.5188 GB, free: 408 kB / 456.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.1327/2.942, allocations: 0.5835 MB / 0.5194 GB, free: 172.7 MB / 456.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009185/2.943, allocations: 0.6685 MB / 0.5201 GB, free: 172.5 MB / 456.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/2.943, allocations: 0 / 0.5201 GB, free: 172.5 MB / 456.6 MB Notification: Performance of setup shared object (initialization): time 0.0002031/2.943, allocations: 404 kB / 0.5204 GB, free: 172.2 MB / 456.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/2.946, allocations: 0.9634 MB / 0.5214 GB, free: 172.2 MB / 456.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002747/2.948, allocations: 1.466 MB / 0.5228 GB, free: 171.7 MB / 456.6 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.02357/2.972, allocations: 4.478 MB / 0.5272 GB, free: 171.6 MB / 456.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.931e-05/2.972, allocations: 6.375 kB / 0.5272 GB, free: 171.6 MB / 456.6 MB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/build/lib/omlibrary/PowerSystems 0.6.0/Common/Switching.mo:15:3-15:59:writable] Error: Initialization problem is structurally singular, error found sorting equations 180: switch1.v_abc[3] = if switch1.switch_c.closed or switch1.switch_c.arc then switch1.switch_c.epsR * switch1.switch_c.s else switch1.switch_c.s; 179: switch1.i_abc[3] = if switch1.switch_c.closed or switch1.switch_c.arc then switch1.switch_c.s else switch1.switch_c.epsG * switch1.switch_c.s; 163: (lineF.L0 * $DER.lineF.i1[3] + lineF.i1[3] * lineF.R) * lineF.p = lineF.term_p.v[3] - abc.v[3]; 170: switch1.v[3] = line.v[3] - lineF.term_p.v[3]; 165: (lineF.L * $DER.lineF.i1[1] + lineF.i1[1] * lineF.R - lineF.i1[2] * lineF.omega[2] * lineF.L) * lineF.p = lineF.term_p.v[1] - abc.v[1]; 172: switch1.v[1] = trafo.top_n.v_cond[1] - lineF.term_p.v[1]; 175: switch1.i_abc[1] = switch1.Park[1,1] * lineF.i1[1] + switch1.Park[2,1] * lineF.i1[2] + switch1.Park[3,1] * lineF.i1[3]; 183: switch1.i_abc[1] = if switch1.switch_a.closed or switch1.switch_a.arc then switch1.switch_a.s else switch1.switch_a.epsG * switch1.switch_a.s; 156: switch2.v_abc[2] = if switch2.switch_b.closed or switch2.switch_b.arc then switch2.switch_b.epsR * switch2.switch_b.s else switch2.switch_b.s; 155: switch2.i_abc[2] = if switch2.switch_b.closed or switch2.switch_b.arc then switch2.switch_b.s else switch2.switch_b.epsG * switch2.switch_b.s; 158: switch2.v_abc[1] = if switch2.switch_a.closed or switch2.switch_a.arc then switch2.switch_a.epsR * switch2.switch_a.s else switch2.switch_a.s; 157: switch2.i_abc[1] = if switch2.switch_a.closed or switch2.switch_a.arc then switch2.switch_a.s else switch2.switch_a.epsG * switch2.switch_a.s; 147: switch2.i_abc[3] = switch2.Park[1,3] * lineF.i2[1] + switch2.Park[2,3] * lineF.i2[2] + switch2.Park[3,3] * lineF.i2[3]; 153: switch2.i_abc[3] = if switch2.switch_c.closed or switch2.switch_c.arc then switch2.switch_c.s else switch2.switch_c.epsG * switch2.switch_c.s; 135: abc.v[1] = abc.Park[1,1] * abc.v_abc[1] + abc.Park[1,2] * abc.v_abc[2] + abc.Park[1,3] * abc.v_abc[3]; 162: (lineF.L * $DER.lineF.i2[1] + lineF.i2[1] * lineF.R - lineF.i2[2] * lineF.omega[2] * lineF.L) * (1.0 - lineF.p) = abc.v[1] - lineF.term_n.v[1]; 146: switch2.v[1] = lineF.term_n.v[1] - InfBus2.term.v[1]; 131: abc.i_abc[2] = abc.Park[1,2] * abc.i[1] + abc.Park[2,2] * abc.i[2] + abc.Park[3,2] * abc.i[3]; 142: abc.i_abc[2] = if abc.fault_pp1.on then abc.fault_pp1.s else abc.fault_pp1.epsG * abc.fault_pp1.s; 143: abc.fault_pp1.v = if abc.fault_pp1.on then abc.fault_pp1.epsR * abc.fault_pp1.s else abc.fault_pp1.s; 139: abc.fault_pp1.v = abc.v_abc[2] - abc.v_abc[1]; 134: abc.v[2] = abc.Park[2,1] * abc.v_abc[1] + abc.Park[2,2] * abc.v_abc[2] + abc.Park[2,3] * abc.v_abc[3]; 133: abc.v[3] = abc.Park[3,1] * abc.v_abc[1] + abc.Park[3,2] * abc.v_abc[2] + abc.Park[3,3] * abc.v_abc[3]; 138: abc.fault_pp2.v = abc.v_abc[3] - abc.v_abc[1]; 141: abc.fault_pp2.v = if abc.fault_pp2.on then abc.fault_pp2.epsR * abc.fault_pp2.s else abc.fault_pp2.s; 144: abc.Park = PowerSystems.Utilities.Transforms.park(InfBus2.theta); 140: abc.i_abc[3] = if abc.fault_pp2.on then abc.fault_pp2.s else abc.fault_pp2.epsG * abc.fault_pp2.s; 167: lineF.i1[2] + (-lineF.i2[2]) - abc.i[2] = 0.0; 168: lineF.i1[1] + (-lineF.i2[1]) - abc.i[1] = 0.0; 130: abc.i_abc[3] = abc.Park[1,3] * abc.i[1] + abc.Park[2,3] * abc.i[2] + abc.Park[3,3] * abc.i[3]; 182: switch1.v_abc[2] = if switch1.switch_b.closed or switch1.switch_b.arc then switch1.switch_b.epsR * switch1.switch_b.s else switch1.switch_b.s; 181: switch1.i_abc[2] = if switch1.switch_b.closed or switch1.switch_b.arc then switch1.switch_b.s else switch1.switch_b.epsG * switch1.switch_b.s; 186: line.L0 * $DER.line.i[3] + line.i[3] * line.R = line.v[3]; 198: trafo.top_n.v_cond[3] = line.v[3] + -1.732050807568877 * trafo.v_n2[1]; 202: trafo.top_n.v_cond[3] = 20.0 * trafo.v2[3]; 194: 0.0001273239544735163 * $DER.trafo.i1[3] + 0.004 * trafo.i1[3] = -trafo.v2[3]; 47: 1.443375672974065 * trafo.v_n2[1] = -0.05 * trafo.i1[3]; 174: switch1.i_abc[2] = switch1.Park[1,2] * lineF.i1[1] + switch1.Park[2,2] * lineF.i1[2] + switch1.Park[3,2] * lineF.i1[3]; 48: 2.5 * trafo.v_n2[1] = 1.732050807568877 * trafo.top_n.i_term[3]; 166: 0.0 = trafo.top_n.i_term[3] + abc.i[3] + InfBus2.term.i[3]; 51: trafo.top_n.i_term[3] + lineF.i1[3] + line.i[3] = 0.0; 136: abc.i[3] = abc.epsG * abc.v[3]; 86: InfBus2.term.i[3] + (-lineF.i2[3]) - line.i[3] = 0.0; 160: (lineF.L0 * $DER.lineF.i2[3] + lineF.i2[3] * lineF.R) * (1.0 - lineF.p) = abc.v[3] - switch2.v[3]; 159: switch2.Park = PowerSystems.Utilities.Transforms.park(InfBus2.theta); 154: switch2.v_abc[3] = if switch2.switch_c.closed or switch2.switch_c.arc then switch2.switch_c.epsR * switch2.switch_c.s else switch2.switch_c.s; 152: switch2.v[1] = switch2.Park[1,1] * switch2.v_abc[1] + switch2.Park[1,2] * switch2.v_abc[2] + switch2.Park[1,3] * switch2.v_abc[3]; 150: switch2.v[3] = switch2.Park[3,1] * switch2.v_abc[1] + switch2.Park[3,2] * switch2.v_abc[2] + switch2.Park[3,3] * switch2.v_abc[3]; 151: switch2.v[2] = switch2.Park[2,1] * switch2.v_abc[1] + switch2.Park[2,2] * switch2.v_abc[2] + switch2.Park[2,3] * switch2.v_abc[3]; 7: {$DER.lineF.i2[1], $DER.lineF.i2[2], $DER.lineF.i2[3]} = {(-lineF.i2[2]) * lineF.omega[1], lineF.i2[1] * lineF.omega[1], 0.0}; 148: switch2.i_abc[2] = switch2.Park[1,2] * lineF.i2[1] + switch2.Park[2,2] * lineF.i2[2] + switch2.Park[3,2] * lineF.i2[3]; 149: switch2.i_abc[1] = switch2.Park[1,1] * lineF.i2[1] + switch2.Park[2,1] * lineF.i2[2] + switch2.Park[3,1] * lineF.i2[3]; 145: switch2.v[2] = lineF.term_n.v[2] - InfBus2.term.v[2]; 161: (lineF.L * $DER.lineF.i2[2] + lineF.i2[1] * lineF.omega[2] * lineF.L + lineF.i2[2] * lineF.R) * (1.0 - lineF.p) = abc.v[2] - lineF.term_n.v[2]; 169: lineF.omega[2] = $DER.InfBus2.theta; 50: trafo.top_n.i_term[2] + lineF.i1[2] + line.i[2] = 0.0; 128: InfBus2.term.v[1] = InfBus2.V * cos(InfBus2.alpha0); 188: line.L * $DER.line.i[1] - line.i[2] * line.omega[2] * line.L + line.i[1] * line.R = line.v[1]; 190: line.v[1] = trafo.top_n.v_cond[1] - InfBus2.term.v[1]; 125: (-meterL.vpp[2]) / 1.732050807568877 = 2.5e-06 * trafo.top_n.v_cond[1]; 20: infBus1.V = 20000.0 * infBus1.v0; 209: trafo.top_p.v_term[2] = infBus1.V * sin(infBus1.alpha0); 210: trafo.top_p.v_term[1] = infBus1.V * cos(infBus1.alpha0); 204: -230940.1076758503 * meterL.vpp[2] = 20.0 * trafo.v2[1]; 208: trafo.v1[1] = 0.8660254037844387 * trafo.top_p.v_term[1] + -0.4999999999999999 * trafo.top_p.v_term[2]; 196: 0.0001273239544735163 * $DER.trafo.i1[1] + 0.0001273239544735163 * (-trafo.i1[2]) * trafo.omega[2] + 0.004 * trafo.i1[1] = trafo.v1[1] - trafo.v2[1]; 201: $DER.trafo.top_n.i_term[1] = -0.05 * $DER.trafo.i1[1]; 45: trafo.top_n.i_term[1] = -0.05 * trafo.i1[1]; 12: lineF.omega[1] = trafo.omega[1]; 91: $DER.trafo.top_n.i_term[1] + $DER.lineF.i1[1] + $DER.line.i[1] = 0.0; 49: trafo.top_n.i_term[1] + lineF.i1[1] + line.i[1] = 0.0; 211: $DER.InfBus2.theta = 314.1592653589793; 5: InfBus2.V = 400000.0 * InfBus2.v0; 127: InfBus2.term.v[2] = InfBus2.V * sin(InfBus2.alpha0); 191: line.omega[2] = $DER.InfBus2.theta; 189: line.v[2] = trafo.top_n.v_cond[2] - InfBus2.term.v[2]; 199: 1.443375672974065 * $DER.trafo.v_n2[1] = -0.05 * $DER.trafo.i1[3]; 197: 2.5 * $DER.trafo.v_n2[1] = 1.732050807568877 * $DER.trafo.top_n.i_term[3]; 11: line.omega[1] = trafo.omega[1]; 187: line.L * $DER.line.i[2] + line.i[1] * line.omega[2] * line.L + line.i[2] * line.R = line.v[2]; 89: $DER.trafo.top_n.i_term[3] + $DER.lineF.i1[3] + $DER.line.i[3] = 0.0; 6: {$DER.lineF.i1[1], $DER.lineF.i1[2], $DER.lineF.i1[3]} = {(-lineF.i1[2]) * lineF.omega[1], lineF.i1[1] * lineF.omega[1], 0.0}; 2: {$DER.line.i[1], $DER.line.i[2], $DER.line.i[3]} = {(-line.i[2]) * line.omega[1], line.i[1] * line.omega[1], 0.0}; 90: $DER.trafo.top_n.i_term[2] + $DER.lineF.i1[2] + $DER.line.i[2] = 0.0; 193: trafo.omega[2] = $DER.InfBus2.theta; 46: trafo.top_n.i_term[2] = -0.05 * trafo.i1[2]; 1: {$DER.trafo.i1[1], $DER.trafo.i1[2], $DER.trafo.i1[3]} = {(-trafo.i1[2]) * trafo.omega[1], trafo.i1[1] * trafo.omega[1], 0.0}; 207: trafo.v1[2] = 0.4999999999999999 * trafo.top_p.v_term[1] + 0.8660254037844387 * trafo.top_p.v_term[2]; 200: $DER.trafo.top_n.i_term[2] = -0.05 * $DER.trafo.i1[2]; 195: 0.0001273239544735163 * $DER.trafo.i1[2] + 0.0001273239544735163 * trafo.i1[1] * trafo.omega[2] + 0.004 * trafo.i1[2] = trafo.v1[2] - trafo.v2[2]; 203: 230940.1076758503 * meterL.vpp[1] = 20.0 * trafo.v2[2]; 164: (lineF.L * $DER.lineF.i1[2] + lineF.i1[1] * lineF.omega[2] * lineF.L + lineF.i1[2] * lineF.R) * lineF.p = lineF.term_p.v[2] - abc.v[2]; 124: (-meterL.vpp[1]) / -1.732050807568877 = 2.5e-06 * trafo.top_n.v_cond[2]; 176: switch1.v[3] = switch1.Park[3,1] * switch1.v_abc[1] + switch1.Park[3,2] * switch1.v_abc[2] + switch1.Park[3,3] * switch1.v_abc[3]; 178: switch1.v[1] = switch1.Park[1,1] * switch1.v_abc[1] + switch1.Park[1,2] * switch1.v_abc[2] + switch1.Park[1,3] * switch1.v_abc[3]; 184: switch1.v_abc[1] = if switch1.switch_a.closed or switch1.switch_a.arc then switch1.switch_a.epsR * switch1.switch_a.s else switch1.switch_a.s; 171: switch1.v[2] = trafo.top_n.v_cond[2] - lineF.term_p.v[2]; 44: InfBus2.theta = 314.1592653589793 * time; 173: switch1.i_abc[3] = switch1.Park[1,3] * lineF.i1[1] + switch1.Park[2,3] * lineF.i1[2] + switch1.Park[3,3] * lineF.i1[3]; 177: switch1.v[2] = switch1.Park[2,1] * switch1.v_abc[1] + switch1.Park[2,2] * switch1.v_abc[2] + switch1.Park[2,3] * switch1.v_abc[3]; 185: switch1.Park = PowerSystems.Utilities.Transforms.park(InfBus2.theta); for variables $DER.trafo.i1[2](246), $DER.trafo.i1[1](245), lineF.omega[1](5), $whenCondition12(230), $whenCondition7(225), $PRE.relay1.y[2](55), $DER.trafo.top_n.i_term[1](242), $whenCondition10(228), $whenCondition5(223), $whenCondition4(222), $whenCondition3(221), trafo.top_n.i_term[2](215), meterF.alpha_i(7), trafo.top_p.v_term[1](220), switch1.switch_a.closed(167), line.omega[1](4), abc.first(82), meterF.i[3](11), abc.theta_zero(86), line.i[1](195), $PRE.relay1.y[1](57), abc.v[1](99), $DER.line.i[1](194), $PRE.abc.theta_zero(87), trafo.top_n.v_cond[1](213), meterL.v[3](36), meterL.p[3](39), meterF.i_norm(8), abc.v_pos(84), $PRE.abc.v_pos(85), trafo.top_n.v_cond[2](212), meterL.vpp[1](35), meterL.p[2](40), trafo.v1[1](210), $whenCondition9(227), $whenCondition8(226), trafo.v2[2](204), lineF.i2[3](138), $whenCondition18(236), abc.Park[2,2](77), abc.fault_pp2.s(65), InfBus2.term.i[2](61), abc.fault_pp1.s(69), meterF.Rot_dq[1,1](25), $whenCondition15(233), $PRE.relay2.y[1](51), $whenCondition6(224), lineF.i2[2](140), $DER.line.i[2](192), lineF.i1[3](144), $whenCondition11(229), trafo.v_n2[1](202), $DER.trafo.v_n2[1](201), trafo.i_n2[1](200), trafo.top_n.i_term[3](214), trafo.i1[1](208), trafo.i1[3](206), trafo.v2[1](205), trafo.top_n.v_cond[3](211), trafo.v1[2](209), trafo.i1[2](207), trafo.top_n.i_term[1](216), trafo.v2[3](203), trafo.top_p.i_term[2](217), switch2.Park[3,3](118), switch2.Park[3,2](119), switch2.switch_a.open(114), meterL.v[1](38), meterL.v[2](37), $PRE.abc.first(83), InfBus2.neutral.i(59), $whenCondition13(231), relay1.y[3](52), $PRE.switch1.switch_a.arc(171), abc.Park[3,1](75), abc.Park[3,3](73), meterF.vpp[2](14), switch2.Park[1,1](126), infBus1.V(1), abc.v[3](97), $whenCondition21(239), $whenCondition20(238), $PRE.abc.fault_pp2.on(67), InfBus2.term.i[1](62), meterF.Rot_dq[1,2](24), switch2.switch_b.arc(110), lineF.term_n.v[2](149), meterL.cos_phi(26), $DER.InfBus2.theta(249), switch2.switch_b.closed(107), meterF.i[1](13), abc.fault_pp1.v(72), abc.Park[3,2](74), InfBus2.term.v[1](64), abc.fault_pp2.on(66), $PRE.switch2.switch_b.open(109), abc.Park[2,3](76), lineF.term_n.v[1](150), switch2.switch_a.closed(113), switch2.switch_a.s(112), switch2.switch_b.open(108), switch2.switch_c.arc(104), meterF.p[2](20), meterF.p[3](19), line.i[3](191), abc.fault_pp1.on(70), relay2.y[1](50), InfBus2.V(2), meterF.alpha_v(9), meterL.i_norm(28), $whenCondition16(234), InfBus2.term.v[2](63), abc.fault_pp2.v(68), InfBus2.term.i[3](60), meterF.cos_phi(6), abc.i[3](94), $whenCondition14(232), trafo.omega[1](3), relay1.y[1](56), $whenCondition19(237), $PRE.relay2.y[2](49), $whenCondition22(240), relay1.y[2](54), abc.Park[2,1](78), abc.Park[1,3](79), abc.Park[1,2](80), $DER.line.i[3](248), $DER.trafo.i1[3](247), $DER.trafo.top_n.i_term[3](244), $DER.trafo.top_n.i_term[2](243), $PRE.relay1.y[3](53), InfBus2.theta(58), trafo.top_p.i_term[1](218), trafo.top_p.v_term[2](219) Error: No system for the symbolic initialization was generated Error: Internal error SimCode: The model PowerSystems.Examples.AC3ph.Transmission.DoubleRXline could not be translated to FMU