Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sensor.p.1.|sensor.p.2.|sensor.p.3.|windGen.generator.slip",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 106.8 kB / 17.69 MB, free: 5.52 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.001554/0.001554, allocations: 192 kB / 18.63 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1638/0.1638, allocations: 38.05 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.696e-05, allocations: 5.234 kB / 400.2 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.007196/0.007243, allocations: 7.625 MB / 407.8 MB, free: 25.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006155/0.01344, allocations: 5.374 MB / 413.2 MB, free: 20.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005191/0.01398, allocations: 27.81 kB / 413.2 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007753/0.02174, allocations: 5.175 MB / 418.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001477/0.02327, allocations: 0.6377 MB / 419 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009727/0.02425, allocations: 449.9 kB / 419.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002019/0.02628, allocations: 2.405 MB / 421.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008045/0.0271, allocations: 0.924 MB / 422.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006082/0.02772, allocations: 0.6422 MB / 423.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004932/0.02822, allocations: 0.5681 MB / 424 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.696e-05/0.02832, allocations: 96 kB / 424.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003056/0.03138, allocations: 2.444 MB / 426.6 MB, free: 7.035 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000819/0.03222, allocations: 1.52 MB / 428.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003719/0.0326, allocations: 0.9837 MB / 429.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.0328, allocations: 147.6 kB / 429.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001468/0.03295, allocations: 19.94 kB / 429.2 MB, free: 4.34 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 208 (146) * Number of variables: 208 (137) Notification: Performance of Bindings: time 0.003076/0.03603, allocations: 4.853 MB / 434.1 MB, free: 15.3 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0003145/0.03635, allocations: 279.5 kB / 434.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of Early Inline: time 0.002161/0.03853, allocations: 2.256 MB / 436.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of simplify1: time 0.0001925/0.03873, allocations: 167.8 kB / 436.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of Alias: time 0.002976/0.04171, allocations: 2.709 MB / 439.5 MB, free: 9.602 MB / 318.1 MB Notification: Performance of simplify2: time 0.0001431/0.04187, allocations: 135.8 kB / 439.6 MB, free: 9.469 MB / 318.1 MB Notification: Performance of Events: time 0.0001557/0.04203, allocations: 151.8 kB / 439.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of Detect States: time 0.0007116/0.04275, allocations: 0.7403 MB / 440.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of Partitioning: time 0.000728/0.04349, allocations: 0.7025 MB / 441.2 MB, free: 7.812 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency system.thetaRel could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) infBus.term.theta = {system.thetaRel, system.thetaRef} ($RES_SIM_15) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (97/171) *************************** (1) [DER-] (1) Real $DER.windGen.WT.turbine.w (2) [ALGB] (3) Real[3] line.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (3) [ALGB] (3) flow Real[3] busbar.term.i (nominal = {1.0 for $i1 in 1:3}) (4) [DER-] (3) Real[3] $DER.line.i (5) [ALGB] (3) Real[3] line.v (start = line.v_start, nominal = {1000.0 for $i1 in 1:3}) (6) [ALGB] (3) flow Real[3] sensor.term_n.i (nominal = {1.0 for $i1 in 1:3}) (7) [ALGB] (3) Real[3] windGen.generator.term.v (nominal = {1000.0 for $i1 in 1:3}) (8) [ALGB] (3) flow Real[3] line.term_p.i (nominal = {1.0 for $i1 in 1:3}) (9) [ALGB] (4) Real[2, 2] $FUN_10 (10) [ALGB] (3) Real[3] busbar.term.v (nominal = {1000.0 for $i1 in 1:3}) (11) [ALGB] (2) protected Real[2] infBus.vPhasor_internal (12) [ALGB] (3) Real[3] windGen.term.v (nominal = {1000.0 for $i1 in 1:3}) (13) [ALGB] (2) protected Real[2] windGen.generator.omega (14) [ALGB] (3) Real[3] sensor.term_n.v (nominal = {1000.0 for $i1 in 1:3}) (15) [DER-] (1) Real $DER.windGen.WT.genRotor.flange_b.phi (16) [ALGB] (3) flow Real[3] windGen.generator.term.i (nominal = {1.0 for $i1 in 1:3}) (17) [ALGB] (3) Real[3] line.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (18) [ALGB] (1) Real windGen.generator.w_el (19) [DER-] (2) Real[2] $DER.windGen.generator.psi_s (20) [DER-] (1) Real $DER.windGen.WT.gear.phi (21) [ALGB] (3) flow Real[3] sensor.term_p.i (nominal = {1.0 for $i1 in 1:3}) (22) [ALGB] (2) flow Real[2] windGen.generator.heat.ports.Q_flow (23) [ALGB] (3) Real[3] windGen.generator.top.i_term (nominal = {1.0 for $i1 in 1:3}) (24) [ALGB] (2) Real[2] windGen.term.theta (25) [ALGB] (2) Real[2] line.term_n.theta (26) [ALGB] (1) protected Real infBus.phi (27) [ALGB] (3) flow Real[3] windGen.term.i (nominal = {1.0 for $i1 in 1:3}) (28) [ALGB] (1) protected Real windGen.WT.shaft1.d_phi (29) [ALGB] (2) protected Real[2] line.omega (30) [DER-] (2) Real[2] $DER.windGen.generator.term.theta (31) [ALGB] (1) flow Real windGen.generator.airgap.tau (32) [ALGB] (3) Real[3] sensor.term_p.v (nominal = {1000.0 for $i1 in 1:3}) (33) [ALGB] (1) Real $FUN_9 (34) [ALGB] (1) Real busbar.alpha_v (StateSelect = never) (35) [ALGB] (1) flow Real windGen.turbTorq.blades.tau (36) [ALGB] (1) Real $FUN_8 (37) [ALGB] (1) protected Real[1] windGen.generator.i_rq (start = windGen.generator.i_rq_start, nominal = {1.0 for $i1 in 1:1}) (38) [ALGB] (1) Real $FUN_7 (39) [ALGB] (3) Real[3] windGen.generator.top.v_term (nominal = {1000.0 for $i1 in 1:3}) (40) [ALGB] (1) Real[1] windGen.generator.top.i_n (start = {0.0 for $i1 in 1:1}, nominal = {1.0 for $i1 in 1:1}) (41) [ALGB] (1) Real $FUN_4 (42) [ALGB] (1) Real $FUN_3 (43) [ALGB] (1) protected Real windGen.WT.gear.a (44) [ALGB] (1) Real[1, 1] $FUN_2 (45) [ALGB] (4) Real[2, 2] $FUN_1 (46) [ALGB] (1) Real[1] windGen.generator.i_n = windGen.generator.top.i_n (nominal = {1.0 for $i1 in 1:1}) (47) [ALGB] (1) protected Real windGen.WT.shaft2.d_phi (48) [ALGB] (2) flow Real[2] windGen.heat.ports.Q_flow (49) [ALGB] (3) Real[3] windGen.generator.top.i_cond = windGen.generator.i (nominal = {1.0 for $i1 in 1:3}) (50) [ALGB] (1) protected Real infBus.V (nominal = 1000.0) (51) [ALGB] (1) protected Real[1] windGen.generator.i_rd (start = windGen.generator.i_rd_start, nominal = {1.0 for $i1 in 1:1}) (52) [ALGB] (1) protected Real windGen.WT.turbine.friction.phi (53) [ALGB] (1) protected flow Real windGen.WT.gear.flange_b.tau (54) [ALGB] (3) Real[3] sensor.p (55) [ALGB] (1) protected Real windGen.WT.shaft1.flange_b.phi (56) [DER-] (2) Real[2] $DER.line.term_p.theta (57) [ALGB] (3) Real[3] windGen.generator.top.v_cond = windGen.generator.v (nominal = {1000.0 for $i1 in 1:3}) (58) [ALGB] (1) Real windGen.WT.genRotor.friction.phi (59) [ALGB] (1) Real windGen.generator.slip (60) [DER-] (1) Real $DER.windGen.generator.phi_el (61) [DER-] (1) Real[1] $DER.windGen.generator.psi_rq (62) [ALGB] (1) Real[1] windGen.WT.blades.phi (63) [ALGB] (2) Real[2] sensor.term_p.theta (64) [ALGB] (1) protected flow Real windGen.WT.turbine.rotor.tau (65) [ALGB] (1) Real busbar.v_norm (nominal = 1000.0, StateSelect = never) (66) [ALGB] (1) protected Real windGen.WT.turbine.a (67) [DER-] (1) Real[1] $DER.windGen.generator.psi_rd (68) [ALGB] (2) Real[2] busbar.term.theta (69) [ALGB] (3) Real[3] windGen.generator.v (start = {400.0, 0.0, 0.0}, nominal = {1000.0 for $i1 in 1:3}) (70) [ALGB] (1) protected flow Real windGen.WT.turbine.flange_b.tau (71) [ALGB] (1) Real system.thetaRef = system.thetaRef (72) [ALGB] (2) flow Real[2] bdCond.heat.ports.Q_flow (73) [DER-] (1) Real $DER.windGen.WT.turbine.flange_b.phi (74) [ALGB] (1) Real windGen.WT.genRotor.a (start = 0.0) (75) [ALGB] (1) protected Real[1] windGen.generator.v_rq = {0.0 for $i1 in 1:1} (nominal = {1000.0 for $i1 in 1:1}) (76) [ALGB] (1) flow Real infBus.neutral.i (77) [ALGB] (1) Real windGen.turbTorq.blades.phi (78) [ALGB] (1) Real trsSignal1.y (79) [ALGB] (1) Real system.thetaRel = system.thetaRef - system.thetaRef (80) [DER-] (1) Real $DER.windGen.WT.genRotor.w (81) [ALGB] (4) protected Real[2, 2] busbar.R = PowerSystems.Utilities.Transforms.rotation_dq(busbar.term.theta[1]) (82) [ALGB] (1) protected Real infBus.alpha (83) [ALGB] (1) Real windGen.generator.tau_el (84) [ALGB] (1) protected Real windGen.WT.shaft1.d_tau (85) [ALGB] (1) protected Real[1] windGen.generator.v_rd = {0.0 for $i1 in 1:1} (nominal = {1000.0 for $i1 in 1:1}) (86) [ALGB] (3) Real[3] infBus.term.v (nominal = {1000.0 for $i1 in 1:3}) (87) [ALGB] (2) Real[2] sensor.term_n.theta (88) [ALGB] (1) Real[1] windGen.generator.v_n (nominal = {1000.0 for $i1 in 1:1}) (89) [ALGB] (1) Real[1] windGen.generator.top.v_n = windGen.generator.v_n (start = {0.0 for $i1 in 1:1}, nominal = {1000.0 for $i1 in 1:1}) (90) [ALGB] (3) flow Real[3] line.term_n.i (nominal = {1.0 for $i1 in 1:3}) (91) [ALGB] (1) Real[1] windGen.turbTorq.table.y (92) [ALGB] (3) flow Real[3] infBus.term.i (nominal = {1.0 for $i1 in 1:3}) (93) [ALGB] (2) Real[2] infBus.term.theta (94) [DER-] (1) Real $DER.windGen.WT.gear.w (95) [ALGB] (1) protected Real windGen.WT.shaft2.d_tau (96) [DER-] (3) Real[3] $DER.windGen.generator.i (97) [ALGB] (1) flow Real[1] windGen.WT.blades.tau System Equations (106/171) **************************** (1) [SCAL] (1) busbar.term.theta[1] = windGen.term.theta[1] ($RES_SIM_132) (2) [SCAL] (1) windGen.WT.turbine.w = $DER.windGen.WT.turbine.flange_b.phi ($RES_SIM_50) (3) [ARRY] (2) infBus.term.theta = {system.thetaRel, system.thetaRef} ($RES_SIM_15) (4) [SCAL] (1) busbar.term.theta[1] = sensor.term_p.theta[1] ($RES_SIM_133) (5) [FOR-] (2) ($RES_SIM_134) (5) [----] for $i1 in 1:2 loop (5) [----] [SCAL] (1) windGen.generator.heat.ports[$i1].Q_flow - windGen.heat.ports[$i1].Q_flow = 0.0 ($RES_SIM_135) (5) [----] end for; (6) [SCAL] (1) windGen.WT.turbine.J * windGen.WT.turbine.a = windGen.WT.turbine.flange_b.tau + windGen.WT.turbine.rotor.tau ($RES_SIM_52) (7) [ARRY] (3) infBus.term.v = {$FUN_7 * infBus.V, $FUN_8 * infBus.V, 0.0} ($RES_SIM_17) (8) [SCAL] (1) infBus.phi = infBus.term.theta[1] + infBus.alpha ($RES_SIM_18) (9) [SCAL] (1) windGen.WT.turbine.friction.phi = windGen.WT.turbine.flange_b.phi ($RES_SIM_54) (10) [SCAL] (1) infBus.alpha = infBus.vPhasor_internal[2] ($RES_SIM_19) (11) [FOR-] (3) ($RES_SIM_137) (11) [----] for $i1 in 1:3 loop (11) [----] [SCAL] (1) windGen.generator.term.i[$i1] - windGen.term.i[$i1] = 0.0 ($RES_SIM_138) (11) [----] end for; (12) [ARRY] (3) windGen.generator.term.v = windGen.term.v ($RES_SIM_139) (13) [SCAL] (1) windGen.WT.genRotor.a = $DER.windGen.WT.genRotor.w ($RES_SIM_57) (14) [SCAL] (1) windGen.WT.genRotor.w = $DER.windGen.WT.genRotor.flange_b.phi ($RES_SIM_58) (15) [SCAL] (1) infBus.V = infBus.vPhasor_internal[1] * infBus.V_base ($RES_SIM_20) (16) [ARRY] (2) infBus.vPhasor_internal = {infBus.v0, infBus.alpha0} ($RES_SIM_21) (17) [ARRY] (2) line.term_n.theta = line.term_p.theta ($RES_SIM_22) (18) [ARRY] (4) $FUN_1 = diagonal(windGen.generator.c.L_s[1:2]) ($RES_$AUX_172) (19) [ARRY] (2) windGen.generator.term.theta = windGen.term.theta ($RES_SIM_140) (20) [SCAL] (1) windGen.turbTorq.blades.tau + windGen.WT.blades[1].tau = 0.0 ($RES_SIM_105) (21) [ARRY] (3) line.term_p.i + line.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_23) (22) [SCAL] (1) system.thetaRel = system.thetaRef - system.thetaRef ($RES_BND_153) (23) [ARRY] (1) $FUN_2 = diagonal(windGen.generator.R_r) ($RES_$AUX_171) (24) [ARRY] (3) line.omega[2] * line.L * {-line.i[2], line.i[1], 0.0} + {line.L, line.L, line.L0} * $DER.line.i + line.R * line.i = line.v ($RES_SIM_24) (25) [SCAL] (1) $FUN_3 = sum(windGen.generator.omega) ($RES_$AUX_170) (26) [SCAL] (1) windGen.WT.genRotor.J * windGen.WT.genRotor.a = -(windGen.WT.gear.flange_b.tau + windGen.generator.airgap.tau) ($RES_SIM_60) (27) [SCAL] (1) windGen.turbTorq.blades.phi = windGen.WT.blades[1].phi ($RES_SIM_142) (28) [ARRY] (3) line.i = line.term_p.i ($RES_SIM_25) (29) [ARRY] (3) windGen.generator.top.v_cond = windGen.generator.v ($RES_BND_155) (30) [ARRY] (3) line.v = line.term_p.v - line.term_n.v ($RES_SIM_26) (31) [ARRY] (3) windGen.generator.top.i_cond = windGen.generator.i ($RES_BND_156) (32) [SCAL] (1) windGen.WT.genRotor.friction.phi = windGen.WT.genRotor.flange_b.phi ($RES_SIM_62) (33) [FOR-] (2) ($RES_SIM_109) (33) [----] for $i1 in 1:2 loop (33) [----] [SCAL] (1) windGen.heat.ports[$i1].Q_flow + bdCond.heat.ports[$i1].Q_flow = 0.0 ($RES_SIM_110) (33) [----] end for; (34) [ARRY] (2) line.omega = $DER.line.term_p.theta ($RES_SIM_27) (35) [ARRY] (1) windGen.generator.top.v_n = windGen.generator.v_n ($RES_BND_157) (36) [SCAL] (1) windGen.WT.turbine.rotor.tau - windGen.WT.blades[1].tau = 0.0 ($RES_SIM_145) (37) [ARRY] (2) sensor.term_n.theta = sensor.term_p.theta ($RES_SIM_28) (38) [SCAL] (1) windGen.turbTorq.blades.tau = -28647.889756541095 * windGen.turbTorq.table.y[1] ($RES_SIM_64) (39) [SCAL] (1) windGen.WT.blades[1].phi = windGen.WT.turbine.friction.phi ($RES_SIM_146) (40) [ARRY] (3) sensor.term_p.i + sensor.term_n.i = {0.0 for $i1 in 1:3} ($RES_SIM_29) (41) [ARRY] (1) windGen.generator.i_n = windGen.generator.top.i_n ($RES_BND_159) (42) [SCAL] (1) windGen.turbTorq.table.y[1] = $FUN_4 ($RES_SIM_65) (43) [ARRY] (3) windGen.generator.term.i = windGen.generator.top.i_term ($RES_SIM_67) (44) [ARRY] (3) windGen.generator.term.v = windGen.generator.top.v_term ($RES_SIM_68) (45) [SCAL] (1) windGen.generator.w_el = $DER.windGen.generator.phi_el ($RES_SIM_69) (46) [SCAL] (1) $FUN_4 = Modelica.Blocks.Tables.Internal.getTable1DValueNoDer2(windGen.turbTorq.table.tableID, 1, trsSignal1.y) ($RES_$AUX_169) (47) [SCAL] (1) busbar.v_norm = sqrt(busbar.term.v * busbar.term.v) ($RES_$AUX_168) (48) [SCAL] (1) busbar.alpha_v = atan2(busbar.R[:, 2] * busbar.term.v[1:2], busbar.R[:, 1] * busbar.term.v[1:2]) ($RES_$AUX_167) (49) [SCAL] (1) $FUN_7 = cos(infBus.phi) ($RES_$AUX_166) (50) [SCAL] (1) $FUN_8 = sin(infBus.phi) ($RES_$AUX_165) (51) [ARRY] (3) sensor.term_p.v = sensor.term_n.v ($RES_SIM_30) (52) [SCAL] (1) windGen.generator.v_rd[1] = 0.0 ($RES_BND_160) (53) [SCAL] (1) $FUN_9 = tanh(trsSignal1.coef * (time - trsSignal1.t_change)) ($RES_$AUX_164) (54) [FOR-] (3) ($RES_SIM_113) (54) [----] for $i1 in 1:3 loop (54) [----] [SCAL] (1) line.term_n.i[$i1] + infBus.term.i[$i1] = 0.0 ($RES_SIM_114) (54) [----] end for; (55) [ARRY] (3) sensor.p = {sensor.term_p.v[1:2] * sensor.term_p.i[1:2], -{-sensor.term_p.v[2], sensor.term_p.v[1]} * sensor.term_p.i[1:2], sensor.term_p.v[3] * sensor.term_p.i[3]} / sensor.S_base ($RES_SIM_31) (56) [SCAL] (1) windGen.generator.v_rq[1] = 0.0 ($RES_BND_161) (57) [ARRY] (4) $FUN_10 = PowerSystems.Utilities.Transforms.rotation_dq(busbar.term.theta[1]) ($RES_$AUX_163) (58) [ARRY] (4) busbar.R = $FUN_10 ($RES_BND_162) (59) [ARRY] (3) line.term_n.v = infBus.term.v ($RES_SIM_115) (60) [ARRY] (2) line.term_n.theta = infBus.term.theta ($RES_SIM_116) (61) [ARRY] (3) busbar.term.i = {0.0 for $i1 in 1:3} ($RES_SIM_34) (62) [FOR-] (3) ($RES_SIM_117) (62) [----] for $i1 in 1:3 loop (62) [----] [SCAL] (1) sensor.term_n.i[$i1] + line.term_p.i[$i1] = 0.0 ($RES_SIM_118) (62) [----] end for; (63) [SCAL] (1) windGen.generator.airgap.tau = -windGen.generator.pp * windGen.generator.tau_el ($RES_SIM_70) (64) [SCAL] (1) windGen.WT.gear.flange_b.tau + windGen.WT.gear.flange_b.tau = 2.0 * windGen.WT.shaft2.d_tau ($RES_SIM_35) (65) [SCAL] (1) windGen.generator.pp * windGen.WT.genRotor.friction.phi = windGen.generator.phi_el ($RES_SIM_71) (66) [SCAL] (1) windGen.WT.genRotor.flange_b.phi - windGen.WT.gear.phi = windGen.WT.shaft2.d_phi ($RES_SIM_36) (67) [ARRY] (3) sensor.term_n.v = line.term_p.v ($RES_SIM_119) (68) [ARRY] (2) windGen.generator.omega = $DER.windGen.generator.term.theta ($RES_SIM_72) (69) [SCAL] (1) windGen.WT.shaft2.d_tau = windGen.WT.shaft2.stiff * windGen.WT.shaft2.d_phi ($RES_SIM_37) (70) [ARRY] (2) windGen.generator.heat.ports.Q_flow = -{windGen.generator.c.R_s * windGen.generator.i * windGen.generator.i, $FUN_2 * windGen.generator.i_rd * windGen.generator.i_rd + $FUN_2 * windGen.generator.i_rq * windGen.generator.i_rq} ($RES_SIM_73) (71) [SCAL] (1) windGen.generator.tau_el = windGen.generator.i[1:2] * {-windGen.generator.psi_s[2], windGen.generator.psi_s[1]} ($RES_SIM_74) (72) [SCAL] (1) (windGen.WT.gear.ratio2 * windGen.WT.gear.a) / windGen.WT.gear.J = windGen.WT.gear.flange_b.tau - windGen.WT.gear.ratio_pn * windGen.WT.turbine.flange_b.tau ($RES_SIM_39) (73) [SCAL] (1) windGen.generator.slip = (-1.0) + windGen.generator.w_el / $FUN_3 ($RES_SIM_75) (74) [ARRY] (1) windGen.generator.v_n = windGen.generator.c.R_n * windGen.generator.i_n ($RES_SIM_76) (75) [ARRY] (1) (windGen.generator.omega[2] - windGen.generator.w_el) * windGen.generator.psi_rd + $DER.windGen.generator.psi_rq + $FUN_2 * windGen.generator.i_rq = windGen.generator.v_rq ($RES_SIM_77) (76) [ARRY] (1) ($DER.windGen.generator.psi_rd + $FUN_2 * windGen.generator.i_rd) - (windGen.generator.omega[2] - windGen.generator.w_el) * windGen.generator.psi_rq = windGen.generator.v_rd ($RES_SIM_78) (77) [SCAL] (1) windGen.generator.c.L_s[3] * $DER.windGen.generator.i[3] + windGen.generator.c.R_s * windGen.generator.i[3] = windGen.generator.v[3] ($RES_SIM_79) (78) [ARRY] (2) sensor.term_n.theta = line.term_p.theta ($RES_SIM_120) (79) [SCAL] (1) sensor.term_p.i[3] + busbar.term.i[3] + windGen.term.i[3] = 0.0 ($RES_SIM_121) (80) [SCAL] (1) sensor.term_p.i[2] + busbar.term.i[2] + windGen.term.i[2] = 0.0 ($RES_SIM_122) (81) [SCAL] (1) windGen.WT.gear.a = $DER.windGen.WT.gear.w ($RES_SIM_40) (82) [SCAL] (1) sensor.term_p.i[1] + busbar.term.i[1] + windGen.term.i[1] = 0.0 ($RES_SIM_123) (83) [SCAL] (1) windGen.WT.gear.w = $DER.windGen.WT.gear.phi ($RES_SIM_41) (84) [SCAL] (1) busbar.term.v[3] = windGen.term.v[3] ($RES_SIM_124) (85) [SCAL] (1) busbar.term.v[3] = sensor.term_p.v[3] ($RES_SIM_125) (86) [SCAL] (1) windGen.WT.shaft1.flange_b.phi = windGen.WT.gear.ratio_pn * windGen.WT.gear.phi ($RES_SIM_43) (87) [SCAL] (1) windGen.WT.turbine.flange_b.tau + windGen.WT.turbine.flange_b.tau = 2.0 * windGen.WT.shaft1.d_tau ($RES_SIM_44) (88) [SCAL] (1) busbar.term.v[2] = windGen.term.v[2] ($RES_SIM_126) (89) [ARRY] (2) windGen.generator.omega[2] * {-windGen.generator.psi_s[2], windGen.generator.psi_s[1]} + $DER.windGen.generator.psi_s + windGen.generator.c.R_s * windGen.generator.i[1:2] = windGen.generator.v[1:2] ($RES_SIM_80) (90) [SCAL] (1) windGen.WT.shaft1.flange_b.phi - windGen.WT.turbine.flange_b.phi = windGen.WT.shaft1.d_phi ($RES_SIM_45) (91) [SCAL] (1) busbar.term.v[2] = sensor.term_p.v[2] ($RES_SIM_127) (92) [ARRY] (1) windGen.generator.psi_rq = windGen.generator.L_m .* windGen.generator.i[2] + windGen.generator.L_r * windGen.generator.i_rq ($RES_SIM_81) (93) [SCAL] (1) windGen.WT.shaft1.d_tau = windGen.WT.shaft1.stiff * windGen.WT.shaft1.d_phi ($RES_SIM_46) (94) [SCAL] (1) busbar.term.v[1] = windGen.term.v[1] ($RES_SIM_128) (95) [ARRY] (1) windGen.generator.psi_rd = windGen.generator.L_m .* windGen.generator.i[1] + windGen.generator.L_r * windGen.generator.i_rd ($RES_SIM_82) (96) [SCAL] (1) busbar.term.v[1] = sensor.term_p.v[1] ($RES_SIM_129) (97) [ARRY] (2) windGen.generator.psi_s = $FUN_1 * windGen.generator.i[1:2] + {windGen.generator.L_m * windGen.generator.i_rd, windGen.generator.L_m * windGen.generator.i_rq} ($RES_SIM_83) (98) [SCAL] (1) windGen.generator.top.i_n[1] = 1.7320508075688772 * windGen.generator.top.i_term[3] ($RES_SIM_84) (99) [SCAL] (1) windGen.WT.turbine.a = $DER.windGen.WT.turbine.w ($RES_SIM_49) (100) [ARRY] (3) windGen.generator.top.i_term = windGen.generator.top.i_cond ($RES_SIM_85) (101) [ARRY] (3) windGen.generator.top.v_cond = windGen.generator.top.v_term - {0.0, 0.0, 1.7320508075688772 * windGen.generator.top.v_n[1]} ($RES_SIM_86) (102) [SCAL] (1) system.thetaRef = 314.1592653589793 * time ($RES_SIM_89) (103) [SCAL] (1) busbar.term.theta[2] = windGen.term.theta[2] ($RES_SIM_130) (104) [SCAL] (1) trsSignal1.y = 0.5 * (trsSignal1.s_start + trsSignal1.s_end + (trsSignal1.s_end - trsSignal1.s_start) * $FUN_9) ($RES_SIM_13) (105) [SCAL] (1) busbar.term.theta[2] = sensor.term_p.theta[2] ($RES_SIM_131) (106) [SCAL] (1) 1.7320508075688772 * infBus.term.i[3] + infBus.neutral.i = 0.0 ($RES_SIM_14)