Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 104.2 kB / 16.38 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001008, allocations: 190.5 kB / 17.31 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 205.1 MB / 223.2 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.671/1.671, allocations: 292.3 MB / 0.5496 GB, free: 17.58 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.89e-05/2.903e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.918 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.01199/0.01203, allocations: 10.83 MB / 0.6834 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01395/0.02602, allocations: 8.878 MB / 0.6921 GB, free: 2.129 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.02785, allocations: 55.69 kB / 0.6922 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004653/0.03252, allocations: 1.667 MB / 0.6938 GB, free: 412 kB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005082/0.03767, allocations: 1.527 MB / 0.6953 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00202/0.0397, allocations: 0.6816 MB / 0.6959 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003753/0.04347, allocations: 2.583 MB / 0.6985 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00201/0.04549, allocations: 1.18 MB / 0.6996 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00192/0.04743, allocations: 0.9729 MB / 0.7006 GB, free: 9.422 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.04915, allocations: 0.8633 MB / 0.7014 GB, free: 8.555 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003913/0.04956, allocations: 120 kB / 0.7015 GB, free: 8.438 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001912/0.05148, allocations: 0.698 MB / 0.7022 GB, free: 7.738 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.002211/0.0537, allocations: 2.674 MB / 0.7048 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.00155/0.05526, allocations: 1.75 MB / 0.7065 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005325/0.0558, allocations: 275.1 kB / 0.7068 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of FrontEnd: time 0.0002685/0.05608, allocations: 39.88 kB / 0.7068 GB, free: 2.953 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 (247) * Number of variables: 315 (238) Notification: Performance of Bindings: time 0.006482/0.06257, allocations: 7.23 MB / 0.7139 GB, free: 11.48 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.0006161/0.06319, allocations: 0.6322 MB / 0.7145 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.005911/0.06911, allocations: 6.2 MB / 0.7206 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of simplify1: time 0.0005525/0.06968, allocations: 451.3 kB / 0.721 GB, free: 4.117 MB / 0.5919 GB Notification: Performance of Alias: time 0.00561/0.0753, allocations: 5.291 MB / 0.7262 GB, free: 14.34 MB / 0.6075 GB Notification: Performance of simplify2: time 0.0005217/0.07584, allocations: 411.4 kB / 0.7266 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of Events: time 0.001039/0.07688, allocations: 1.003 MB / 0.7275 GB, free: 13 MB / 0.6075 GB Notification: Performance of Detect States: time 0.001203/0.0781, allocations: 1.277 MB / 0.7288 GB, free: 11.7 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.001864/0.07997, allocations: 1.605 MB / 0.7303 GB, free: 10 MB / 0.6075 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency R2.v[2] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) R2.S = {R2.v[1] * (-R2.i)[1] + R2.v[2] * (-R2.i)[2], R2.v[2] * (-R2.i)[1] - R2.v[1] * (-R2.i)[2]} ($RES_BND_256) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (179/274) **************************** (1) [ALGB] (1) protected Real[1] line_1.line.terminal_p.theta (2) [ALGB] (1) protected Real[1] line_2a.line.terminal_p.theta (3) [DISC] (1) Boolean $SEV_27 (4) [ALGB] (1) protected Real R3.X (start = 1.0) (5) [ALGB] (2) protected Real[2] line_sc.line.terminal_p.v (6) [DISC] (1) Boolean $SEV_26 (7) [ALGB] (1) Real E.phi = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.E.PhaseSystem.phase(E.terminal.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.E.PhaseSystem.phase(-E.terminal.i) (8) [DISC] (1) Boolean $SEV_25 (9) [DISC] (1) Boolean $SEV_24 (10) [ALGB] (2) flow Real[2] line_3a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (11) [ALGB] (2) flow Real[2] line_3b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (12) [ALGB] (2) Real[2] R3.terminal.v (13) [DISC] (1) Boolean $SEV_23 (14) [ALGB] (2) Real[2] line_2a.terminal_n.v (15) [ALGB] (2) Real[2] line_2b.terminal_n.v (16) [DISC] (1) Boolean $SEV_22 (17) [ALGB] (2) Real[2] R3.S = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.R3.PhaseSystem.phasePowers_vi(R3.v, -R3.i) (18) [DISC] (1) Boolean $SEV_21 (19) [DER-] (1) Real $DER.R3.theRef (20) [DISC] (1) Boolean $SEV_20 (21) [DER-] (1) Real $DER.line_sc.line.theRef (22) [ALGB] (2) flow Real[2] load_sc.terminal.i (start = {0.0 for $i1 in 1:2}) (23) [ALGB] (2) protected Real[2] line_2b.line.terminal_p.v (24) [ALGB] (1) protected Real[1] line_sc.line.terminal_n.theta (25) [ALGB] (2) protected Real[2] line_2b.line.i_p (start = line_2b.line.i_start, StateSelect = prefer) (26) [ALGB] (2) protected flow Real[2] line_sc.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (27) [ALGB] (2) flow Real[2] R3.terminal.i (start = {0.0 for $i1 in 1:2}) (28) [ALGB] (1) Real[1] line_2a.terminal_n.theta (29) [ALGB] (1) Real[1] line_3b.terminal_n.theta (30) [ALGB] (1) Real[1] line_2b.terminal_n.theta (31) [ALGB] (2) protected flow Real[2] line_1.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (32) [ALGB] (2) protected flow Real[2] line_2b.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (33) [ALGB] (1) Real line_1.VoltageLosses = abs(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_1.PhaseSystem_p.systemVoltage(line_1.terminal_p.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_1.PhaseSystem_n.systemVoltage(line_1.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_1.PhaseSystem_p.systemVoltage(line_1.terminal_p.v), Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_1.PhaseSystem_n.systemVoltage(line_1.terminal_n.v), 1.0) (34) [ALGB] (1) protected Real[1] line_3a.line.terminal_n.theta (35) [ALGB] (2) flow Real[2] line_sc.terminal_n.i (start = {0.0 for $i1 in 1:2}) (36) [ALGB] (1) protected Real line_sc.line.omega (37) [DISC] (1) Boolean $SEV_19 (38) [ALGB] (2) Real[2] R2.v = R2.terminal.v (start = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.R2.PhaseSystem.phaseVoltages(R2.V_nominal, 0.0)) (39) [ALGB] (2) protected Real[2] line_3b.line.i_p (start = line_3b.line.i_start, StateSelect = prefer) (40) [DISC] (1) Boolean $SEV_18 (41) [DISC] (1) Boolean $SEV_17 (42) [DISC] (1) Boolean $SEV_16 (43) [ALGB] (2) protected Real[2] line_1.line.terminal_n.v (44) [DISC] (1) Boolean $SEV_14 (45) [DISC] (1) Boolean $SEV_12 (46) [ALGB] (1) protected Real line_2b.line.omega (47) [ALGB] (2) Real[2] line_sc.terminal_n.v (48) [ALGB] (2) protected flow Real[2] line_3b.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (49) [ALGB] (1) protected Real line_2b.line.R_actual (50) [ALGB] (2) protected flow Real[2] line_3a.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (51) [ALGB] (1) Real[1] line_1.terminal_p.theta (52) [ALGB] (2) Real[2] R2.i = R2.terminal.i (start = {0.0 for $i1 in 1:2}) (53) [ALGB] (1) protected Real line_sc.line.R_actual (54) [ALGB] (2) protected Real[2] line_3b.line.terminal_p.v (55) [ALGB] (2) protected Real[2] line_3a.line.terminal_p.v (56) [ALGB] (1) Real line_3b.VoltageLosses = abs(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3b.PhaseSystem_p.systemVoltage(line_3b.terminal_p.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3b.PhaseSystem_n.systemVoltage(line_3b.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3b.PhaseSystem_p.systemVoltage(line_3b.terminal_p.v), Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3b.PhaseSystem_n.systemVoltage(line_3b.terminal_n.v), 1.0) (57) [ALGB] (1) protected Real R2.X (start = 1.0) (58) [ALGB] (1) Real line_3a.VoltageLosses = abs(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3a.PhaseSystem_p.systemVoltage(line_3a.terminal_p.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3a.PhaseSystem_n.systemVoltage(line_3a.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3a.PhaseSystem_p.systemVoltage(line_3a.terminal_p.v), Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_3a.PhaseSystem_n.systemVoltage(line_3a.terminal_n.v), 1.0) (59) [ALGB] (1) protected Real[1] line_3b.line.terminal_n.theta (60) [ALGB] (2) Real[2] R2.S = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.R2.PhaseSystem.phasePowers_vi(R2.v, -R2.i) (61) [ALGB] (2) flow Real[2] E.terminal.i (start = {0.0 for $i1 in 1:2}) (62) [ALGB] (1) Real[1] line_sc.terminal_n.theta (63) [DER-] (1) Real $DER.line_2b.line.theRef (64) [ALGB] (1) protected Real line_sc.line.LossPower (65) [ALGB] (1) protected Real line_2a.line.R_actual (66) [ALGB] (1) Real $FUN_9 (67) [ALGB] (1) Real $FUN_8 (68) [ALGB] (1) Real $FUN_7 (69) [ALGB] (4) Real[2, 2] $FUN_6 (70) [ALGB] (4) Real[2, 2] $FUN_5 (71) [ALGB] (4) Real[2, 2] $FUN_4 (72) [ALGB] (4) Real[2, 2] $FUN_3 (73) [ALGB] (2) Real[2] E.terminal.v (74) [ALGB] (4) Real[2, 2] $FUN_2 (75) [ALGB] (4) Real[2, 2] $FUN_1 (76) [ALGB] (1) Real[1] E.terminal.theta (77) [ALGB] (1) Real[1] R1.terminal.theta (78) [ALGB] (2) protected Real[2] line_1.line.i_p (start = line_1.line.i_start, StateSelect = prefer) (79) [ALGB] (2) Real[2] R1.v = R1.terminal.v (start = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.R1.PhaseSystem.phaseVoltages(R1.V_nominal, 0.0)) (80) [ALGB] (2) flow Real[2] line_1.terminal_p.i (start = {0.0 for $i1 in 1:2}) (81) [ALGB] (1) protected Real line_3b.line.omega (82) [ALGB] (2) protected flow Real[2] line_2a.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (83) [ALGB] (1) protected Real[1] line_2a.line.terminal_n.theta (84) [ALGB] (1) protected Real[1] line_2b.line.terminal_p.theta (85) [ALGB] (2) Real[2] R1.terminal.v (86) [DER-] (1) Real $DER.line_2a.line.theRef (87) [DER-] (1) Real $DER.line_3a.line.theRef (88) [ALGB] (2) Real[2] R1.i = R1.terminal.i (start = {0.0 for $i1 in 1:2}) (89) [ALGB] (2) Real[2] line_1.terminal_p.v (90) [ALGB] (2) protected Real[2] line_2a.line.terminal_p.v (91) [ALGB] (2) Real[2] load_sc.v = load_sc.terminal.v (start = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.load_sc.PhaseSystem.phaseVoltages(load_sc.V_nominal, 0.0)) (92) [ALGB] (2) Real[2] line_3a.terminal_n.v (93) [ALGB] (2) Real[2] line_3b.terminal_n.v (94) [ALGB] (1) protected Real load_sc.omega (95) [ALGB] (2) flow Real[2] line_2a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (96) [ALGB] (2) flow Real[2] R1.terminal.i (start = {0.0 for $i1 in 1:2}) (97) [ALGB] (2) flow Real[2] line_2b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (98) [DER-] (1) Real $DER.R2.theRef (99) [ALGB] (1) Real[1] line_2a.terminal_p.theta (100) [ALGB] (1) Real[1] line_3b.terminal_p.theta (101) [ALGB] (1) protected Real line_2a.line.omega (102) [ALGB] (1) Real[1] line_2b.terminal_p.theta (103) [ALGB] (1) Real $FUN_12 (104) [ALGB] (1) Real $FUN_11 (105) [ALGB] (1) protected Real line_2b.line.LossPower (106) [ALGB] (1) protected Real R1.X (start = 1.0) (107) [ALGB] (2) protected Real[2] line_sc.line.terminal_n.v (108) [ALGB] (1) Real $FUN_10 (109) [ALGB] (2) Real[2] load_sc.i = load_sc.terminal.i (start = {0.0 for $i1 in 1:2}) (110) [ALGB] (1) protected Real[1] line_3a.line.terminal_p.theta (111) [ALGB] (2) flow Real[2] line_3a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (112) [ALGB] (2) flow Real[2] line_3b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (113) [ALGB] (2) Real[2] line_2a.terminal_p.v (114) [ALGB] (2) Real[2] line_2b.terminal_p.v (115) [ALGB] (2) Real[2] R1.S = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.R1.PhaseSystem.phasePowers_vi(R1.v, -R1.i) (116) [ALGB] (1) protected Real R3.omega (117) [DISC] (1) Boolean $SEV_9 (118) [ALGB] (2) protected Real[2] line_2b.line.terminal_n.v (119) [DISC] (1) Boolean $SEV_7 (120) [DISC] (1) Boolean $SEV_5 (121) [ALGB] (2) protected flow Real[2] line_sc.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (122) [DISC] (1) Boolean $SEV_2 (123) [ALGB] (1) Real[1] R2.terminal.theta (124) [ALGB] (1) protected Real load_sc.X (start = 1.0) (125) [ALGB] (1) protected Real line_2a.line.LossPower (126) [ALGB] (1) Real[1] line_1.terminal_n.theta (127) [ALGB] (2) protected flow Real[2] line_1.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (128) [ALGB] (1) Real[1] line_3a.terminal_n.theta (129) [ALGB] (2) protected flow Real[2] line_2b.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (130) [ALGB] (2) Real[2] load_sc.S = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.load_sc.PhaseSystem.phasePowers_vi(load_sc.v, -load_sc.i) (131) [ALGB] (2) flow Real[2] line_sc.terminal_p.i (start = {0.0 for $i1 in 1:2}) (132) [ALGB] (1) protected Real line_3a.line.R_actual (133) [ALGB] (1) protected Real[1] line_1.line.terminal_n.theta (134) [ALGB] (2) protected Real[2] line_1.line.terminal_p.v (135) [ALGB] (2) Real[2] line_sc.terminal_p.v (136) [ALGB] (1) Real line_2a.VoltageLosses = abs(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2a.PhaseSystem_p.systemVoltage(line_2a.terminal_p.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2a.PhaseSystem_n.systemVoltage(line_2a.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2a.PhaseSystem_p.systemVoltage(line_2a.terminal_p.v), Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2a.PhaseSystem_n.systemVoltage(line_2a.terminal_n.v), 1.0) (137) [ALGB] (1) protected Real[1] line_sc.line.terminal_p.theta (138) [DER-] (1) Real $DER.line_3b.line.theRef (139) [ALGB] (2) protected flow Real[2] line_3b.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (140) [ALGB] (1) protected Real line_3a.line.omega (141) [ALGB] (2) protected flow Real[2] line_3a.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (142) [ALGB] (2) protected Real[2] line_2a.line.i_p (start = line_2a.line.i_start, StateSelect = prefer) (143) [ALGB] (2) Real[2] E.S = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.E.PhaseSystem.phasePowers_vi(E.terminal.v, E.terminal.i) (144) [ALGB] (1) protected Real R2.omega (145) [DER-] (1) Real $DER.line_1.line.theRef (146) [ALGB] (2) Real[2] R2.terminal.v (147) [DER-] (1) Real $DER.load_sc.theRef (148) [ALGB] (2) protected Real[2] line_3b.line.terminal_n.v (149) [ALGB] (2) protected Real[2] line_3a.line.terminal_n.v (150) [ALGB] (1) protected Real line_3b.line.LossPower (151) [ALGB] (2) flow Real[2] R2.terminal.i (start = {0.0 for $i1 in 1:2}) (152) [ALGB] (1) protected Real line_1.line.R_actual (153) [ALGB] (2) protected Real[2] line_3a.line.i_p (start = line_3a.line.i_start, StateSelect = prefer) (154) [ALGB] (1) Real[1] load_sc.terminal.theta (155) [ALGB] (1) protected Real[1] line_2b.line.terminal_n.theta (156) [ALGB] (1) protected Real line_3a.line.LossPower (157) [ALGB] (1) protected Real line_1.line.LossPower (158) [ALGB] (1) Real line_2b.VoltageLosses = abs(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2b.PhaseSystem_p.systemVoltage(line_2b.terminal_p.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2b.PhaseSystem_n.systemVoltage(line_2b.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2b.PhaseSystem_p.systemVoltage(line_2b.terminal_p.v), Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_2b.PhaseSystem_n.systemVoltage(line_2b.terminal_n.v), 1.0) (159) [ALGB] (1) Real line_sc.VoltageLosses = abs(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_sc.PhaseSystem_p.systemVoltage(line_sc.terminal_p.v) - Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_sc.PhaseSystem_n.systemVoltage(line_sc.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_sc.PhaseSystem_p.systemVoltage(line_sc.terminal_p.v), Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.line_sc.PhaseSystem_n.systemVoltage(line_sc.terminal_n.v), 1.0) (160) [DER-] (1) Real $DER.R1.theRef (161) [ALGB] (1) protected Real[1] line_3b.line.terminal_p.theta (162) [ALGB] (1) protected Real line_3b.line.R_actual (163) [ALGB] (2) Real[2] R3.v = R3.terminal.v (start = Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine.R3.PhaseSystem.phaseVoltages(R3.V_nominal, 0.0)) (164) [ALGB] (2) flow Real[2] line_1.terminal_n.i (start = {0.0 for $i1 in 1:2}) (165) [ALGB] (1) protected Real R1.omega (166) [ALGB] (1) Real[1] line_sc.terminal_p.theta (167) [ALGB] (2) protected flow Real[2] line_2a.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (168) [ALGB] (2) Real[2] R3.i = R3.terminal.i (start = {0.0 for $i1 in 1:2}) (169) [ALGB] (2) Real[2] line_1.terminal_n.v (170) [ALGB] (1) Real[1] line_3a.terminal_p.theta (171) [ALGB] (2) protected Real[2] line_2a.line.terminal_n.v (172) [ALGB] (2) Real[2] line_3a.terminal_p.v (173) [ALGB] (2) Real[2] line_3b.terminal_p.v (174) [ALGB] (1) protected Real line_1.line.omega (175) [ALGB] (1) Real[1] R3.terminal.theta (176) [ALGB] (2) flow Real[2] line_2a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (177) [ALGB] (2) flow Real[2] line_2b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (178) [ALGB] (2) protected Real[2] line_sc.line.i_p (start = line_sc.line.i_start, StateSelect = prefer) (179) [ALGB] (2) Real[2] load_sc.terminal.v System Equations (188/274) **************************** (1) [ARRY] (2) R2.i = R2.terminal.i ($RES_BND_255) (2) [ARRY] (2) line_3a.terminal_p.v = line_3a.line.terminal_p.v ($RES_SIM_205) (3) [ARRY] (2) R2.S = {R2.v[1] * (-R2.i)[1] + R2.v[2] * (-R2.i)[2], R2.v[2] * (-R2.i)[1] - R2.v[1] * (-R2.i)[2]} ($RES_BND_256) (4) [ARRY] (1) line_3a.terminal_p.theta = line_3a.line.terminal_p.theta ($RES_SIM_206) (5) [FOR-] (2) ($RES_SIM_207) (5) [----] for $i1 in 1:2 loop (5) [----] [SCAL] (1) line_3a.line.terminal_n.i[$i1] - line_3a.terminal_n.i[$i1] = 0.0 ($RES_SIM_208) (5) [----] end for; (6) [SCAL] (1) line_2b.VoltageLosses = $FUN_10 / smooth(1, if $SEV_22 then line_2b.terminal_p.v / (line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) else if $SEV_23 then line_2b.terminal_n.v / (line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) else 0.25 * (line_2b.terminal_n.v / (line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) - line_2b.terminal_p.v / (line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25)) * ((-3.0) + (line_2b.terminal_p.v / ((line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_2b.terminal_p.v) - line_2b.terminal_n.v / ((line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_2b.terminal_n.v)) ^ 2.0) * (line_2b.terminal_p.v / (line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_2b.terminal_n.v / (line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25)) + 0.5 * (line_2b.terminal_p.v / (line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) + line_2b.terminal_n.v / (line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25))) ($RES_BND_258) (7) [ARRY] (4) $FUN_2 = diagonal(fill(1.0, 2) .* line_2a.line.R_actual) ($RES_$AUX_289) (8) [ARRY] (4) $FUN_3 = diagonal(fill(1.0, 2) .* line_2b.line.R_actual) ($RES_$AUX_288) (9) [ARRY] (2) line_3a.line.terminal_n.v = line_3a.terminal_n.v ($RES_SIM_209) (10) [ARRY] (4) $FUN_4 = diagonal(fill(1.0, 2) .* line_3a.line.R_actual) ($RES_$AUX_287) (11) [ARRY] (4) $FUN_5 = diagonal(fill(1.0, 2) .* line_3b.line.R_actual) ($RES_$AUX_286) (12) [ARRY] (4) $FUN_6 = diagonal(fill(1.0, 2) .* line_sc.line.R_actual) ($RES_$AUX_285) (13) [SCAL] (1) $FUN_7 = abs(line_sc.terminal_p.v / ((line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_sc.terminal_p.v) - line_sc.terminal_n.v / ((line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_sc.terminal_n.v)) ($RES_$AUX_284) (14) [ARRY] (2) R1.terminal.v = {{R1.R, -R1.X} * R1.terminal.i, {R1.X, R1.R} * R1.terminal.i} ($RES_SIM_128) (15) [SCAL] (1) $FUN_8 = abs(line_3b.terminal_p.v / ((line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_3b.terminal_p.v) - line_3b.terminal_n.v / ((line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_3b.terminal_n.v)) ($RES_$AUX_283) (16) [ARRY] (2) R2.terminal.v = {{R2.R, -R2.X} * R2.terminal.i, {R2.X, R2.R} * R2.terminal.i} ($RES_SIM_89) (17) [SCAL] (1) R1.X = R1.omega * R1.L ($RES_SIM_129) (18) [SCAL] (1) $FUN_9 = abs(line_3a.terminal_p.v / ((line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_3a.terminal_p.v) - line_3a.terminal_n.v / ((line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_3a.terminal_n.v)) ($RES_$AUX_282) (19) [SCAL] (1) $FUN_10 = abs(line_2b.terminal_p.v / ((line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_2b.terminal_p.v) - line_2b.terminal_n.v / ((line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_2b.terminal_n.v)) ($RES_$AUX_281) (20) [SCAL] (1) $FUN_11 = abs(line_2a.terminal_p.v / ((line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_2a.terminal_p.v) - line_2a.terminal_n.v / ((line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_2a.terminal_n.v)) ($RES_$AUX_280) (21) [SCAL] (1) $SEV_2 = line_sc.line.R_actual >= 0.0 ($RES_EVT_293) (22) [ARRY] (2) load_sc.terminal.v = {{load_sc.R, -load_sc.X} * load_sc.terminal.i, {load_sc.X, load_sc.R} * load_sc.terminal.i} ($RES_SIM_11) (23) [SCAL] (1) $SEV_5 = line_3b.line.R_actual >= 0.0 ($RES_EVT_296) (24) [SCAL] (1) load_sc.X = load_sc.omega * load_sc.L ($RES_SIM_12) (25) [SCAL] (1) load_sc.omega = $DER.load_sc.theRef ($RES_SIM_13) (26) [SCAL] (1) line_3a.VoltageLosses = $FUN_9 / smooth(1, if $SEV_20 then line_3a.terminal_p.v / (line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) else if $SEV_21 then line_3a.terminal_n.v / (line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) else 0.25 * (line_3a.terminal_n.v / (line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) - line_3a.terminal_p.v / (line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25)) * ((-3.0) + (line_3a.terminal_p.v / ((line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_3a.terminal_p.v) - line_3a.terminal_n.v / ((line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_3a.terminal_n.v)) ^ 2.0) * (line_3a.terminal_p.v / (line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_3a.terminal_n.v / (line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25)) + 0.5 * (line_3a.terminal_p.v / (line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) + line_3a.terminal_n.v / (line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25))) ($RES_BND_262) (27) [SCAL] (1) $SEV_7 = line_3a.line.R_actual >= 0.0 ($RES_EVT_298) (28) [FOR-] (2) ($RES_SIM_212) (28) [----] for $i1 in 1:2 loop (28) [----] [SCAL] (1) line_2b.line.terminal_p.i[$i1] - line_2b.terminal_p.i[$i1] = 0.0 ($RES_SIM_213) (28) [----] end for; (29) [SCAL] (1) load_sc.theRef = load_sc.terminal.theta[1] ($RES_SIM_14) (30) [ARRY] (2) line_2b.terminal_p.v = line_2b.line.terminal_p.v ($RES_SIM_214) (31) [SCAL] (1) R1.omega = $DER.R1.theRef ($RES_SIM_130) (32) [ARRY] (1) line_2b.terminal_p.theta = line_2b.line.terminal_p.theta ($RES_SIM_215) (33) [SCAL] (1) R2.X = R2.omega * R2.L ($RES_SIM_90) (34) [SCAL] (1) line_sc.line.R_actual = (0.24133333333333337 * (line_sc.line.M + ((-273.15) + line_sc.TCable))) / (line_sc.line.M + ((-273.15) + line_sc.line.T_ref)) ($RES_SIM_17) (35) [SCAL] (1) line_3b.VoltageLosses = $FUN_8 / smooth(1, if $SEV_18 then line_3b.terminal_p.v / (line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) else if $SEV_19 then line_3b.terminal_n.v / (line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) else 0.25 * (line_3b.terminal_n.v / (line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) - line_3b.terminal_p.v / (line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25)) * ((-3.0) + (line_3b.terminal_p.v / ((line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_3b.terminal_p.v) - line_3b.terminal_n.v / ((line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_3b.terminal_n.v)) ^ 2.0) * (line_3b.terminal_p.v / (line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_3b.terminal_n.v / (line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25)) + 0.5 * (line_3b.terminal_p.v / (line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) + line_3b.terminal_n.v / (line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25))) ($RES_BND_266) (36) [SCAL] (1) R1.theRef = R1.terminal.theta[1] ($RES_SIM_131) (37) [FOR-] (2) ($RES_SIM_216) (37) [----] for $i1 in 1:2 loop (37) [----] [SCAL] (1) line_2b.line.terminal_n.i[$i1] - line_2b.terminal_n.i[$i1] = 0.0 ($RES_SIM_217) (37) [----] end for; (38) [SCAL] (1) R2.omega = $DER.R2.theRef ($RES_SIM_91) (39) [SCAL] (1) R2.theRef = R2.terminal.theta[1] ($RES_SIM_92) (40) [ARRY] (2) E.terminal.v = {E.V * cos(E.phiSou), E.V * sin(E.phiSou)} ($RES_SIM_132) (41) [ARRY] (1) line_sc.line.terminal_p.theta = line_sc.line.terminal_n.theta ($RES_SIM_19) (42) [SCAL] (1) $FUN_12 = abs(line_1.terminal_p.v / ((line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_1.terminal_p.v) - line_1.terminal_n.v / ((line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_1.terminal_n.v)) ($RES_$AUX_279) (43) [ARRY] (2) line_2b.line.terminal_n.v = line_2b.terminal_n.v ($RES_SIM_218) (44) [ARRY] (2) R3.v = R3.terminal.v ($RES_BND_269) (45) [ARRY] (1) line_2b.line.terminal_n.theta = line_2b.terminal_n.theta ($RES_SIM_219) (46) [SCAL] (1) E.terminal.theta[1] = 6.283185307179586 * E.f * time ($RES_SIM_134) (47) [SCAL] (1) line_2a.line.R_actual = (0.12066666666666669 * (line_2a.line.M + ((-273.15) + line_2a.TCable))) / (line_2a.line.M + ((-273.15) + line_2a.line.T_ref)) ($RES_SIM_95) (48) [ARRY] (1) line_2a.line.terminal_p.theta = line_2a.line.terminal_n.theta ($RES_SIM_97) (49) [SCAL] (1) line_2a.line.LossPower = line_2a.line.R_actual * (line_2a.line.i_p[1] ^ 2.0 + line_2a.line.i_p[2] ^ 2.0) ($RES_SIM_98) (50) [ARRY] (2) line_2a.line.L * line_2a.line.omega * {-line_2a.line.i_p[2], line_2a.line.i_p[1]} + line_2a.line.i_p * $FUN_2 = line_2a.line.terminal_p.v - line_2a.line.terminal_n.v ($RES_SIM_99) (51) [SCAL] (1) $SEV_9 = line_2b.line.R_actual >= 0.0 ($RES_EVT_300) (52) [SCAL] (1) $SEV_12 = line_2a.line.R_actual >= 0.0 ($RES_EVT_303) (53) [SCAL] (1) $SEV_14 = line_1.line.R_actual >= 0.0 ($RES_EVT_305) (54) [SCAL] (1) $SEV_16 = line_sc.terminal_p.v / (line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_sc.terminal_n.v / (line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) > 1.0 ($RES_EVT_307) (55) [SCAL] (1) $SEV_17 = line_sc.terminal_p.v / (line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_sc.terminal_n.v / (line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) < (-1.0) ($RES_EVT_308) (56) [SCAL] (1) $SEV_18 = line_3b.terminal_p.v / (line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_3b.terminal_n.v / (line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) > 1.0 ($RES_EVT_309) (57) [SCAL] (1) line_sc.line.LossPower = line_sc.line.R_actual * (line_sc.line.i_p[1] ^ 2.0 + line_sc.line.i_p[2] ^ 2.0) ($RES_SIM_20) (58) [ARRY] (2) line_sc.line.L * line_sc.line.omega * {-line_sc.line.i_p[2], line_sc.line.i_p[1]} + line_sc.line.i_p * $FUN_6 = line_sc.line.terminal_p.v - line_sc.line.terminal_n.v ($RES_SIM_21) (59) [ARRY] (2) R3.i = R3.terminal.i ($RES_BND_270) (60) [ARRY] (2) line_sc.line.i_p = line_sc.line.terminal_p.i ($RES_SIM_22) (61) [ARRY] (2) R3.S = {R3.v[1] * (-R3.i)[1] + R3.v[2] * (-R3.i)[2], R3.v[2] * (-R3.i)[1] - R3.v[1] * (-R3.i)[2]} ($RES_BND_271) (62) [ARRY] (2) line_sc.line.terminal_p.i = -line_sc.line.terminal_n.i ($RES_SIM_23) (63) [FOR-] (2) ($RES_SIM_222) (63) [----] for $i1 in 1:2 loop (63) [----] [SCAL] (1) line_2a.line.terminal_p.i[$i1] - line_2a.terminal_p.i[$i1] = 0.0 ($RES_SIM_223) (63) [----] end for; (64) [SCAL] (1) line_sc.line.omega = $DER.line_sc.line.theRef ($RES_SIM_24) (65) [SCAL] (1) line_sc.VoltageLosses = $FUN_7 / smooth(1, if $SEV_16 then line_sc.terminal_p.v / (line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) else if $SEV_17 then line_sc.terminal_n.v / (line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) else 0.25 * (line_sc.terminal_n.v / (line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) - line_sc.terminal_p.v / (line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25)) * ((-3.0) + (line_sc.terminal_p.v / ((line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_sc.terminal_p.v) - line_sc.terminal_n.v / ((line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_sc.terminal_n.v)) ^ 2.0) * (line_sc.terminal_p.v / (line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_sc.terminal_n.v / (line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25)) + 0.5 * (line_sc.terminal_p.v / (line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v * (line_sc.terminal_p.v * line_sc.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) + line_sc.terminal_n.v / (line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v * (line_sc.terminal_n.v * line_sc.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25))) ($RES_BND_273) (66) [SCAL] (1) line_sc.line.theRef = line_sc.line.terminal_p.theta[1] ($RES_SIM_25) (67) [ARRY] (2) line_2a.terminal_p.v = line_2a.line.terminal_p.v ($RES_SIM_224) (68) [ARRY] (1) line_2a.terminal_p.theta = line_2a.line.terminal_p.theta ($RES_SIM_225) (69) [ARRY] (2) load_sc.v = load_sc.terminal.v ($RES_BND_276) (70) [FOR-] (2) ($RES_SIM_226) (70) [----] for $i1 in 1:2 loop (70) [----] [SCAL] (1) line_2a.line.terminal_n.i[$i1] - line_2a.terminal_n.i[$i1] = 0.0 ($RES_SIM_227) (70) [----] end for; (71) [FOR-] (2) ($RES_SIM_141) (71) [----] for $i1 in 1:2 loop (71) [----] [SCAL] (1) line_sc.terminal_p.i[$i1] + load_sc.terminal.i[$i1] = 0.0 ($RES_SIM_142) (71) [----] end for; (72) [ARRY] (2) load_sc.i = load_sc.terminal.i ($RES_BND_277) (73) [ARRY] (2) load_sc.S = {load_sc.v[1] * (-load_sc.i)[1] + load_sc.v[2] * (-load_sc.i)[2], load_sc.v[2] * (-load_sc.i)[1] - load_sc.v[1] * (-load_sc.i)[2]} ($RES_BND_278) (74) [ARRY] (2) line_2a.line.terminal_n.v = line_2a.terminal_n.v ($RES_SIM_228) (75) [ARRY] (2) line_sc.terminal_p.v = load_sc.terminal.v ($RES_SIM_143) (76) [ARRY] (1) line_2a.line.terminal_n.theta = line_2a.terminal_n.theta ($RES_SIM_229) (77) [ARRY] (1) line_sc.terminal_p.theta = load_sc.terminal.theta ($RES_SIM_144) (78) [SCAL] (1) line_3b.terminal_p.i[2] + R3.terminal.i[2] + line_3a.terminal_p.i[2] = 0.0 ($RES_SIM_145) (79) [SCAL] (1) line_3b.terminal_p.i[1] + R3.terminal.i[1] + line_3a.terminal_p.i[1] = 0.0 ($RES_SIM_146) (80) [SCAL] (1) line_3b.terminal_p.v[2] = line_3a.terminal_p.v[2] ($RES_SIM_147) (81) [SCAL] (1) line_3b.terminal_p.v[2] = R3.terminal.v[2] ($RES_SIM_148) (82) [SCAL] (1) line_3b.terminal_p.v[1] = line_3a.terminal_p.v[1] ($RES_SIM_149) (83) [SCAL] (1) $SEV_19 = line_3b.terminal_p.v / (line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v * (line_3b.terminal_p.v * line_3b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_3b.terminal_n.v / (line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v * (line_3b.terminal_n.v * line_3b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) < (-1.0) ($RES_EVT_310) (84) [SCAL] (1) $SEV_20 = line_3a.terminal_p.v / (line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_3a.terminal_n.v / (line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) > 1.0 ($RES_EVT_311) (85) [SCAL] (1) $SEV_21 = line_3a.terminal_p.v / (line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v * (line_3a.terminal_p.v * line_3a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_3a.terminal_n.v / (line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v * (line_3a.terminal_n.v * line_3a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) < (-1.0) ($RES_EVT_312) (86) [SCAL] (1) $SEV_22 = line_2b.terminal_p.v / (line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_2b.terminal_n.v / (line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) > 1.0 ($RES_EVT_313) (87) [SCAL] (1) $SEV_23 = line_2b.terminal_p.v / (line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v * (line_2b.terminal_p.v * line_2b.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_2b.terminal_n.v / (line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v * (line_2b.terminal_n.v * line_2b.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) < (-1.0) ($RES_EVT_314) (88) [SCAL] (1) $SEV_24 = line_2a.terminal_p.v / (line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_2a.terminal_n.v / (line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) > 1.0 ($RES_EVT_315) (89) [SCAL] (1) $SEV_25 = line_2a.terminal_p.v / (line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_2a.terminal_n.v / (line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) < (-1.0) ($RES_EVT_316) (90) [SCAL] (1) $SEV_26 = line_1.terminal_p.v / (line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_1.terminal_n.v / (line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) > 1.0 ($RES_EVT_317) (91) [SCAL] (1) $SEV_27 = line_1.terminal_p.v / (line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_1.terminal_n.v / (line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) < (-1.0) ($RES_EVT_318) (92) [FOR-] (2) ($RES_SIM_232) (92) [----] for $i1 in 1:2 loop (92) [----] [SCAL] (1) line_1.line.terminal_p.i[$i1] - line_1.terminal_p.i[$i1] = 0.0 ($RES_SIM_233) (92) [----] end for; (93) [ARRY] (2) line_1.terminal_p.v = line_1.line.terminal_p.v ($RES_SIM_234) (94) [ARRY] (1) line_1.terminal_p.theta = line_1.line.terminal_p.theta ($RES_SIM_235) (95) [SCAL] (1) line_3b.terminal_p.v[1] = R3.terminal.v[1] ($RES_SIM_150) (96) [FOR-] (2) ($RES_SIM_236) (96) [----] for $i1 in 1:2 loop (96) [----] [SCAL] (1) line_1.line.terminal_n.i[$i1] - line_1.terminal_n.i[$i1] = 0.0 ($RES_SIM_237) (96) [----] end for; (97) [ARRY] (2) R3.terminal.v = {{R3.R, -R3.X} * R3.terminal.i, {R3.X, R3.R} * R3.terminal.i} ($RES_SIM_38) (98) [SCAL] (1) line_3b.terminal_p.theta[1] = line_3a.terminal_p.theta[1] ($RES_SIM_151) (99) [SCAL] (1) R3.X = R3.omega * R3.L ($RES_SIM_39) (100) [SCAL] (1) line_3b.terminal_p.theta[1] = R3.terminal.theta[1] ($RES_SIM_152) (101) [ARRY] (2) line_1.line.terminal_n.v = line_1.terminal_n.v ($RES_SIM_238) (102) [FOR-] (2) ($RES_SIM_153) (102) [----] for $i1 in 1:2 loop (102) [----] [SCAL] (1) line_2b.terminal_p.i[$i1] + R2.terminal.i[$i1] = 0.0 ($RES_SIM_154) (102) [----] end for; (103) [ARRY] (1) line_1.line.terminal_n.theta = line_1.terminal_n.theta ($RES_SIM_239) (104) [ARRY] (2) line_2b.terminal_p.v = R2.terminal.v ($RES_SIM_155) (105) [ARRY] (1) line_2b.terminal_p.theta = R2.terminal.theta ($RES_SIM_156) (106) [FOR-] (2) ($RES_SIM_157) (106) [----] for $i1 in 1:2 loop (106) [----] [SCAL] (1) line_2a.terminal_p.i[$i1] + line_2b.terminal_n.i[$i1] = 0.0 ($RES_SIM_158) (106) [----] end for; (107) [ARRY] (2) line_2a.terminal_p.v = line_2b.terminal_n.v ($RES_SIM_159) (108) [SCAL] (1) R3.omega = $DER.R3.theRef ($RES_SIM_40) (109) [SCAL] (1) R3.theRef = R3.terminal.theta[1] ($RES_SIM_41) (110) [SCAL] (1) line_3b.line.R_actual = (0.48266666666666674 * (line_3b.line.M + ((-273.15) + line_3b.TCable))) / (line_3b.line.M + ((-273.15) + line_3b.line.T_ref)) ($RES_SIM_44) (111) [ARRY] (1) line_3b.line.terminal_p.theta = line_3b.line.terminal_n.theta ($RES_SIM_46) (112) [SCAL] (1) line_3b.line.LossPower = line_3b.line.R_actual * (line_3b.line.i_p[1] ^ 2.0 + line_3b.line.i_p[2] ^ 2.0) ($RES_SIM_47) (113) [ARRY] (1) line_2a.terminal_p.theta = line_2b.terminal_n.theta ($RES_SIM_160) (114) [ARRY] (2) line_3b.line.L * line_3b.line.omega * {-line_3b.line.i_p[2], line_3b.line.i_p[1]} + line_3b.line.i_p * $FUN_5 = line_3b.line.terminal_p.v - line_3b.line.terminal_n.v ($RES_SIM_48) (115) [SCAL] (1) line_2a.terminal_n.i[2] + line_3a.terminal_n.i[2] + line_3b.terminal_n.i[2] + line_sc.terminal_n.i[2] + E.terminal.i[2] + line_1.terminal_n.i[2] = 0.0 ($RES_SIM_161) (116) [ARRY] (2) line_3b.line.i_p = line_3b.line.terminal_p.i ($RES_SIM_49) (117) [SCAL] (1) line_2a.terminal_n.i[1] + line_3a.terminal_n.i[1] + line_3b.terminal_n.i[1] + line_sc.terminal_n.i[1] + E.terminal.i[1] + line_1.terminal_n.i[1] = 0.0 ($RES_SIM_162) (118) [SCAL] (1) E.terminal.v[2] = line_1.terminal_n.v[2] ($RES_SIM_163) (119) [SCAL] (1) E.terminal.v[2] = line_2a.terminal_n.v[2] ($RES_SIM_164) (120) [SCAL] (1) E.terminal.v[2] = line_3a.terminal_n.v[2] ($RES_SIM_165) (121) [SCAL] (1) E.terminal.v[2] = line_3b.terminal_n.v[2] ($RES_SIM_166) (122) [SCAL] (1) E.terminal.v[2] = line_sc.terminal_n.v[2] ($RES_SIM_167) (123) [SCAL] (1) E.terminal.v[1] = line_1.terminal_n.v[1] ($RES_SIM_168) (124) [SCAL] (1) E.terminal.v[1] = line_2a.terminal_n.v[1] ($RES_SIM_169) (125) [ARRY] (2) line_3b.line.terminal_p.i = -line_3b.line.terminal_n.i ($RES_SIM_50) (126) [SCAL] (1) line_3b.line.omega = $DER.line_3b.line.theRef ($RES_SIM_51) (127) [SCAL] (1) line_3b.line.theRef = line_3b.line.terminal_p.theta[1] ($RES_SIM_52) (128) [SCAL] (1) line_3a.line.R_actual = (0.48266666666666674 * (line_3a.line.M + ((-273.15) + line_3a.TCable))) / (line_3a.line.M + ((-273.15) + line_3a.line.T_ref)) ($RES_SIM_56) (129) [SCAL] (1) E.terminal.v[1] = line_3a.terminal_n.v[1] ($RES_SIM_170) (130) [ARRY] (1) line_3a.line.terminal_p.theta = line_3a.line.terminal_n.theta ($RES_SIM_58) (131) [SCAL] (1) E.terminal.v[1] = line_3b.terminal_n.v[1] ($RES_SIM_171) (132) [SCAL] (1) line_3a.line.LossPower = line_3a.line.R_actual * (line_3a.line.i_p[1] ^ 2.0 + line_3a.line.i_p[2] ^ 2.0) ($RES_SIM_59) (133) [SCAL] (1) E.terminal.v[1] = line_sc.terminal_n.v[1] ($RES_SIM_172) (134) [SCAL] (1) E.terminal.theta[1] = line_1.terminal_n.theta[1] ($RES_SIM_173) (135) [SCAL] (1) E.terminal.theta[1] = line_2a.terminal_n.theta[1] ($RES_SIM_174) (136) [SCAL] (1) E.terminal.theta[1] = line_3a.terminal_n.theta[1] ($RES_SIM_175) (137) [SCAL] (1) E.terminal.theta[1] = line_3b.terminal_n.theta[1] ($RES_SIM_176) (138) [SCAL] (1) E.terminal.theta[1] = line_sc.terminal_n.theta[1] ($RES_SIM_177) (139) [FOR-] (2) ($RES_SIM_178) (139) [----] for $i1 in 1:2 loop (139) [----] [SCAL] (1) line_1.terminal_p.i[$i1] + R1.terminal.i[$i1] = 0.0 ($RES_SIM_179) (139) [----] end for; (140) [ARRY] (2) line_3a.line.L * line_3a.line.omega * {-line_3a.line.i_p[2], line_3a.line.i_p[1]} + line_3a.line.i_p * $FUN_4 = line_3a.line.terminal_p.v - line_3a.line.terminal_n.v ($RES_SIM_60) (141) [ARRY] (2) line_2a.line.i_p = line_2a.line.terminal_p.i ($RES_SIM_100) (142) [ARRY] (2) line_3a.line.i_p = line_3a.line.terminal_p.i ($RES_SIM_61) (143) [ARRY] (2) line_2a.line.terminal_p.i = -line_2a.line.terminal_n.i ($RES_SIM_101) (144) [ARRY] (2) line_3a.line.terminal_p.i = -line_3a.line.terminal_n.i ($RES_SIM_62) (145) [SCAL] (1) line_2a.line.omega = $DER.line_2a.line.theRef ($RES_SIM_102) (146) [SCAL] (1) line_3a.line.omega = $DER.line_3a.line.theRef ($RES_SIM_63) (147) [SCAL] (1) line_2a.line.theRef = line_2a.line.terminal_p.theta[1] ($RES_SIM_103) (148) [SCAL] (1) line_3a.line.theRef = line_3a.line.terminal_p.theta[1] ($RES_SIM_64) (149) [ARRY] (2) line_1.terminal_p.v = R1.terminal.v ($RES_SIM_180) (150) [SCAL] (1) line_1.line.R_actual = (0.24133333333333337 * (line_1.line.M + ((-273.15) + line_1.TCable))) / (line_1.line.M + ((-273.15) + line_1.line.T_ref)) ($RES_SIM_107) (151) [SCAL] (1) line_2b.line.R_actual = (0.12066666666666669 * (line_2b.line.M + ((-273.15) + line_2b.TCable))) / (line_2b.line.M + ((-273.15) + line_2b.line.T_ref)) ($RES_SIM_68) (152) [ARRY] (1) line_1.terminal_p.theta = R1.terminal.theta ($RES_SIM_181) (153) [ARRY] (1) line_1.line.terminal_p.theta = line_1.line.terminal_n.theta ($RES_SIM_109) (154) [FOR-] (2) ($RES_SIM_183) (154) [----] for $i1 in 1:2 loop (154) [----] [SCAL] (1) line_sc.line.terminal_p.i[$i1] - line_sc.terminal_p.i[$i1] = 0.0 ($RES_SIM_184) (154) [----] end for; (155) [ARRY] (2) line_sc.terminal_p.v = line_sc.line.terminal_p.v ($RES_SIM_185) (156) [ARRY] (1) line_sc.terminal_p.theta = line_sc.line.terminal_p.theta ($RES_SIM_186) (157) [FOR-] (2) ($RES_SIM_187) (157) [----] for $i1 in 1:2 loop (157) [----] [SCAL] (1) line_sc.line.terminal_n.i[$i1] - line_sc.terminal_n.i[$i1] = 0.0 ($RES_SIM_188) (157) [----] end for; (158) [ARRY] (2) line_sc.line.terminal_n.v = line_sc.terminal_n.v ($RES_SIM_189) (159) [ARRY] (2) E.S = {E.terminal.v[1] * E.terminal.i[1] + E.terminal.v[2] * E.terminal.i[2], E.terminal.v[2] * E.terminal.i[1] - E.terminal.v[1] * E.terminal.i[2]} ($RES_BND_241) (160) [SCAL] (1) E.phi = atan2(E.terminal.v[2], E.terminal.v[1]) - atan2((-E.terminal.i)[2], (-E.terminal.i)[1]) ($RES_BND_242) (161) [ARRY] (2) R1.v = R1.terminal.v ($RES_BND_243) (162) [ARRY] (2) R1.i = R1.terminal.i ($RES_BND_244) (163) [ARRY] (2) R1.S = {R1.v[1] * (-R1.i)[1] + R1.v[2] * (-R1.i)[2], R1.v[2] * (-R1.i)[1] - R1.v[1] * (-R1.i)[2]} ($RES_BND_245) (164) [ARRY] (1) line_2b.line.terminal_p.theta = line_2b.line.terminal_n.theta ($RES_SIM_70) (165) [SCAL] (1) line_1.line.LossPower = line_1.line.R_actual * (line_1.line.i_p[1] ^ 2.0 + line_1.line.i_p[2] ^ 2.0) ($RES_SIM_110) (166) [SCAL] (1) line_2b.line.LossPower = line_2b.line.R_actual * (line_2b.line.i_p[1] ^ 2.0 + line_2b.line.i_p[2] ^ 2.0) ($RES_SIM_71) (167) [ARRY] (2) line_1.line.L * line_1.line.omega * {-line_1.line.i_p[2], line_1.line.i_p[1]} + line_1.line.i_p * $FUN_1 = line_1.line.terminal_p.v - line_1.line.terminal_n.v ($RES_SIM_111) (168) [SCAL] (1) line_1.VoltageLosses = $FUN_12 / smooth(1, if $SEV_26 then line_1.terminal_p.v / (line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) else if $SEV_27 then line_1.terminal_n.v / (line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) else 0.25 * (line_1.terminal_n.v / (line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) - line_1.terminal_p.v / (line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25)) * ((-3.0) + (line_1.terminal_p.v / ((line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_1.terminal_p.v) - line_1.terminal_n.v / ((line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_1.terminal_n.v)) ^ 2.0) * (line_1.terminal_p.v / (line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_1.terminal_n.v / (line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25)) + 0.5 * (line_1.terminal_p.v / (line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v * (line_1.terminal_p.v * line_1.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) + line_1.terminal_n.v / (line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v * (line_1.terminal_n.v * line_1.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25))) ($RES_BND_247) (169) [ARRY] (2) line_2b.line.L * line_2b.line.omega * {-line_2b.line.i_p[2], line_2b.line.i_p[1]} + line_2b.line.i_p * $FUN_3 = line_2b.line.terminal_p.v - line_2b.line.terminal_n.v ($RES_SIM_72) (170) [ARRY] (2) line_1.line.i_p = line_1.line.terminal_p.i ($RES_SIM_112) (171) [ARRY] (2) line_2b.line.i_p = line_2b.line.terminal_p.i ($RES_SIM_73) (172) [ARRY] (2) line_1.line.terminal_p.i = -line_1.line.terminal_n.i ($RES_SIM_113) (173) [ARRY] (2) line_2b.line.terminal_p.i = -line_2b.line.terminal_n.i ($RES_SIM_74) (174) [SCAL] (1) line_1.line.omega = $DER.line_1.line.theRef ($RES_SIM_114) (175) [SCAL] (1) line_2b.line.omega = $DER.line_2b.line.theRef ($RES_SIM_75) (176) [SCAL] (1) line_1.line.theRef = line_1.line.terminal_p.theta[1] ($RES_SIM_115) (177) [SCAL] (1) line_2b.line.theRef = line_2b.line.terminal_p.theta[1] ($RES_SIM_76) (178) [ARRY] (1) line_sc.line.terminal_n.theta = line_sc.terminal_n.theta ($RES_SIM_190) (179) [FOR-] (2) ($RES_SIM_193) (179) [----] for $i1 in 1:2 loop (179) [----] [SCAL] (1) line_3b.line.terminal_p.i[$i1] - line_3b.terminal_p.i[$i1] = 0.0 ($RES_SIM_194) (179) [----] end for; (180) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* line_1.line.R_actual) ($RES_$AUX_290) (181) [ARRY] (2) line_3b.terminal_p.v = line_3b.line.terminal_p.v ($RES_SIM_195) (182) [ARRY] (1) line_3b.terminal_p.theta = line_3b.line.terminal_p.theta ($RES_SIM_196) (183) [FOR-] (2) ($RES_SIM_197) (183) [----] for $i1 in 1:2 loop (183) [----] [SCAL] (1) line_3b.line.terminal_n.i[$i1] - line_3b.terminal_n.i[$i1] = 0.0 ($RES_SIM_198) (183) [----] end for; (184) [ARRY] (2) line_3b.line.terminal_n.v = line_3b.terminal_n.v ($RES_SIM_199) (185) [ARRY] (1) line_3b.line.terminal_n.theta = line_3b.terminal_n.theta ($RES_SIM_200) (186) [SCAL] (1) line_2a.VoltageLosses = $FUN_11 / smooth(1, if $SEV_24 then line_2a.terminal_p.v / (line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) else if $SEV_25 then line_2a.terminal_n.v / (line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) else 0.25 * (line_2a.terminal_n.v / (line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25) - line_2a.terminal_p.v / (line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25)) * ((-3.0) + (line_2a.terminal_p.v / ((line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25 * line_2a.terminal_p.v) - line_2a.terminal_n.v / ((line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25 * line_2a.terminal_n.v)) ^ 2.0) * (line_2a.terminal_p.v / (line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) - line_2a.terminal_n.v / (line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25)) + 0.5 * (line_2a.terminal_p.v / (line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v * (line_2a.terminal_p.v * line_2a.terminal_p.v) + 1.0000000000000002e-10) ^ 0.25) + line_2a.terminal_n.v / (line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v * (line_2a.terminal_n.v * line_2a.terminal_n.v) + 1.0000000000000002e-10) ^ 0.25))) ($RES_BND_251) (187) [FOR-] (2) ($RES_SIM_203) (187) [----] for $i1 in 1:2 loop (187) [----] [SCAL] (1) line_3a.line.terminal_p.i[$i1] - line_3a.terminal_p.i[$i1] = 0.0 ($RES_SIM_204) (187) [----] end for; (188) [ARRY] (2) R2.v = R2.terminal.v ($RES_BND_254)