Notification: Performance of loadModel(PowerSystems): time 1.744/1.744, allocations: 232.6 MB / 238.5 MB, free: 464 kB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.1718/1.916, allocations: 55.03 MB / 293.5 MB, free: 11.36 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07069/1.987, allocations: 53.08 MB / 346.6 MB, free: 6.168 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2747/2.262, allocations: 111.6 MB / 458.2 MB, free: 10.81 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/2.262, allocations: 92.06 kB / 458.3 MB, free: 10.72 MB / 392.6 MB Notification: Performance of Generate backend data structure: time 0.1848/2.447, allocations: 46.53 MB / 0.493 GB, free: 11.49 MB / 440.6 MB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/2.447, allocations: 8 kB / 0.493 GB, free: 11.48 MB / 440.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003755/2.451, allocations: 401.3 kB / 0.4934 GB, free: 11.09 MB / 440.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00828/2.459, allocations: 2.236 MB / 0.4956 GB, free: 8.805 MB / 440.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/2.459, allocations: 59.98 kB / 0.4956 GB, free: 8.746 MB / 440.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004471/2.46, allocations: 103.9 kB / 0.4957 GB, free: 8.645 MB / 440.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004076/2.464, allocations: 1.924 MB / 0.4976 GB, free: 6.719 MB / 440.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004371/2.468, allocations: 2.21 MB / 0.4998 GB, free: 4.383 MB / 440.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-05/2.469, allocations: 7.938 kB / 0.4998 GB, free: 4.375 MB / 440.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002049/2.469, allocations: 15.97 kB / 0.4998 GB, free: 4.359 MB / 440.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002009/2.469, allocations: 134.9 kB / 0.4999 GB, free: 4.227 MB / 440.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0159/2.485, allocations: 8.821 MB / 0.5085 GB, free: 11.12 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/2.488, allocations: 1.556 MB / 0.5101 GB, free: 9.547 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001987/2.49, allocations: 1.167 MB / 0.5112 GB, free: 8.375 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/2.49, allocations: 21.3 kB / 0.5112 GB, free: 8.355 MB / 456.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002354/2.493, allocations: 1.306 MB / 0.5125 GB, free: 7.008 MB / 456.6 MB Notification: Performance of pre-optimization done (n=213): time 9.219e-06/2.493, allocations: 0 / 0.5125 GB, free: 7.008 MB / 456.6 MB Notification: Performance of matching and sorting (n=221): time 0.01203/2.505, allocations: 5.523 MB / 0.5179 GB, free: 1.426 MB / 456.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/2.505, allocations: 281.3 kB / 0.5182 GB, free: 1.094 MB / 456.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/2.506, allocations: 0.7179 MB / 0.5189 GB, free: 364 kB / 456.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0002651/2.507, allocations: 41.7 kB / 0.5189 GB, free: 316 kB / 456.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.1292/2.636, allocations: 0.5948 MB / 0.5195 GB, free: 171.2 MB / 456.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008027/2.637, allocations: 0.6634 MB / 0.5201 GB, free: 171 MB / 456.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/2.637, allocations: 0 / 0.5201 GB, free: 171 MB / 456.6 MB Notification: Performance of setup shared object (initialization): time 0.0001596/2.637, allocations: 420 kB / 0.5205 GB, free: 170.7 MB / 456.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/2.639, allocations: 0.9563 MB / 0.5215 GB, free: 170.7 MB / 456.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/2.641, allocations: 1.466 MB / 0.5229 GB, free: 170.1 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.02423/2.666, allocations: 4.422 MB / 0.5272 GB, free: 170.1 MB / 456.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.781e-05/2.666, allocations: 10.69 kB / 0.5272 GB, free: 170.1 MB / 456.6 MB [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