Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 105.5 kB / 17.69 MB, free: 5.523 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.001201/0.001201, allocations: 192.7 kB / 18.63 MB, free: 4.59 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.584/1.584, allocations: 205.1 MB / 224.5 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1736/0.1736, allocations: 37.99 MB / 309.8 MB, free: 5.984 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.055e-05/3.057e-05, allocations: 2.281 kB / 376.7 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.2297/0.2297, allocations: 6.484 MB / 383.2 MB, free: 59.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.2332, allocations: 1.92 MB / 385.1 MB, free: 58.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003703/0.2336, allocations: 27.06 kB / 385.1 MB, free: 58.35 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.2349, allocations: 440.8 kB / 385.6 MB, free: 58.26 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.2361, allocations: 422.4 kB / 386 MB, free: 58.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.2372, allocations: 342.4 kB / 386.3 MB, free: 58.15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.2388, allocations: 1.164 MB / 387.5 MB, free: 58.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000822/0.2396, allocations: 353.7 kB / 387.8 MB, free: 58.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008011/0.2404, allocations: 449.8 kB / 388.3 MB, free: 57.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006606/0.2411, allocations: 398.1 kB / 388.7 MB, free: 57.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.101e-05/0.2412, allocations: 41.5 kB / 388.7 MB, free: 57.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006505/0.2419, allocations: 243.4 kB / 388.9 MB, free: 57.83 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0008995/0.2428, allocations: 1.021 MB / 390 MB, free: 57.27 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005077/0.2433, allocations: 0.683 MB / 390.6 MB, free: 56.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001496/0.2435, allocations: 98.12 kB / 390.7 MB, free: 56.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 0.000108/0.2436, allocations: 22 kB / 390.8 MB, free: 56.82 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 (107) * Number of variables: 188 (105) Notification: Performance of Bindings: time 0.002801/0.2464, allocations: 2.747 MB / 393.5 MB, free: 54.99 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0003935/0.2468, allocations: 239.5 kB / 393.7 MB, free: 54.86 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001884/0.2487, allocations: 1.49 MB / 395.2 MB, free: 53.98 MB / 318.1 MB Notification: Performance of simplify1: time 0.0001909/0.2489, allocations: 126.1 kB / 395.4 MB, free: 53.93 MB / 318.1 MB Notification: Performance of Alias: time 0.00213/0.251, allocations: 1.579 MB / 396.9 MB, free: 52.85 MB / 318.1 MB Notification: Performance of simplify2: time 0.0001305/0.2512, allocations: 107.1 kB / 397 MB, free: 52.8 MB / 318.1 MB Notification: Performance of Events: time 0.0001487/0.2513, allocations: 104.9 kB / 397.1 MB, free: 52.74 MB / 318.1 MB Notification: Performance of Detect States: time 0.0005103/0.2518, allocations: 374.4 kB / 397.5 MB, free: 52.5 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0007047/0.2526, allocations: 0.5168 MB / 398 MB, free: 52.24 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency system.thetaRef could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) inverter.AC.theta = {0.0, system.thetaRef} ($RES_SIM_52) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (88/182) *************************** (1) [ALGB] (3) flow Real[3] inverter.AC.i (nominal = {1.0 for $i1 in 1:3}) (2) [ALGB] (9) protected Real[3, 3] meterAC.Park (3) [ALGB] (1) protected Real vAC.phi (4) [DER-] (2) Real[2] $DER.ind.term_p.theta (5) [ALGB] (1) Real $FUN_16 (6) [ALGB] (1) Real $FUN_15 (7) [ALGB] (1) Real $FUN_14 (8) [ALGB] (3) Real[3] meterAC.v (StateSelect = never) (9) [ALGB] (4) Real[2, 2] $FUN_13 (10) [ALGB] (2) protected Real[2] ind.omega (11) [ALGB] (9) Real[3, 3] $FUN_12 (12) [ALGB] (1) Real meterDC.v0 (StateSelect = never) (13) [ALGB] (2) Real[2] vDC.term.v (nominal = {1000.0 for $i1 in 1:2}) (14) [ALGB] (1) protected Real inverter.vDC1 = 0.5 * (inverter.DC.v[1] - inverter.DC.v[2]) (nominal = 1000.0) (15) [ALGB] (1) protected Real inverter.vDC0 = 0.5 * (inverter.DC.v[2] + inverter.DC.v[1]) (nominal = 1000.0) (16) [ALGB] (2) flow Real[2] inverter.DC.i (nominal = {1.0 for $i1 in 1:2}) (17) [ALGB] (3) Real[3] meterAC.p (StateSelect = never) (18) [ALGB] (1) protected Real inverter.phi (19) [ALGB] (1) Real meterDC.v (StateSelect = never) (20) [ALGB] (3) Real[3] meterAC.i (StateSelect = never) (21) [ALGB] (2) flow Real[2] vDC.term.i (nominal = {1.0 for $i1 in 1:2}) (22) [ALGB] (1) protected Real[1] inverter.Q_flow (23) [ALGB] (1) Real meterDC.p (StateSelect = never) (24) [ALGB] (2) Real[2] inverter.vPhasor (25) [ALGB] (1) Real meterAC.alpha_v (StateSelect = never) (26) [ALGB] (1) Real meterDC.i (StateSelect = never) (27) [DER-] (3) Real[3] $DER.ind.i (28) [ALGB] (3) Real[3] ind.v (start = ind.v_start, nominal = {1000.0 for $i1 in 1:3}) (29) [ALGB] (1) Real $FUN_6 (30) [ALGB] (1) flow Real[1] inverter.heat.ports.Q_flow (31) [ALGB] (2) Real[2] vAC.term.theta (32) [ALGB] (1) Real $FUN_5 (33) [ALGB] (3) protected Real[3] inverter.v_dq0 (34) [ALGB] (1) Real $FUN_4 (35) [ALGB] (1) Real meterAC.alpha_i (StateSelect = never) (36) [ALGB] (3) Real[3] meterAC.v_abc = transpose(meterAC.Park) * meterAC.v (StateSelect = never) (37) [ALGB] (1) Real $FUN_3 (38) [ALGB] (3) flow Real[3] ind.term_n.i (nominal = {1.0 for $i1 in 1:3}) (39) [ALGB] (1) protected Real inverter.iAC2 (40) [ALGB] (1) flow Real vAC.neutral.i (41) [ALGB] (2) Real[2] ind.term_n.theta (42) [DER-] (3) Real[3] $DER.meterAC.pav (43) [ALGB] (1) protected Real vDC.v (nominal = 1000.0) (44) [ALGB] (1) Real meterDC.i0 (StateSelect = never) (45) [ALGB] (3) Real[3] ind.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (46) [ALGB] (3) flow Real[3] ind.term_p.i (nominal = {1.0 for $i1 in 1:3}) (47) [ALGB] (3) Real[3] meterAC.p_av = meterAC.pav (48) [ALGB] (3) flow Real[3] meterAC.term_n.i (nominal = {1.0 for $i1 in 1:3}) (49) [ALGB] (1) Real meterAC.i_norm (StateSelect = never) (50) [ALGB] (2) Real[2] meterAC.vpp (StateSelect = never) (51) [ALGB] (2) protected Real[2] meterDC.v_ab (52) [ALGB] (1) protected Real inverter.Vloss (nominal = 1000.0) (53) [ALGB] (1) protected Real vAC.alpha (54) [ALGB] (1) protected Real vAC.V (nominal = 1000.0) (55) [ALGB] (3) Real[3] ind.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (56) [ALGB] (2) Real[2] meterAC.term_n.theta (57) [ALGB] (1) Real vDC.neutral.v (58) [ALGB] (3) Real[3] meterAC.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (59) [ALGB] (1) protected Real inverter.iDC1 = inverter.DC.i[1] - inverter.DC.i[2] (nominal = 1.0) (60) [ALGB] (2) flow Real[2] meterDC.term_n.i (nominal = {1.0 for $i1 in 1:2}) (61) [ALGB] (3) Real[3] vAC.term.v (nominal = {1000.0 for $i1 in 1:3}) (62) [ALGB] (1) protected Real inverter.iDC0 = inverter.DC.i[1] + inverter.DC.i[2] (nominal = 1.0) (63) [ALGB] (1) Real meterAC.v_norm (StateSelect = never) (64) [ALGB] (1) Real system.thetaRef = system.thetaRef (65) [ALGB] (3) flow Real[3] meterAC.term_p.i (nominal = {1.0 for $i1 in 1:3}) (66) [ALGB] (1) flow Real[1] bdCond.heat.ports.Q_flow (67) [ALGB] (2) protected Real[2] select.vPhasor_internal (68) [ALGB] (1) Real system.thetaRel = system.thetaRef - system.thetaRef (69) [ALGB] (2) Real[2] meterDC.term_n.v (nominal = {1000.0 for $i1 in 1:2}) (70) [ALGB] (3) flow Real[3] vAC.term.i (nominal = {1.0 for $i1 in 1:3}) (71) [ALGB] (3) Real[3] meterAC.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (72) [ALGB] (2) flow Real[2] meterDC.term_p.i (nominal = {1.0 for $i1 in 1:2}) (73) [ALGB] (4) protected Real[2, 2] meterAC.Rot_dq (74) [ALGB] (2) Real[2] select.vPhasor_in (75) [ALGB] (3) Real[3] meterAC.i_abc = transpose(meterAC.Park) * meterAC.i (StateSelect = never) (76) [ALGB] (2) Real[2] inverter.AC.theta (77) [ALGB] (1) Real meterAC.cos_phi (StateSelect = never) (78) [ALGB] (2) Real[2] meterAC.term_p.theta (79) [DER-] (1) Real $DER.meterDC.p_av (80) [ALGB] (3) Real[3] meterAC.vpp_abc = PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.meterAC.v2vpp_abc(transpose(meterAC.Park) * meterAC.v) (StateSelect = never) (81) [ALGB] (3) Real[3] inverter.AC.v (nominal = {1000.0 for $i1 in 1:3}) (82) [ALGB] (2) protected Real[2] vAC.vPhasor_internal (83) [ALGB] (2) Real[2] meterDC.term_p.v (nominal = {1000.0 for $i1 in 1:2}) (84) [ALGB] (2) Real[2] vCtrl.y (85) [ALGB] (3) protected Real[3] inverter.switch_dq0 (86) [ALGB] (2) protected Real[2] meterDC.i_ab (87) [ALGB] (2) Real[2] select.vPhasor_out (88) [ALGB] (2) Real[2] inverter.DC.v (nominal = {1000.0 for $i1 in 1:2}) System Equations (90/182) *************************** (1) [SCAL] (1) inverter.iAC2 = inverter.AC.i * inverter.AC.i ($RES_SIM_50) (2) [ARRY] (3) ind.term_p.i + ind.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_15) (3) [ARRY] (3) ind.i = ind.term_p.i ($RES_SIM_16) (4) [ARRY] (2) inverter.AC.theta = {0.0, system.thetaRef} ($RES_SIM_52) (5) [ARRY] (3) ind.v = ind.term_p.v - ind.term_n.v ($RES_SIM_17) (6) [ARRY] (2) meterDC.term_p.i + meterDC.term_n.i = {0.0 for $i1 in 1:2} ($RES_SIM_53) (7) [ARRY] (2) ind.omega = $DER.ind.term_p.theta ($RES_SIM_18) (8) [ARRY] (2) meterDC.term_p.v = meterDC.term_n.v ($RES_SIM_54) (9) [ARRY] (3) ind.omega[2] * ind.L * {-ind.i[2], ind.i[1], 0.0} + {ind.L, ind.L, ind.L0} * $DER.ind.i + ind.R * ind.i = ind.v ($RES_SIM_19) (10) [ARRY] (3) inverter.AC.v = meterAC.term_p.v ($RES_SIM_90) (11) [SCAL] (1) $DER.meterDC.p_av = 10.0 * (meterDC.p - meterDC.p_av) ($RES_SIM_55) (12) [ARRY] (2) inverter.AC.theta = meterAC.term_p.theta ($RES_SIM_91) (13) [SCAL] (1) meterDC.p = meterDC.v_ab * meterDC.i_ab ($RES_SIM_56) (14) [FOR-] (2) ($RES_SIM_92) (14) [----] for $i1 in 1:2 loop (14) [----] [SCAL] (1) meterDC.term_n.i[$i1] + inverter.DC.i[$i1] = 0.0 ($RES_SIM_93) (14) [----] end for; (15) [SCAL] (1) meterDC.i0 = meterDC.i_ab[1] + meterDC.i_ab[2] ($RES_SIM_57) (16) [SCAL] (1) meterDC.i = 0.5 * (meterDC.i_ab[1] - meterDC.i_ab[2]) ($RES_SIM_58) (17) [ARRY] (2) meterDC.term_n.v = inverter.DC.v ($RES_SIM_94) (18) [SCAL] (1) meterDC.v0 = 0.5 * (meterDC.v_ab[1] + meterDC.v_ab[2]) ($RES_SIM_59) (19) [FOR-] (2) ($RES_SIM_95) (19) [----] for $i1 in 1:2 loop (19) [----] [SCAL] (1) vDC.term.i[$i1] + meterDC.term_p.i[$i1] = 0.0 ($RES_SIM_96) (19) [----] end for; (20) [ARRY] (2) vDC.term.v = meterDC.term_p.v ($RES_SIM_97) (21) [FOR-] (3) ($RES_SIM_98) (21) [----] for $i1 in 1:3 loop (21) [----] [SCAL] (1) vAC.term.i[$i1] + ind.term_p.i[$i1] = 0.0 ($RES_SIM_99) (21) [----] end for; (22) [ARRY] (3) meterAC.p_av = meterAC.pav ($RES_BND_111) (23) [ARRY] (3) meterAC.v_abc = transpose(meterAC.Park) * meterAC.v ($RES_BND_112) (24) [ARRY] (3) vAC.term.v = ind.term_p.v ($RES_SIM_100) (25) [ARRY] (3) meterAC.vpp_abc = {(transpose(meterAC.Park) * meterAC.v)[2] - (transpose(meterAC.Park) * meterAC.v)[3], (transpose(meterAC.Park) * meterAC.v)[3] - (transpose(meterAC.Park) * meterAC.v)[1], (transpose(meterAC.Park) * meterAC.v)[1] - (transpose(meterAC.Park) * meterAC.v)[2]} ($RES_BND_113) (26) [ARRY] (2) vAC.term.theta = ind.term_p.theta ($RES_SIM_101) (27) [ARRY] (3) meterAC.i_abc = transpose(meterAC.Park) * meterAC.i ($RES_BND_114) (28) [ARRY] (2) meterAC.term_n.theta = meterAC.term_p.theta ($RES_SIM_20) (29) [ARRY] (2) select.vPhasor_in = select.vPhasor_internal ($RES_SIM_102) (30) [ARRY] (3) meterAC.term_p.i + meterAC.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_21) (31) [ARRY] (3) meterAC.term_p.v = meterAC.term_n.v ($RES_SIM_22) (32) [ARRY] (4) meterAC.Rot_dq = $FUN_13 ($RES_SIM_23) (33) [ARRY] (9) meterAC.Park = $FUN_12 ($RES_SIM_24) (34) [SCAL] (1) meterDC.v = meterDC.v_ab[1] - meterDC.v_ab[2] ($RES_SIM_60) (35) [ARRY] (2) meterDC.i_ab = meterDC.term_p.i / meterDC.I_base ($RES_SIM_61) (36) [ARRY] (2) meterDC.v_ab = meterDC.term_p.v / meterDC.V_base ($RES_SIM_62) (37) [SCAL] (1) vDC.term.v[1] + vDC.term.v[2] = vDC.neutral.v ($RES_SIM_64) (38) [SCAL] (1) 0.0 = sum(vDC.term.i) ($RES_$AUX_130) (39) [SCAL] (1) vDC.term.v[1] - vDC.term.v[2] = vDC.v ($RES_SIM_65) (40) [SCAL] (1) vDC.v = vDC.v0 * vDC.V_base ($RES_SIM_66) (41) [ARRY] (3) $DER.meterAC.pav = 10.0 .* (meterAC.p - meterAC.pav) ($RES_SIM_30) (42) [SCAL] (1) 0.5 * inverter.Vloss = tanh(inverter.iDC1) ($RES_$AUX_129) (43) [ARRY] (3) meterAC.p = {meterAC.v[1:2] * meterAC.i[1:2], -{-meterAC.v[2], meterAC.v[1]} * meterAC.i[1:2], meterAC.v[3] * meterAC.i[3]} ($RES_SIM_31) (44) [SCAL] (1) $FUN_3 = cos(inverter.phi) ($RES_$AUX_128) (45) [ARRY] (3) meterAC.i = meterAC.term_p.i / meterAC.I_base ($RES_SIM_32) (46) [SCAL] (1) $FUN_4 = sin(inverter.phi) ($RES_$AUX_127) (47) [ARRY] (2) meterAC.vpp = 1.7320508075688772 * {meterAC.v[2], -meterAC.v[1]} ($RES_SIM_33) (48) [SCAL] (1) $FUN_5 = abs(inverter.vDC1) ($RES_$AUX_126) (49) [ARRY] (3) meterAC.v = meterAC.term_p.v / meterAC.V_base ($RES_SIM_34) (50) [SCAL] (1) $FUN_6 = sqrt(inverter.iAC2) ($RES_$AUX_125) (51) [SCAL] (1) system.thetaRef = 314.1592653589793 * time ($RES_SIM_70) (52) [ARRY] (2) select.vPhasor_out = select.vPhasor_internal ($RES_SIM_35) (53) [SCAL] (1) meterAC.v_norm = sqrt(meterAC.v * meterAC.v) ($RES_$AUX_124) (54) [SCAL] (1) meterAC.alpha_v = atan2(meterAC.Rot_dq[:, 2] * meterAC.v[1:2], meterAC.Rot_dq[:, 1] * meterAC.v[1:2]) ($RES_$AUX_123) (55) [SCAL] (1) meterAC.i_norm = sqrt(meterAC.i * meterAC.i) ($RES_$AUX_122) (56) [SCAL] (1) meterAC.alpha_i = atan2(meterAC.Rot_dq[:, 2] * meterAC.i[1:2], meterAC.Rot_dq[:, 1] * meterAC.i[1:2]) ($RES_$AUX_121) (57) [ARRY] (1) inverter.heat.ports.Q_flow = -inverter.Q_flow ($RES_SIM_39) (58) [SCAL] (1) meterAC.cos_phi = cos(meterAC.alpha_v - meterAC.alpha_i) ($RES_$AUX_120) (59) [SCAL] (1) inverter.heat.ports[1].Q_flow + bdCond.heat.ports[1].Q_flow = 0.0 ($RES_SIM_78) (60) [ARRY] (9) $FUN_12 = PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.meterAC.park(meterAC.term_p.theta[2]) ($RES_$AUX_119) (61) [SCAL] (1) inverter.iDC0 + 1.7320508075688772 * inverter.AC.i[3] = 0.0 ($RES_SIM_41) (62) [ARRY] (4) $FUN_13 = PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.meterAC.rot_dq(meterAC.term_p.theta[1]) ($RES_$AUX_118) (63) [SCAL] (1) inverter.iDC1 + inverter.switch_dq0 * inverter.AC.i = 0.0 ($RES_SIM_42) (64) [SCAL] (1) $FUN_14 = cos(vAC.phi) ($RES_$AUX_117) (65) [ARRY] (3) inverter.AC.v = inverter.v_dq0 + {0.0, 0.0, 1.7320508075688772 * inverter.vDC0} ($RES_SIM_43) (66) [SCAL] (1) $FUN_15 = sin(vAC.phi) ($RES_$AUX_116) (67) [ARRY] (1) inverter.Q_flow = {inverter.R_nom * inverter.par.eps[1] * inverter.iAC2 + 1.559393602467352 * (1.0 + 0.008 * $FUN_5) * $FUN_6} ($RES_SIM_44) (68) [SCAL] (1) $FUN_16 = tanh(vCtrl.coef * (time - vCtrl.t_change)) ($RES_$AUX_115) (69) [ARRY] (3) inverter.v_dq0 = (inverter.vDC1 - inverter.Vloss) * inverter.switch_dq0 ($RES_SIM_45) (70) [ARRY] (2) vCtrl.y = select.vPhasor_in ($RES_SIM_81) (71) [ARRY] (3) inverter.switch_dq0 = 1.224744871391589 * inverter.vPhasor[1] * {$FUN_3, $FUN_4, 0.0} ($RES_SIM_46) (72) [ARRY] (2) select.vPhasor_out = inverter.vPhasor ($RES_SIM_82) (73) [SCAL] (1) inverter.phi = inverter.AC.theta[1] + inverter.vPhasor[2] ($RES_SIM_47) (74) [FOR-] (3) ($RES_SIM_84) (74) [----] for $i1 in 1:3 loop (74) [----] [SCAL] (1) meterAC.term_n.i[$i1] + ind.term_n.i[$i1] = 0.0 ($RES_SIM_85) (74) [----] end for; (75) [ARRY] (3) meterAC.term_n.v = ind.term_n.v ($RES_SIM_86) (76) [ARRY] (2) meterAC.term_n.theta = ind.term_n.theta ($RES_SIM_87) (77) [FOR-] (3) ($RES_SIM_88) (77) [----] for $i1 in 1:3 loop (77) [----] [SCAL] (1) inverter.AC.i[$i1] + meterAC.term_p.i[$i1] = 0.0 ($RES_SIM_89) (77) [----] end for; (78) [ARRY] (3) vAC.term.v = {$FUN_14 * vAC.V, $FUN_15 * vAC.V, 0.0} ($RES_SIM_9) (79) [SCAL] (1) 1.7320508075688772 * vAC.term.i[3] + vAC.neutral.i = 0.0 ($RES_SIM_6) (80) [ARRY] (2) vCtrl.y = 0.5 * ({vCtrl.a_end + vCtrl.a_start, vCtrl.ph_end + vCtrl.ph_start} + {vCtrl.a_end - vCtrl.a_start, vCtrl.ph_end - vCtrl.ph_start} .* $FUN_16) ($RES_SIM_5) (81) [SCAL] (1) system.thetaRel = system.thetaRef - system.thetaRef ($RES_BND_103) (82) [SCAL] (1) vAC.phi = vAC.term.theta[1] + vAC.alpha ($RES_SIM_10) (83) [SCAL] (1) vAC.alpha = vAC.vPhasor_internal[2] ($RES_SIM_11) (84) [SCAL] (1) inverter.vDC1 = 0.5 * (inverter.DC.v[1] - inverter.DC.v[2]) ($RES_BND_106) (85) [SCAL] (1) vAC.V = vAC.vPhasor_internal[1] * vAC.V_base ($RES_SIM_12) (86) [SCAL] (1) inverter.vDC0 = 0.5 * (inverter.DC.v[2] + inverter.DC.v[1]) ($RES_BND_107) (87) [ARRY] (2) vAC.vPhasor_internal = {vAC.v0, vAC.alpha0} ($RES_SIM_13) (88) [SCAL] (1) inverter.iDC1 = inverter.DC.i[1] - inverter.DC.i[2] ($RES_BND_108) (89) [ARRY] (2) ind.term_n.theta = ind.term_p.theta ($RES_SIM_14) (90) [SCAL] (1) inverter.iDC0 = inverter.DC.i[1] + inverter.DC.i[2] ($RES_BND_109)