Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false)
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 3.0.0/package.mo", uses=false)
Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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)
Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo)
Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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_3.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL")
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8:
"
An important practical aspect of state machines is the abilit...".
Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
To change it in a package: add a file package.encoding at the top-level.
Note: The Modelica Language Specification only allows files encoded in UTF-8.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8:
"
The Modelica_StateGraph2 library is described in detail in (O...".
Defaulting to 7-bit ASCII with unknown characters replaced by '?'.
To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY").
To change it in a package: add a file package.encoding at the top-level.
Note: The Modelica Language Specification only allows files encoded in UTF-8.
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8:
"
- Main Authors:
-
SCode: time 1.987e-05/1.986e-05, allocations: 3.266 kB / 0.5923 GB, free: 5.52 MB / 446.1 MB
Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006303/0.006332, allocations: 5.43 MB / 0.5976 GB, free: 64 kB / 446.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004181/0.01053, allocations: 2.798 MB / 0.6003 GB, free: 13.25 MB / 462.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002565/0.0108, allocations: 23.88 kB / 0.6003 GB, free: 13.23 MB / 462.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001632/0.01244, allocations: 0.669 MB / 0.601 GB, free: 12.55 MB / 462.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0008298/0.01327, allocations: 445.7 kB / 0.6014 GB, free: 12.12 MB / 462.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008093/0.01412, allocations: 406.7 kB / 0.6018 GB, free: 11.72 MB / 462.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009259/0.01506, allocations: 1.026 MB / 0.6028 GB, free: 10.7 MB / 462.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005499/0.01562, allocations: 414.6 kB / 0.6032 GB, free: 10.29 MB / 462.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003679/0.01599, allocations: 358.5 kB / 0.6035 GB, free: 9.941 MB / 462.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004007/0.0164, allocations: 322.5 kB / 0.6038 GB, free: 9.625 MB / 462.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.371e-05/0.01647, allocations: 40 kB / 0.6039 GB, free: 9.586 MB / 462.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004926/0.01697, allocations: 323.3 kB / 0.6042 GB, free: 9.27 MB / 462.1 MB
Notification: Performance of combineBinaries: time 0.0006507/0.01763, allocations: 0.9659 MB / 0.6051 GB, free: 8.293 MB / 462.1 MB
Notification: Performance of replaceArrayConstructors: time 0.0003727/0.01801, allocations: 0.6436 MB / 0.6057 GB, free: 7.641 MB / 462.1 MB
Notification: Performance of NFVerifyModel.verify: time 9.273e-05/0.01811, allocations: 99.62 kB / 0.6058 GB, free: 7.543 MB / 462.1 MB
Notification: Performance of FrontEnd: time 5.452e-05/0.01817, allocations: 19.94 kB / 0.6059 GB, free: 7.523 MB / 462.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
* Number of equations: 134 (102)
* Number of variables: 134 (98)
Notification: Performance of Bindings: time 0.002136/0.02031, allocations: 2.527 MB / 0.6083 GB, free: 4.875 MB / 462.1 MB
Notification: Performance of FunctionAlias: time 0.0001583/0.02047, allocations: 123.7 kB / 0.6084 GB, free: 4.754 MB / 462.1 MB
Notification: Performance of Early Inline: time 0.001358/0.02184, allocations: 1.416 MB / 0.6098 GB, free: 3.309 MB / 462.1 MB
Notification: Performance of simplify1: time 0.0001029/0.02195, allocations: 107.8 kB / 0.6099 GB, free: 3.203 MB / 462.1 MB
Notification: Performance of Alias: time 0.001713/0.02367, allocations: 1.674 MB / 0.6116 GB, free: 1.227 MB / 462.1 MB
Notification: Performance of simplify2: time 9.544e-05/0.02378, allocations: 99.86 kB / 0.6117 GB, free: 1.129 MB / 462.1 MB
Notification: Performance of Events: time 0.0001942/0.02398, allocations: 147.6 kB / 0.6118 GB, free: 0.9844 MB / 462.1 MB
Notification: Performance of Detect States: time 0.0004164/0.0244, allocations: 374.3 kB / 0.6122 GB, free: 0.6016 MB / 462.1 MB
Notification: Performance of Partitioning: time 0.0004855/0.0249, allocations: 482.2 kB / 0.6126 GB, free: 100 kB / 462.1 MB
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_55)
Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system:
System Variables (70/115)
***************************
(1) [ALGB] (2) Real[2] RL_3.terminal_p.v
(2) [ALGB] (2) Real[2] E.terminal.v
(3) [ALGB] (2) flow Real[2] R_1.terminal_p.i
(4) [ALGB] (2) flow Real[2] load_sc_1.terminal.i
(5) [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)
(6) [ALGB] (2) Real[2] R_1.terminal_n.v
(7) [ALGB] (1) protected Real load_sc_2.omega
(8) [ALGB] (1) protected Real load_sc_1.X (start = 1.0)
(9) [ALGB] (1) Real[1] RL_3.terminal_n.theta
(10) [ALGB] (1) Real[1] R_1.terminal_p.theta
(11) [ALGB] (2) protected Real[2] RL_2.i_p (start = RL_2.i_start, StateSelect = prefer)
(12) [ALGB] (2) flow Real[2] R_1.terminal_n.i
(13) [ALGB] (2) Real[2] E.S = Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.E.PhaseSystem.phasePowers_vi(E.terminal.v, E.terminal.i)
(14) [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)
(15) [ALGB] (1) protected Real load_sc_1.omega
(16) [ALGB] (2) Real[2] load_sc_1.i = load_sc_1.terminal.i (start = {0.0, 0.0})
(17) [ALGB] (1) protected Real load_sc_3.X (start = 1.0)
(18) [ALGB] (2) flow Real[2] RL_2.terminal_n.i
(19) [ALGB] (1) Real[1] E.terminal.theta
(20) [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))
(21) [DER-] (2) Real[2] $DER.RL_3.i_p
(22) [DER-] (1) Real[1] $DER.load_sc_2.terminal.theta
(23) [ALGB] (4) Real[2, 2] $FUN_3
(24) [ALGB] (4) Real[2, 2] $FUN_2
(25) [ALGB] (4) Real[2, 2] $FUN_1
(26) [ALGB] (2) Real[2] load_sc_3.i = load_sc_3.terminal.i (start = {0.0, 0.0})
(27) [ALGB] (2) Real[2] RL_2.terminal_n.v
(28) [ALGB] (1) Real[1] R_1.terminal_n.theta
(29) [ALGB] (2) flow Real[2] RL_2.terminal_p.i
(30) [ALGB] (1) Real RL_2.R_actual
(31) [DER-] (1) Real[1] $DER.RL_2.terminal_p.theta
(32) [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))
(33) [ALGB] (2) Real[2] load_sc_3.terminal.v
(34) [ALGB] (2) Real[2] L_1.terminal_p.v
(35) [ALGB] (2) Real[2] RL_2.terminal_p.v
(36) [ALGB] (1) protected Real RL_3.omega
(37) [ALGB] (1) protected Real L_1.omega
(38) [DER-] (1) Real[1] $DER.load_sc_1.terminal.theta
(39) [ALGB] (1) Real RL_3.LossPower
(40) [ALGB] (2) flow Real[2] load_sc_3.terminal.i
(41) [ALGB] (1) Real R_1.R_actual
(42) [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)
(43) [ALGB] (2) flow Real[2] L_1.terminal_p.i
(44) [ALGB] (1) Real R_1.LossPower
(45) [ALGB] (1) protected Real load_sc_2.X (start = 1.0)
(46) [ALGB] (2) Real[2] L_1.terminal_n.v
(47) [ALGB] (1) protected Real RL_2.omega
(48) [DER-] (1) Real[1] $DER.RL_3.terminal_p.theta
(49) [ALGB] (2) Real[2] load_sc_2.terminal.v
(50) [DER-] (1) Real[1] $DER.L_1.terminal_p.theta
(51) [DISC] (1) Boolean $SEV_3
(52) [ALGB] (2) flow Real[2] RL_3.terminal_n.i
(53) [DISC] (1) Boolean $SEV_2
(54) [DISC] (1) Boolean $SEV_1
(55) [ALGB] (1) Real[1] L_1.terminal_n.theta
(56) [ALGB] (2) flow Real[2] L_1.terminal_n.i
(57) [ALGB] (2) Real[2] load_sc_2.i = load_sc_2.terminal.i (start = {0.0, 0.0})
(58) [ALGB] (2) flow Real[2] load_sc_2.terminal.i
(59) [ALGB] (2) Real[2] RL_3.terminal_n.v
(60) [DER-] (1) Real[1] $DER.load_sc_3.terminal.theta
(61) [ALGB] (1) Real[1] RL_2.terminal_n.theta
(62) [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))
(63) [ALGB] (2) flow Real[2] RL_3.terminal_p.i
(64) [ALGB] (2) flow Real[2] E.terminal.i
(65) [ALGB] (2) Real[2] R_1.terminal_p.v
(66) [ALGB] (2) Real[2] load_sc_1.terminal.v
(67) [ALGB] (1) Real RL_3.R_actual
(68) [ALGB] (1) protected Real load_sc_3.omega
(69) [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)
(70) [ALGB] (1) Real RL_2.LossPower
System Equations (74/115)
***************************
(1) [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_16)
(2) [ARRY] (1) RL_3.terminal_p.theta = RL_3.terminal_n.theta ($RES_SIM_18)
(3) [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_19)
(4) [SCAL] (1) E.terminal.v[1] = RL_3.terminal_n.v[1] ($RES_SIM_90)
(5) [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_55)
(6) [SCAL] (1) E.terminal.theta[1] = R_1.terminal_n.theta[1] ($RES_SIM_91)
(7) [SCAL] (1) load_sc_2.X = load_sc_2.omega * load_sc_2.L ($RES_SIM_56)
(8) [SCAL] (1) E.terminal.theta[1] = RL_2.terminal_n.theta[1] ($RES_SIM_92)
(9) [SCAL] (1) load_sc_2.omega = $DER.load_sc_2.terminal.theta[1] ($RES_SIM_57)
(10) [SCAL] (1) E.terminal.theta[1] = RL_3.terminal_n.theta[1] ($RES_SIM_93)
(11) [FOR-] (2) ($RES_SIM_94)
(11) [----] for $i1 in 1:2 loop
(11) [----] [SCAL] (1) L_1.terminal_p.i[$i1] + load_sc_1.terminal.i[$i1] = 0.0 ($RES_SIM_95)
(11) [----] end for;
(12) [ARRY] (2) L_1.terminal_p.v = load_sc_1.terminal.v ($RES_SIM_96)
(13) [ARRY] (1) L_1.terminal_p.theta = load_sc_1.terminal.theta ($RES_SIM_97)
(14) [FOR-] (2) ($RES_SIM_98)
(14) [----] for $i1 in 1:2 loop
(14) [----] [SCAL] (1) R_1.terminal_p.i[$i1] + L_1.terminal_n.i[$i1] = 0.0 ($RES_SIM_99)
(14) [----] end for;
(15) [ARRY] (2) load_sc_3.v = load_sc_3.terminal.v ($RES_BND_110)
(16) [ARRY] (2) load_sc_3.i = load_sc_3.terminal.i ($RES_BND_111)
(17) [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_112)
(18) [ARRY] (2) R_1.terminal_p.v = L_1.terminal_n.v ($RES_SIM_100)
(19) [ARRY] (1) R_1.terminal_p.theta = L_1.terminal_n.theta ($RES_SIM_101)
(20) [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_20)
(21) [ARRY] (2) RL_3.i_p = RL_3.terminal_p.i ($RES_SIM_21)
(22) [ARRY] (2) RL_3.terminal_p.i = -RL_3.terminal_n.i ($RES_SIM_22)
(23) [SCAL] (1) RL_3.omega = $DER.RL_3.terminal_p.theta[1] ($RES_SIM_23)
(24) [ARRY] (2) L_1.terminal_p.i = -L_1.terminal_n.i ($RES_SIM_24)
(25) [ARRY] (1) L_1.terminal_p.theta = L_1.terminal_n.theta ($RES_SIM_25)
(26) [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_26)
(27) [SCAL] (1) L_1.omega = $DER.L_1.terminal_p.theta[1] ($RES_SIM_27)
(28) [ARRY] (2) R_1.terminal_p.i = -R_1.terminal_n.i ($RES_SIM_29)
(29) [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_69)
(30) [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_30)
(31) [ARRY] (1) R_1.terminal_p.theta = R_1.terminal_n.theta ($RES_SIM_32)
(32) [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_33)
(33) [ARRY] (2) R_1.terminal_p.v - R_1.terminal_n.v = R_1.terminal_p.i * $FUN_2 ($RES_SIM_34)
(34) [SCAL] (1) load_sc_1.X = load_sc_1.omega * load_sc_1.L ($RES_SIM_70)
(35) [SCAL] (1) load_sc_1.omega = $DER.load_sc_1.terminal.theta[1] ($RES_SIM_71)
(36) [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_36)
(37) [ARRY] (2) E.terminal.v = {E.V * cos(E.phiSou), E.V * sin(E.phiSou)} ($RES_SIM_72)
(38) [ARRY] (1) RL_2.terminal_p.theta = RL_2.terminal_n.theta ($RES_SIM_38)
(39) [SCAL] (1) E.terminal.theta[1] = 6.283185307179586 * E.f * time ($RES_SIM_74)
(40) [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_39)
(41) [FOR-] (2) ($RES_SIM_75)
(41) [----] for $i1 in 1:2 loop
(41) [----] [SCAL] (1) RL_3.terminal_p.i[$i1] + load_sc_3.terminal.i[$i1] = 0.0 ($RES_SIM_76)
(41) [----] end for;
(42) [ARRY] (2) RL_3.terminal_p.v = load_sc_3.terminal.v ($RES_SIM_77)
(43) [ARRY] (1) RL_3.terminal_p.theta = load_sc_3.terminal.theta ($RES_SIM_78)
(44) [FOR-] (2) ($RES_SIM_79)
(44) [----] for $i1 in 1:2 loop
(44) [----] [SCAL] (1) RL_2.terminal_p.i[$i1] + load_sc_2.terminal.i[$i1] = 0.0 ($RES_SIM_80)
(44) [----] end for;
(45) [SCAL] (1) $SEV_1 = RL_3.R_actual >= 0.0 ($RES_EVT_117)
(46) [SCAL] (1) $SEV_2 = R_1.R_actual >= 0.0 ($RES_EVT_118)
(47) [SCAL] (1) $SEV_3 = RL_2.R_actual >= 0.0 ($RES_EVT_119)
(48) [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_40)
(49) [ARRY] (2) RL_2.i_p = RL_2.terminal_p.i ($RES_SIM_41)
(50) [ARRY] (2) RL_2.terminal_p.i = -RL_2.terminal_n.i ($RES_SIM_42)
(51) [SCAL] (1) RL_2.omega = $DER.RL_2.terminal_p.theta[1] ($RES_SIM_43)
(52) [ARRY] (4) $FUN_1 = diagonal(fill(1.0, 2) .* RL_2.R_actual) ($RES_$AUX_115)
(53) [ARRY] (4) $FUN_2 = diagonal(fill(1.0, 2) .* R_1.R_actual) ($RES_$AUX_114)
(54) [ARRY] (2) RL_2.terminal_p.v = load_sc_2.terminal.v ($RES_SIM_81)
(55) [ARRY] (4) $FUN_3 = diagonal(fill(1.0, 2) .* RL_3.R_actual) ($RES_$AUX_113)
(56) [ARRY] (1) RL_2.terminal_p.theta = load_sc_2.terminal.theta ($RES_SIM_82)
(57) [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_83)
(58) [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_84)
(59) [SCAL] (1) E.terminal.v[2] = R_1.terminal_n.v[2] ($RES_SIM_85)
(60) [SCAL] (1) E.terminal.v[2] = RL_2.terminal_n.v[2] ($RES_SIM_86)
(61) [SCAL] (1) E.terminal.v[2] = RL_3.terminal_n.v[2] ($RES_SIM_87)
(62) [SCAL] (1) E.terminal.v[1] = R_1.terminal_n.v[1] ($RES_SIM_88)
(63) [SCAL] (1) E.terminal.v[1] = RL_2.terminal_n.v[1] ($RES_SIM_89)
(64) [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_102)
(65) [SCAL] (1) E.phi = atan2(E.terminal.v[2], E.terminal.v[1]) - atan2((-E.terminal.i)[2], (-E.terminal.i)[1]) ($RES_BND_103)
(66) [ARRY] (2) load_sc_1.v = load_sc_1.terminal.v ($RES_BND_104)
(67) [ARRY] (2) load_sc_1.i = load_sc_1.terminal.i ($RES_BND_105)
(68) [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_106)
(69) [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)
(70) [ARRY] (2) load_sc_2.v = load_sc_2.terminal.v ($RES_BND_107)
(71) [ARRY] (2) load_sc_2.i = load_sc_2.terminal.i ($RES_BND_108)
(72) [SCAL] (1) load_sc_3.X = load_sc_3.omega * load_sc_3.L ($RES_SIM_13)
(73) [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_109)
(74) [SCAL] (1) load_sc_3.omega = $DER.load_sc_3.terminal.theta[1] ($RES_SIM_14)