Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.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.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.OnePhase.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.001178/0.001178, 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.001042/0.001042, 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.395/1.395, 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.766/1.766, allocations: 292.3 MB / 0.5496 GB, free: 17.5 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.207e-05/3.208e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.887 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.00891/0.008962, allocations: 6.072 MB / 0.6788 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004931/0.01392, allocations: 3.208 MB / 0.6819 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003761/0.01431, allocations: 27.81 kB / 0.6819 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.01654, allocations: 0.9182 MB / 0.6828 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001068/0.01762, allocations: 477.5 kB / 0.6833 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.01878, allocations: 486.3 kB / 0.6838 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001143/0.01994, allocations: 1.225 MB / 0.685 GB, free: 9.445 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008444/0.02079, allocations: 0.5984 MB / 0.6855 GB, free: 8.832 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004622/0.02126, allocations: 422.4 kB / 0.6859 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.02166, allocations: 358.3 kB / 0.6863 GB, free: 8.066 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.474e-05/0.02173, allocations: 48 kB / 0.6863 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007006/0.02244, allocations: 435 kB / 0.6867 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0008396/0.02329, allocations: 1.167 MB / 0.6879 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0004722/0.02377, allocations: 0.7515 MB / 0.6886 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.0239, allocations: 119.6 kB / 0.6887 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of FrontEnd: time 8.145e-05/0.02399, allocations: 23.88 kB / 0.6888 GB, free: 5.512 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.002615/0.02661, allocations: 3.057 MB / 0.6917 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001429/0.02676, allocations: 111.8 kB / 0.6919 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001724/0.02849, allocations: 1.772 MB / 0.6936 GB, free: 396 kB / 0.5606 GB Notification: Performance of simplify1: time 0.0001232/0.02862, allocations: 135.8 kB / 0.6937 GB, free: 260 kB / 0.5606 GB Notification: Performance of Alias: time 0.002184/0.03081, allocations: 2.036 MB / 0.6957 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of simplify2: time 0.000107/0.03093, allocations: 119.8 kB / 0.6958 GB, free: 13.74 MB / 0.5762 GB Notification: Performance of Events: time 0.0001986/0.03114, allocations: 155.7 kB / 0.696 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of Detect States: time 0.0005656/0.03171, allocations: 451.5 kB / 0.6964 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of Partitioning: time 0.0006634/0.03238, allocations: 0.6168 MB / 0.697 GB, free: 12.48 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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.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.OnePhase.Lines.Examples.ACLine_L.E.PhaseSystem.phase(E.terminal.v) - Buildings.Electrical.AC.OnePhase.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)