Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 105.3 kB / 16.42 MB, free: 6.461 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.001287/0.001287, allocations: 192.2 kB / 17.36 MB, free: 5.73 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.298/1.298, 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 7.0.3-maint.7.0.x/package.mo): time 1.293/1.293, allocations: 251.7 MB / 0.51 GB, free: 400 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.27e-05/3.27e-05, allocations: 9.734 kB / 0.7264 GB, free: 4.723 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006933/0.006974, allocations: 5.511 MB / 0.7318 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00412/0.01111, allocations: 2.666 MB / 0.7344 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004431/0.01157, allocations: 19.88 kB / 0.7344 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.01327, allocations: 0.6827 MB / 0.7351 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001002/0.01428, allocations: 409.7 kB / 0.7354 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.01546, allocations: 418 kB / 0.7358 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001603/0.01707, allocations: 1.057 MB / 0.7369 GB, free: 9.934 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007023/0.01778, allocations: 410.6 kB / 0.7373 GB, free: 9.531 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006367/0.01843, allocations: 366.6 kB / 0.7376 GB, free: 9.172 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005501/0.01899, allocations: 318.5 kB / 0.7379 GB, free: 8.859 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.382e-05/0.01908, allocations: 44 kB / 0.738 GB, free: 8.816 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006937/0.01978, allocations: 319.3 kB / 0.7383 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of combineBinaries: time 0.0009125/0.0207, allocations: 1.016 MB / 0.7393 GB, free: 7.477 MB / 0.5762 GB Notification: Performance of replaceArrayConstructors: time 0.000584/0.0213, allocations: 0.6706 MB / 0.7399 GB, free: 6.797 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.02151, allocations: 107.6 kB / 0.74 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of FrontEnd: time 6.426e-05/0.02158, allocations: 15.94 kB / 0.74 GB, free: 6.676 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 (108) * Number of variables: 140 (104) Notification: Performance of Bindings: time 0.002528/0.02411, allocations: 2.633 MB / 0.7426 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0001685/0.02429, allocations: 127.7 kB / 0.7427 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.001498/0.02579, allocations: 1.452 MB / 0.7441 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0001611/0.02596, allocations: 115.8 kB / 0.7443 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of Alias: time 0.001804/0.02777, allocations: 1.709 MB / 0.7459 GB, free: 192 kB / 0.5762 GB Notification: Performance of simplify2: time 0.0001489/0.02793, allocations: 99.86 kB / 0.746 GB, free: 92 kB / 0.5762 GB Notification: Performance of Events: time 0.0002302/0.02817, allocations: 147.7 kB / 0.7462 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of Detect States: time 0.000439/0.02862, allocations: 391 kB / 0.7465 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.0005694/0.0292, allocations: 0.5028 MB / 0.747 GB, free: 15.02 MB / 0.5919 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency load_sc_2.X could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) load_sc_2.terminal.v = {{load_sc_2.R, -load_sc_2.X} * load_sc_2.terminal.i, {load_sc_2.X, load_sc_2.R} * load_sc_2.terminal.i} ($RES_SIM_59) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (76/121) *************************** (1) [DER-] (1) Real $DER.load_sc_1.theRef (2) [ALGB] (2) Real[2] RL_3.terminal_p.v (3) [ALGB] (2) Real[2] E.terminal.v (4) [ALGB] (2) flow Real[2] R_1.terminal_p.i (start = {0.0 for $i1 in 1:2}) (5) [ALGB] (1) Real[1] L_1.terminal_p.theta (6) [ALGB] (2) flow Real[2] load_sc_1.terminal.i (start = {0.0 for $i1 in 1:2}) (7) [ALGB] (2) Real[2] load_sc_1.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.load_sc_1.PhaseSystem.phasePowers_vi(load_sc_1.v, -load_sc_1.i) (8) [ALGB] (2) Real[2] R_1.terminal_n.v (9) [ALGB] (1) protected Real load_sc_2.omega (10) [ALGB] (1) protected Real load_sc_1.X (start = 1.0) (11) [ALGB] (1) Real[1] RL_3.terminal_n.theta (12) [ALGB] (1) Real[1] R_1.terminal_p.theta (13) [ALGB] (1) Real[1] RL_2.terminal_p.theta (14) [ALGB] (2) protected Real[2] RL_2.i_p (start = RL_2.i_start, StateSelect = prefer) (15) [DER-] (1) Real $DER.load_sc_2.theRef (16) [ALGB] (2) flow Real[2] R_1.terminal_n.i (start = {0.0 for $i1 in 1:2}) (17) [ALGB] (2) Real[2] E.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.E.PhaseSystem.phasePowers_vi(E.terminal.v, E.terminal.i) (18) [ALGB] (2) Real[2] load_sc_3.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.load_sc_3.PhaseSystem.phasePowers_vi(load_sc_3.v, -load_sc_3.i) (19) [ALGB] (1) protected Real load_sc_1.omega (20) [ALGB] (2) Real[2] load_sc_1.i = load_sc_1.terminal.i (start = {0.0 for $i1 in 1:2}) (21) [ALGB] (1) protected Real load_sc_3.X (start = 1.0) (22) [ALGB] (2) flow Real[2] RL_2.terminal_n.i (start = {0.0 for $i1 in 1:2}) (23) [ALGB] (1) Real[1] E.terminal.theta (24) [ALGB] (1) Real[1] load_sc_2.terminal.theta (25) [DER-] (1) Real $DER.load_sc_3.theRef (26) [ALGB] (2) Real[2] load_sc_1.v = load_sc_1.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.load_sc_1.PhaseSystem.phaseVoltages(load_sc_1.V_nominal, 0.0)) (27) [DER-] (2) Real[2] $DER.RL_3.i_p (28) [ALGB] (4) Real[2, 2] $FUN_3 (29) [ALGB] (4) Real[2, 2] $FUN_2 (30) [ALGB] (4) Real[2, 2] $FUN_1 (31) [DER-] (1) Real $DER.L_1.theRef (32) [ALGB] (2) Real[2] load_sc_3.i = load_sc_3.terminal.i (start = {0.0 for $i1 in 1:2}) (33) [ALGB] (2) Real[2] RL_2.terminal_n.v (34) [ALGB] (1) Real[1] RL_3.terminal_p.theta (35) [ALGB] (1) Real[1] R_1.terminal_n.theta (36) [ALGB] (2) flow Real[2] RL_2.terminal_p.i (start = {0.0 for $i1 in 1:2}) (37) [ALGB] (1) Real RL_2.R_actual (38) [ALGB] (2) Real[2] load_sc_3.v = load_sc_3.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.load_sc_3.PhaseSystem.phaseVoltages(load_sc_3.V_nominal, 0.0)) (39) [DER-] (1) Real $DER.RL_2.theRef (40) [ALGB] (2) Real[2] load_sc_3.terminal.v (41) [ALGB] (2) Real[2] L_1.terminal_p.v (42) [ALGB] (2) Real[2] RL_2.terminal_p.v (43) [ALGB] (1) Real[1] load_sc_1.terminal.theta (44) [ALGB] (1) protected Real RL_3.omega (45) [ALGB] (1) protected Real L_1.omega (46) [ALGB] (1) Real RL_3.LossPower (47) [ALGB] (2) flow Real[2] load_sc_3.terminal.i (start = {0.0 for $i1 in 1:2}) (48) [ALGB] (1) Real R_1.R_actual (49) [ALGB] (2) Real[2] load_sc_2.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.load_sc_2.PhaseSystem.phasePowers_vi(load_sc_2.v, -load_sc_2.i) (50) [ALGB] (2) flow Real[2] L_1.terminal_p.i (start = {0.0 for $i1 in 1:2}) (51) [ALGB] (1) Real R_1.LossPower (52) [ALGB] (1) protected Real load_sc_2.X (start = 1.0) (53) [DER-] (1) Real $DER.RL_3.theRef (54) [ALGB] (2) Real[2] L_1.terminal_n.v (55) [ALGB] (1) protected Real RL_2.omega (56) [ALGB] (2) Real[2] load_sc_2.terminal.v (57) [DISC] (1) Boolean $SEV_3 (58) [ALGB] (2) flow Real[2] RL_3.terminal_n.i (start = {0.0 for $i1 in 1:2}) (59) [DISC] (1) Boolean $SEV_2 (60) [DISC] (1) Boolean $SEV_1 (61) [ALGB] (1) Real[1] L_1.terminal_n.theta (62) [ALGB] (2) flow Real[2] L_1.terminal_n.i (start = {0.0 for $i1 in 1:2}) (63) [ALGB] (2) Real[2] load_sc_2.i = load_sc_2.terminal.i (start = {0.0 for $i1 in 1:2}) (64) [ALGB] (2) flow Real[2] load_sc_2.terminal.i (start = {0.0 for $i1 in 1:2}) (65) [ALGB] (2) Real[2] RL_3.terminal_n.v (66) [ALGB] (1) Real[1] load_sc_3.terminal.theta (67) [ALGB] (1) Real[1] RL_2.terminal_n.theta (68) [ALGB] (2) Real[2] load_sc_2.v = load_sc_2.terminal.v (start = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.load_sc_2.PhaseSystem.phaseVoltages(load_sc_2.V_nominal, 0.0)) (69) [ALGB] (2) flow Real[2] RL_3.terminal_p.i (start = {0.0 for $i1 in 1:2}) (70) [ALGB] (2) flow Real[2] E.terminal.i (start = {0.0 for $i1 in 1:2}) (71) [ALGB] (2) Real[2] R_1.terminal_p.v (72) [ALGB] (2) Real[2] load_sc_1.terminal.v (73) [ALGB] (1) Real RL_3.R_actual (74) [ALGB] (1) protected Real load_sc_3.omega (75) [ALGB] (1) Real E.phi = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.E.PhaseSystem.phase(E.terminal.v) - Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.E.PhaseSystem.phase(-E.terminal.i) (76) [ALGB] (1) Real RL_2.LossPower System Equations (80/121) *************************** (1) [SCAL] (1) load_sc_3.theRef = load_sc_3.terminal.theta[1] ($RES_SIM_15) (2) [SCAL] (1) RL_3.R_actual = (10.0 * (RL_3.M + ((-273.15) + RL_3.T))) / (RL_3.M + ((-273.15) + RL_3.T_ref)) ($RES_SIM_17) (3) [ARRY] (1) RL_3.terminal_p.theta = RL_3.terminal_n.theta ($RES_SIM_19) (4) [SCAL] (1) RL_2.terminal_n.i[1] + RL_3.terminal_n.i[1] + E.terminal.i[1] + R_1.terminal_n.i[1] = 0.0 ($RES_SIM_90) (5) [SCAL] (1) E.terminal.v[2] = R_1.terminal_n.v[2] ($RES_SIM_91) (6) [SCAL] (1) E.terminal.v[2] = RL_2.terminal_n.v[2] ($RES_SIM_92) (7) [SCAL] (1) E.terminal.v[2] = RL_3.terminal_n.v[2] ($RES_SIM_93) (8) [SCAL] (1) E.terminal.v[1] = R_1.terminal_n.v[1] ($RES_SIM_94) (9) [ARRY] (2) load_sc_2.terminal.v = {{load_sc_2.R, -load_sc_2.X} * load_sc_2.terminal.i, {load_sc_2.X, load_sc_2.R} * load_sc_2.terminal.i} ($RES_SIM_59) (10) [SCAL] (1) E.terminal.v[1] = RL_2.terminal_n.v[1] ($RES_SIM_95) (11) [SCAL] (1) E.terminal.v[1] = RL_3.terminal_n.v[1] ($RES_SIM_96) (12) [SCAL] (1) E.terminal.theta[1] = R_1.terminal_n.theta[1] ($RES_SIM_97) (13) [SCAL] (1) E.terminal.theta[1] = RL_2.terminal_n.theta[1] ($RES_SIM_98) (14) [SCAL] (1) E.terminal.theta[1] = RL_3.terminal_n.theta[1] ($RES_SIM_99) (15) [ARRY] (2) load_sc_1.v = load_sc_1.terminal.v ($RES_BND_110) (16) [ARRY] (2) load_sc_1.i = load_sc_1.terminal.i ($RES_BND_111) (17) [ARRY] (2) load_sc_1.S = {load_sc_1.v[1] * (-load_sc_1.i)[1] + load_sc_1.v[2] * (-load_sc_1.i)[2], load_sc_1.v[2] * (-load_sc_1.i)[1] - load_sc_1.v[1] * (-load_sc_1.i)[2]} ($RES_BND_112) (18) [FOR-] (2) ($RES_SIM_100) (18) [----] for $i1 in 1:2 loop (18) [----] [SCAL] (1) L_1.terminal_p.i[$i1] + load_sc_1.terminal.i[$i1] = 0.0 ($RES_SIM_101) (18) [----] end for; (19) [ARRY] (2) load_sc_2.v = load_sc_2.terminal.v ($RES_BND_113) (20) [ARRY] (2) load_sc_2.i = load_sc_2.terminal.i ($RES_BND_114) (21) [SCAL] (1) RL_3.LossPower = RL_3.R_actual * (RL_3.i_p[1] ^ 2.0 + RL_3.i_p[2] ^ 2.0) ($RES_SIM_20) (22) [ARRY] (2) L_1.terminal_p.v = load_sc_1.terminal.v ($RES_SIM_102) (23) [ARRY] (2) load_sc_2.S = {load_sc_2.v[1] * (-load_sc_2.i)[1] + load_sc_2.v[2] * (-load_sc_2.i)[2], load_sc_2.v[2] * (-load_sc_2.i)[1] - load_sc_2.v[1] * (-load_sc_2.i)[2]} ($RES_BND_115) (24) [ARRY] (2) 0.026525823848649224 * RL_3.omega * {-RL_3.i_p[2], RL_3.i_p[1]} + 0.026525823848649224 * $DER.RL_3.i_p + RL_3.i_p * $FUN_3 = RL_3.terminal_p.v - RL_3.terminal_n.v ($RES_SIM_21) (25) [ARRY] (1) L_1.terminal_p.theta = load_sc_1.terminal.theta ($RES_SIM_103) (26) [ARRY] (2) load_sc_3.v = load_sc_3.terminal.v ($RES_BND_116) (27) [ARRY] (2) RL_3.i_p = RL_3.terminal_p.i ($RES_SIM_22) (28) [FOR-] (2) ($RES_SIM_104) (28) [----] for $i1 in 1:2 loop (28) [----] [SCAL] (1) R_1.terminal_p.i[$i1] + L_1.terminal_n.i[$i1] = 0.0 ($RES_SIM_105) (28) [----] end for; (29) [ARRY] (2) load_sc_3.i = load_sc_3.terminal.i ($RES_BND_117) (30) [ARRY] (2) RL_3.terminal_p.i = -RL_3.terminal_n.i ($RES_SIM_23) (31) [ARRY] (2) load_sc_3.S = {load_sc_3.v[1] * (-load_sc_3.i)[1] + load_sc_3.v[2] * (-load_sc_3.i)[2], load_sc_3.v[2] * (-load_sc_3.i)[1] - load_sc_3.v[1] * (-load_sc_3.i)[2]} ($RES_BND_118) (32) [SCAL] (1) RL_3.omega = $DER.RL_3.theRef ($RES_SIM_24) (33) [ARRY] (2) R_1.terminal_p.v = L_1.terminal_n.v ($RES_SIM_106) (34) [SCAL] (1) load_sc_2.X = load_sc_2.omega * load_sc_2.L ($RES_SIM_60) (35) [SCAL] (1) RL_3.theRef = RL_3.terminal_p.theta[1] ($RES_SIM_25) (36) [ARRY] (1) R_1.terminal_p.theta = L_1.terminal_n.theta ($RES_SIM_107) (37) [SCAL] (1) load_sc_2.omega = $DER.load_sc_2.theRef ($RES_SIM_61) (38) [ARRY] (2) L_1.terminal_p.i = -L_1.terminal_n.i ($RES_SIM_26) (39) [SCAL] (1) load_sc_2.theRef = load_sc_2.terminal.theta[1] ($RES_SIM_62) (40) [ARRY] (1) L_1.terminal_p.theta = L_1.terminal_n.theta ($RES_SIM_27) (41) [ARRY] (2) 0.026525823848649224 * L_1.omega * {-L_1.terminal_p.i[2], L_1.terminal_p.i[1]} = L_1.terminal_p.v - L_1.terminal_n.v ($RES_SIM_28) (42) [SCAL] (1) L_1.omega = $DER.L_1.theRef ($RES_SIM_29) (43) [SCAL] (1) L_1.theRef = L_1.terminal_p.theta[1] ($RES_SIM_30) (44) [ARRY] (2) R_1.terminal_p.i = -R_1.terminal_n.i ($RES_SIM_32) (45) [SCAL] (1) R_1.R_actual = (10.0 * (R_1.M + ((-273.15) + R_1.T))) / (R_1.M + ((-273.15) + R_1.T_ref)) ($RES_SIM_33) (46) [ARRY] (1) R_1.terminal_p.theta = R_1.terminal_n.theta ($RES_SIM_35) (47) [SCAL] (1) R_1.LossPower = R_1.R_actual * (R_1.terminal_p.i[1] ^ 2.0 + R_1.terminal_p.i[2] ^ 2.0) ($RES_SIM_36) (48) [ARRY] (2) R_1.terminal_p.v - R_1.terminal_n.v = R_1.terminal_p.i * $FUN_2 ($RES_SIM_37) (49) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* RL_2.R_actual) ($RES_$AUX_121) (50) [ARRY] (2) load_sc_1.terminal.v = {{load_sc_1.R, -load_sc_1.X} * load_sc_1.terminal.i, {load_sc_1.X, load_sc_1.R} * load_sc_1.terminal.i} ($RES_SIM_74) (51) [SCAL] (1) RL_2.R_actual = (10.0 * (RL_2.M + ((-273.15) + RL_2.T))) / (RL_2.M + ((-273.15) + RL_2.T_ref)) ($RES_SIM_39) (52) [ARRY] (4) $FUN_2 = diagonal(fill(1.0, 2) .* R_1.R_actual) ($RES_$AUX_120) (53) [SCAL] (1) load_sc_1.X = load_sc_1.omega * load_sc_1.L ($RES_SIM_75) (54) [SCAL] (1) load_sc_1.omega = $DER.load_sc_1.theRef ($RES_SIM_76) (55) [SCAL] (1) load_sc_1.theRef = load_sc_1.terminal.theta[1] ($RES_SIM_77) (56) [ARRY] (2) E.terminal.v = {E.V * cos(E.phiSou), E.V * sin(E.phiSou)} ($RES_SIM_78) (57) [ARRY] (4) $FUN_3 = diagonal(fill(1.0, 2) .* RL_3.R_actual) ($RES_$AUX_119) (58) [ARRY] (1) RL_2.terminal_p.theta = RL_2.terminal_n.theta ($RES_SIM_41) (59) [SCAL] (1) RL_2.LossPower = RL_2.R_actual * (RL_2.i_p[1] ^ 2.0 + RL_2.i_p[2] ^ 2.0) ($RES_SIM_42) (60) [ARRY] (2) 0.026525823848649224 * RL_2.omega * {-RL_2.i_p[2], RL_2.i_p[1]} + RL_2.i_p * $FUN_1 = RL_2.terminal_p.v - RL_2.terminal_n.v ($RES_SIM_43) (61) [ARRY] (2) RL_2.i_p = RL_2.terminal_p.i ($RES_SIM_44) (62) [SCAL] (1) E.terminal.theta[1] = 6.283185307179586 * E.f * time ($RES_SIM_80) (63) [ARRY] (2) RL_2.terminal_p.i = -RL_2.terminal_n.i ($RES_SIM_45) (64) [FOR-] (2) ($RES_SIM_81) (64) [----] for $i1 in 1:2 loop (64) [----] [SCAL] (1) RL_3.terminal_p.i[$i1] + load_sc_3.terminal.i[$i1] = 0.0 ($RES_SIM_82) (64) [----] end for; (65) [SCAL] (1) RL_2.omega = $DER.RL_2.theRef ($RES_SIM_46) (66) [SCAL] (1) RL_2.theRef = RL_2.terminal_p.theta[1] ($RES_SIM_47) (67) [ARRY] (2) RL_3.terminal_p.v = load_sc_3.terminal.v ($RES_SIM_83) (68) [ARRY] (1) RL_3.terminal_p.theta = load_sc_3.terminal.theta ($RES_SIM_84) (69) [FOR-] (2) ($RES_SIM_85) (69) [----] for $i1 in 1:2 loop (69) [----] [SCAL] (1) RL_2.terminal_p.i[$i1] + load_sc_2.terminal.i[$i1] = 0.0 ($RES_SIM_86) (69) [----] end for; (70) [SCAL] (1) $SEV_1 = RL_3.R_actual >= 0.0 ($RES_EVT_123) (71) [SCAL] (1) $SEV_2 = R_1.R_actual >= 0.0 ($RES_EVT_124) (72) [ARRY] (2) RL_2.terminal_p.v = load_sc_2.terminal.v ($RES_SIM_87) (73) [SCAL] (1) $SEV_3 = RL_2.R_actual >= 0.0 ($RES_EVT_125) (74) [ARRY] (1) RL_2.terminal_p.theta = load_sc_2.terminal.theta ($RES_SIM_88) (75) [SCAL] (1) RL_2.terminal_n.i[2] + RL_3.terminal_n.i[2] + E.terminal.i[2] + R_1.terminal_n.i[2] = 0.0 ($RES_SIM_89) (76) [ARRY] (2) load_sc_3.terminal.v = {{load_sc_3.R, -load_sc_3.X} * load_sc_3.terminal.i, {load_sc_3.X, load_sc_3.R} * load_sc_3.terminal.i} ($RES_SIM_12) (77) [SCAL] (1) load_sc_3.X = load_sc_3.omega * load_sc_3.L ($RES_SIM_13) (78) [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_108) (79) [SCAL] (1) load_sc_3.omega = $DER.load_sc_3.theRef ($RES_SIM_14) (80) [SCAL] (1) E.phi = atan2(E.terminal.v[2], E.terminal.v[1]) - atan2((-E.terminal.i)[2], (-E.terminal.i)[1]) ($RES_BND_109)