Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.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_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 103.2 kB / 16.37 MB, free: 6.309 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.001129/0.001129, allocations: 193 kB / 17.31 MB, free: 5.891 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.335/1.335, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.772/1.772, allocations: 292.3 MB / 0.5496 GB, free: 17.42 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.624e-05, allocations: 6.078 kB / 0.6729 GB, free: 5.887 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L): time 0.007109/0.00715, allocations: 6.123 MB / 0.6788 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004464/0.01163, allocations: 3.239 MB / 0.682 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002685/0.01191, allocations: 31.81 kB / 0.682 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002063/0.01398, allocations: 0.9181 MB / 0.6829 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0008259/0.01482, allocations: 481.5 kB / 0.6834 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009471/0.01581, allocations: 0.4903 MB / 0.6839 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001039/0.01685, allocations: 1.225 MB / 0.6851 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007898/0.01765, allocations: 0.5984 MB / 0.6856 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004134/0.01808, allocations: 430.3 kB / 0.6861 GB, free: 8.301 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.01846, allocations: 366.3 kB / 0.6864 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.31e-05/0.01853, allocations: 48 kB / 0.6865 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005592/0.01909, allocations: 439 kB / 0.6869 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0007614/0.01987, allocations: 1.167 MB / 0.688 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0004378/0.02031, allocations: 0.782 MB / 0.6888 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.02043, allocations: 119.6 kB / 0.6889 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd: time 5.099e-05/0.02049, allocations: 19.94 kB / 0.6889 GB, free: 5.359 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: 177 (139) * Number of variables: 177 (130) Notification: Performance of Bindings: time 0.002491/0.02299, allocations: 3.065 MB / 0.6919 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001109/0.02311, allocations: 119.7 kB / 0.692 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001606/0.02472, allocations: 1.768 MB / 0.6937 GB, free: 228 kB / 0.5606 GB Notification: Performance of simplify1: time 0.0001159/0.02484, allocations: 131.8 kB / 0.6939 GB, free: 96 kB / 0.5606 GB Notification: Performance of Alias: time 0.00198/0.02683, allocations: 2.04 MB / 0.6959 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of simplify2: time 9.722e-05/0.02694, allocations: 119.8 kB / 0.696 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of Events: time 0.000178/0.02712, allocations: 159.7 kB / 0.6961 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of Detect States: time 0.000421/0.02755, allocations: 458.9 kB / 0.6966 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0005923/0.02815, allocations: 0.609 MB / 0.6972 GB, free: 12.31 MB / 0.5762 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency load_sc.v[2] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [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_146) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (89/136) *************************** (1) [ALGB] (2) Real[2] E.terminal.v (2) [ALGB] (1) protected Real R2.X (start = 1.0) (3) [ALGB] (2) Real[2] Lline_2b.terminal_n.v (4) [ALGB] (1) Real[1] Lline_2a.terminal_p.theta (5) [ALGB] (1) protected Real Lline_1.omega (6) [ALGB] (2) Real[2] R2.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.R2.PhaseSystem.phasePowers_vi(R2.v, -R2.i) (7) [ALGB] (1) protected Real Lline_3b.omega (8) [ALGB] (2) flow Real[2] load_sc.terminal.i (start = {0.0 for $i1 in 1:2}) (9) [ALGB] (2) Real[2] R3.terminal.v (10) [ALGB] (1) Real[1] Lline_1.terminal_p.theta (11) [DER-] (1) Real $DER.R1.theRef (12) [ALGB] (1) Real[1] load_sc.terminal.theta (13) [ALGB] (2) flow Real[2] Lline_2b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (14) [ALGB] (1) Real[1] Lline_3.terminal_n.theta (15) [DER-] (1) Real $DER.load_sc.theRef (16) [DER-] (1) Real $DER.Lline_2a.theRef (17) [ALGB] (1) Real[1] Lline_sc.terminal_p.theta (18) [ALGB] (2) Real[2] Lline_3b.terminal_p.v (19) [ALGB] (2) flow Real[2] R3.terminal.i (start = {0.0 for $i1 in 1:2}) (20) [ALGB] (2) Real[2] E.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.E.PhaseSystem.phasePowers_vi(E.terminal.v, E.terminal.i) (21) [ALGB] (2) Real[2] load_sc.v = load_sc.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.load_sc.PhaseSystem.phaseVoltages(load_sc.V_nominal, 0.0)) (22) [ALGB] (2) Real[2] Lline_2b.terminal_p.v (23) [ALGB] (2) Real[2] R3.v = R3.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.R3.PhaseSystem.phaseVoltages(R3.V_nominal, 0.0)) (24) [ALGB] (1) protected Real Lline_2b.omega (25) [DER-] (1) Real $DER.Lline_sc.theRef (26) [ALGB] (2) flow Real[2] Lline_3b.terminal_p.i (start = {0.0 for $i1 in 1:2}) (27) [DER-] (1) Real $DER.Lline_2b.theRef (28) [ALGB] (1) Real[1] E.terminal.theta (29) [ALGB] (2) Real[2] R2.terminal.v (30) [ALGB] (2) Real[2] load_sc.i = load_sc.terminal.i (start = {0.0 for $i1 in 1:2}) (31) [ALGB] (2) Real[2] Lline_3b.terminal_n.v (32) [ALGB] (2) Real[2] R3.i = R3.terminal.i (start = {0.0 for $i1 in 1:2}) (33) [ALGB] (1) protected Real Lline_3.omega (34) [ALGB] (1) Real[1] Lline_1.terminal_n.theta (35) [ALGB] (1) protected Real Lline_2a.omega (36) [ALGB] (1) Real[1] Lline_3.terminal_p.theta (37) [ALGB] (2) Real[2] R1.v = R1.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.R1.PhaseSystem.phaseVoltages(R1.V_nominal, 0.0)) (38) [ALGB] (2) flow Real[2] Lline_sc.terminal_n.i (start = {0.0 for $i1 in 1:2}) (39) [ALGB] (1) protected Real R3.omega (40) [ALGB] (1) Real[1] Lline_sc.terminal_n.theta (41) [ALGB] (2) flow Real[2] R2.terminal.i (start = {0.0 for $i1 in 1:2}) (42) [ALGB] (2) flow Real[2] Lline_3b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (43) [ALGB] (1) protected Real load_sc.X (start = 1.0) (44) [ALGB] (1) protected Real R3.X (start = 1.0) (45) [ALGB] (2) Real[2] R1.i = R1.terminal.i (start = {0.0 for $i1 in 1:2}) (46) [ALGB] (2) Real[2] Lline_sc.terminal_n.v (47) [ALGB] (2) Real[2] load_sc.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.load_sc.PhaseSystem.phasePowers_vi(load_sc.v, -load_sc.i) (48) [DER-] (1) Real $DER.Lline_3b.theRef (49) [ALGB] (2) flow Real[2] Lline_2a.terminal_n.i (start = {0.0 for $i1 in 1:2}) (50) [ALGB] (2) Real[2] R3.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.R3.PhaseSystem.phasePowers_vi(R3.v, -R3.i) (51) [ALGB] (1) protected Real R2.omega (52) [ALGB] (1) protected Real load_sc.omega (53) [DER-] (1) Real $DER.Lline_1.theRef (54) [ALGB] (2) flow Real[2] Lline_sc.terminal_p.i (start = {0.0 for $i1 in 1:2}) (55) [ALGB] (2) Real[2] R1.terminal.v (56) [ALGB] (1) Real[1] R1.terminal.theta (57) [ALGB] (2) Real[2] Lline_2a.terminal_n.v (58) [ALGB] (1) protected Real R1.X (start = 1.0) (59) [ALGB] (1) Real[1] R2.terminal.theta (60) [ALGB] (2) Real[2] Lline_sc.terminal_p.v (61) [ALGB] (2) flow Real[2] R1.terminal.i (start = {0.0 for $i1 in 1:2}) (62) [ALGB] (1) protected Real R1.omega (63) [ALGB] (2) flow Real[2] Lline_2a.terminal_p.i (start = {0.0 for $i1 in 1:2}) (64) [ALGB] (2) Real[2] R1.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.R1.PhaseSystem.phasePowers_vi(R1.v, -R1.i) (65) [ALGB] (2) flow Real[2] Lline_3.terminal_n.i (start = {0.0 for $i1 in 1:2}) (66) [ALGB] (1) Real[1] Lline_2b.terminal_p.theta (67) [ALGB] (1) Real[1] Lline_3b.terminal_p.theta (68) [ALGB] (2) flow Real[2] Lline_1.terminal_n.i (start = {0.0 for $i1 in 1:2}) (69) [ALGB] (2) Real[2] Lline_2a.terminal_p.v (70) [ALGB] (2) Real[2] Lline_3.terminal_n.v (71) [DER-] (1) Real $DER.R3.theRef (72) [ALGB] (2) Real[2] R2.v = R2.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.R2.PhaseSystem.phaseVoltages(R2.V_nominal, 0.0)) (73) [ALGB] (2) Real[2] Lline_1.terminal_n.v (74) [ALGB] (2) flow Real[2] Lline_3.terminal_p.i (start = {0.0 for $i1 in 1:2}) (75) [ALGB] (1) Real[1] Lline_2a.terminal_n.theta (76) [DER-] (1) Real $DER.Lline_3.theRef (77) [ALGB] (1) Real[1] R3.terminal.theta (78) [ALGB] (2) flow Real[2] Lline_1.terminal_p.i (start = {0.0 for $i1 in 1:2}) (79) [ALGB] (1) protected Real Lline_sc.omega (80) [ALGB] (2) Real[2] R2.i = R2.terminal.i (start = {0.0 for $i1 in 1:2}) (81) [ALGB] (2) Real[2] Lline_3.terminal_p.v (82) [ALGB] (1) Real[1] Lline_2b.terminal_n.theta (83) [ALGB] (2) flow Real[2] E.terminal.i (start = {0.0 for $i1 in 1:2}) (84) [DER-] (1) Real $DER.R2.theRef (85) [ALGB] (1) Real[1] Lline_3b.terminal_n.theta (86) [ALGB] (2) Real[2] Lline_1.terminal_p.v (87) [ALGB] (2) flow Real[2] Lline_2b.terminal_n.i (start = {0.0 for $i1 in 1:2}) (88) [ALGB] (2) Real[2] load_sc.terminal.v (89) [ALGB] (1) Real E.phi = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.E.PhaseSystem.phase(E.terminal.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_L.E.PhaseSystem.phase(-E.terminal.i) System Equations (98/136) *************************** (1) [SCAL] (1) E.terminal.theta[1] = Lline_3b.terminal_n.theta[1] ($RES_SIM_132) (2) [ARRY] (2) Lline_2a.terminal_p.i = -Lline_2a.terminal_n.i ($RES_SIM_15) (3) [ARRY] (2) load_sc.i = load_sc.terminal.i ($RES_BND_145) (4) [ARRY] (1) Lline_2a.terminal_p.theta = Lline_2a.terminal_n.theta ($RES_SIM_16) (5) [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_146) (6) [ARRY] (2) 0.013262911924324612 * Lline_2a.omega * {-Lline_2a.terminal_p.i[2], Lline_2a.terminal_p.i[1]} = Lline_2a.terminal_p.v - Lline_2a.terminal_n.v ($RES_SIM_17) (7) [SCAL] (1) Lline_2a.omega = $DER.Lline_2a.theRef ($RES_SIM_18) (8) [SCAL] (1) Lline_2a.theRef = Lline_2a.terminal_p.theta[1] ($RES_SIM_19) (9) [ARRY] (2) E.terminal.v = {E.V * cos(E.phiSou), E.V * sin(E.phiSou)} ($RES_SIM_90) (10) [ARRY] (2) R3.terminal.v = {{R3.R, -R3.X} * R3.terminal.i, {R3.X, R3.R} * R3.terminal.i} ($RES_SIM_56) (11) [SCAL] (1) E.terminal.theta[1] = 6.283185307179586 * E.f * time ($RES_SIM_92) (12) [SCAL] (1) R3.X = R3.omega * R3.L ($RES_SIM_57) (13) [SCAL] (1) Lline_3b.terminal_p.i[2] + R3.terminal.i[2] + Lline_3.terminal_p.i[2] = 0.0 ($RES_SIM_93) (14) [SCAL] (1) R3.omega = $DER.R3.theRef ($RES_SIM_58) (15) [SCAL] (1) Lline_3b.terminal_p.i[1] + R3.terminal.i[1] + Lline_3.terminal_p.i[1] = 0.0 ($RES_SIM_94) (16) [SCAL] (1) R3.theRef = R3.terminal.theta[1] ($RES_SIM_59) (17) [SCAL] (1) Lline_3b.terminal_p.v[2] = Lline_3.terminal_p.v[2] ($RES_SIM_95) (18) [SCAL] (1) Lline_3b.terminal_p.v[2] = R3.terminal.v[2] ($RES_SIM_96) (19) [SCAL] (1) Lline_3b.terminal_p.v[1] = Lline_3.terminal_p.v[1] ($RES_SIM_97) (20) [SCAL] (1) Lline_3b.terminal_p.v[1] = R3.terminal.v[1] ($RES_SIM_98) (21) [SCAL] (1) Lline_3b.terminal_p.theta[1] = Lline_3.terminal_p.theta[1] ($RES_SIM_99) (22) [SCAL] (1) Lline_3b.terminal_p.theta[1] = R3.terminal.theta[1] ($RES_SIM_100) (23) [FOR-] (2) ($RES_SIM_101) (23) [----] for $i1 in 1:2 loop (23) [----] [SCAL] (1) Lline_2b.terminal_p.i[$i1] + R2.terminal.i[$i1] = 0.0 ($RES_SIM_102) (23) [----] end for; (24) [ARRY] (2) Lline_1.terminal_p.i = -Lline_1.terminal_n.i ($RES_SIM_20) (25) [ARRY] (2) Lline_2b.terminal_p.v = R2.terminal.v ($RES_SIM_103) (26) [ARRY] (1) Lline_1.terminal_p.theta = Lline_1.terminal_n.theta ($RES_SIM_21) (27) [ARRY] (2) 0.026525823848649224 * Lline_1.omega * {-Lline_1.terminal_p.i[2], Lline_1.terminal_p.i[1]} = Lline_1.terminal_p.v - Lline_1.terminal_n.v ($RES_SIM_22) (28) [ARRY] (1) Lline_2b.terminal_p.theta = R2.terminal.theta ($RES_SIM_104) (29) [SCAL] (1) Lline_1.omega = $DER.Lline_1.theRef ($RES_SIM_23) (30) [FOR-] (2) ($RES_SIM_105) (30) [----] for $i1 in 1:2 loop (30) [----] [SCAL] (1) Lline_2a.terminal_p.i[$i1] + Lline_2b.terminal_n.i[$i1] = 0.0 ($RES_SIM_106) (30) [----] end for; (31) [SCAL] (1) Lline_1.theRef = Lline_1.terminal_p.theta[1] ($RES_SIM_24) (32) [ARRY] (2) Lline_sc.terminal_p.i = -Lline_sc.terminal_n.i ($RES_SIM_25) (33) [ARRY] (2) Lline_2a.terminal_p.v = Lline_2b.terminal_n.v ($RES_SIM_107) (34) [ARRY] (1) Lline_sc.terminal_p.theta = Lline_sc.terminal_n.theta ($RES_SIM_26) (35) [ARRY] (1) Lline_2a.terminal_p.theta = Lline_2b.terminal_n.theta ($RES_SIM_108) (36) [ARRY] (2) 0.026525823848649224 * Lline_sc.omega * {-Lline_sc.terminal_p.i[2], Lline_sc.terminal_p.i[1]} = Lline_sc.terminal_p.v - Lline_sc.terminal_n.v ($RES_SIM_27) (37) [FOR-] (2) ($RES_SIM_109) (37) [----] for $i1 in 1:2 loop (37) [----] [SCAL] (1) Lline_1.terminal_p.i[$i1] + R1.terminal.i[$i1] = 0.0 ($RES_SIM_110) (37) [----] end for; (38) [SCAL] (1) Lline_sc.omega = $DER.Lline_sc.theRef ($RES_SIM_28) (39) [SCAL] (1) Lline_sc.theRef = Lline_sc.terminal_p.theta[1] ($RES_SIM_29) (40) [ARRY] (2) Lline_1.terminal_p.v = R1.terminal.v ($RES_SIM_111) (41) [ARRY] (1) Lline_1.terminal_p.theta = R1.terminal.theta ($RES_SIM_112) (42) [SCAL] (1) Lline_1.terminal_n.i[2] + Lline_2a.terminal_n.i[2] + Lline_3.terminal_n.i[2] + Lline_3b.terminal_n.i[2] + E.terminal.i[2] + Lline_sc.terminal_n.i[2] = 0.0 ($RES_SIM_113) (43) [SCAL] (1) Lline_1.terminal_n.i[1] + Lline_2a.terminal_n.i[1] + Lline_3.terminal_n.i[1] + Lline_3b.terminal_n.i[1] + E.terminal.i[1] + Lline_sc.terminal_n.i[1] = 0.0 ($RES_SIM_114) (44) [SCAL] (1) E.terminal.v[2] = Lline_sc.terminal_n.v[2] ($RES_SIM_115) (45) [SCAL] (1) E.terminal.v[2] = Lline_1.terminal_n.v[2] ($RES_SIM_116) (46) [SCAL] (1) E.terminal.v[2] = Lline_2a.terminal_n.v[2] ($RES_SIM_117) (47) [SCAL] (1) E.terminal.v[2] = Lline_3.terminal_n.v[2] ($RES_SIM_118) (48) [ARRY] (2) R2.terminal.v = {{R2.R, -R2.X} * R2.terminal.i, {R2.X, R2.R} * R2.terminal.i} ($RES_SIM_71) (49) [SCAL] (1) E.terminal.v[2] = Lline_3b.terminal_n.v[2] ($RES_SIM_119) (50) [SCAL] (1) R2.X = R2.omega * R2.L ($RES_SIM_72) (51) [SCAL] (1) R2.omega = $DER.R2.theRef ($RES_SIM_73) (52) [SCAL] (1) R2.theRef = R2.terminal.theta[1] ($RES_SIM_74) (53) [SCAL] (1) E.terminal.v[1] = Lline_sc.terminal_n.v[1] ($RES_SIM_120) (54) [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_133) (55) [SCAL] (1) E.terminal.v[1] = Lline_1.terminal_n.v[1] ($RES_SIM_121) (56) [SCAL] (1) E.phi = atan2(E.terminal.v[2], E.terminal.v[1]) - atan2((-E.terminal.i)[2], (-E.terminal.i)[1]) ($RES_BND_134) (57) [SCAL] (1) E.terminal.v[1] = Lline_2a.terminal_n.v[1] ($RES_SIM_122) (58) [ARRY] (2) R1.v = R1.terminal.v ($RES_BND_135) (59) [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_41) (60) [SCAL] (1) E.terminal.v[1] = Lline_3.terminal_n.v[1] ($RES_SIM_123) (61) [ARRY] (2) R1.i = R1.terminal.i ($RES_BND_136) (62) [SCAL] (1) load_sc.X = load_sc.omega * load_sc.L ($RES_SIM_42) (63) [SCAL] (1) E.terminal.v[1] = Lline_3b.terminal_n.v[1] ($RES_SIM_124) (64) [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_137) (65) [SCAL] (1) load_sc.omega = $DER.load_sc.theRef ($RES_SIM_43) (66) [FOR-] (2) ($RES_SIM_125) (66) [----] for $i1 in 1:2 loop (66) [----] [SCAL] (1) Lline_sc.terminal_p.i[$i1] + load_sc.terminal.i[$i1] = 0.0 ($RES_SIM_126) (66) [----] end for; (67) [ARRY] (2) R2.v = R2.terminal.v ($RES_BND_138) (68) [SCAL] (1) load_sc.theRef = load_sc.terminal.theta[1] ($RES_SIM_44) (69) [ARRY] (2) R2.i = R2.terminal.i ($RES_BND_139) (70) [ARRY] (2) Lline_sc.terminal_p.v = load_sc.terminal.v ($RES_SIM_127) (71) [ARRY] (1) Lline_sc.terminal_p.theta = load_sc.terminal.theta ($RES_SIM_128) (72) [SCAL] (1) E.terminal.theta[1] = Lline_sc.terminal_n.theta[1] ($RES_SIM_129) (73) [ARRY] (2) R1.terminal.v = {{R1.R, -R1.X} * R1.terminal.i, {R1.X, R1.R} * R1.terminal.i} ($RES_SIM_86) (74) [SCAL] (1) R1.X = R1.omega * R1.L ($RES_SIM_87) (75) [SCAL] (1) R1.omega = $DER.R1.theRef ($RES_SIM_88) (76) [SCAL] (1) R1.theRef = R1.terminal.theta[1] ($RES_SIM_89) (77) [SCAL] (1) Lline_3.theRef = Lline_3.terminal_p.theta[1] ($RES_SIM_9) (78) [SCAL] (1) Lline_3.omega = $DER.Lline_3.theRef ($RES_SIM_8) (79) [ARRY] (2) 0.05305164769729845 * Lline_3.omega * {-Lline_3.terminal_p.i[2], Lline_3.terminal_p.i[1]} = Lline_3.terminal_p.v - Lline_3.terminal_n.v ($RES_SIM_7) (80) [ARRY] (1) Lline_3.terminal_p.theta = Lline_3.terminal_n.theta ($RES_SIM_6) (81) [ARRY] (2) Lline_3.terminal_p.i = -Lline_3.terminal_n.i ($RES_SIM_5) (82) [SCAL] (1) Lline_3b.theRef = Lline_3b.terminal_p.theta[1] ($RES_SIM_4) (83) [SCAL] (1) Lline_3b.omega = $DER.Lline_3b.theRef ($RES_SIM_3) (84) [ARRY] (2) 0.05305164769729845 * Lline_3b.omega * {-Lline_3b.terminal_p.i[2], Lline_3b.terminal_p.i[1]} = Lline_3b.terminal_p.v - Lline_3b.terminal_n.v ($RES_SIM_2) (85) [ARRY] (1) Lline_3b.terminal_p.theta = Lline_3b.terminal_n.theta ($RES_SIM_1) (86) [ARRY] (2) Lline_3b.terminal_p.i = -Lline_3b.terminal_n.i ($RES_SIM_0) (87) [ARRY] (2) Lline_2b.terminal_p.i = -Lline_2b.terminal_n.i ($RES_SIM_10) (88) [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_140) (89) [ARRY] (1) Lline_2b.terminal_p.theta = Lline_2b.terminal_n.theta ($RES_SIM_11) (90) [ARRY] (2) R3.v = R3.terminal.v ($RES_BND_141) (91) [ARRY] (2) 0.013262911924324612 * Lline_2b.omega * {-Lline_2b.terminal_p.i[2], Lline_2b.terminal_p.i[1]} = Lline_2b.terminal_p.v - Lline_2b.terminal_n.v ($RES_SIM_12) (92) [ARRY] (2) R3.i = R3.terminal.i ($RES_BND_142) (93) [SCAL] (1) E.terminal.theta[1] = Lline_1.terminal_n.theta[1] ($RES_SIM_130) (94) [SCAL] (1) Lline_2b.omega = $DER.Lline_2b.theRef ($RES_SIM_13) (95) [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_143) (96) [SCAL] (1) E.terminal.theta[1] = Lline_2a.terminal_n.theta[1] ($RES_SIM_131) (97) [SCAL] (1) Lline_2b.theRef = Lline_2b.terminal_p.theta[1] ($RES_SIM_14) (98) [ARRY] (2) load_sc.v = load_sc.terminal.v ($RES_BND_144)