Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator.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) 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(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 106 kB / 16.42 MB, free: 6.059 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.000986/0.000986, allocations: 192.8 kB / 17.36 MB, free: 5.594 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.362/1.362, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.247e-05, allocations: 2.281 kB / 327.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator): time 0.01307/0.0131, allocations: 11.41 MB / 338.6 MB, free: 7.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007798/0.02094, allocations: 3.909 MB / 342.5 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00213/0.0231, allocations: 55.75 kB / 342.6 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.02513, allocations: 0.8385 MB / 343.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002708/0.02785, allocations: 0.9355 MB / 344.3 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001128/0.02899, allocations: 0.5149 MB / 344.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003724/0.03272, allocations: 3.562 MB / 348.4 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001822/0.03456, allocations: 1.578 MB / 350 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.0362, allocations: 1.3 MB / 351.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001485/0.03769, allocations: 1.405 MB / 352.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002759/0.03798, allocations: 244 kB / 352.9 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002693/0.04068, allocations: 1.388 MB / 354.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.00279/0.04349, allocations: 3.891 MB / 358.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.00158/0.04508, allocations: 2.441 MB / 360.7 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005441/0.04563, allocations: 382.9 kB / 361 MB, free: 1.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003658/0.046, allocations: 55.75 kB / 361.1 MB, free: 1.188 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: 656 (436) * Number of variables: 656 (403) Notification: Performance of Bindings: time 0.01135/0.05736, allocations: 12.74 MB / 373.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.001242/0.05862, allocations: 1.273 MB / 375.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of Early Inline: time 0.1982/0.2568, allocations: 6.21 MB / 381.3 MB, free: 29.54 MB / 318.1 MB Notification: Performance of simplify1: time 0.0005898/0.2574, allocations: 376.4 kB / 381.7 MB, free: 29.54 MB / 318.1 MB Notification: Performance of Alias: time 0.01083/0.2683, allocations: 8.694 MB / 390.4 MB, free: 26.99 MB / 318.1 MB Notification: Performance of simplify2: time 0.0006836/0.269, allocations: 250.3 kB / 390.6 MB, free: 26.89 MB / 318.1 MB Notification: Performance of Events: time 0.0008928/0.2699, allocations: 0.701 MB / 391.3 MB, free: 26.47 MB / 318.1 MB Notification: Performance of Detect States: time 0.001428/0.2713, allocations: 1.442 MB / 392.8 MB, free: 25.49 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001958/0.2733, allocations: 1.756 MB / 394.5 MB, free: 24.54 MB / 318.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (251/512) **************************** (1) [ALGB] (2) Real[2] smee.airGapR.i_mr (2) [ALGB] (1) Real smee.spacePhasorS.zero.v (3) [ALGB] (3) Real[3] sineVoltage.sineVoltage.signalSource.y (4) [DISC] (3) Boolean[3] $SEV_6[$i1] (5) [ALGB] (3) flow Real[3] smee.rs.plug_p.pin.i (6) [ALGB] (3) Real[3] sineVoltage.sineVoltage.p.v (7) [ALGB] (3) flow Real[3] rotorDisplacementAngle.VoltageSensor1.voltageSensor.p.i (8) [ALGB] (1) flow Real smee.fixed.flange.tau (9) [ALGB] (3) Real[3] currentQuasiRMSSensor.CurrentSensor1.plug_n.pin.v (10) [DER-] (2) Real[2] $DER.smee.airGapR.psi_mr (11) [ALGB] (3) flow Real[3] smee.strayLoad.plug_p.pin.i (12) [DER-] (2) Real[2] $DER.smee.airGapR.psi_ms (13) [ALGB] (3) flow Real[3] terminalBox.star.plug_p.pin.i (14) [ALGB] (2) Real[2] smee.electricalExcitation.spacePhasor_r.v_ (15) [ALGB] (1) flow Real smee.thermalAmbient.thermalPort.heatPortBrush.Q_flow (16) [ALGB] (1) Real smee.lesigma.n.v (17) [ALGB] (1) final output Real smee.powerBalance.powerInertiaRotor = smee.inertiaRotor.a * smee.inertiaRotor.J * smee.inertiaRotor.w (18) [ALGB] (1) final output Real smee.powerBalance.powerExcitation = smee.ve * smee.ie (19) [ALGB] (1) flow Real smee.strayLoad.heatPort.Q_flow = -(-smee.strayLoad.heatPort.Q_flow) (20) [DER-] (1) Real $DER.constantSpeed.flange.phi (21) [DER-] (1) parameter Real $DER.smee.fixed.phi0 (22) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (23) [ALGB] (1) Real rotorDisplacementAngle.add.y (24) [DISC] (1) Boolean $TEV_1 (25) [ALGB] (1) Real rampCurrent.n.v (26) [DISC] (1) Boolean $TEV_0 (27) [ALGB] (2) final Real[2] smee.idq_sr = smee.airGapR.i_sr (StateSelect = prefer) (28) [ALGB] (2) final Real[2] smee.idq_ss = smee.airGapR.i_ss (29) [ALGB] (3) Real[3] smee.strayLoad.plug_p.pin.v (30) [ALGB] (3) Real[3] terminalBox.star.plug_p.pin.v (31) [ALGB] (2) Real[2] rotorDisplacementAngle.ToSpacePhasorVS.y (32) [ALGB] (3) Real[3] rotorDisplacementAngle.plug_n.pin.v (33) [ALGB] (1) flow Real smee.inertiaStator.flange_a.tau (34) [ALGB] (2) Real[2] rotorDisplacementAngle.ToPolarVSR.y (35) [ALGB] (1) final output Real smee.powerBalance.powerStator = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(smee.vs, smee.is) (36) [ALGB] (3) Real[3] rotorDisplacementAngle.ToSpacePhasorVS.u (37) [DER-] (1) Real $DER.constantSpeed.phi (38) [ALGB] (3) Real[3] smee.rs.v (39) [ALGB] (2) Real[2] rotorDisplacementAngle.ToPolarVSR.u (40) [DER-] (1) Real $DER.smee.phiMechanical (41) [ALGB] (3) flow Real[3] smee.plug_sp.pin.i (42) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (43) [ALGB] (2) protected Real[2] electricalPowerSensor.i_ (44) [ALGB] (3) Real[3] currentQuasiRMSSensor.ToSpacePhasor1.u (45) [ALGB] (1) flow Real smee.damperCage.heatPort.Q_flow = -(-smee.damperCage.heatPort.Q_flow) (46) [ALGB] (1) Real smee.electricalExcitation.ve (47) [ALGB] (1) Real smee.strayLoad.w (48) [ALGB] (2) Real[2] smee.idq_dr (StateSelect = prefer) (49) [ALGB] (3) Real[3] smee.strayLoad.v (50) [ALGB] (3) flow Real[3] rotorDisplacementAngle.plug_n.pin.i (51) [ALGB] (3) Real[3] smee.thermalAmbient.thermalCollectorStator.port_a.T (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (52) [ALGB] (2) Real[2] currentQuasiRMSSensor.ToSpacePhasor1.y (53) [ALGB] (3) Real[3] smee.rs.resistor.T_heatPort (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (54) [ALGB] (3) Real[3] smee.rs.i (55) [ALGB] (2) Real[2] smee.spacePhasorS.spacePhasor.v_ (56) [ALGB] (3) Real[3] smee.plug_sp.pin.v (57) [ALGB] (3) flow Real[3] sineVoltage.plug_n.pin.i (58) [ALGB] (3) Real[3] smee.spacePhasorS.i (59) [ALGB] (1) final output Real smee.powerBalance.powerMechanical = smee.wMechanical * smee.tauShaft (60) [ALGB] (3) Real[3] rotorDisplacementAngle.VoltageSensor1.v (61) [ALGB] (1) Real currentQuasiRMSSensor.Gain1.y (62) [ALGB] (1) Real smee.brush.n.v (63) [ALGB] (3) Real[3] smee.strayLoad.i (64) [ALGB] (1) Real currentQuasiRMSSensor.Gain1.u (65) [ALGB] (2) Real[2] smee.statorCore.spacePhasor.v_ (66) [ALGB] (1) Real smee.strayLoad.iRMS = Modelica.Electrical.MultiPhase.Functions.quasiRMS(smee.strayLoad.i) (67) [ALGB] (2) Real[2] smee.damperCage.i = -smee.damperCage.spacePhasor_r.i_ (68) [DISC] (3) Boolean[3] $SEV_0[$i1] (69) [ALGB] (2) Real[2] smee.airGapR.spacePhasor_s.v_ (70) [ALGB] (3) Real[3] smee.spacePhasorS.v (71) [ALGB] (1) Real smee.tauElectrical = smee.tauElectrical (72) [ALGB] (3) Real[3] terminalBox.plug_sp.pin.v (73) [ALGB] (3) Real[3] smee.rs.heatPort.T (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (74) [ALGB] (3) Real[3] currentQuasiRMSSensor.CurrentSensor1.currentSensor.i (75) [ALGB] (3) protected Real[3] smee.internalThermalPort.heatPortStatorWinding.T (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (76) [ALGB] (3) flow Real[3] terminalBox.plug_sp.pin.i (77) [ALGB] (1) Real $FUN_8 (78) [ALGB] (1) Real $FUN_7 (79) [ALGB] (3) Real[3] smee.rs.resistor.i (80) [ALGB] (1) Real $FUN_5 (81) [ALGB] (1) Real rotorDisplacementAngle.relativeAngleSensor.phi_rel (82) [ALGB] (1) Real $FUN_4 (83) [ALGB] (1) final Real smee.thermalAmbient.Q_flowTotal = smee.thermalAmbient.Q_flowStrayLoad + smee.thermalAmbient.Q_flowStatorCore + smee.thermalAmbient.Q_flowRotorWinding + smee.thermalAmbient.Q_flowStatorWinding + smee.thermalAmbient.Q_flowExcitation + 0.0 + smee.thermalAmbient.Q_flowFriction (84) [ALGB] (3) Real[3] rotorDisplacementAngle.VoltageSensor1.plug_p.pin.v (85) [ALGB] (1) Real $FUN_24 (86) [ALGB] (3) flow Real[3] smee.spacePhasorS.plug_n.pin.i (87) [ALGB] (3) Real[3] smee.rs.plug_n.pin.v (88) [ALGB] (1) Real $FUN_23 (89) [ALGB] (1) Real $FUN_21 (90) [ALGB] (1) Real $FUN_20 (91) [DER-] (1) Real $DER.smee.ie (92) [DER-] (1) Real $DER.smee.inertiaStator.w (93) [ALGB] (2) Real[2] smee.lssigma.v_ (94) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.CurrentSensor1.plug_p.pin.i (95) [ALGB] (3) Real[3] smee.rs.resistor.v (96) [ALGB] (3) flow Real[3] smee.rs.resistor.p.i (97) [ALGB] (3) flow Real[3] rotorDisplacementAngle.VoltageSensor1.plug_p.pin.i (98) [ALGB] (3) Real[3] smee.rs.resistor.R_actual (99) [ALGB] (1) Real smee.damperCage.Rrd_actual (100) [ALGB] (3) Real[3] smee.spacePhasorS.plug_n.pin.v (101) [ALGB] (3) flow Real[3] smee.rs.plug_n.pin.i (102) [ALGB] (1) flow Real smee.re.heatPort.Q_flow = -(-smee.re.heatPort.Q_flow) (103) [ALGB] (2) Real[2] smee.airGapR.spacePhasor_r.v_ (104) [ALGB] (3) flow Real[3] electricalPowerSensor.plug_nv.pin.i (105) [ALGB] (1) final output Real smee.powerBalance.lossPowerBrush = -smee.brush.heatPort.Q_flow (106) [DER-] (1) Real $DER.smee.friction.phi (107) [ALGB] (1) Real smee.airGapR.gamma (108) [ALGB] (4) Real[2, 2] smee.airGapR.RotationMatrix (109) [ALGB] (3) Real[3] currentQuasiRMSSensor.CurrentSensor1.plug_p.pin.v (110) [ALGB] (3) flow Real[3] smee.thermalAmbient.thermalPort.heatPortStatorWinding.Q_flow (111) [ALGB] (1) Real smee.friction.w (112) [ALGB] (2) Real[2] currentQuasiRMSSensor.ToPolar1.u (113) [ALGB] (3) Real[3] smee.thermalAmbient.thermalPort.heatPortStatorWinding.T (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (114) [ALGB] (1) final Real smee.thermalAmbient.Q_flowExcitation = smee.thermalAmbient.Q_flowExcitation (115) [ALGB] (3) Real[3] smee.rs.resistor.p.v (116) [ALGB] (1) Real currentQuasiRMSSensor.ToSpacePhasor1.zero (117) [DER-] (2) Real[2] $DER.smee.lssigma.i_ (118) [ALGB] (1) Real smee.re.v (119) [ALGB] (3) Real[3] rotorDisplacementAngle.VoltageSensor1.voltageSensor.n.v (120) [ALGB] (2) Real[2] currentQuasiRMSSensor.ToPolar1.y (121) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.CurrentSensor1.currentSensor.n.i (122) [ALGB] (3) Real[3] sineVoltage.v (123) [ALGB] (3) Real[3] electricalPowerSensor.plug_nv.pin.v (124) [ALGB] (3) Real[3] $FUN_17 (125) [ALGB] (1) Real $FUN_16 (126) [ALGB] (1) Real smee.lszero.v (127) [ALGB] (1) Real $FUN_15 (128) [DER-] (1) Real $DER.smee.strayLoad.phi (129) [ALGB] (1) Real rotorDisplacementAngle.ToSpacePhasorVS.zero (130) [ALGB] (4) protected Real[2, 2] rotorDisplacementAngle.rotatorVS2R.RotationMatrix = {{cos(-rotorDisplacementAngle.add.y), -sin(-rotorDisplacementAngle.add.y)}, {sin(-rotorDisplacementAngle.add.y), cos(-rotorDisplacementAngle.add.y)}} (131) [ALGB] (3) Real[3] currentQuasiRMSSensor.plug_p.pin.v (132) [ALGB] (1) Real terminalBox.star.pin_n.v (133) [ALGB] (1) Real $FUN_13 (134) [ALGB] (2) Real[2] $FUN_12 (135) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (136) [ALGB] (1) Real $FUN_11 (137) [ALGB] (2) Real[2] smee.lssigma.spacePhasor_b.v_ (138) [ALGB] (2) Real[2] $FUN_10 (139) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStatorWinding = smee.thermalAmbient.Q_flowStatorWinding (140) [ALGB] (3) flow Real[3] rotorDisplacementAngle.VoltageSensor1.voltageSensor.n.i (141) [ALGB] (1) Real rotorDisplacementAngle.wrapAngle.y (142) [ALGB] (1) flow Real smee.statorCore.heatPort.Q_flow = -(-smee.statorCore.heatPort.Q_flow) (143) [ALGB] (3) Real[3] currentQuasiRMSSensor.CurrentSensor1.currentSensor.n.v (144) [ALGB] (3) Real[3] sineVoltage.i (145) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.plug_p.pin.i (146) [ALGB] (3) Real[3] smee.is = smee.plug_sp.pin.i (147) [ALGB] (2) Real[2] smee.ir (fixed = {true for $i1 in 1:2}, start = {0.0 for $i1 in 1:2}) (148) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (149) [DISC] (1) Boolean $SEV_3 (150) [DISC] (1) Boolean $SEV_2 (151) [ALGB] (3) Real[3] smee.rs.resistor.heatPort.T = {smee.rs.resistor[$resistor1].T_heatPort for $resistor1 in 1:3} (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (152) [DISC] (1) Boolean $SEV_1 (153) [ALGB] (2) flow Real[2] smee.statorCore.spacePhasor.i_ (154) [ALGB] (3) protected flow Real[3] smee.internalThermalPort.heatPortStatorWinding.Q_flow (155) [ALGB] (1) final output Real smee.powerBalance.lossPowerRotorWinding = -smee.damperCage.heatPort.Q_flow (156) [ALGB] (1) Real mechanicalPowerSensor.product.y (157) [ALGB] (2) flow Real[2] smee.airGapR.spacePhasor_s.i_ (158) [ALGB] (1) final output Real smee.powerBalance.lossPowerStatorCore = -smee.statorCore.heatPort.Q_flow (159) [ALGB] (2) Real[2] rotorDisplacementAngle.rotatorVS2R.u (160) [ALGB] (3) flow Real[3] smee.rs.heatPort.Q_flow (161) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStatorCore = smee.thermalAmbient.Q_flowStatorCore (162) [ALGB] (2) Real[2] rotorDisplacementAngle.rotatorVS2R.y (163) [DER-] (1) Real $DER.smee.inertiaRotor.w (164) [ALGB] (1) Real electricalPowerSensor.P (165) [ALGB] (1) flow Real star.pin_n.i (166) [DER-] (1) Real $DER.mechanicalPowerSensor.relSpeedSensor.phi_rel (167) [ALGB] (1) Real electricalPowerSensor.Q (168) [ALGB] (1) Real smee.re.n.v (169) [ALGB] (2) Real[2] smee.airGapR.i_rr (170) [ALGB] (2) Real[2] smee.airGapR.i_rs (171) [ALGB] (3) flow Real[3] smee.strayLoad.plug_n.pin.i (172) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStrayLoad = smee.thermalAmbient.Q_flowStrayLoad (173) [ALGB] (3) Real[3] terminalBox.plug_sn.pin.v (174) [ALGB] (2) Real[2] smee.lssigma.spacePhasor_a.v_ (175) [ALGB] (1) Real smee.tauShaft = -(-smee.tauShaft) (176) [ALGB] (1) final output Real smee.powerBalance.lossPowerStrayLoad = -smee.strayLoad.heatPort.Q_flow (177) [ALGB] (1) Real smee.re.R_actual (178) [DER-] (1) Real $DER.smee.i_0_s (179) [ALGB] (1) flow Real mechanicalPowerSensor.torqueSensor.flange_a.tau (180) [ALGB] (3) Real[3] smee.strayLoad.plug_n.pin.v (181) [ALGB] (3) flow Real[3] terminalBox.plug_sn.pin.i (182) [ALGB] (3) Real[3] rotorDisplacementAngle.plug_p.pin.v (183) [ALGB] (2) flow Real[2] smee.electricalExcitation.spacePhasor_r.i_ (184) [ALGB] (3) Real[3] currentQuasiRMSSensor.CurrentSensor1.i (185) [ALGB] (1) final output Real smee.powerBalance.lossPowerExcitation = -smee.re.heatPort.Q_flow (186) [ALGB] (1) flow Real smee.brush.heatPort.Q_flow = -(-smee.brush.heatPort.Q_flow) (187) [ALGB] (1) Real rampCurrent.v (188) [ALGB] (3) Real[3] rotorDisplacementAngle.VoltageSensor1.plug_n.pin.v (189) [ALGB] (3) flow Real[3] smee.spacePhasorS.plug_p.pin.i (190) [ALGB] (1) final Real smee.thermalAmbient.Q_flowRotorWinding = smee.thermalAmbient.Q_flowRotorWinding (191) [ALGB] (1) flow Real smee.inertiaRotor.flange_b.tau (192) [ALGB] (2) flow Real[2] smee.airGapR.spacePhasor_r.i_ (193) [ALGB] (3) flow Real[3] smee.plug_sn.pin.i (194) [ALGB] (3) Real[3] smee.rs.resistor.LossPower (195) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (196) [ALGB] (2) Real[2] rotorDisplacementAngle.lessThreshold.u (197) [ALGB] (3) flow Real[3] rotorDisplacementAngle.plug_p.pin.i (198) [ALGB] (2) Real[2] smee.airGapR.i_sr (199) [ALGB] (2) Real[2] smee.airGapR.i_ss (200) [ALGB] (1) Real rotorDisplacementAngle.lessThreshold.y (201) [ALGB] (1) final output Real smee.powerBalance.lossPowerRotorCore = 0.0 (202) [ALGB] (3) flow Real[3] rotorDisplacementAngle.VoltageSensor1.plug_n.pin.i (203) [ALGB] (3) flow Real[3] terminalBox.plugSupply.pin.i (204) [ALGB] (3) Real[3] smee.spacePhasorS.plug_p.pin.v (205) [ALGB] (3) Real[3] smee.plug_sn.pin.v (206) [ALGB] (1) Real smee.wMechanical = der(smee.phiMechanical) (start = 0.0) (207) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (208) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (209) [ALGB] (2) protected Real[2] electricalPowerSensor.v_ (210) [ALGB] (1) final Real smee.thermalAmbient.Q_flowFriction = smee.thermalAmbient.Q_flowFriction (211) [ALGB] (2) flow Real[2] smee.lssigma.spacePhasor_b.i_ (212) [ALGB] (3) Real[3] rotorDisplacementAngle.VoltageSensor1.voltageSensor.v (213) [ALGB] (1) final output Real smee.powerBalance.lossPowerTotal = smee.powerBalance.lossPowerExcitation + smee.powerBalance.lossPowerFriction + smee.powerBalance.lossPowerRotorCore + smee.powerBalance.lossPowerStatorWinding + smee.powerBalance.lossPowerStatorCore + smee.powerBalance.lossPowerStrayLoad + smee.powerBalance.lossPowerRotorWinding + smee.powerBalance.lossPowerBrush (214) [ALGB] (1) Real smee.inertiaRotor.a (215) [ALGB] (3) Real[3] terminalBox.plugSupply.pin.v (216) [ALGB] (2) flow Real[2] smee.spacePhasorS.spacePhasor.i_ (217) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (218) [ALGB] (1) flow Real mechanicalPowerSensor.flange_a.tau (219) [ALGB] (3) Real[3] smee.vs = smee.plug_sp.pin.v - smee.plug_sn.pin.v (220) [ALGB] (1) Real smee.damperCage.Rrq_actual (221) [ALGB] (3) Real[3] currentQuasiRMSSensor.plug_n.pin.v (222) [ALGB] (3) flow Real[3] star.plug_p.pin.i (223) [ALGB] (3) flow Real[3] electricalPowerSensor.plug_p.pin.i (224) [ALGB] (3) flow Real[3] electricalPowerSensor.plug_ni.pin.i (225) [ALGB] (1) flow Real groundExcitation.p.i (226) [ALGB] (1) final output Real smee.powerBalance.lossPowerFriction = -smee.friction.heatPort.Q_flow (227) [ALGB] (3) flow Real[3] smee.thermalAmbient.thermalCollectorStator.port_a.Q_flow (228) [ALGB] (3) flow Real[3] smee.rs.resistor.n.i (229) [ALGB] (1) Real smee.ve = rampCurrent.n.v - 0.0 (230) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.plug_n.pin.i (231) [ALGB] (3) Real[3] star.plug_p.pin.v (232) [ALGB] (3) Real[3] electricalPowerSensor.plug_p.pin.v (233) [ALGB] (3) Real[3] electricalPowerSensor.plug_ni.pin.v (234) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.CurrentSensor1.currentSensor.p.i (235) [ALGB] (1) final output Real smee.powerBalance.lossPowerStatorWinding = sum(smee.rs.resistor.LossPower) (236) [ALGB] (2) Real[2] smee.damperCage.spacePhasor_r.v_ (237) [ALGB] (1) flow Real smee.friction.heatPort.Q_flow = -(-smee.friction.heatPort.Q_flow) (238) [ALGB] (2) final Real[2] smee.idq_rr = smee.airGapR.i_rr (StateSelect = prefer) (239) [ALGB] (2) final Real[2] smee.idq_rs = smee.airGapR.i_rs (240) [ALGB] (3) Real[3] smee.rs.plug_p.pin.v (241) [ALGB] (1) Real mechanicalPowerSensor.relSpeedSensor.w_rel (242) [ALGB] (3) Real[3] smee.rs.resistor.n.v (243) [ALGB] (1) final output Real smee.powerBalance.powerInertiaStator = smee.inertiaStator.a * smee.inertiaStator.J * smee.inertiaStator.w (244) [ALGB] (3) flow Real[3] smee.rs.resistor.heatPort.Q_flow = {-smee.rs.resistor[$resistor1].LossPower for $resistor1 in 1:3} (245) [ALGB] (3) Real[3] rotorDisplacementAngle.VoltageSensor1.voltageSensor.p.v (246) [DER-] (2) flow Real[2] $DER.smee.damperCage.spacePhasor_r.i_ (247) [ALGB] (1) Real smee.inertiaStator.a (248) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.CurrentSensor1.plug_n.pin.i (249) [ALGB] (3) Real[3] currentQuasiRMSSensor.CurrentSensor1.currentSensor.p.v (250) [ALGB] (1) Real smee.lesigma.v (251) [ALGB] (2) flow Real[2] smee.lssigma.spacePhasor_a.i_ System Equations (281/511) **************************** (1) [FOR-] (3) ($RES_SIM_429) (1) [----] for $i1 in 1:3 loop (1) [----] [SCAL] (1) smee.rs.resistor[$i1].n.i - smee.rs.plug_n.pin[$i1].i = 0.0 ($RES_SIM_430) (1) [----] end for; (2) [ARRY] (3) electricalPowerSensor.plug_ni.pin.v = currentQuasiRMSSensor.plug_p.pin.v ($RES_SIM_254) (3) [FOR-] (3) ($RES_SIM_255) (3) [----] for $i1 in 1:3 loop (3) [----] [SCAL] (1) star.plug_p.pin[$i1].i + sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_256) (3) [----] end for; (4) [ARRY] (3) star.plug_p.pin.v = sineVoltage.plug_n.pin.v ($RES_SIM_257) (5) [SCAL] (1) terminalBox.plug_sp.pin[3].i + smee.plug_sp.pin[3].i + rotorDisplacementAngle.plug_p.pin[3].i = 0.0 ($RES_SIM_259) (6) [ARRY] (3) rotorDisplacementAngle.VoltageSensor1.voltageSensor.n.v = rotorDisplacementAngle.VoltageSensor1.plug_n.pin.v ($RES_SIM_340) (7) [FOR-] (3) ($RES_SIM_170) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) smee.rs.resistor[$i1].v = smee.rs.resistor[$i1].R_actual * smee.rs.resistor[$i1].i ($RES_SIM_171) (7) [----] end for; (8) [SCAL] (1) (smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].Q_flow + smee.rs.heatPort[3].Q_flow) - smee.internalThermalPort.heatPortStatorWinding[3].Q_flow = 0.0 ($RES_SIM_347) (9) [FOR-] (3) ($RES_SIM_172) (9) [----] for $i1 in 1:3 loop (9) [----] [SCAL] (1) smee.rs.resistor[$i1].R_actual = smee.rs.resistor[$i1].R * (1.0 + smee.rs.resistor[$i1].alpha * (smee.rs.resistor[$i1].T_heatPort - smee.rs.resistor[$i1].T_ref)) ($RES_SIM_173) (9) [----] end for; (10) [SCAL] (1) (smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].Q_flow + smee.rs.heatPort[2].Q_flow) - smee.internalThermalPort.heatPortStatorWinding[2].Q_flow = 0.0 ($RES_SIM_348) (11) [SCAL] (1) (smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].Q_flow + smee.rs.heatPort[1].Q_flow) - smee.internalThermalPort.heatPortStatorWinding[1].Q_flow = 0.0 ($RES_SIM_349) (12) [SCAL] (1) 3.0 * smee.spacePhasorS.zero.v = sum(smee.spacePhasorS.v) ($RES_$AUX_510) (13) [SCAL] (1) smee.thermalAmbient.Q_flowTotal = smee.thermalAmbient.Q_flowStrayLoad + smee.thermalAmbient.Q_flowStatorCore + smee.thermalAmbient.Q_flowRotorWinding + smee.thermalAmbient.Q_flowStatorWinding + smee.thermalAmbient.Q_flowExcitation + smee.thermalAmbient.Q_flowFriction ($RES_BND_477) (14) [SCAL] (1) smee.ve = rampCurrent.n.v ($RES_BND_478) (15) [SCAL] (1) smee.friction.w = $DER.smee.friction.phi ($RES_SIM_178) (16) [SCAL] (1) smee.friction.phi = constantSpeed.flange.phi - smee.fixed.phi0 ($RES_SIM_179) (17) [ARRY] (3) smee.rs.resistor.n.v = smee.rs.plug_n.pin.v ($RES_SIM_431) (18) [FOR-] (3) ($RES_SIM_432) (18) [----] for $i1 in 1:3 loop (18) [----] [SCAL] (1) smee.rs.resistor[$i1].p.i - smee.rs.plug_p.pin[$i1].i = 0.0 ($RES_SIM_433) (18) [----] end for; (19) [ARRY] (3) smee.rs.resistor.p.v = smee.rs.plug_p.pin.v ($RES_SIM_434) (20) [SCAL] (1) terminalBox.plug_sp.pin[2].i + smee.plug_sp.pin[2].i + rotorDisplacementAngle.plug_p.pin[2].i = 0.0 ($RES_SIM_260) (21) [SCAL] (1) terminalBox.plug_sp.pin[1].i + smee.plug_sp.pin[1].i + rotorDisplacementAngle.plug_p.pin[1].i = 0.0 ($RES_SIM_261) (22) [SCAL] (1) terminalBox.plug_sp.pin[3].v = rotorDisplacementAngle.plug_p.pin[3].v ($RES_SIM_262) (23) [SCAL] (1) terminalBox.plug_sp.pin[3].v = smee.plug_sp.pin[3].v ($RES_SIM_263) (24) [SCAL] (1) terminalBox.plug_sp.pin[2].v = rotorDisplacementAngle.plug_p.pin[2].v ($RES_SIM_264) (25) [SCAL] (1) terminalBox.plug_sp.pin[2].v = smee.plug_sp.pin[2].v ($RES_SIM_265) (26) [SCAL] (1) terminalBox.plug_sp.pin[1].v = rotorDisplacementAngle.plug_p.pin[1].v ($RES_SIM_266) (27) [SCAL] (1) terminalBox.plug_sp.pin[1].v = smee.plug_sp.pin[1].v ($RES_SIM_267) (28) [SCAL] (1) electricalPowerSensor.plug_nv.pin[3].i + terminalBox.plug_sn.pin[3].i + smee.plug_sn.pin[3].i + rotorDisplacementAngle.plug_n.pin[3].i = 0.0 ($RES_SIM_268) (29) [SCAL] (1) electricalPowerSensor.plug_nv.pin[2].i + terminalBox.plug_sn.pin[2].i + smee.plug_sn.pin[2].i + rotorDisplacementAngle.plug_n.pin[2].i = 0.0 ($RES_SIM_269) (30) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].T = smee.rs.heatPort[3].T ($RES_SIM_350) (31) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].T = smee.internalThermalPort.heatPortStatorWinding[3].T ($RES_SIM_351) (32) [SCAL] (1) -3.0 * smee.i_0_s = sum(smee.spacePhasorS.i) ($RES_$AUX_509) (33) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].T = smee.rs.heatPort[2].T ($RES_SIM_352) (34) [SCAL] (1) smee.thermalAmbient.Q_flowStatorWinding = sum(smee.thermalAmbient.thermalCollectorStator.port_a.Q_flow) ($RES_$AUX_508) (35) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].T = smee.internalThermalPort.heatPortStatorWinding[2].T ($RES_SIM_353) (36) [SCAL] (1) $FUN_4 = cos(smee.airGapR.gamma) ($RES_$AUX_507) (37) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].T = smee.rs.heatPort[1].T ($RES_SIM_354) (38) [SCAL] (1) $FUN_5 = sin(smee.airGapR.gamma) ($RES_$AUX_506) (39) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].T = smee.internalThermalPort.heatPortStatorWinding[1].T ($RES_SIM_355) (40) [SCAL] (1) -smee.friction.heatPort.Q_flow = 0.0 ($RES_SIM_180) (41) [SCAL] (1) 3.0 * rotorDisplacementAngle.ToSpacePhasorVS.zero = sum(rotorDisplacementAngle.ToSpacePhasorVS.u) ($RES_$AUX_505) (42) [SCAL] (1) $FUN_7 = sqrt(rotorDisplacementAngle.ToPolarVSR.u[1] ^ 2.0 + rotorDisplacementAngle.ToPolarVSR.u[2] ^ 2.0) ($RES_$AUX_504) (43) [ARRY] (2) smee.damperCage.i = -smee.damperCage.spacePhasor_r.i_ ($RES_BND_482) (44) [SCAL] (1) $FUN_8 = atan2(rotorDisplacementAngle.ToPolarVSR.u[2], rotorDisplacementAngle.ToPolarVSR.u[1]) ($RES_$AUX_503) (45) [SCAL] (1) smee.inertiaStator.J * smee.inertiaStator.a = smee.inertiaStator.flange_a.tau ($RES_SIM_183) (46) [SCAL] (1) rotorDisplacementAngle.wrapAngle.y = Modelica.Math.wrapAngle(rotorDisplacementAngle.lessThreshold.y, rotorDisplacementAngle.wrapAngle.positiveRange) ($RES_$AUX_502) (47) [SCAL] (1) smee.inertiaStator.a = $DER.smee.inertiaStator.w ($RES_SIM_184) (48) [TUPL] (3) ($FUN_10, $FUN_11) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(electricalPowerSensor.plug_p.pin.v - electricalPowerSensor.plug_nv.pin.v) ($RES_$AUX_501) (49) [SCAL] (1) smee.inertiaStator.w = $DER.smee.fixed.phi0 ($RES_SIM_185) (50) [TUPL] (3) ($FUN_12, $FUN_13) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(electricalPowerSensor.plug_p.pin.i) ($RES_$AUX_500) (51) [ARRY] (4) rotorDisplacementAngle.rotatorVS2R.RotationMatrix = {{$FUN_20, -$FUN_21}, {$FUN_21, $FUN_20}} ($RES_BND_487) (52) [SCAL] (1) smee.inertiaRotor.J * smee.inertiaRotor.a = smee.tauElectrical + smee.inertiaRotor.flange_b.tau ($RES_SIM_188) (53) [SCAL] (1) smee.inertiaRotor.a = $DER.smee.inertiaRotor.w ($RES_SIM_189) (54) [SCAL] (1) electricalPowerSensor.plug_nv.pin[1].i + terminalBox.plug_sn.pin[1].i + smee.plug_sn.pin[1].i + rotorDisplacementAngle.plug_n.pin[1].i = 0.0 ($RES_SIM_270) (55) [SCAL] (1) terminalBox.plug_sn.pin[3].v = rotorDisplacementAngle.plug_n.pin[3].v ($RES_SIM_271) (56) [SCAL] (1) terminalBox.plug_sn.pin[3].v = electricalPowerSensor.plug_nv.pin[3].v ($RES_SIM_272) (57) [SCAL] (1) terminalBox.plug_sn.pin[3].v = smee.plug_sn.pin[3].v ($RES_SIM_273) (58) [SCAL] (1) terminalBox.plug_sn.pin[2].v = rotorDisplacementAngle.plug_n.pin[2].v ($RES_SIM_274) (59) [SCAL] (1) terminalBox.plug_sn.pin[2].v = electricalPowerSensor.plug_nv.pin[2].v ($RES_SIM_275) (60) [SCAL] (1) terminalBox.plug_sn.pin[2].v = smee.plug_sn.pin[2].v ($RES_SIM_276) (61) [SCAL] (1) terminalBox.plug_sn.pin[1].v = rotorDisplacementAngle.plug_n.pin[1].v ($RES_SIM_277) (62) [SCAL] (1) terminalBox.plug_sn.pin[1].v = electricalPowerSensor.plug_nv.pin[1].v ($RES_SIM_278) (63) [SCAL] (1) terminalBox.plug_sn.pin[1].v = smee.plug_sn.pin[1].v ($RES_SIM_279) (64) [SCAL] (1) smee.statorCore.spacePhasor.i_[2] + smee.lssigma.spacePhasor_a.i_[2] + smee.spacePhasorS.spacePhasor.i_[2] = 0.0 ($RES_SIM_360) (65) [SCAL] (1) smee.statorCore.spacePhasor.i_[1] + smee.lssigma.spacePhasor_a.i_[1] + smee.spacePhasorS.spacePhasor.i_[1] = 0.0 ($RES_SIM_361) (66) [SCAL] (1) smee.statorCore.spacePhasor.v_[2] = smee.spacePhasorS.spacePhasor.v_[2] ($RES_SIM_362) (67) [SCAL] (1) smee.statorCore.spacePhasor.v_[2] = smee.lssigma.spacePhasor_a.v_[2] ($RES_SIM_363) (68) [SCAL] (1) smee.statorCore.spacePhasor.v_[1] = smee.spacePhasorS.spacePhasor.v_[1] ($RES_SIM_364) (69) [SCAL] (1) smee.inertiaRotor.w = $DER.constantSpeed.flange.phi ($RES_SIM_190) (70) [SCAL] (1) smee.statorCore.spacePhasor.v_[1] = smee.lssigma.spacePhasor_a.v_[1] ($RES_SIM_365) (71) [FOR-] (3) ($RES_SIM_368) (71) [----] for $i1 in 1:3 loop (71) [----] [SCAL] (1) smee.spacePhasorS.plug_p.pin[$i1].i + smee.rs.plug_n.pin[$i1].i = 0.0 ($RES_SIM_369) (71) [----] end for; (72) [SCAL] (1) mechanicalPowerSensor.torqueSensor.flange_a.tau - mechanicalPowerSensor.flange_a.tau = 0.0 ($RES_SIM_199) (73) [FOR-] (3) ($RES_SIM_281) (73) [----] for $i1 in 1:3 loop (73) [----] [SCAL] (1) -(terminalBox.plug_sp.pin[$i1].i + terminalBox.plugSupply.pin[$i1].i) = 0.0 ($RES_SIM_282) (73) [----] end for; (74) [ARRY] (3) terminalBox.plug_sp.pin.v = terminalBox.plugSupply.pin.v ($RES_SIM_283) (75) [FOR-] (3) ($RES_SIM_284) (75) [----] for $i1 in 1:3 loop (75) [----] [SCAL] (1) terminalBox.star.plug_p.pin[$i1].i - terminalBox.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_285) (75) [----] end for; (76) [ARRY] (3) terminalBox.plug_sn.pin.v = terminalBox.star.plug_p.pin.v ($RES_SIM_286) (77) [FOR-] (3) ($RES_SIM_287) (77) [----] for $i1 in 1:3 loop (77) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_288) (77) [----] end for; (78) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_289) (79) [SCAL] (1) smee.ie = rampCurrent.signalSource.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (rampCurrent.signalSource.height * (time - rampCurrent.signalSource.startTime)) / rampCurrent.signalSource.duration else rampCurrent.signalSource.height) ($RES_SIM_8) (80) [ARRY] (3) smee.spacePhasorS.plug_p.pin.v = smee.rs.plug_n.pin.v ($RES_SIM_370) (81) [SCAL] (1) rampCurrent.v = -rampCurrent.n.v ($RES_SIM_6) (82) [FOR-] (3) ($RES_SIM_371) (82) [----] for $i1 in 1:3 loop (82) [----] [SCAL] (1) smee.strayLoad.plug_p.pin[$i1].i - smee.plug_sp.pin[$i1].i = 0.0 ($RES_SIM_372) (82) [----] end for; (83) [ARRY] (3) smee.strayLoad.plug_p.pin.v = smee.plug_sp.pin.v ($RES_SIM_373) (84) [FOR-] (3) ($RES_SIM_374) (84) [----] for $i1 in 1:3 loop (84) [----] [SCAL] (1) smee.strayLoad.plug_n.pin[$i1].i + smee.rs.plug_p.pin[$i1].i = 0.0 ($RES_SIM_375) (84) [----] end for; (85) [FOR-] (3) ($RES_SIM_2) (85) [----] for $i1 in 1:3 loop (85) [----] [SCAL] (1) terminalBox.star.plug_p.pin[$i1].v = terminalBox.star.pin_n.v ($RES_SIM_3) (85) [----] end for; (86) [ARRY] (3) smee.strayLoad.plug_n.pin.v = smee.rs.plug_p.pin.v ($RES_SIM_376) (87) [FOR-] (3) ($RES_SIM_377) (87) [----] for $i1 in 1:3 loop (87) [----] [SCAL] (1) smee.spacePhasorS.plug_n.pin[$i1].i - smee.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_378) (87) [----] end for; (88) [ARRY] (3) smee.spacePhasorS.plug_n.pin.v = smee.plug_sn.pin.v ($RES_SIM_379) (89) [FOR-] (3) ($RES_SIM_290) (89) [----] for $i1 in 1:3 loop (89) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_291) (89) [----] end for; (90) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_292) (91) [SCAL] (1) currentQuasiRMSSensor.ToPolar1.y[1] = currentQuasiRMSSensor.Gain1.u ($RES_SIM_294) (92) [ARRY] (2) currentQuasiRMSSensor.ToSpacePhasor1.y = currentQuasiRMSSensor.ToPolar1.u ($RES_SIM_295) (93) [ARRY] (3) currentQuasiRMSSensor.CurrentSensor1.i = currentQuasiRMSSensor.ToSpacePhasor1.u ($RES_SIM_296) (94) [FOR-] (3) ($RES_SIM_297) (94) [----] for $i1 in 1:3 loop (94) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.plug_n.pin[$i1].i - currentQuasiRMSSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_298) (94) [----] end for; (95) [ARRY] (3) currentQuasiRMSSensor.CurrentSensor1.plug_n.pin.v = currentQuasiRMSSensor.plug_n.pin.v ($RES_SIM_299) (96) [FOR-] (3) ($RES_SIM_11) (96) [----] for $i1 in 1:3 loop (96) [----] [SCAL] (1) star.plug_p.pin[$i1].v = 0.0 ($RES_SIM_12) (96) [----] end for; (97) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_13) (98) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_14) (99) [FOR-] (3) ($RES_SIM_15) (99) [----] for $i1 in 1:3 loop (99) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_16) (99) [----] end for; (100) [FOR-] (3) ($RES_SIM_17) (100) [----] for $i1 in 1:3 loop (100) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_18) (100) [----] end for; (101) [FOR-] (3) ($RES_SIM_19) (101) [----] for $i1 in 1:3 loop (101) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_20) (101) [----] end for; (102) [FOR-] (2) ($RES_SIM_392) (102) [----] for $i1 in 1:2 loop (102) [----] [SCAL] (1) smee.lssigma.spacePhasor_b.i_[$i1] + smee.airGapR.spacePhasor_s.i_[$i1] = 0.0 ($RES_SIM_393) (102) [----] end for; (103) [ARRY] (2) smee.lssigma.spacePhasor_b.v_ = smee.airGapR.spacePhasor_s.v_ ($RES_SIM_394) (104) [FOR-] (3) ($RES_SIM_21) (104) [----] for $i1 in 1:3 loop (104) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_22) (104) [----] end for; (105) [FOR-] (3) ($RES_SIM_23) (105) [----] for $i1 in 1:3 loop (105) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].signalSource.y = sineVoltage.sineVoltage[$i1].signalSource.offset + (if $SEV_0[$i1] then 0.0 else sineVoltage.sineVoltage[$i1].signalSource.amplitude * $FUN_17[$i1]) ($RES_SIM_24) (105) [----] end for; (106) [SCAL] (1) currentQuasiRMSSensor.ToPolar1.y[2] = if noEvent($SEV_1) then 0.0 else $FUN_16 ($RES_SIM_25) (107) [SCAL] (1) currentQuasiRMSSensor.ToPolar1.y[1] = $FUN_15 ($RES_SIM_26) (108) [ARRY] (2) currentQuasiRMSSensor.ToSpacePhasor1.y = currentQuasiRMSSensor.ToSpacePhasor1.TransformationMatrix * currentQuasiRMSSensor.ToSpacePhasor1.u ($RES_SIM_27) (109) [SCAL] (1) currentQuasiRMSSensor.Gain1.y = currentQuasiRMSSensor.Gain1.k * currentQuasiRMSSensor.Gain1.u ($RES_SIM_29) (110) [FOR-] (3) ($RES_SIM_30) (110) [----] for $i1 in 1:3 loop (110) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].n.i = -currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].i ($RES_SIM_31) (110) [----] end for; (111) [FOR-] (3) ($RES_SIM_32) (111) [----] for $i1 in 1:3 loop (111) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].p.i = currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].i ($RES_SIM_33) (111) [----] end for; (112) [FOR-] (3) ($RES_SIM_34) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].p.v = currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].n.v ($RES_SIM_35) (112) [----] end for; (113) [SCAL] (1) 0.6666666666666666 * electricalPowerSensor.Q = electricalPowerSensor.v_[2] * electricalPowerSensor.i_[1] - electricalPowerSensor.v_[1] * electricalPowerSensor.i_[2] ($RES_SIM_36) (114) [SCAL] (1) 0.6666666666666666 * electricalPowerSensor.P = electricalPowerSensor.v_[1] * electricalPowerSensor.i_[1] + electricalPowerSensor.v_[2] * electricalPowerSensor.i_[2] ($RES_SIM_37) (115) [ARRY] (2) electricalPowerSensor.i_ = $FUN_12 ($RES_SIM_38) (116) [ARRY] (2) electricalPowerSensor.v_ = $FUN_10 ($RES_SIM_39) (117) [ARRY] (3) electricalPowerSensor.plug_nv.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_40) (118) [ARRY] (3) electricalPowerSensor.plug_p.pin.i + electricalPowerSensor.plug_ni.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_41) (119) [ARRY] (3) electricalPowerSensor.plug_p.pin.v = electricalPowerSensor.plug_ni.pin.v ($RES_SIM_42) (120) [SCAL] (1) mechanicalPowerSensor.relSpeedSensor.w_rel = $DER.mechanicalPowerSensor.relSpeedSensor.phi_rel ($RES_SIM_46) (121) [SCAL] (1) mechanicalPowerSensor.relSpeedSensor.phi_rel = constantSpeed.flange.phi - mechanicalPowerSensor.fixed.phi0 ($RES_SIM_47) (122) [SCAL] (1) mechanicalPowerSensor.product.y = mechanicalPowerSensor.relSpeedSensor.w_rel * mechanicalPowerSensor.torqueSensor.flange_a.tau ($RES_SIM_48) (123) [SCAL] (1) constantSpeed.phi = constantSpeed.flange.phi ($RES_SIM_53) (124) [SCAL] (1) constantSpeed.w_fixed = $DER.constantSpeed.phi ($RES_SIM_55) (125) [SCAL] (1) rotorDisplacementAngle.lessThreshold.y = if noEvent($SEV_2) then 0.0 else rotorDisplacementAngle.lessThreshold.u[2] ($RES_SIM_57) (126) [SCAL] (1) smee.damperCage.Rrq_actual = smee.damperCage.Rrq * (1.0 + smee.damperCage.alpha * (smee.thermalAmbient.constTr.k - smee.damperCage.T_ref)) ($RES_SIM_100) (127) [SCAL] (1) smee.damperCage.Rrd_actual = smee.damperCage.Rrd * (1.0 + smee.damperCage.alpha * (smee.thermalAmbient.constTr.k - smee.damperCage.T_ref)) ($RES_SIM_101) (128) [SCAL] (1) smee.tauElectrical = 1.5 * smee.airGapR.p * (smee.airGapR.spacePhasor_s.i_[2] * smee.airGapR.psi_ms[1] - smee.airGapR.spacePhasor_s.i_[1] * smee.airGapR.psi_ms[2]) ($RES_SIM_105) (129) [ARRY] (2) smee.airGapR.spacePhasor_r.v_ = $DER.smee.airGapR.psi_mr ($RES_SIM_106) (130) [ARRY] (2) smee.airGapR.spacePhasor_s.v_ = $DER.smee.airGapR.psi_ms ($RES_SIM_107) (131) [ARRY] (2) smee.airGapR.i_rs = smee.airGapR.RotationMatrix * smee.airGapR.i_rr ($RES_SIM_108) (132) [ARRY] (2) smee.airGapR.i_rr = smee.airGapR.spacePhasor_r.i_ ($RES_SIM_109) (133) [SCAL] (1) 3.0 * currentQuasiRMSSensor.ToSpacePhasor1.zero = sum(currentQuasiRMSSensor.ToSpacePhasor1.u) ($RES_$AUX_499) (134) [SCAL] (1) $FUN_15 = sqrt(currentQuasiRMSSensor.ToPolar1.u[1] ^ 2.0 + currentQuasiRMSSensor.ToPolar1.u[2] ^ 2.0) ($RES_$AUX_498) (135) [SCAL] (1) rotorDisplacementAngle.ToPolarVSR.y[2] = if noEvent($SEV_3) then 0.0 else $FUN_8 ($RES_SIM_60) (136) [SCAL] (1) $FUN_16 = atan2(currentQuasiRMSSensor.ToPolar1.u[2], currentQuasiRMSSensor.ToPolar1.u[1]) ($RES_$AUX_497) (137) [SCAL] (1) rotorDisplacementAngle.ToPolarVSR.y[1] = $FUN_7 ($RES_SIM_61) (138) [ARRY] (2) rotorDisplacementAngle.rotatorVS2R.y = rotorDisplacementAngle.rotatorVS2R.RotationMatrix * rotorDisplacementAngle.rotatorVS2R.u ($RES_SIM_62) (139) [FOR-] (3) ($RES_$AUX_495) (139) [----] for $i1 in 1:3 loop (139) [----] [SCAL] (1) $FUN_17[$i1] = sin(sineVoltage.sineVoltage[$i1].signalSource.freqHz * 6.283185307179586 * (time - sineVoltage.sineVoltage[$i1].signalSource.startTime) + sineVoltage.sineVoltage[$i1].signalSource.phase) ($RES_$AUX_496) (139) [----] end for; (140) [SCAL] (1) rotorDisplacementAngle.add.y = rotorDisplacementAngle.add.k1 * rotorDisplacementAngle.relativeAngleSensor.phi_rel + rotorDisplacementAngle.add.k2 * rotorDisplacementAngle.constant_.k ($RES_SIM_63) (141) [SCAL] (1) -star.pin_n.i = sum(star.plug_p.pin.i) ($RES_$AUX_494) (142) [SCAL] (1) 0.0 = sum(terminalBox.star.plug_p.pin.i) ($RES_$AUX_493) (143) [SCAL] (1) $FUN_20 = cos(-rotorDisplacementAngle.add.y) ($RES_$AUX_492) (144) [SCAL] (1) $FUN_21 = sin(-rotorDisplacementAngle.add.y) ($RES_$AUX_491) (145) [SCAL] (1) rotorDisplacementAngle.relativeAngleSensor.phi_rel = constantSpeed.flange.phi - rotorDisplacementAngle.fixed.phi0 ($RES_SIM_67) (146) [ARRY] (2) rotorDisplacementAngle.ToSpacePhasorVS.y = rotorDisplacementAngle.ToSpacePhasorVS.TransformationMatrix * rotorDisplacementAngle.ToSpacePhasorVS.u ($RES_SIM_68) (147) [ARRY] (2) smee.airGapR.i_ss = smee.airGapR.RotationMatrix * smee.airGapR.i_sr ($RES_SIM_110) (148) [ARRY] (2) smee.airGapR.i_ss = smee.airGapR.spacePhasor_s.i_ ($RES_SIM_111) (149) [ARRY] (4) smee.airGapR.RotationMatrix = {{$FUN_4, -$FUN_5}, {$FUN_5, $FUN_4}} ($RES_SIM_112) (150) [SCAL] (1) smee.airGapR.gamma = smee.airGapR.p * (constantSpeed.flange.phi - smee.fixed.phi0) ($RES_SIM_113) (151) [ARRY] (2) smee.airGapR.psi_ms = smee.airGapR.RotationMatrix * smee.airGapR.psi_mr ($RES_SIM_114) (152) [ARRY] (2) smee.airGapR.psi_mr = smee.airGapR.L * smee.airGapR.i_mr ($RES_SIM_115) (153) [ARRY] (2) smee.airGapR.i_mr = smee.airGapR.i_sr + smee.airGapR.i_rr ($RES_SIM_116) (154) [SCAL] (1) $FUN_23 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(smee.vs, smee.is) ($RES_$AUX_489) (155) [SCAL] (1) $FUN_24 = sum(smee.rs.resistor.LossPower) ($RES_$AUX_488) (156) [FOR-] (3) ($RES_SIM_70) (156) [----] for $i1 in 1:3 loop (156) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].v = rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].p.v - rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].n.v ($RES_SIM_71) (156) [----] end for; (157) [FOR-] (3) ($RES_SIM_72) (157) [----] for $i1 in 1:3 loop (157) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_73) (157) [----] end for; (158) [SCAL] (1) (groundExcitation.p.i + smee.ie) - smee.ie = 0.0 ($RES_SIM_201) (159) [FOR-] (3) ($RES_SIM_74) (159) [----] for $i1 in 1:3 loop (159) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_75) (159) [----] end for; (160) [SCAL] (1) mechanicalPowerSensor.flange_a.tau - smee.tauShaft = 0.0 ($RES_SIM_204) (161) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortBrush.Q_flow + smee.brush.heatPort.Q_flow = 0.0 ($RES_SIM_205) (162) [SCAL] (1) 0.0 = rampCurrent.n.v - smee.brush.n.v ($RES_SIM_78) (163) [SCAL] (1) -smee.brush.heatPort.Q_flow = 0.0 ($RES_SIM_79) (164) [SCAL] (1) smee.thermalAmbient.Q_flowExcitation + smee.re.heatPort.Q_flow = 0.0 ($RES_SIM_208) (165) [ARRY] (3) smee.thermalAmbient.thermalCollectorStator.port_a.T = {smee.thermalAmbient.constTs.k for $i1 in 1:3} ($RES_SIM_122) (166) [SCAL] (1) smee.thermalAmbient.Q_flowRotorWinding + smee.damperCage.heatPort.Q_flow = 0.0 ($RES_SIM_211) (167) [SCAL] (1) smee.lesigma.v = smee.re.n.v - smee.lesigma.n.v ($RES_SIM_83) (168) [SCAL] (1) smee.inertiaStator.flange_a.tau + smee.fixed.flange.tau + smee.tauElectrical = 0.0 ($RES_SIM_212) (169) [SCAL] (1) smee.lesigma.L * $DER.smee.ie = smee.lesigma.v ($RES_SIM_84) (170) [SCAL] (1) smee.re.v = smee.brush.n.v - smee.re.n.v ($RES_SIM_87) (171) [SCAL] (1) -smee.re.heatPort.Q_flow = smee.re.v * smee.ie ($RES_SIM_88) (172) [SCAL] (1) smee.re.v = smee.re.R_actual * smee.ie ($RES_SIM_89) (173) [SCAL] (1) $TEV_0 = time < rampCurrent.signalSource.startTime ($RES_EVT_515) (174) [SCAL] (1) $TEV_1 = time < (rampCurrent.signalSource.startTime + rampCurrent.signalSource.duration) ($RES_EVT_516) (175) [FOR-] (3) ($RES_EVT_517) (175) [----] for $i1 in 1:3 loop (175) [----] [SCAL] (1) $SEV_0[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_518) (175) [----] end for; (176) [SCAL] (1) $SEV_1 = currentQuasiRMSSensor.ToPolar1.y[1] <= 1e-60 ($RES_EVT_519) (177) [FOR-] (3) ($RES_SIM_300) (177) [----] for $i1 in 1:3 loop (177) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.plug_p.pin[$i1].i - currentQuasiRMSSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_301) (177) [----] end for; (178) [ARRY] (3) currentQuasiRMSSensor.plug_p.pin.v = currentQuasiRMSSensor.CurrentSensor1.plug_p.pin.v ($RES_SIM_302) (179) [ARRY] (3) currentQuasiRMSSensor.CurrentSensor1.currentSensor.i = currentQuasiRMSSensor.CurrentSensor1.i ($RES_SIM_303) (180) [FOR-] (3) ($RES_SIM_304) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].n.i - currentQuasiRMSSensor.CurrentSensor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_305) (180) [----] end for; (181) [ARRY] (3) smee.strayLoad.i = smee.strayLoad.plug_p.pin.i ($RES_SIM_130) (182) [ARRY] (3) currentQuasiRMSSensor.CurrentSensor1.currentSensor.n.v = currentQuasiRMSSensor.CurrentSensor1.plug_n.pin.v ($RES_SIM_306) (183) [ARRY] (3) smee.strayLoad.v = smee.strayLoad.plug_p.pin.v - smee.strayLoad.plug_n.pin.v ($RES_SIM_131) (184) [FOR-] (3) ($RES_SIM_307) (184) [----] for $i1 in 1:3 loop (184) [----] [SCAL] (1) currentQuasiRMSSensor.CurrentSensor1.currentSensor[$i1].p.i - currentQuasiRMSSensor.CurrentSensor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_308) (184) [----] end for; (185) [ARRY] (3) smee.strayLoad.plug_p.pin.i + smee.strayLoad.plug_n.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_132) (186) [ARRY] (3) currentQuasiRMSSensor.CurrentSensor1.plug_p.pin.v = currentQuasiRMSSensor.CurrentSensor1.currentSensor.p.v ($RES_SIM_309) (187) [SCAL] (1) smee.phiMechanical = constantSpeed.flange.phi - smee.fixed.phi0 ($RES_BND_435) (188) [SCAL] (1) smee.strayLoad.w = $DER.smee.strayLoad.phi ($RES_SIM_135) (189) [SCAL] (1) smee.wMechanical = $DER.smee.phiMechanical ($RES_BND_436) (190) [SCAL] (1) smee.strayLoad.phi = constantSpeed.flange.phi - smee.fixed.phi0 ($RES_SIM_136) (191) [SCAL] (1) -smee.strayLoad.heatPort.Q_flow = 0.0 ($RES_SIM_137) (192) [ARRY] (3) smee.strayLoad.v = {0.0 for $i1 in 1:3} ($RES_SIM_139) (193) [SCAL] (1) smee.re.R_actual = smee.re.R * (1.0 + smee.re.alpha * (smee.thermalAmbient.constTe.k - smee.re.T_ref)) ($RES_SIM_90) (194) [SCAL] (1) smee.electricalExcitation.ve = 1.5 * smee.electricalExcitation.turnsRatio * smee.electricalExcitation.spacePhasor_r.v_[1] ($RES_SIM_92) (195) [FOR-] (3) ($RES_SIM_221) (195) [----] for $i1 in 1:3 loop (195) [----] [SCAL] (1) smee.internalThermalPort.heatPortStatorWinding[$i1].Q_flow = 0.0 ($RES_SIM_222) (195) [----] end for; (196) [ARRY] (2) smee.electricalExcitation.spacePhasor_r.i_ = {-smee.ie * smee.electricalExcitation.turnsRatio, 0.0} ($RES_SIM_93) (197) [SCAL] (1) smee.electricalExcitation.ve = smee.lesigma.n.v ($RES_SIM_94) (198) [SCAL] (1) $SEV_2 = rotorDisplacementAngle.lessThreshold.u[1] < rotorDisplacementAngle.lessThreshold.threshold ($RES_EVT_520) (199) [SCAL] (1) -0.6666666666666666 * smee.damperCage.heatPort.Q_flow = smee.damperCage.spacePhasor_r.i_[1] * smee.damperCage.Rrd_actual * smee.damperCage.spacePhasor_r.i_[1] + smee.damperCage.spacePhasor_r.i_[2] * smee.damperCage.Rrq_actual * smee.damperCage.spacePhasor_r.i_[2] ($RES_SIM_97) (200) [SCAL] (1) $SEV_3 = rotorDisplacementAngle.ToPolarVSR.y[1] <= 1e-60 ($RES_EVT_521) (201) [SCAL] (1) smee.damperCage.spacePhasor_r.v_[2] = smee.damperCage.Rrq_actual * smee.damperCage.spacePhasor_r.i_[2] + smee.damperCage.Lrsigmaq * $DER.smee.damperCage.spacePhasor_r.i_[2] ($RES_SIM_98) (202) [SCAL] (1) smee.damperCage.spacePhasor_r.v_[1] = smee.damperCage.Rrd_actual * smee.damperCage.spacePhasor_r.i_[1] + smee.damperCage.Lrsigmad * $DER.smee.damperCage.spacePhasor_r.i_[1] ($RES_SIM_99) (203) [FOR-] (3) ($RES_EVT_524) (203) [----] for $i1 in 1:3 loop (203) [----] [SCAL] (1) $SEV_6[$i1] = 1.0 + smee.rs.resistor[$i1].alpha * (smee.rs.resistor[$i1].T_heatPort - smee.rs.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_525) (203) [----] end for; (204) [SCAL] (1) smee.powerBalance.lossPowerBrush = -smee.brush.heatPort.Q_flow ($RES_BND_440) (205) [SCAL] (1) smee.powerBalance.lossPowerExcitation = -smee.re.heatPort.Q_flow ($RES_BND_441) (206) [ARRY] (2) -smee.spacePhasorS.spacePhasor.i_ = smee.spacePhasorS.TransformationMatrix * smee.spacePhasorS.i ($RES_SIM_141) (207) [SCAL] (1) smee.powerBalance.powerExcitation = smee.ve * smee.ie ($RES_BND_442) (208) [ARRY] (2) rotorDisplacementAngle.ToPolarVSR.y = rotorDisplacementAngle.lessThreshold.u ($RES_SIM_318) (209) [SCAL] (1) smee.powerBalance.lossPowerRotorWinding = -smee.damperCage.heatPort.Q_flow ($RES_BND_443) (210) [ARRY] (2) smee.spacePhasorS.spacePhasor.v_ = smee.spacePhasorS.TransformationMatrix * smee.spacePhasorS.v ($RES_SIM_143) (211) [SCAL] (1) smee.powerBalance.lossPowerFriction = -smee.friction.heatPort.Q_flow ($RES_BND_444) (212) [SCAL] (1) smee.powerBalance.lossPowerStrayLoad = -smee.strayLoad.heatPort.Q_flow ($RES_BND_445) (213) [ARRY] (3) smee.spacePhasorS.i .* smee.spacePhasorS.turnsRatio = -smee.spacePhasorS.plug_n.pin.i ($RES_SIM_145) (214) [SCAL] (1) smee.powerBalance.lossPowerRotorCore = 0.0 ($RES_BND_446) (215) [ARRY] (3) smee.spacePhasorS.i .* smee.spacePhasorS.turnsRatio = smee.spacePhasorS.plug_p.pin.i ($RES_SIM_146) (216) [SCAL] (1) smee.powerBalance.lossPowerStatorCore = -smee.statorCore.heatPort.Q_flow ($RES_BND_447) (217) [ARRY] (3) smee.spacePhasorS.v / smee.spacePhasorS.turnsRatio = smee.spacePhasorS.plug_p.pin.v - smee.spacePhasorS.plug_n.pin.v ($RES_SIM_147) (218) [SCAL] (1) smee.powerBalance.lossPowerStatorWinding = $FUN_24 ($RES_BND_448) (219) [SCAL] (1) -smee.statorCore.heatPort.Q_flow = 1.5 * (smee.statorCore.spacePhasor.v_[1] * smee.statorCore.spacePhasor.i_[1] + smee.statorCore.spacePhasor.v_[2] * smee.statorCore.spacePhasor.i_[2]) ($RES_SIM_148) (220) [SCAL] (1) smee.powerBalance.lossPowerTotal = smee.powerBalance.lossPowerExcitation + smee.powerBalance.lossPowerFriction + smee.powerBalance.lossPowerRotorCore + smee.powerBalance.lossPowerStatorWinding + smee.powerBalance.lossPowerStatorCore + smee.powerBalance.lossPowerStrayLoad + smee.powerBalance.lossPowerRotorWinding + smee.powerBalance.lossPowerBrush ($RES_BND_449) (221) [ARRY] (2) smee.statorCore.spacePhasor.i_ = {0.0 for $i1 in 1:2} ($RES_SIM_149) (222) [SCAL] (1) smee.electricalExcitation.spacePhasor_r.i_[2] + smee.airGapR.spacePhasor_r.i_[2] + smee.damperCage.spacePhasor_r.i_[2] = 0.0 ($RES_SIM_401) (223) [SCAL] (1) smee.electricalExcitation.spacePhasor_r.i_[1] + smee.airGapR.spacePhasor_r.i_[1] + smee.damperCage.spacePhasor_r.i_[1] = 0.0 ($RES_SIM_402) (224) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[2] = smee.damperCage.spacePhasor_r.v_[2] ($RES_SIM_403) (225) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[2] = smee.electricalExcitation.spacePhasor_r.v_[2] ($RES_SIM_404) (226) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[1] = smee.damperCage.spacePhasor_r.v_[1] ($RES_SIM_405) (227) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[1] = smee.electricalExcitation.spacePhasor_r.v_[1] ($RES_SIM_406) (228) [SCAL] (1) smee.strayLoad.heatPort.Q_flow + smee.thermalAmbient.Q_flowStrayLoad = 0.0 ($RES_SIM_232) (229) [SCAL] (1) smee.idq_dr[2] = smee.ir[2] ($RES_SIM_408) (230) [SCAL] (1) smee.tauShaft + smee.inertiaRotor.flange_b.tau = 0.0 ($RES_SIM_233) (231) [SCAL] (1) smee.idq_dr[2] = smee.damperCage.i[2] ($RES_SIM_409) (232) [SCAL] (1) smee.statorCore.heatPort.Q_flow + smee.thermalAmbient.Q_flowStatorCore = 0.0 ($RES_SIM_235) (233) [SCAL] (1) smee.friction.heatPort.Q_flow + smee.thermalAmbient.Q_flowFriction = 0.0 ($RES_SIM_238) (234) [ARRY] (2) rotorDisplacementAngle.rotatorVS2R.y = rotorDisplacementAngle.ToPolarVSR.u ($RES_SIM_321) (235) [ARRY] (2) rotorDisplacementAngle.ToSpacePhasorVS.y = rotorDisplacementAngle.rotatorVS2R.u ($RES_SIM_322) (236) [ARRY] (3) rotorDisplacementAngle.VoltageSensor1.v = rotorDisplacementAngle.ToSpacePhasorVS.u ($RES_SIM_323) (237) [SCAL] (1) smee.powerBalance.powerInertiaRotor = smee.inertiaRotor.a * smee.inertiaRotor.J * smee.inertiaRotor.w ($RES_BND_450) (238) [SCAL] (1) smee.powerBalance.powerInertiaStator = smee.inertiaStator.a * smee.inertiaStator.J * smee.inertiaStator.w ($RES_BND_451) (239) [SCAL] (1) smee.powerBalance.powerMechanical = smee.wMechanical * smee.tauShaft ($RES_BND_452) (240) [FOR-] (3) ($RES_SIM_328) (240) [----] for $i1 in 1:3 loop (240) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.plug_n.pin[$i1].i - rotorDisplacementAngle.plug_n.pin[$i1].i = 0.0 ($RES_SIM_329) (240) [----] end for; (241) [SCAL] (1) smee.powerBalance.powerStator = $FUN_23 ($RES_BND_453) (242) [SCAL] (1) smee.lszero.v = smee.spacePhasorS.zero.v ($RES_SIM_153) (243) [ARRY] (3) smee.vs = smee.plug_sp.pin.v - smee.plug_sn.pin.v ($RES_BND_454) (244) [SCAL] (1) smee.lszero.L * (-$DER.smee.i_0_s) = smee.lszero.v ($RES_SIM_154) (245) [ARRY] (3) smee.is = smee.plug_sp.pin.i ($RES_BND_455) (246) [SCAL] (1) smee.lssigma.v_[2] = smee.lssigma.L[2] * $DER.smee.lssigma.i_[2] ($RES_SIM_155) (247) [SCAL] (1) smee.lssigma.v_[1] = smee.lssigma.L[1] * $DER.smee.lssigma.i_[1] ($RES_SIM_156) (248) [ARRY] (2) smee.idq_ss = smee.airGapR.i_ss ($RES_BND_457) (249) [ARRY] (2) smee.lssigma.i_ = smee.lssigma.spacePhasor_a.i_ ($RES_SIM_157) (250) [ARRY] (2) smee.idq_sr = smee.airGapR.i_sr ($RES_BND_458) (251) [ARRY] (2) smee.lssigma.v_ = smee.lssigma.spacePhasor_a.v_ - smee.lssigma.spacePhasor_b.v_ ($RES_SIM_158) (252) [SCAL] (1) smee.idq_dr[1] = smee.ir[1] ($RES_SIM_410) (253) [ARRY] (2) smee.idq_rs = smee.airGapR.i_rs ($RES_BND_459) (254) [ARRY] (2) smee.lssigma.spacePhasor_a.i_ + smee.lssigma.spacePhasor_b.i_ = {0.0 for $i1 in 1:2} ($RES_SIM_159) (255) [SCAL] (1) smee.idq_dr[1] = smee.damperCage.i[1] ($RES_SIM_411) (256) [FOR-] (3) ($RES_SIM_414) (256) [----] for $i1 in 1:3 loop (256) [----] [SCAL] (1) smee.thermalAmbient.thermalCollectorStator.port_a[$i1].Q_flow - smee.thermalAmbient.thermalPort.heatPortStatorWinding[$i1].Q_flow = 0.0 ($RES_SIM_415) (256) [----] end for; (257) [ARRY] (3) smee.thermalAmbient.thermalCollectorStator.port_a.T = smee.thermalAmbient.thermalPort.heatPortStatorWinding.T ($RES_SIM_416) (258) [FOR-] (3) ($RES_SIM_242) (258) [----] for $i1 in 1:3 loop (258) [----] [SCAL] (1) terminalBox.plugSupply.pin[$i1].i + currentQuasiRMSSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_243) (258) [----] end for; (259) [ARRY] (3) terminalBox.plugSupply.pin.v = currentQuasiRMSSensor.plug_n.pin.v ($RES_SIM_244) (260) [FOR-] (3) ($RES_SIM_248) (260) [----] for $i1 in 1:3 loop (260) [----] [SCAL] (1) sineVoltage.plug_p.pin[$i1].i + electricalPowerSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_249) (260) [----] end for; (261) [ARRY] (3) rotorDisplacementAngle.plug_n.pin.v = rotorDisplacementAngle.VoltageSensor1.plug_n.pin.v ($RES_SIM_330) (262) [FOR-] (3) ($RES_SIM_331) (262) [----] for $i1 in 1:3 loop (262) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.plug_p.pin[$i1].i - rotorDisplacementAngle.plug_p.pin[$i1].i = 0.0 ($RES_SIM_332) (262) [----] end for; (263) [ARRY] (3) rotorDisplacementAngle.plug_p.pin.v = rotorDisplacementAngle.VoltageSensor1.plug_p.pin.v ($RES_SIM_333) (264) [ARRY] (3) rotorDisplacementAngle.VoltageSensor1.voltageSensor.v = rotorDisplacementAngle.VoltageSensor1.v ($RES_SIM_334) (265) [FOR-] (3) ($RES_SIM_335) (265) [----] for $i1 in 1:3 loop (265) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].p.i - rotorDisplacementAngle.VoltageSensor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_336) (265) [----] end for; (266) [ARRY] (2) smee.idq_rr = smee.airGapR.i_rr ($RES_BND_460) (267) [ARRY] (3) smee.rs.i = smee.rs.plug_p.pin.i ($RES_SIM_160) (268) [FOR-] (3) ($RES_BND_461) (268) [----] for $i1 in 1:3 loop (268) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.Q_flow = -smee.rs.resistor[$i1].LossPower ($RES_BND_462) (268) [----] end for; (269) [ARRY] (3) smee.rs.v = smee.rs.plug_p.pin.v - smee.rs.plug_n.pin.v ($RES_SIM_161) (270) [ARRY] (3) rotorDisplacementAngle.VoltageSensor1.voltageSensor.p.v = rotorDisplacementAngle.VoltageSensor1.plug_p.pin.v ($RES_SIM_337) (271) [FOR-] (3) ($RES_SIM_162) (271) [----] for $i1 in 1:3 loop (271) [----] [SCAL] (1) smee.rs.resistor[$i1].i = smee.rs.resistor[$i1].p.i ($RES_SIM_163) (271) [----] end for; (272) [FOR-] (3) ($RES_SIM_338) (272) [----] for $i1 in 1:3 loop (272) [----] [SCAL] (1) rotorDisplacementAngle.VoltageSensor1.voltageSensor[$i1].n.i - rotorDisplacementAngle.VoltageSensor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_339) (272) [----] end for; (273) [FOR-] (3) ($RES_BND_463) (273) [----] for $i1 in 1:3 loop (273) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.T = smee.rs.resistor[$i1].T_heatPort ($RES_BND_464) (273) [----] end for; (274) [FOR-] (3) ($RES_SIM_164) (274) [----] for $i1 in 1:3 loop (274) [----] [SCAL] (1) 0.0 = smee.rs.resistor[$i1].p.i + smee.rs.resistor[$i1].n.i ($RES_SIM_165) (274) [----] end for; (275) [FOR-] (3) ($RES_SIM_166) (275) [----] for $i1 in 1:3 loop (275) [----] [SCAL] (1) smee.rs.resistor[$i1].v = smee.rs.resistor[$i1].p.v - smee.rs.resistor[$i1].n.v ($RES_SIM_167) (275) [----] end for; (276) [FOR-] (3) ($RES_SIM_168) (276) [----] for $i1 in 1:3 loop (276) [----] [SCAL] (1) smee.rs.resistor[$i1].LossPower = smee.rs.resistor[$i1].v * smee.rs.resistor[$i1].i ($RES_SIM_169) (276) [----] end for; (277) [SCAL] (1) smee.strayLoad.iRMS = sqrt(sum(0.3333333333333333 .* smee.strayLoad.i .^ 2.0)) ($RES_BND_469) (278) [ARRY] (3) sineVoltage.plug_p.pin.v = electricalPowerSensor.plug_p.pin.v ($RES_SIM_250) (279) [FOR-] (3) ($RES_SIM_426) (279) [----] for $i1 in 1:3 loop (279) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.Q_flow - smee.rs.heatPort[$i1].Q_flow = 0.0 ($RES_SIM_427) (279) [----] end for; (280) [FOR-] (3) ($RES_SIM_252) (280) [----] for $i1 in 1:3 loop (280) [----] [SCAL] (1) electricalPowerSensor.plug_ni.pin[$i1].i + currentQuasiRMSSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_253) (280) [----] end for; (281) [ARRY] (3) smee.rs.resistor.heatPort.T = smee.rs.heatPort.T ($RES_SIM_428)