Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 108.4 kB / 16.38 MB, free: 6.387 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.001434/0.001434, allocations: 195.6 kB / 17.32 MB, free: 5.766 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.408/1.408, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.72/1.72, allocations: 292.3 MB / 0.5496 GB, free: 17.5 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.617e-05/2.642e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.906 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01641/0.01645, allocations: 14.67 MB / 0.6872 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01474/0.03123, allocations: 10.44 MB / 0.6974 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.03289, allocations: 55.69 kB / 0.6974 GB, free: 12.64 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004026/0.03693, allocations: 1.687 MB / 0.6991 GB, free: 10.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.005561/0.0425, allocations: 1.812 MB / 0.7009 GB, free: 9.141 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001975/0.04449, allocations: 0.7559 MB / 0.7016 GB, free: 8.387 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003984/0.04848, allocations: 3.082 MB / 0.7046 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.05006, allocations: 1.215 MB / 0.7058 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.05207, allocations: 1.566 MB / 0.7073 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001124/0.0532, allocations: 0.9646 MB / 0.7083 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001777/0.05339, allocations: 136 kB / 0.7084 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.0549, allocations: 0.7214 MB / 0.7091 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.002127/0.05704, allocations: 2.871 MB / 0.7119 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of replaceArrayConstructors: time 0.001205/0.05825, allocations: 1.853 MB / 0.7137 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0003441/0.0586, allocations: 287.1 kB / 0.714 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of FrontEnd: time 0.0001939/0.05881, allocations: 43.81 kB / 0.714 GB, free: 11.57 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 (253) * Number of variables: 327 (244) Notification: Performance of Bindings: time 0.006645/0.06546, allocations: 8.172 MB / 0.722 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of FunctionAlias: time 0.0005742/0.06604, allocations: 0.5197 MB / 0.7225 GB, free: 2.609 MB / 0.5919 GB Notification: Performance of Early Inline: time 0.006334/0.07238, allocations: 6.727 MB / 0.7291 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of simplify1: time 0.000524/0.07292, allocations: 0.4915 MB / 0.7296 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of Alias: time 0.005978/0.07891, allocations: 5.436 MB / 0.7349 GB, free: 5.406 MB / 0.6075 GB Notification: Performance of simplify2: time 0.0005034/0.07942, allocations: 463.3 kB / 0.7353 GB, free: 4.953 MB / 0.6075 GB Notification: Performance of Events: time 0.001099/0.08053, allocations: 1.084 MB / 0.7364 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of Detect States: time 0.001167/0.0817, allocations: 1.355 MB / 0.7377 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of Partitioning: time 0.001788/0.0835, allocations: 1.719 MB / 0.7394 GB, free: 0.7344 MB / 0.6075 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency load_sc.X could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [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) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (185/286) **************************** (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.ThreePhasesBalanced.Lines.Examples.ACLineMedium.E.PhaseSystem.phase(E.terminal.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.E.PhaseSystem.phase(-E.terminal.i) (8) [DISC] (1) Boolean $SEV_25 (9) [DISC] (1) Boolean $SEV_24 (10) [ALGB] (2) protected Real[2] line_2a.line.Vc (start = line_2a.line.Vc_start, StateSelect = prefer) (11) [ALGB] (2) flow Real[2] line_3a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (12) [ALGB] (2) flow Real[2] line_3b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (13) [ALGB] (2) Real[2] R3.terminal.v (14) [DISC] (1) Boolean $SEV_23 (15) [ALGB] (2) Real[2] line_2a.terminal_n.v (16) [ALGB] (2) Real[2] line_2b.terminal_n.v (17) [DISC] (1) Boolean $SEV_22 (18) [ALGB] (2) Real[2] R3.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.R3.PhaseSystem.phasePowers_vi(R3.v, -R3.i) (19) [DISC] (1) Boolean $SEV_21 (20) [DER-] (1) Real $DER.R3.theRef (21) [DISC] (1) Boolean $SEV_20 (22) [DER-] (1) Real $DER.line_sc.line.theRef (23) [ALGB] (2) flow Real[2] load_sc.terminal.i (start = {0.0 for $i1 in 1:2}) (24) [ALGB] (2) protected Real[2] line_2b.line.terminal_p.v (25) [ALGB] (1) protected Real[1] line_sc.line.terminal_n.theta (26) [ALGB] (2) protected Real[2] line_3a.line.Ic (27) [ALGB] (2) protected flow Real[2] line_sc.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (28) [ALGB] (2) protected Real[2] line_sc.line.Vc (start = line_sc.line.Vc_start, StateSelect = prefer) (29) [ALGB] (2) flow Real[2] R3.terminal.i (start = {0.0 for $i1 in 1:2}) (30) [ALGB] (1) Real[1] line_2a.terminal_n.theta (31) [ALGB] (1) Real[1] line_3b.terminal_n.theta (32) [ALGB] (1) Real[1] line_2b.terminal_n.theta (33) [ALGB] (2) protected flow Real[2] line_1.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (34) [ALGB] (2) protected flow Real[2] line_2b.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (35) [ALGB] (1) Real line_1.VoltageLosses = abs(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_1.PhaseSystem_p.systemVoltage(line_1.terminal_p.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_1.PhaseSystem_n.systemVoltage(line_1.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_1.PhaseSystem_p.systemVoltage(line_1.terminal_p.v), Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_1.PhaseSystem_n.systemVoltage(line_1.terminal_n.v), 1.0) (36) [ALGB] (1) protected Real[1] line_3a.line.terminal_n.theta (37) [ALGB] (2) flow Real[2] line_sc.terminal_n.i (start = {0.0 for $i1 in 1:2}) (38) [ALGB] (1) protected Real line_sc.line.omega (39) [DISC] (1) Boolean $SEV_19 (40) [ALGB] (2) Real[2] R2.v = R2.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.R2.PhaseSystem.phaseVoltages(R2.V_nominal, 0.0)) (41) [DISC] (1) Boolean $SEV_18 (42) [DISC] (1) Boolean $SEV_17 (43) [DISC] (1) Boolean $SEV_16 (44) [ALGB] (2) protected Real[2] line_1.line.terminal_n.v (45) [DISC] (1) Boolean $SEV_14 (46) [ALGB] (2) protected Real[2] line_2b.line.Vc (start = line_2b.line.Vc_start, StateSelect = prefer) (47) [DISC] (1) Boolean $SEV_12 (48) [ALGB] (1) protected Real line_2b.line.omega (49) [ALGB] (2) Real[2] line_sc.terminal_n.v (50) [ALGB] (2) protected flow Real[2] line_3b.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (51) [ALGB] (1) protected Real line_2b.line.R_actual (52) [ALGB] (2) protected flow Real[2] line_3a.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (53) [ALGB] (1) Real[1] line_1.terminal_p.theta (54) [ALGB] (2) Real[2] R2.i = R2.terminal.i (start = {0.0 for $i1 in 1:2}) (55) [ALGB] (1) protected Real line_sc.line.R_actual (56) [ALGB] (2) protected Real[2] line_3b.line.Ic (57) [ALGB] (2) protected Real[2] line_3b.line.terminal_p.v (58) [ALGB] (2) protected Real[2] line_3a.line.terminal_p.v (59) [ALGB] (1) Real line_3b.VoltageLosses = abs(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3b.PhaseSystem_p.systemVoltage(line_3b.terminal_p.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3b.PhaseSystem_n.systemVoltage(line_3b.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3b.PhaseSystem_p.systemVoltage(line_3b.terminal_p.v), Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3b.PhaseSystem_n.systemVoltage(line_3b.terminal_n.v), 1.0) (60) [ALGB] (1) protected Real R2.X (start = 1.0) (61) [ALGB] (1) Real line_3a.VoltageLosses = abs(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3a.PhaseSystem_p.systemVoltage(line_3a.terminal_p.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3a.PhaseSystem_n.systemVoltage(line_3a.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3a.PhaseSystem_p.systemVoltage(line_3a.terminal_p.v), Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_3a.PhaseSystem_n.systemVoltage(line_3a.terminal_n.v), 1.0) (62) [ALGB] (1) protected Real[1] line_3b.line.terminal_n.theta (63) [ALGB] (2) Real[2] R2.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.R2.PhaseSystem.phasePowers_vi(R2.v, -R2.i) (64) [ALGB] (2) flow Real[2] E.terminal.i (start = {0.0 for $i1 in 1:2}) (65) [ALGB] (1) Real[1] line_sc.terminal_n.theta (66) [DER-] (1) Real $DER.line_2b.line.theRef (67) [ALGB] (1) protected Real line_2a.line.R_actual (68) [ALGB] (1) protected Real line_sc.line.LossPower (69) [ALGB] (1) Real $FUN_9 (70) [ALGB] (1) Real $FUN_8 (71) [ALGB] (2) protected Real[2] line_1.line.Ic (72) [ALGB] (1) Real $FUN_7 (73) [ALGB] (4) Real[2, 2] $FUN_6 (74) [ALGB] (4) Real[2, 2] $FUN_5 (75) [ALGB] (4) Real[2, 2] $FUN_4 (76) [ALGB] (4) Real[2, 2] $FUN_3 (77) [ALGB] (2) Real[2] E.terminal.v (78) [ALGB] (4) Real[2, 2] $FUN_2 (79) [ALGB] (4) Real[2, 2] $FUN_1 (80) [ALGB] (1) Real[1] E.terminal.theta (81) [ALGB] (1) Real[1] R1.terminal.theta (82) [ALGB] (2) Real[2] R1.v = R1.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.R1.PhaseSystem.phaseVoltages(R1.V_nominal, 0.0)) (83) [ALGB] (2) flow Real[2] line_1.terminal_p.i (start = {0.0 for $i1 in 1:2}) (84) [ALGB] (1) protected Real line_3b.line.omega (85) [ALGB] (2) protected flow Real[2] line_2a.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (86) [ALGB] (1) protected Real[1] line_2a.line.terminal_n.theta (87) [ALGB] (2) protected Real[2] line_3a.line.Vc (start = line_3a.line.Vc_start, StateSelect = prefer) (88) [ALGB] (1) protected Real[1] line_2b.line.terminal_p.theta (89) [ALGB] (2) Real[2] R1.terminal.v (90) [DER-] (1) Real $DER.line_2a.line.theRef (91) [DER-] (1) Real $DER.line_3a.line.theRef (92) [ALGB] (2) Real[2] R1.i = R1.terminal.i (start = {0.0 for $i1 in 1:2}) (93) [ALGB] (2) Real[2] line_1.terminal_p.v (94) [ALGB] (2) protected Real[2] line_2a.line.terminal_p.v (95) [ALGB] (2) Real[2] load_sc.v = load_sc.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.load_sc.PhaseSystem.phaseVoltages(load_sc.V_nominal, 0.0)) (96) [ALGB] (2) Real[2] line_3a.terminal_n.v (97) [ALGB] (2) Real[2] line_3b.terminal_n.v (98) [ALGB] (1) protected Real load_sc.omega (99) [ALGB] (2) flow Real[2] line_2a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (100) [ALGB] (2) flow Real[2] R1.terminal.i (start = {0.0 for $i1 in 1:2}) (101) [ALGB] (2) flow Real[2] line_2b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (102) [DER-] (1) Real $DER.R2.theRef (103) [ALGB] (1) Real[1] line_2a.terminal_p.theta (104) [ALGB] (1) Real[1] line_3b.terminal_p.theta (105) [ALGB] (1) protected Real line_2a.line.omega (106) [ALGB] (1) Real[1] line_2b.terminal_p.theta (107) [ALGB] (1) Real $FUN_12 (108) [ALGB] (1) Real $FUN_11 (109) [ALGB] (1) protected Real line_2b.line.LossPower (110) [ALGB] (1) protected Real R1.X (start = 1.0) (111) [ALGB] (2) protected Real[2] line_sc.line.terminal_n.v (112) [ALGB] (1) Real $FUN_10 (113) [ALGB] (2) Real[2] load_sc.i = load_sc.terminal.i (start = {0.0 for $i1 in 1:2}) (114) [ALGB] (1) protected Real[1] line_3a.line.terminal_p.theta (115) [ALGB] (2) flow Real[2] line_3a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (116) [ALGB] (2) flow Real[2] line_3b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (117) [ALGB] (2) Real[2] line_2a.terminal_p.v (118) [ALGB] (2) Real[2] line_2b.terminal_p.v (119) [ALGB] (2) Real[2] R1.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.R1.PhaseSystem.phasePowers_vi(R1.v, -R1.i) (120) [ALGB] (1) protected Real R3.omega (121) [DISC] (1) Boolean $SEV_9 (122) [ALGB] (2) protected Real[2] line_2b.line.terminal_n.v (123) [ALGB] (2) protected Real[2] line_3b.line.Vc (start = line_3b.line.Vc_start, StateSelect = prefer) (124) [DISC] (1) Boolean $SEV_7 (125) [DISC] (1) Boolean $SEV_5 (126) [ALGB] (2) protected flow Real[2] line_sc.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (127) [DISC] (1) Boolean $SEV_2 (128) [ALGB] (1) Real[1] R2.terminal.theta (129) [ALGB] (1) protected Real load_sc.X (start = 1.0) (130) [ALGB] (1) protected Real line_2a.line.LossPower (131) [ALGB] (1) Real[1] line_1.terminal_n.theta (132) [ALGB] (2) protected flow Real[2] line_1.line.terminal_p.i (start = {0.0 for $i1 in 1:2}) (133) [ALGB] (1) Real[1] line_3a.terminal_n.theta (134) [ALGB] (2) protected flow Real[2] line_2b.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (135) [ALGB] (2) Real[2] load_sc.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.load_sc.PhaseSystem.phasePowers_vi(load_sc.v, -load_sc.i) (136) [ALGB] (2) flow Real[2] line_sc.terminal_p.i (start = {0.0 for $i1 in 1:2}) (137) [ALGB] (1) protected Real line_3a.line.R_actual (138) [ALGB] (1) protected Real[1] line_1.line.terminal_n.theta (139) [ALGB] (2) protected Real[2] line_1.line.terminal_p.v (140) [ALGB] (2) Real[2] line_sc.terminal_p.v (141) [ALGB] (1) Real line_2a.VoltageLosses = abs(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2a.PhaseSystem_p.systemVoltage(line_2a.terminal_p.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2a.PhaseSystem_n.systemVoltage(line_2a.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2a.PhaseSystem_p.systemVoltage(line_2a.terminal_p.v), Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2a.PhaseSystem_n.systemVoltage(line_2a.terminal_n.v), 1.0) (142) [ALGB] (2) protected Real[2] line_1.line.Vc (start = line_1.line.Vc_start, StateSelect = prefer) (143) [ALGB] (1) protected Real[1] line_sc.line.terminal_p.theta (144) [DER-] (1) Real $DER.line_3b.line.theRef (145) [ALGB] (2) protected flow Real[2] line_3b.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (146) [ALGB] (2) protected Real[2] line_2a.line.Ic (147) [ALGB] (1) protected Real line_3a.line.omega (148) [ALGB] (2) protected flow Real[2] line_3a.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (149) [ALGB] (2) Real[2] E.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.E.PhaseSystem.phasePowers_vi(E.terminal.v, E.terminal.i) (150) [ALGB] (1) protected Real R2.omega (151) [DER-] (1) Real $DER.line_1.line.theRef (152) [ALGB] (2) Real[2] R2.terminal.v (153) [DER-] (1) Real $DER.load_sc.theRef (154) [ALGB] (2) protected Real[2] line_sc.line.Ic (155) [ALGB] (2) protected Real[2] line_3b.line.terminal_n.v (156) [ALGB] (2) protected Real[2] line_3a.line.terminal_n.v (157) [ALGB] (1) protected Real line_3b.line.LossPower (158) [ALGB] (2) flow Real[2] R2.terminal.i (start = {0.0 for $i1 in 1:2}) (159) [ALGB] (1) protected Real line_1.line.R_actual (160) [ALGB] (1) Real[1] load_sc.terminal.theta (161) [ALGB] (1) protected Real[1] line_2b.line.terminal_n.theta (162) [ALGB] (1) protected Real line_3a.line.LossPower (163) [ALGB] (1) protected Real line_1.line.LossPower (164) [ALGB] (1) Real line_2b.VoltageLosses = abs(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2b.PhaseSystem_p.systemVoltage(line_2b.terminal_p.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2b.PhaseSystem_n.systemVoltage(line_2b.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2b.PhaseSystem_p.systemVoltage(line_2b.terminal_p.v), Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_2b.PhaseSystem_n.systemVoltage(line_2b.terminal_n.v), 1.0) (165) [ALGB] (2) protected Real[2] line_2b.line.Ic (166) [ALGB] (1) Real line_sc.VoltageLosses = abs(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_sc.PhaseSystem_p.systemVoltage(line_sc.terminal_p.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_sc.PhaseSystem_n.systemVoltage(line_sc.terminal_n.v)) / Buildings.Utilities.Math.Functions.smoothMax(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_sc.PhaseSystem_p.systemVoltage(line_sc.terminal_p.v), Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.line_sc.PhaseSystem_n.systemVoltage(line_sc.terminal_n.v), 1.0) (167) [DER-] (1) Real $DER.R1.theRef (168) [ALGB] (1) protected Real[1] line_3b.line.terminal_p.theta (169) [ALGB] (1) protected Real line_3b.line.R_actual (170) [ALGB] (2) Real[2] R3.v = R3.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.R3.PhaseSystem.phaseVoltages(R3.V_nominal, 0.0)) (171) [ALGB] (2) flow Real[2] line_1.terminal_n.i (start = {0.0 for $i1 in 1:2}) (172) [ALGB] (1) protected Real R1.omega (173) [ALGB] (1) Real[1] line_sc.terminal_p.theta (174) [ALGB] (2) protected flow Real[2] line_2a.line.terminal_n.i (start = {0.0 for $i1 in 1:2}) (175) [ALGB] (2) Real[2] R3.i = R3.terminal.i (start = {0.0 for $i1 in 1:2}) (176) [ALGB] (2) Real[2] line_1.terminal_n.v (177) [ALGB] (1) Real[1] line_3a.terminal_p.theta (178) [ALGB] (2) protected Real[2] line_2a.line.terminal_n.v (179) [ALGB] (2) Real[2] line_3a.terminal_p.v (180) [ALGB] (2) Real[2] line_3b.terminal_p.v (181) [ALGB] (1) protected Real line_1.line.omega (182) [ALGB] (1) Real[1] R3.terminal.theta (183) [ALGB] (2) flow Real[2] line_2a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (184) [ALGB] (2) flow Real[2] line_2b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (185) [ALGB] (2) Real[2] load_sc.terminal.v System Equations (194/286) **************************** (1) [ARRY] (2) line_3b.line.terminal_n.v = line_3b.terminal_n.v ($RES_SIM_205) (2) [SCAL] (1) line_2b.line.theRef = line_2b.line.terminal_p.theta[1] ($RES_SIM_80) (3) [SCAL] (1) line_1.line.omega = $DER.line_1.line.theRef ($RES_SIM_120) (4) [ARRY] (1) line_3b.line.terminal_n.theta = line_3b.terminal_n.theta ($RES_SIM_206) (5) [SCAL] (1) line_1.line.theRef = line_1.line.terminal_p.theta[1] ($RES_SIM_121) (6) [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_257) (7) [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_289) (8) [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_288) (9) [FOR-] (2) ($RES_SIM_209) (9) [----] for $i1 in 1:2 loop (9) [----] [SCAL] (1) line_3a.line.terminal_p.i[$i1] - line_3a.terminal_p.i[$i1] = 0.0 ($RES_SIM_210) (9) [----] end for; (10) [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_287) (11) [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_286) (12) [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_285) (13) [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) (14) [ARRY] (2) R2.v = R2.terminal.v ($RES_BND_260) (15) [SCAL] (1) load_sc.X = load_sc.omega * load_sc.L ($RES_SIM_12) (16) [ARRY] (2) R2.i = R2.terminal.i ($RES_BND_261) (17) [ARRY] (2) line_3a.terminal_p.v = line_3a.line.terminal_p.v ($RES_SIM_211) (18) [SCAL] (1) load_sc.omega = $DER.load_sc.theRef ($RES_SIM_13) (19) [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_262) (20) [ARRY] (1) line_3a.terminal_p.theta = line_3a.line.terminal_p.theta ($RES_SIM_212) (21) [SCAL] (1) load_sc.theRef = load_sc.terminal.theta[1] ($RES_SIM_14) (22) [SCAL] (1) $SEV_2 = line_sc.line.R_actual >= 0.0 ($RES_EVT_299) (23) [FOR-] (2) ($RES_SIM_213) (23) [----] for $i1 in 1:2 loop (23) [----] [SCAL] (1) line_3a.line.terminal_n.i[$i1] - line_3a.terminal_n.i[$i1] = 0.0 ($RES_SIM_214) (23) [----] end for; (24) [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_264) (25) [ARRY] (2) line_3a.line.terminal_n.v = line_3a.terminal_n.v ($RES_SIM_215) (26) [SCAL] (1) line_sc.line.R_actual = (1.102362 * (line_sc.line.M + ((-273.15) + line_sc.TCable))) / (line_sc.line.M + ((-273.15) + line_sc.line.T_ref)) ($RES_SIM_17) (27) [ARRY] (1) line_sc.line.terminal_p.theta = line_sc.line.terminal_n.theta ($RES_SIM_19) (28) [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_268) (29) [FOR-] (2) ($RES_SIM_218) (29) [----] for $i1 in 1:2 loop (29) [----] [SCAL] (1) line_2b.line.terminal_p.i[$i1] - line_2b.terminal_p.i[$i1] = 0.0 ($RES_SIM_219) (29) [----] end for; (30) [ARRY] (2) R2.terminal.v = {{R2.R, -R2.X} * R2.terminal.i, {R2.X, R2.R} * R2.terminal.i} ($RES_SIM_93) (31) [SCAL] (1) R2.X = R2.omega * R2.L ($RES_SIM_94) (32) [ARRY] (2) R1.terminal.v = {{R1.R, -R1.X} * R1.terminal.i, {R1.X, R1.R} * R1.terminal.i} ($RES_SIM_134) (33) [SCAL] (1) R2.omega = $DER.R2.theRef ($RES_SIM_95) (34) [SCAL] (1) R1.X = R1.omega * R1.L ($RES_SIM_135) (35) [SCAL] (1) R2.theRef = R2.terminal.theta[1] ($RES_SIM_96) (36) [SCAL] (1) R1.omega = $DER.R1.theRef ($RES_SIM_136) (37) [SCAL] (1) R1.theRef = R1.terminal.theta[1] ($RES_SIM_137) (38) [ARRY] (2) E.terminal.v = {E.V * cos(E.phiSou), E.V * sin(E.phiSou)} ($RES_SIM_138) (39) [SCAL] (1) line_2a.line.R_actual = (0.551181 * (line_2a.line.M + ((-273.15) + line_2a.TCable))) / (line_2a.line.M + ((-273.15) + line_2a.line.T_ref)) ($RES_SIM_99) (40) [SCAL] (1) $SEV_5 = line_3b.line.R_actual >= 0.0 ($RES_EVT_302) (41) [SCAL] (1) $SEV_7 = line_3a.line.R_actual >= 0.0 ($RES_EVT_304) (42) [SCAL] (1) $SEV_9 = line_2b.line.R_actual >= 0.0 ($RES_EVT_306) (43) [SCAL] (1) $SEV_12 = line_2a.line.R_actual >= 0.0 ($RES_EVT_309) (44) [SCAL] (1) line_sc.line.LossPower = (0.5 * line_sc.line.R_actual) * (line_sc.line.terminal_p.i[1] ^ 2.0 + line_sc.line.terminal_p.i[2] ^ 2.0) + (0.5 * line_sc.line.R_actual) * (line_sc.line.terminal_n.i[1] ^ 2.0 + line_sc.line.terminal_n.i[2] ^ 2.0) ($RES_SIM_20) (45) [ARRY] (2) 2.8131403454478124e-8 * line_sc.line.omega * {-line_sc.line.Vc[2], line_sc.line.Vc[1]} = line_sc.line.Ic ($RES_SIM_21) (46) [ARRY] (2) line_2b.terminal_p.v = line_2b.line.terminal_p.v ($RES_SIM_220) (47) [ARRY] (2) (0.5 * line_sc.line.L) * line_sc.line.omega * {-line_sc.line.terminal_n.i[2], line_sc.line.terminal_n.i[1]} + line_sc.line.terminal_n.i * $FUN_6 = line_sc.line.terminal_n.v - line_sc.line.Vc ($RES_SIM_22) (48) [ARRY] (1) line_2b.terminal_p.theta = line_2b.line.terminal_p.theta ($RES_SIM_221) (49) [ARRY] (2) (0.5 * line_sc.line.L) * line_sc.line.omega * {-line_sc.line.terminal_p.i[2], line_sc.line.terminal_p.i[1]} + line_sc.line.terminal_p.i * $FUN_6 = line_sc.line.terminal_p.v - line_sc.line.Vc ($RES_SIM_23) (50) [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_272) (51) [FOR-] (2) ($RES_SIM_222) (51) [----] for $i1 in 1:2 loop (51) [----] [SCAL] (1) line_2b.line.terminal_n.i[$i1] - line_2b.terminal_n.i[$i1] = 0.0 ($RES_SIM_223) (51) [----] end for; (52) [ARRY] (2) line_sc.line.terminal_p.i + line_sc.line.terminal_n.i = line_sc.line.Ic ($RES_SIM_24) (53) [SCAL] (1) line_sc.line.omega = $DER.line_sc.line.theRef ($RES_SIM_25) (54) [ARRY] (2) line_2b.line.terminal_n.v = line_2b.terminal_n.v ($RES_SIM_224) (55) [SCAL] (1) line_sc.line.theRef = line_sc.line.terminal_p.theta[1] ($RES_SIM_26) (56) [ARRY] (2) R3.v = R3.terminal.v ($RES_BND_275) (57) [ARRY] (1) line_2b.line.terminal_n.theta = line_2b.terminal_n.theta ($RES_SIM_225) (58) [SCAL] (1) E.terminal.theta[1] = 6.283185307179586 * E.f * time ($RES_SIM_140) (59) [ARRY] (2) R3.i = R3.terminal.i ($RES_BND_276) (60) [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_277) (61) [FOR-] (2) ($RES_SIM_228) (61) [----] for $i1 in 1:2 loop (61) [----] [SCAL] (1) line_2a.line.terminal_p.i[$i1] - line_2a.terminal_p.i[$i1] = 0.0 ($RES_SIM_229) (61) [----] end for; (62) [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_279) (63) [FOR-] (2) ($RES_SIM_147) (63) [----] for $i1 in 1:2 loop (63) [----] [SCAL] (1) line_sc.terminal_p.i[$i1] + load_sc.terminal.i[$i1] = 0.0 ($RES_SIM_148) (63) [----] end for; (64) [ARRY] (2) line_sc.terminal_p.v = load_sc.terminal.v ($RES_SIM_149) (65) [SCAL] (1) $SEV_14 = line_1.line.R_actual >= 0.0 ($RES_EVT_311) (66) [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_313) (67) [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_314) (68) [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_315) (69) [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_316) (70) [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_317) (71) [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_318) (72) [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_319) (73) [ARRY] (2) line_2a.terminal_p.v = line_2a.line.terminal_p.v ($RES_SIM_230) (74) [ARRY] (1) line_2a.terminal_p.theta = line_2a.line.terminal_p.theta ($RES_SIM_231) (75) [ARRY] (2) load_sc.v = load_sc.terminal.v ($RES_BND_282) (76) [FOR-] (2) ($RES_SIM_232) (76) [----] for $i1 in 1:2 loop (76) [----] [SCAL] (1) line_2a.line.terminal_n.i[$i1] - line_2a.terminal_n.i[$i1] = 0.0 ($RES_SIM_233) (76) [----] end for; (77) [ARRY] (2) load_sc.i = load_sc.terminal.i ($RES_BND_283) (78) [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_284) (79) [ARRY] (2) line_2a.line.terminal_n.v = line_2a.terminal_n.v ($RES_SIM_234) (80) [ARRY] (1) line_2a.line.terminal_n.theta = line_2a.terminal_n.theta ($RES_SIM_235) (81) [ARRY] (1) line_sc.terminal_p.theta = load_sc.terminal.theta ($RES_SIM_150) (82) [SCAL] (1) line_3b.terminal_p.i[2] + R3.terminal.i[2] + line_3a.terminal_p.i[2] = 0.0 ($RES_SIM_151) (83) [SCAL] (1) line_3b.terminal_p.i[1] + R3.terminal.i[1] + line_3a.terminal_p.i[1] = 0.0 ($RES_SIM_152) (84) [ARRY] (2) R3.terminal.v = {{R3.R, -R3.X} * R3.terminal.i, {R3.X, R3.R} * R3.terminal.i} ($RES_SIM_39) (85) [FOR-] (2) ($RES_SIM_238) (85) [----] for $i1 in 1:2 loop (85) [----] [SCAL] (1) line_1.line.terminal_p.i[$i1] - line_1.terminal_p.i[$i1] = 0.0 ($RES_SIM_239) (85) [----] end for; (86) [SCAL] (1) line_3b.terminal_p.v[2] = line_3a.terminal_p.v[2] ($RES_SIM_153) (87) [SCAL] (1) line_3b.terminal_p.v[2] = R3.terminal.v[2] ($RES_SIM_154) (88) [SCAL] (1) line_3b.terminal_p.v[1] = line_3a.terminal_p.v[1] ($RES_SIM_155) (89) [SCAL] (1) line_3b.terminal_p.v[1] = R3.terminal.v[1] ($RES_SIM_156) (90) [SCAL] (1) line_3b.terminal_p.theta[1] = line_3a.terminal_p.theta[1] ($RES_SIM_157) (91) [SCAL] (1) line_3b.terminal_p.theta[1] = R3.terminal.theta[1] ($RES_SIM_158) (92) [FOR-] (2) ($RES_SIM_159) (92) [----] for $i1 in 1:2 loop (92) [----] [SCAL] (1) line_2b.terminal_p.i[$i1] + R2.terminal.i[$i1] = 0.0 ($RES_SIM_160) (92) [----] end for; (93) [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_320) (94) [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_321) (95) [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_322) (96) [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_323) (97) [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_324) (98) [SCAL] (1) R3.X = R3.omega * R3.L ($RES_SIM_40) (99) [SCAL] (1) R3.omega = $DER.R3.theRef ($RES_SIM_41) (100) [ARRY] (2) line_1.terminal_p.v = line_1.line.terminal_p.v ($RES_SIM_240) (101) [SCAL] (1) R3.theRef = R3.terminal.theta[1] ($RES_SIM_42) (102) [ARRY] (1) line_1.terminal_p.theta = line_1.line.terminal_p.theta ($RES_SIM_241) (103) [FOR-] (2) ($RES_SIM_242) (103) [----] for $i1 in 1:2 loop (103) [----] [SCAL] (1) line_1.line.terminal_n.i[$i1] - line_1.terminal_n.i[$i1] = 0.0 ($RES_SIM_243) (103) [----] end for; (104) [SCAL] (1) line_3b.line.R_actual = (2.204724 * (line_3b.line.M + ((-273.15) + line_3b.TCable))) / (line_3b.line.M + ((-273.15) + line_3b.line.T_ref)) ($RES_SIM_45) (105) [ARRY] (2) line_1.line.terminal_n.v = line_1.terminal_n.v ($RES_SIM_244) (106) [ARRY] (1) line_1.line.terminal_n.theta = line_1.terminal_n.theta ($RES_SIM_245) (107) [ARRY] (1) line_3b.line.terminal_p.theta = line_3b.line.terminal_n.theta ($RES_SIM_47) (108) [SCAL] (1) line_3b.line.LossPower = (0.5 * line_3b.line.R_actual) * (line_3b.line.terminal_p.i[1] ^ 2.0 + line_3b.line.terminal_p.i[2] ^ 2.0) + (0.5 * line_3b.line.R_actual) * (line_3b.line.terminal_n.i[1] ^ 2.0 + line_3b.line.terminal_n.i[2] ^ 2.0) ($RES_SIM_48) (109) [ARRY] (2) line_2b.terminal_p.v = R2.terminal.v ($RES_SIM_161) (110) [ARRY] (2) 5.626280690895625e-8 * line_3b.line.omega * {-line_3b.line.Vc[2], line_3b.line.Vc[1]} = line_3b.line.Ic ($RES_SIM_49) (111) [ARRY] (1) line_2b.terminal_p.theta = R2.terminal.theta ($RES_SIM_162) (112) [FOR-] (2) ($RES_SIM_163) (112) [----] for $i1 in 1:2 loop (112) [----] [SCAL] (1) line_2a.terminal_p.i[$i1] + line_2b.terminal_n.i[$i1] = 0.0 ($RES_SIM_164) (112) [----] end for; (113) [ARRY] (2) line_2a.terminal_p.v = line_2b.terminal_n.v ($RES_SIM_165) (114) [ARRY] (1) line_2a.terminal_p.theta = line_2b.terminal_n.theta ($RES_SIM_166) (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_167) (116) [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_168) (117) [SCAL] (1) E.terminal.v[2] = line_1.terminal_n.v[2] ($RES_SIM_169) (118) [ARRY] (2) (0.5 * line_3b.line.L) * line_3b.line.omega * {-line_3b.line.terminal_n.i[2], line_3b.line.terminal_n.i[1]} + line_3b.line.terminal_n.i * $FUN_5 = line_3b.line.terminal_n.v - line_3b.line.Vc ($RES_SIM_50) (119) [ARRY] (2) (0.5 * line_3b.line.L) * line_3b.line.omega * {-line_3b.line.terminal_p.i[2], line_3b.line.terminal_p.i[1]} + line_3b.line.terminal_p.i * $FUN_5 = line_3b.line.terminal_p.v - line_3b.line.Vc ($RES_SIM_51) (120) [ARRY] (2) line_3b.line.terminal_p.i + line_3b.line.terminal_n.i = line_3b.line.Ic ($RES_SIM_52) (121) [SCAL] (1) line_3b.line.omega = $DER.line_3b.line.theRef ($RES_SIM_53) (122) [SCAL] (1) line_3b.line.theRef = line_3b.line.terminal_p.theta[1] ($RES_SIM_54) (123) [SCAL] (1) E.terminal.v[2] = line_2a.terminal_n.v[2] ($RES_SIM_170) (124) [SCAL] (1) line_3a.line.R_actual = (2.204724 * (line_3a.line.M + ((-273.15) + line_3a.TCable))) / (line_3a.line.M + ((-273.15) + line_3a.line.T_ref)) ($RES_SIM_58) (125) [SCAL] (1) E.terminal.v[2] = line_3a.terminal_n.v[2] ($RES_SIM_171) (126) [SCAL] (1) E.terminal.v[2] = line_3b.terminal_n.v[2] ($RES_SIM_172) (127) [SCAL] (1) E.terminal.v[2] = line_sc.terminal_n.v[2] ($RES_SIM_173) (128) [SCAL] (1) E.terminal.v[1] = line_1.terminal_n.v[1] ($RES_SIM_174) (129) [SCAL] (1) E.terminal.v[1] = line_2a.terminal_n.v[1] ($RES_SIM_175) (130) [SCAL] (1) E.terminal.v[1] = line_3a.terminal_n.v[1] ($RES_SIM_176) (131) [SCAL] (1) E.terminal.v[1] = line_3b.terminal_n.v[1] ($RES_SIM_177) (132) [SCAL] (1) E.terminal.v[1] = line_sc.terminal_n.v[1] ($RES_SIM_178) (133) [SCAL] (1) E.terminal.theta[1] = line_1.terminal_n.theta[1] ($RES_SIM_179) (134) [ARRY] (1) line_3a.line.terminal_p.theta = line_3a.line.terminal_n.theta ($RES_SIM_60) (135) [SCAL] (1) line_3a.line.LossPower = (0.5 * line_3a.line.R_actual) * (line_3a.line.terminal_p.i[1] ^ 2.0 + line_3a.line.terminal_p.i[2] ^ 2.0) + (0.5 * line_3a.line.R_actual) * (line_3a.line.terminal_n.i[1] ^ 2.0 + line_3a.line.terminal_n.i[2] ^ 2.0) ($RES_SIM_61) (136) [ARRY] (1) line_2a.line.terminal_p.theta = line_2a.line.terminal_n.theta ($RES_SIM_101) (137) [ARRY] (2) 5.626280690895625e-8 * line_3a.line.omega * {-line_3a.line.Vc[2], line_3a.line.Vc[1]} = line_3a.line.Ic ($RES_SIM_62) (138) [SCAL] (1) line_2a.line.LossPower = (0.5 * line_2a.line.R_actual) * (line_2a.line.terminal_p.i[1] ^ 2.0 + line_2a.line.terminal_p.i[2] ^ 2.0) + (0.5 * line_2a.line.R_actual) * (line_2a.line.terminal_n.i[1] ^ 2.0 + line_2a.line.terminal_n.i[2] ^ 2.0) ($RES_SIM_102) (139) [ARRY] (2) (0.5 * line_3a.line.L) * line_3a.line.omega * {-line_3a.line.terminal_n.i[2], line_3a.line.terminal_n.i[1]} + line_3a.line.terminal_n.i * $FUN_4 = line_3a.line.terminal_n.v - line_3a.line.Vc ($RES_SIM_63) (140) [ARRY] (2) 1.4065701727239062e-8 * line_2a.line.omega * {-line_2a.line.Vc[2], line_2a.line.Vc[1]} = line_2a.line.Ic ($RES_SIM_103) (141) [ARRY] (2) (0.5 * line_3a.line.L) * line_3a.line.omega * {-line_3a.line.terminal_p.i[2], line_3a.line.terminal_p.i[1]} + line_3a.line.terminal_p.i * $FUN_4 = line_3a.line.terminal_p.v - line_3a.line.Vc ($RES_SIM_64) (142) [ARRY] (2) (0.5 * line_2a.line.L) * line_2a.line.omega * {-line_2a.line.terminal_n.i[2], line_2a.line.terminal_n.i[1]} + line_2a.line.terminal_n.i * $FUN_2 = line_2a.line.terminal_n.v - line_2a.line.Vc ($RES_SIM_104) (143) [ARRY] (2) line_3a.line.terminal_p.i + line_3a.line.terminal_n.i = line_3a.line.Ic ($RES_SIM_65) (144) [ARRY] (2) (0.5 * line_2a.line.L) * line_2a.line.omega * {-line_2a.line.terminal_p.i[2], line_2a.line.terminal_p.i[1]} + line_2a.line.terminal_p.i * $FUN_2 = line_2a.line.terminal_p.v - line_2a.line.Vc ($RES_SIM_105) (145) [SCAL] (1) line_3a.line.omega = $DER.line_3a.line.theRef ($RES_SIM_66) (146) [ARRY] (2) line_2a.line.terminal_p.i + line_2a.line.terminal_n.i = line_2a.line.Ic ($RES_SIM_106) (147) [SCAL] (1) line_3a.line.theRef = line_3a.line.terminal_p.theta[1] ($RES_SIM_67) (148) [SCAL] (1) E.terminal.theta[1] = line_2a.terminal_n.theta[1] ($RES_SIM_180) (149) [SCAL] (1) line_2a.line.omega = $DER.line_2a.line.theRef ($RES_SIM_107) (150) [SCAL] (1) E.terminal.theta[1] = line_3a.terminal_n.theta[1] ($RES_SIM_181) (151) [SCAL] (1) line_2a.line.theRef = line_2a.line.terminal_p.theta[1] ($RES_SIM_108) (152) [SCAL] (1) E.terminal.theta[1] = line_3b.terminal_n.theta[1] ($RES_SIM_182) (153) [SCAL] (1) E.terminal.theta[1] = line_sc.terminal_n.theta[1] ($RES_SIM_183) (154) [FOR-] (2) ($RES_SIM_184) (154) [----] for $i1 in 1:2 loop (154) [----] [SCAL] (1) line_1.terminal_p.i[$i1] + R1.terminal.i[$i1] = 0.0 ($RES_SIM_185) (154) [----] end for; (155) [ARRY] (2) line_1.terminal_p.v = R1.terminal.v ($RES_SIM_186) (156) [ARRY] (1) line_1.terminal_p.theta = R1.terminal.theta ($RES_SIM_187) (157) [FOR-] (2) ($RES_SIM_189) (157) [----] for $i1 in 1:2 loop (157) [----] [SCAL] (1) line_sc.line.terminal_p.i[$i1] - line_sc.terminal_p.i[$i1] = 0.0 ($RES_SIM_190) (157) [----] end for; (158) [SCAL] (1) line_2b.line.R_actual = (0.551181 * (line_2b.line.M + ((-273.15) + line_2b.TCable))) / (line_2b.line.M + ((-273.15) + line_2b.line.T_ref)) ($RES_SIM_71) (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_247) (160) [SCAL] (1) line_1.line.R_actual = (1.102362 * (line_1.line.M + ((-273.15) + line_1.TCable))) / (line_1.line.M + ((-273.15) + line_1.line.T_ref)) ($RES_SIM_112) (161) [SCAL] (1) E.phi = atan2(E.terminal.v[2], E.terminal.v[1]) - atan2((-E.terminal.i)[2], (-E.terminal.i)[1]) ($RES_BND_248) (162) [ARRY] (1) line_2b.line.terminal_p.theta = line_2b.line.terminal_n.theta ($RES_SIM_73) (163) [ARRY] (2) R1.v = R1.terminal.v ($RES_BND_249) (164) [SCAL] (1) line_2b.line.LossPower = (0.5 * line_2b.line.R_actual) * (line_2b.line.terminal_p.i[1] ^ 2.0 + line_2b.line.terminal_p.i[2] ^ 2.0) + (0.5 * line_2b.line.R_actual) * (line_2b.line.terminal_n.i[1] ^ 2.0 + line_2b.line.terminal_n.i[2] ^ 2.0) ($RES_SIM_74) (165) [ARRY] (1) line_1.line.terminal_p.theta = line_1.line.terminal_n.theta ($RES_SIM_114) (166) [ARRY] (2) 1.4065701727239062e-8 * line_2b.line.omega * {-line_2b.line.Vc[2], line_2b.line.Vc[1]} = line_2b.line.Ic ($RES_SIM_75) (167) [SCAL] (1) line_1.line.LossPower = (0.5 * line_1.line.R_actual) * (line_1.line.terminal_p.i[1] ^ 2.0 + line_1.line.terminal_p.i[2] ^ 2.0) + (0.5 * line_1.line.R_actual) * (line_1.line.terminal_n.i[1] ^ 2.0 + line_1.line.terminal_n.i[2] ^ 2.0) ($RES_SIM_115) (168) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* line_1.line.R_actual / 2.0) ($RES_$AUX_296) (169) [ARRY] (2) (0.5 * line_2b.line.L) * line_2b.line.omega * {-line_2b.line.terminal_n.i[2], line_2b.line.terminal_n.i[1]} + line_2b.line.terminal_n.i * $FUN_3 = line_2b.line.terminal_n.v - line_2b.line.Vc ($RES_SIM_76) (170) [ARRY] (2) 2.8131403454478124e-8 * line_1.line.omega * {-line_1.line.Vc[2], line_1.line.Vc[1]} = line_1.line.Ic ($RES_SIM_116) (171) [ARRY] (4) $FUN_2 = diagonal(fill(1.0, 2) .* line_2a.line.R_actual / 2.0) ($RES_$AUX_295) (172) [ARRY] (2) (0.5 * line_2b.line.L) * line_2b.line.omega * {-line_2b.line.terminal_p.i[2], line_2b.line.terminal_p.i[1]} + line_2b.line.terminal_p.i * $FUN_3 = line_2b.line.terminal_p.v - line_2b.line.Vc ($RES_SIM_77) (173) [ARRY] (2) (0.5 * line_1.line.L) * line_1.line.omega * {-line_1.line.terminal_n.i[2], line_1.line.terminal_n.i[1]} + line_1.line.terminal_n.i * $FUN_1 = line_1.line.terminal_n.v - line_1.line.Vc ($RES_SIM_117) (174) [ARRY] (4) $FUN_3 = diagonal(fill(1.0, 2) .* line_2b.line.R_actual / 2.0) ($RES_$AUX_294) (175) [ARRY] (2) line_2b.line.terminal_p.i + line_2b.line.terminal_n.i = line_2b.line.Ic ($RES_SIM_78) (176) [ARRY] (2) line_sc.terminal_p.v = line_sc.line.terminal_p.v ($RES_SIM_191) (177) [ARRY] (2) (0.5 * line_1.line.L) * line_1.line.omega * {-line_1.line.terminal_p.i[2], line_1.line.terminal_p.i[1]} + line_1.line.terminal_p.i * $FUN_1 = line_1.line.terminal_p.v - line_1.line.Vc ($RES_SIM_118) (178) [ARRY] (4) $FUN_4 = diagonal(fill(1.0, 2) .* line_3a.line.R_actual / 2.0) ($RES_$AUX_293) (179) [SCAL] (1) line_2b.line.omega = $DER.line_2b.line.theRef ($RES_SIM_79) (180) [ARRY] (1) line_sc.terminal_p.theta = line_sc.line.terminal_p.theta ($RES_SIM_192) (181) [ARRY] (2) line_1.line.terminal_p.i + line_1.line.terminal_n.i = line_1.line.Ic ($RES_SIM_119) (182) [ARRY] (4) $FUN_5 = diagonal(fill(1.0, 2) .* line_3b.line.R_actual / 2.0) ($RES_$AUX_292) (183) [FOR-] (2) ($RES_SIM_193) (183) [----] for $i1 in 1:2 loop (183) [----] [SCAL] (1) line_sc.line.terminal_n.i[$i1] - line_sc.terminal_n.i[$i1] = 0.0 ($RES_SIM_194) (183) [----] end for; (184) [ARRY] (4) $FUN_6 = diagonal(fill(1.0, 2) .* line_sc.line.R_actual / 2.0) ($RES_$AUX_291) (185) [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_290) (186) [ARRY] (2) line_sc.line.terminal_n.v = line_sc.terminal_n.v ($RES_SIM_195) (187) [ARRY] (1) line_sc.line.terminal_n.theta = line_sc.terminal_n.theta ($RES_SIM_196) (188) [FOR-] (2) ($RES_SIM_199) (188) [----] for $i1 in 1:2 loop (188) [----] [SCAL] (1) line_3b.line.terminal_p.i[$i1] - line_3b.terminal_p.i[$i1] = 0.0 ($RES_SIM_200) (188) [----] end for; (189) [ARRY] (2) R1.i = R1.terminal.i ($RES_BND_250) (190) [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_251) (191) [ARRY] (2) line_3b.terminal_p.v = line_3b.line.terminal_p.v ($RES_SIM_201) (192) [ARRY] (1) line_3b.terminal_p.theta = line_3b.line.terminal_p.theta ($RES_SIM_202) (193) [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_253) (194) [FOR-] (2) ($RES_SIM_203) (194) [----] for $i1 in 1:2 loop (194) [----] [SCAL] (1) line_3b.line.terminal_n.i[$i1] - line_3b.terminal_n.i[$i1] = 0.0 ($RES_SIM_204) (194) [----] end for;