Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.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.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 103.5 kB / 16.37 MB, free: 6.367 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.0012/0.0012, allocations: 195.2 kB / 17.31 MB, free: 5.91 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.345/1.345, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.701/1.701, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.08e-05/2.092e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.891 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008016/0.008051, allocations: 6.761 MB / 0.6795 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004731/0.01281, allocations: 3.095 MB / 0.6825 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004117/0.01324, allocations: 27.81 kB / 0.6825 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002407/0.01565, allocations: 0.9569 MB / 0.6834 GB, free: 11 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001267/0.01693, allocations: 0.5012 MB / 0.6839 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.01813, allocations: 446 kB / 0.6844 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001487/0.01963, allocations: 1.357 MB / 0.6857 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009984/0.02064, allocations: 0.6179 MB / 0.6863 GB, free: 8.07 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005604/0.02121, allocations: 474.2 kB / 0.6867 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000427/0.02165, allocations: 422.2 kB / 0.6871 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.121e-05/0.02173, allocations: 59.94 kB / 0.6872 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007285/0.02247, allocations: 335.3 kB / 0.6875 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0009965/0.02348, allocations: 1.298 MB / 0.6888 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0005518/0.02404, allocations: 0.8507 MB / 0.6896 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.02427, allocations: 135.6 kB / 0.6897 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.83e-05/0.02436, allocations: 19.94 kB / 0.6898 GB, free: 4.48 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 (145) * Number of variables: 183 (136) Notification: Performance of Bindings: time 0.003075/0.02744, allocations: 3.477 MB / 0.6932 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0002226/0.02767, allocations: 179.6 kB / 0.6933 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001862/0.02954, allocations: 1.951 MB / 0.6952 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0001451/0.0297, allocations: 151.8 kB / 0.6954 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of Alias: time 0.002392/0.0321, allocations: 2.288 MB / 0.6976 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of simplify2: time 0.0001263/0.03223, allocations: 143.8 kB / 0.6977 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of Events: time 0.0002206/0.03246, allocations: 207.6 kB / 0.6979 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of Detect States: time 0.000419/0.03289, allocations: 461.5 kB / 0.6984 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0006626/0.03356, allocations: 0.6481 MB / 0.699 GB, free: 10.34 MB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency E.terminal.v[2] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [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_145) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (101/166) **************************** (1) [ALGB] (2) Real[2] Rline_2b.terminal_n.v (2) [ALGB] (2) flow Real[2] Rline_3a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (3) [ALGB] (2) Real[2] E.terminal.v (4) [ALGB] (1) Real[1] Rline_3b.terminal_n.theta (5) [ALGB] (1) protected Real R2.X (start = 1.0) (6) [ALGB] (1) Real[1] Rline_3a.terminal_p.theta (7) [ALGB] (1) Real[1] Rline_2b.terminal_n.theta (8) [ALGB] (1) Real[1] Rline_2a.terminal_p.theta (9) [ALGB] (2) Real[2] R2.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.R2.PhaseSystem.phasePowers_vi(R2.v, -R2.i) (10) [ALGB] (1) protected Real sc_load.X (start = 1.0) (11) [ALGB] (2) Real[2] R3.terminal.v (12) [ALGB] (1) Real Rline_3a.LossPower (13) [DER-] (1) Real $DER.R1.theRef (14) [ALGB] (2) flow Real[2] Rline_2b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (15) [ALGB] (2) Real[2] Rline_3a.terminal_n.v (16) [ALGB] (2) Real[2] sc_load.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sc_load.PhaseSystem.phasePowers_vi(sc_load.v, -sc_load.i) (17) [ALGB] (1) Real[1] Rline_sc.terminal_p.theta (18) [ALGB] (2) flow Real[2] Rline_3a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (19) [ALGB] (1) Real Rline_3b.R_actual (20) [ALGB] (2) flow Real[2] R3.terminal.i (start = {0.0 for $i1 in 1:2}) (21) [ALGB] (2) Real[2] E.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.E.PhaseSystem.phasePowers_vi(E.terminal.v, E.terminal.i) (22) [ALGB] (2) Real[2] R3.v = R3.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.R3.PhaseSystem.phaseVoltages(R3.V_nominal, 0.0)) (23) [ALGB] (1) Real[1] Rline_1.terminal_p.theta (24) [ALGB] (1) protected Real sc_load.omega (25) [ALGB] (1) Real Rline_2b.LossPower (26) [ALGB] (2) Real[2] Rline_3a.terminal_p.v (27) [ALGB] (1) Real[1] Rline_3b.terminal_p.theta (28) [ALGB] (1) Real Rline_2a.R_actual (29) [ALGB] (1) Real[1] E.terminal.theta (30) [ALGB] (2) Real[2] R2.terminal.v (31) [ALGB] (1) Real[1] Rline_2b.terminal_p.theta (32) [ALGB] (2) Real[2] R3.i = R3.terminal.i (start = {0.0 for $i1 in 1:2}) (33) [ALGB] (2) Real[2] Rline_2a.terminal_p.v (34) [ALGB] (4) Real[2, 2] $FUN_6 (35) [ALGB] (1) Real Rline_sc.R_actual (36) [ALGB] (4) Real[2, 2] $FUN_5 (37) [ALGB] (4) Real[2, 2] $FUN_4 (38) [DER-] (1) Real $DER.sc_load.theRef (39) [ALGB] (4) Real[2, 2] $FUN_3 (40) [ALGB] (4) Real[2, 2] $FUN_2 (41) [ALGB] (1) Real Rline_1.LossPower (42) [ALGB] (4) Real[2, 2] $FUN_1 (43) [ALGB] (2) Real[2] R1.v = R1.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.R1.PhaseSystem.phaseVoltages(R1.V_nominal, 0.0)) (44) [ALGB] (1) protected Real R3.omega (45) [ALGB] (1) Real[1] Rline_sc.terminal_n.theta (46) [ALGB] (2) flow Real[2] R2.terminal.i (start = {0.0 for $i1 in 1:2}) (47) [ALGB] (2) flow Real[2] Rline_2a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (48) [ALGB] (2) Real[2] Rline_sc.terminal_p.v (49) [ALGB] (1) Real Rline_sc.LossPower (50) [ALGB] (1) protected Real R3.X (start = 1.0) (51) [ALGB] (1) Real Rline_3b.LossPower (52) [ALGB] (2) Real[2] R1.i = R1.terminal.i (start = {0.0 for $i1 in 1:2}) (53) [ALGB] (2) Real[2] Rline_2a.terminal_n.v (54) [ALGB] (2) flow Real[2] Rline_3b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (55) [ALGB] (2) flow Real[2] Rline_1.terminal_n.i (start = {0.0 for $i1 in 1:2}) (56) [ALGB] (2) Real[2] R3.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.R3.PhaseSystem.phasePowers_vi(R3.v, -R3.i) (57) [ALGB] (1) protected Real R2.omega (58) [ALGB] (2) Real[2] R1.terminal.v (59) [ALGB] (1) Real[1] sc_load.terminal.theta (60) [ALGB] (2) flow Real[2] Rline_sc.terminal_p.i (start = {0.0 for $i1 in 1:2}) (61) [ALGB] (2) flow Real[2] Rline_2a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (62) [ALGB] (2) Real[2] Rline_3b.terminal_n.v (63) [ALGB] (1) Real[1] R1.terminal.theta (64) [ALGB] (1) Real Rline_1.R_actual (65) [ALGB] (2) Real[2] Rline_1.terminal_n.v (66) [ALGB] (2) Real[2] Rline_sc.terminal_n.v (67) [ALGB] (1) protected Real R1.X (start = 1.0) (68) [ALGB] (1) Real[1] R2.terminal.theta (69) [ALGB] (2) flow Real[2] R1.terminal.i (start = {0.0 for $i1 in 1:2}) (70) [ALGB] (2) flow Real[2] Rline_3b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (71) [ALGB] (2) flow Real[2] sc_load.terminal.i (start = {0.0 for $i1 in 1:2}) (72) [ALGB] (1) protected Real R1.omega (73) [ALGB] (2) flow Real[2] Rline_1.terminal_p.i (start = {0.0 for $i1 in 1:2}) (74) [ALGB] (2) Real[2] R1.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.R1.PhaseSystem.phasePowers_vi(R1.v, -R1.i) (75) [ALGB] (1) Real Rline_3a.R_actual (76) [ALGB] (2) flow Real[2] Rline_sc.terminal_n.i (start = {0.0 for $i1 in 1:2}) (77) [ALGB] (2) Real[2] Rline_3b.terminal_p.v (78) [ALGB] (2) Real[2] sc_load.terminal.v (79) [ALGB] (2) Real[2] Rline_1.terminal_p.v (80) [DISC] (1) Boolean $SEV_5 (81) [DISC] (1) Boolean $SEV_4 (82) [DISC] (1) Boolean $SEV_3 (83) [DISC] (1) Boolean $SEV_2 (84) [DISC] (1) Boolean $SEV_1 (85) [ALGB] (1) Real Rline_2b.R_actual (86) [DISC] (1) Boolean $SEV_0 (87) [DER-] (1) Real $DER.R3.theRef (88) [ALGB] (1) Real[1] Rline_3a.terminal_n.theta (89) [ALGB] (2) Real[2] R2.v = R2.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.R2.PhaseSystem.phaseVoltages(R2.V_nominal, 0.0)) (90) [ALGB] (1) Real[1] Rline_2a.terminal_n.theta (91) [ALGB] (2) Real[2] sc_load.v = sc_load.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sc_load.PhaseSystem.phaseVoltages(sc_load.V_nominal, 0.0)) (92) [ALGB] (1) Real[1] R3.terminal.theta (93) [ALGB] (2) Real[2] Rline_2b.terminal_p.v (94) [ALGB] (1) Real Rline_2a.LossPower (95) [ALGB] (2) Real[2] R2.i = R2.terminal.i (start = {0.0 for $i1 in 1:2}) (96) [ALGB] (2) flow Real[2] E.terminal.i (start = {0.0 for $i1 in 1:2}) (97) [DER-] (1) Real $DER.R2.theRef (98) [ALGB] (2) Real[2] sc_load.i = sc_load.terminal.i (start = {0.0 for $i1 in 1:2}) (99) [ALGB] (2) flow Real[2] Rline_2b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (100) [ALGB] (1) Real[1] Rline_1.terminal_n.theta (101) [ALGB] (1) Real E.phi = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.E.PhaseSystem.phase(E.terminal.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.E.PhaseSystem.phase(-E.terminal.i) System Equations (110/166) **************************** (1) [SCAL] (1) E.terminal.v[1] = Rline_sc.terminal_n.v[1] ($RES_SIM_132) (2) [ARRY] (2) Rline_2b.terminal_p.i = -Rline_2b.terminal_n.i ($RES_SIM_15) (3) [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_145) (4) [SCAL] (1) E.terminal.v[1] = Rline_1.terminal_n.v[1] ($RES_SIM_133) (5) [SCAL] (1) Rline_2b.R_actual = ((Rline_2b.M + ((-273.15) + Rline_2b.T)) * Rline_2b.R) / (Rline_2b.M + ((-273.15) + Rline_2b.T_ref)) ($RES_SIM_16) (6) [SCAL] (1) E.phi = atan2(E.terminal.v[2], E.terminal.v[1]) - atan2((-E.terminal.i)[2], (-E.terminal.i)[1]) ($RES_BND_146) (7) [SCAL] (1) E.terminal.v[1] = Rline_2a.terminal_n.v[1] ($RES_SIM_134) (8) [ARRY] (2) R1.v = R1.terminal.v ($RES_BND_147) (9) [SCAL] (1) E.terminal.v[1] = Rline_3a.terminal_n.v[1] ($RES_SIM_135) (10) [ARRY] (2) sc_load.terminal.v = {{sc_load.R, -sc_load.X} * sc_load.terminal.i, {sc_load.X, sc_load.R} * sc_load.terminal.i} ($RES_SIM_53) (11) [ARRY] (1) Rline_2b.terminal_p.theta = Rline_2b.terminal_n.theta ($RES_SIM_18) (12) [ARRY] (2) R1.i = R1.terminal.i ($RES_BND_148) (13) [SCAL] (1) E.terminal.v[1] = Rline_3b.terminal_n.v[1] ($RES_SIM_136) (14) [SCAL] (1) sc_load.X = sc_load.omega * sc_load.L ($RES_SIM_54) (15) [SCAL] (1) Rline_2b.LossPower = Rline_2b.R_actual * (Rline_2b.terminal_p.i[1] ^ 2.0 + Rline_2b.terminal_p.i[2] ^ 2.0) ($RES_SIM_19) (16) [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_149) (17) [FOR-] (2) ($RES_SIM_137) (17) [----] for $i1 in 1:2 loop (17) [----] [SCAL] (1) Rline_sc.terminal_p.i[$i1] + sc_load.terminal.i[$i1] = 0.0 ($RES_SIM_138) (17) [----] end for; (18) [SCAL] (1) sc_load.omega = $DER.sc_load.theRef ($RES_SIM_55) (19) [SCAL] (1) sc_load.theRef = sc_load.terminal.theta[1] ($RES_SIM_56) (20) [ARRY] (2) Rline_sc.terminal_p.v = sc_load.terminal.v ($RES_SIM_139) (21) [SCAL] (1) $SEV_5 = Rline_sc.R_actual >= 0.0 ($RES_EVT_170) (22) [ARRY] (2) R1.terminal.v = {{R1.R, -R1.X} * R1.terminal.i, {R1.X, R1.R} * R1.terminal.i} ($RES_SIM_98) (23) [SCAL] (1) R1.X = R1.omega * R1.L ($RES_SIM_99) (24) [SCAL] (1) R1.omega = $DER.R1.theRef ($RES_SIM_100) (25) [SCAL] (1) R1.theRef = R1.terminal.theta[1] ($RES_SIM_101) (26) [ARRY] (2) E.terminal.v = {E.V * cos(E.phiSou), E.V * sin(E.phiSou)} ($RES_SIM_102) (27) [ARRY] (2) Rline_2b.terminal_p.v - Rline_2b.terminal_n.v = Rline_2b.terminal_p.i * $FUN_4 ($RES_SIM_20) (28) [ARRY] (2) R2.v = R2.terminal.v ($RES_BND_150) (29) [ARRY] (2) R2.i = R2.terminal.i ($RES_BND_151) (30) [SCAL] (1) E.terminal.theta[1] = 6.283185307179586 * E.f * time ($RES_SIM_104) (31) [ARRY] (2) Rline_2a.terminal_p.i = -Rline_2a.terminal_n.i ($RES_SIM_22) (32) [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_152) (33) [ARRY] (1) Rline_sc.terminal_p.theta = sc_load.terminal.theta ($RES_SIM_140) (34) [SCAL] (1) Rline_3b.terminal_p.i[2] + R3.terminal.i[2] + Rline_3a.terminal_p.i[2] = 0.0 ($RES_SIM_105) (35) [SCAL] (1) Rline_2a.R_actual = ((Rline_2a.M + ((-273.15) + Rline_2a.T)) * Rline_2a.R) / (Rline_2a.M + ((-273.15) + Rline_2a.T_ref)) ($RES_SIM_23) (36) [ARRY] (2) R3.v = R3.terminal.v ($RES_BND_153) (37) [SCAL] (1) E.terminal.theta[1] = Rline_sc.terminal_n.theta[1] ($RES_SIM_141) (38) [SCAL] (1) Rline_3b.terminal_p.i[1] + R3.terminal.i[1] + Rline_3a.terminal_p.i[1] = 0.0 ($RES_SIM_106) (39) [ARRY] (2) R3.i = R3.terminal.i ($RES_BND_154) (40) [SCAL] (1) E.terminal.theta[1] = Rline_1.terminal_n.theta[1] ($RES_SIM_142) (41) [SCAL] (1) Rline_3b.terminal_p.v[2] = Rline_3a.terminal_p.v[2] ($RES_SIM_107) (42) [ARRY] (1) Rline_2a.terminal_p.theta = Rline_2a.terminal_n.theta ($RES_SIM_25) (43) [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_155) (44) [SCAL] (1) E.terminal.theta[1] = Rline_2a.terminal_n.theta[1] ($RES_SIM_143) (45) [SCAL] (1) Rline_3b.terminal_p.v[2] = R3.terminal.v[2] ($RES_SIM_108) (46) [SCAL] (1) Rline_2a.LossPower = Rline_2a.R_actual * (Rline_2a.terminal_p.i[1] ^ 2.0 + Rline_2a.terminal_p.i[2] ^ 2.0) ($RES_SIM_26) (47) [ARRY] (2) sc_load.v = sc_load.terminal.v ($RES_BND_156) (48) [SCAL] (1) E.terminal.theta[1] = Rline_3b.terminal_n.theta[1] ($RES_SIM_144) (49) [SCAL] (1) Rline_3b.terminal_p.v[1] = Rline_3a.terminal_p.v[1] ($RES_SIM_109) (50) [ARRY] (2) Rline_2a.terminal_p.v - Rline_2a.terminal_n.v = Rline_2a.terminal_p.i * $FUN_3 ($RES_SIM_27) (51) [ARRY] (2) sc_load.i = sc_load.terminal.i ($RES_BND_157) (52) [ARRY] (2) sc_load.S = {sc_load.v[1] * (-sc_load.i)[1] + sc_load.v[2] * (-sc_load.i)[2], sc_load.v[2] * (-sc_load.i)[1] - sc_load.v[1] * (-sc_load.i)[2]} ($RES_BND_158) (53) [ARRY] (2) Rline_1.terminal_p.i = -Rline_1.terminal_n.i ($RES_SIM_29) (54) [ARRY] (2) R3.terminal.v = {{R3.R, -R3.X} * R3.terminal.i, {R3.X, R3.R} * R3.terminal.i} ($RES_SIM_68) (55) [SCAL] (1) R3.X = R3.omega * R3.L ($RES_SIM_69) (56) [SCAL] (1) Rline_3b.terminal_p.v[1] = R3.terminal.v[1] ($RES_SIM_110) (57) [SCAL] (1) Rline_3b.terminal_p.theta[1] = Rline_3a.terminal_p.theta[1] ($RES_SIM_111) (58) [SCAL] (1) Rline_3b.terminal_p.theta[1] = R3.terminal.theta[1] ($RES_SIM_112) (59) [SCAL] (1) Rline_1.R_actual = ((Rline_1.M + ((-273.15) + Rline_1.T)) * Rline_1.R) / (Rline_1.M + ((-273.15) + Rline_1.T_ref)) ($RES_SIM_30) (60) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* Rline_sc.R_actual) ($RES_$AUX_164) (61) [FOR-] (2) ($RES_SIM_113) (61) [----] for $i1 in 1:2 loop (61) [----] [SCAL] (1) Rline_2b.terminal_p.i[$i1] + R2.terminal.i[$i1] = 0.0 ($RES_SIM_114) (61) [----] end for; (62) [ARRY] (4) $FUN_2 = diagonal(fill(1.0, 2) .* Rline_1.R_actual) ($RES_$AUX_163) (63) [ARRY] (1) Rline_1.terminal_p.theta = Rline_1.terminal_n.theta ($RES_SIM_32) (64) [ARRY] (4) $FUN_3 = diagonal(fill(1.0, 2) .* Rline_2a.R_actual) ($RES_$AUX_162) (65) [ARRY] (2) Rline_2b.terminal_p.v = R2.terminal.v ($RES_SIM_115) (66) [SCAL] (1) Rline_1.LossPower = Rline_1.R_actual * (Rline_1.terminal_p.i[1] ^ 2.0 + Rline_1.terminal_p.i[2] ^ 2.0) ($RES_SIM_33) (67) [ARRY] (4) $FUN_4 = diagonal(fill(1.0, 2) .* Rline_2b.R_actual) ($RES_$AUX_161) (68) [ARRY] (1) Rline_2b.terminal_p.theta = R2.terminal.theta ($RES_SIM_116) (69) [ARRY] (2) Rline_1.terminal_p.v - Rline_1.terminal_n.v = Rline_1.terminal_p.i * $FUN_2 ($RES_SIM_34) (70) [ARRY] (4) $FUN_5 = diagonal(fill(1.0, 2) .* Rline_3a.R_actual) ($RES_$AUX_160) (71) [FOR-] (2) ($RES_SIM_117) (71) [----] for $i1 in 1:2 loop (71) [----] [SCAL] (1) Rline_2a.terminal_p.i[$i1] + Rline_2b.terminal_n.i[$i1] = 0.0 ($RES_SIM_118) (71) [----] end for; (72) [SCAL] (1) R3.omega = $DER.R3.theRef ($RES_SIM_70) (73) [SCAL] (1) R3.theRef = R3.terminal.theta[1] ($RES_SIM_71) (74) [ARRY] (2) Rline_sc.terminal_p.i = -Rline_sc.terminal_n.i ($RES_SIM_36) (75) [ARRY] (2) Rline_2a.terminal_p.v = Rline_2b.terminal_n.v ($RES_SIM_119) (76) [SCAL] (1) Rline_sc.R_actual = ((Rline_sc.M + ((-273.15) + Rline_sc.T)) * Rline_sc.R) / (Rline_sc.M + ((-273.15) + Rline_sc.T_ref)) ($RES_SIM_37) (77) [ARRY] (1) Rline_sc.terminal_p.theta = Rline_sc.terminal_n.theta ($RES_SIM_39) (78) [ARRY] (4) $FUN_6 = diagonal(fill(1.0, 2) .* Rline_3b.R_actual) ($RES_$AUX_159) (79) [ARRY] (1) Rline_2a.terminal_p.theta = Rline_2b.terminal_n.theta ($RES_SIM_120) (80) [FOR-] (2) ($RES_SIM_121) (80) [----] for $i1 in 1:2 loop (80) [----] [SCAL] (1) Rline_1.terminal_p.i[$i1] + R1.terminal.i[$i1] = 0.0 ($RES_SIM_122) (80) [----] end for; (81) [SCAL] (1) Rline_sc.LossPower = Rline_sc.R_actual * (Rline_sc.terminal_p.i[1] ^ 2.0 + Rline_sc.terminal_p.i[2] ^ 2.0) ($RES_SIM_40) (82) [ARRY] (2) Rline_sc.terminal_p.v - Rline_sc.terminal_n.v = Rline_sc.terminal_p.i * $FUN_1 ($RES_SIM_41) (83) [ARRY] (2) Rline_1.terminal_p.v = R1.terminal.v ($RES_SIM_123) (84) [ARRY] (1) Rline_1.terminal_p.theta = R1.terminal.theta ($RES_SIM_124) (85) [SCAL] (1) Rline_1.terminal_n.i[2] + Rline_2a.terminal_n.i[2] + Rline_3a.terminal_n.i[2] + Rline_3b.terminal_n.i[2] + E.terminal.i[2] + Rline_sc.terminal_n.i[2] = 0.0 ($RES_SIM_125) (86) [SCAL] (1) Rline_1.terminal_n.i[1] + Rline_2a.terminal_n.i[1] + Rline_3a.terminal_n.i[1] + Rline_3b.terminal_n.i[1] + E.terminal.i[1] + Rline_sc.terminal_n.i[1] = 0.0 ($RES_SIM_126) (87) [SCAL] (1) E.terminal.v[2] = Rline_sc.terminal_n.v[2] ($RES_SIM_127) (88) [SCAL] (1) E.terminal.v[2] = Rline_1.terminal_n.v[2] ($RES_SIM_128) (89) [SCAL] (1) E.terminal.v[2] = Rline_2a.terminal_n.v[2] ($RES_SIM_129) (90) [ARRY] (2) R2.terminal.v = {{R2.R, -R2.X} * R2.terminal.i, {R2.X, R2.R} * R2.terminal.i} ($RES_SIM_83) (91) [SCAL] (1) R2.X = R2.omega * R2.L ($RES_SIM_84) (92) [SCAL] (1) R2.omega = $DER.R2.theRef ($RES_SIM_85) (93) [SCAL] (1) R2.theRef = R2.terminal.theta[1] ($RES_SIM_86) (94) [SCAL] (1) $SEV_0 = Rline_3b.R_actual >= 0.0 ($RES_EVT_165) (95) [SCAL] (1) Rline_3a.R_actual = ((Rline_3a.M + ((-273.15) + Rline_3a.T)) * Rline_3a.R) / (Rline_3a.M + ((-273.15) + Rline_3a.T_ref)) ($RES_SIM_9) (96) [SCAL] (1) $SEV_1 = Rline_3a.R_actual >= 0.0 ($RES_EVT_166) (97) [ARRY] (2) Rline_3a.terminal_p.i = -Rline_3a.terminal_n.i ($RES_SIM_8) (98) [SCAL] (1) $SEV_2 = Rline_2b.R_actual >= 0.0 ($RES_EVT_167) (99) [SCAL] (1) $SEV_3 = Rline_2a.R_actual >= 0.0 ($RES_EVT_168) (100) [ARRY] (2) Rline_3b.terminal_p.v - Rline_3b.terminal_n.v = Rline_3b.terminal_p.i * $FUN_6 ($RES_SIM_6) (101) [SCAL] (1) $SEV_4 = Rline_1.R_actual >= 0.0 ($RES_EVT_169) (102) [SCAL] (1) Rline_3b.LossPower = Rline_3b.R_actual * (Rline_3b.terminal_p.i[1] ^ 2.0 + Rline_3b.terminal_p.i[2] ^ 2.0) ($RES_SIM_5) (103) [ARRY] (1) Rline_3b.terminal_p.theta = Rline_3b.terminal_n.theta ($RES_SIM_4) (104) [SCAL] (1) Rline_3b.R_actual = ((Rline_3b.M + ((-273.15) + Rline_3b.T)) * Rline_3b.R) / (Rline_3b.M + ((-273.15) + Rline_3b.T_ref)) ($RES_SIM_2) (105) [ARRY] (2) Rline_3b.terminal_p.i = -Rline_3b.terminal_n.i ($RES_SIM_1) (106) [ARRY] (1) Rline_3a.terminal_p.theta = Rline_3a.terminal_n.theta ($RES_SIM_11) (107) [SCAL] (1) Rline_3a.LossPower = Rline_3a.R_actual * (Rline_3a.terminal_p.i[1] ^ 2.0 + Rline_3a.terminal_p.i[2] ^ 2.0) ($RES_SIM_12) (108) [SCAL] (1) E.terminal.v[2] = Rline_3a.terminal_n.v[2] ($RES_SIM_130) (109) [ARRY] (2) Rline_3a.terminal_p.v - Rline_3a.terminal_n.v = Rline_3a.terminal_p.i * $FUN_5 ($RES_SIM_13) (110) [SCAL] (1) E.terminal.v[2] = Rline_3b.terminal_n.v[2] ($RES_SIM_131)