Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier.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_Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 111.8 kB / 17.75 MB, free: 5.348 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.001145/0.001145, allocations: 185.8 kB / 18.68 MB, free: 4.426 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.32/1.32, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.947e-05/1.948e-05, allocations: 3.266 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Rectifier): time 0.01234/0.01236, allocations: 11.92 MB / 340.4 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.02334, allocations: 6.551 MB / 347 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.02506, allocations: 55.75 kB / 347.1 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002106/0.02718, allocations: 0.8734 MB / 347.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002294/0.02948, allocations: 0.9352 MB / 348.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003951/0.03349, allocations: 1.957 MB / 350.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003779/0.03727, allocations: 3.826 MB / 354.6 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001524/0.03881, allocations: 1.369 MB / 356 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001581/0.0404, allocations: 1.374 MB / 357.4 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.04171, allocations: 1.381 MB / 358.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002701/0.04199, allocations: 236 kB / 359 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002616/0.04461, allocations: 1.368 MB / 360.4 MB, free: 3.309 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.002863/0.04749, allocations: 4.069 MB / 364.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.001687/0.04918, allocations: 2.576 MB / 367 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005588/0.04975, allocations: 390.9 kB / 367.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 0.0004925/0.05025, allocations: 71.69 kB / 367.5 MB, free: 12.13 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: 617 (429) * Number of variables: 617 (405) Notification: Performance of Bindings: time 0.1638/0.2141, allocations: 12.91 MB / 380.4 MB, free: 26.44 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.001427/0.2155, allocations: 1.274 MB / 381.6 MB, free: 26.3 MB / 318.1 MB Notification: Performance of Early Inline: time 0.005388/0.2209, allocations: 6.022 MB / 387.7 MB, free: 26 MB / 318.1 MB Notification: Performance of simplify1: time 0.000481/0.2214, allocations: 363.7 kB / 388 MB, free: 26 MB / 318.1 MB Notification: Performance of Alias: time 0.009097/0.2305, allocations: 8.627 MB / 396.6 MB, free: 21.46 MB / 318.1 MB Notification: Performance of simplify2: time 0.0004154/0.231, allocations: 237.8 kB / 396.9 MB, free: 21.37 MB / 318.1 MB Notification: Performance of Events: time 0.0006515/0.2316, allocations: 0.7051 MB / 397.6 MB, free: 20.92 MB / 318.1 MB Notification: Performance of Detect States: time 0.0009675/0.2326, allocations: 1.208 MB / 398.8 MB, free: 20.16 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001563/0.2342, allocations: 1.659 MB / 400.5 MB, free: 19.19 MB / 318.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (225/439) **************************** (1) [ALGB] (2) Real[2] smee.airGapR.i_mr (2) [ALGB] (1) Real smee.spacePhasorS.zero.v (3) [ALGB] (3) flow Real[3] idealDiode2.idealDiode.p.i (4) [ALGB] (3) flow Real[3] smee.rs.plug_p.pin.i (5) [ALGB] (1) Real resistor.v (6) [ALGB] (1) flow Real smee.fixed.flange.tau (7) [ALGB] (3) flow Real[3] idealDiode1.idealDiode.n.i (8) [DER-] (2) Real[2] $DER.smee.airGapR.psi_mr (9) [ALGB] (3) flow Real[3] smee.strayLoad.plug_p.pin.i (10) [DER-] (2) Real[2] $DER.smee.airGapR.psi_ms (11) [ALGB] (3) flow Real[3] terminalBox.star.plug_p.pin.i (12) [ALGB] (1) Real resistor.LossPower (13) [ALGB] (2) Real[2] smee.electricalExcitation.spacePhasor_r.v_ (14) [ALGB] (1) Real voltageController.controlError = setPointGain.y - filter.y (15) [ALGB] (1) flow Real smee.thermalAmbient.thermalPort.heatPortBrush.Q_flow (16) [ALGB] (1) Real smee.lesigma.n.v (17) [ALGB] (3) Real[3] idealDiode2.idealDiode.p.v (18) [ALGB] (1) final output Real smee.powerBalance.powerInertiaRotor = smee.inertiaRotor.a * smee.inertiaRotor.J * smee.inertiaRotor.w (19) [ALGB] (1) final output Real smee.powerBalance.powerExcitation = smee.ve * smee.ie (20) [ALGB] (1) flow Real smee.strayLoad.heatPort.Q_flow = -(-smee.strayLoad.heatPort.Q_flow) (21) [DER-] (1) Real $DER.speed.w (22) [DER-] (1) parameter Real $DER.smee.fixed.phi0 (23) [ALGB] (1) Real resistor.i (24) [ALGB] (2) final Real[2] smee.idq_sr = smee.airGapR.i_sr (StateSelect = prefer) (25) [ALGB] (2) final Real[2] smee.idq_ss = smee.airGapR.i_ss (26) [ALGB] (3) Real[3] smee.strayLoad.plug_p.pin.v (27) [ALGB] (3) Real[3] terminalBox.star.plug_p.pin.v (28) [ALGB] (1) flow Real smee.inertiaStator.flange_a.tau (29) [ALGB] (1) final output Real smee.powerBalance.powerStator = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(smee.vs, smee.is) (30) [ALGB] (3) Real[3] smee.rs.v (31) [DER-] (1) Real $DER.smee.phiMechanical (32) [ALGB] (3) flow Real[3] smee.plug_sp.pin.i (33) [ALGB] (1) flow Real smee.damperCage.heatPort.Q_flow = -(-smee.damperCage.heatPort.Q_flow) (34) [ALGB] (1) Real smee.electricalExcitation.ve (35) [ALGB] (1) Real smee.strayLoad.w (36) [ALGB] (1) Real capacitor1.i (37) [ALGB] (2) Real[2] smee.idq_dr (StateSelect = prefer) (38) [ALGB] (3) Real[3] smee.strayLoad.v (39) [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}) (40) [ALGB] (1) Real voltageController.addSat.y (41) [DER-] (1) Real $DER.speed.phi (42) [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}) (43) [ALGB] (3) Real[3] idealDiode1.idealDiode.v (44) [ALGB] (3) Real[3] smee.rs.i (45) [ALGB] (3) Real[3] idealDiode2.idealDiode.LossPower (46) [ALGB] (2) Real[2] smee.spacePhasorS.spacePhasor.v_ (47) [ALGB] (1) Real voltageController.addI.y (48) [ALGB] (3) Real[3] smee.plug_sp.pin.v (49) [ALGB] (3) protected Real[3] idealDiode1.idealDiode.s (start = {0.0 for $i1 in 1:3}) (50) [ALGB] (3) Real[3] smee.spacePhasorS.i (51) [ALGB] (1) final output Real smee.powerBalance.powerMechanical = smee.wMechanical * smee.tauShaft (52) [ALGB] (1) Real smee.brush.n.v (53) [ALGB] (3) Real[3] smee.strayLoad.i (54) [DISC] (3) Boolean[3] $SEV_5[$i1] (55) [ALGB] (2) Real[2] smee.statorCore.spacePhasor.v_ (56) [ALGB] (3) Real[3] idealDiode1.idealDiode.i (57) [ALGB] (1) Real smee.strayLoad.iRMS = Modelica.Electrical.MultiPhase.Functions.quasiRMS(smee.strayLoad.i) (58) [ALGB] (2) Real[2] smee.damperCage.i = -smee.damperCage.spacePhasor_r.i_ (59) [ALGB] (2) Real[2] smee.airGapR.spacePhasor_s.v_ (60) [ALGB] (3) Real[3] smee.spacePhasorS.v (61) [ALGB] (1) Real smee.tauElectrical = smee.tauElectrical (62) [ALGB] (1) Real voltageSensor.v (63) [ALGB] (3) Real[3] terminalBox.plug_sp.pin.v (64) [ALGB] (1) Real excitationVoltage.p.v (65) [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}) (66) [ALGB] (1) Real voltageController.gainTrack.y (67) [ALGB] (1) Real voltageController.gainPID.y (68) [ALGB] (3) flow Real[3] terminalBox.plug_sp.pin.i (69) [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}) (70) [ALGB] (1) protected Real voltageController.limiter.simplifiedExpr (71) [ALGB] (3) Real[3] smee.rs.resistor.i (72) [ALGB] (1) Real $FUN_5 (73) [ALGB] (1) Real $FUN_4 (74) [ALGB] (1) flow Real ground.p.i (75) [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 (76) [ALGB] (3) flow Real[3] smee.spacePhasorS.plug_n.pin.i (77) [ALGB] (3) Real[3] smee.rs.plug_n.pin.v (78) [DER-] (1) Real $DER.smee.ie (79) [DER-] (1) Real $DER.smee.inertiaStator.w (80) [ALGB] (2) Real[2] smee.lssigma.v_ (81) [ALGB] (3) Real[3] smee.rs.resistor.v (82) [ALGB] (1) Real speedSensor.w (83) [ALGB] (3) flow Real[3] smee.rs.resistor.p.i (84) [ALGB] (1) Real capacitor2.i (85) [ALGB] (3) Real[3] smee.rs.resistor.R_actual (86) [ALGB] (1) Real smee.damperCage.Rrd_actual (87) [ALGB] (3) Real[3] smee.spacePhasorS.plug_n.pin.v (88) [ALGB] (3) flow Real[3] smee.rs.plug_n.pin.i (89) [ALGB] (1) flow Real smee.re.heatPort.Q_flow = -(-smee.re.heatPort.Q_flow) (90) [ALGB] (1) Real star1.pin_n.v (91) [ALGB] (2) Real[2] smee.airGapR.spacePhasor_r.v_ (92) [DISC] (3) Boolean[3] $SEV_4[$i1] (93) [DER-] (1) Real $DER.capacitor2.v (94) [ALGB] (1) final output Real smee.powerBalance.lossPowerBrush = -smee.brush.heatPort.Q_flow (95) [DER-] (1) Real $DER.smee.friction.phi (96) [ALGB] (1) Real smee.airGapR.gamma (97) [ALGB] (4) Real[2, 2] smee.airGapR.RotationMatrix (98) [ALGB] (3) flow Real[3] smee.thermalAmbient.thermalPort.heatPortStatorWinding.Q_flow (99) [ALGB] (1) Real smee.friction.w (100) [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}) (101) [ALGB] (1) final Real smee.thermalAmbient.Q_flowExcitation = smee.thermalAmbient.Q_flowExcitation (102) [ALGB] (3) Real[3] smee.rs.resistor.p.v (103) [DER-] (2) Real[2] $DER.smee.lssigma.i_ (104) [ALGB] (1) Real smee.re.v (105) [ALGB] (3) Real[3] idealDiode2.v (106) [ALGB] (1) flow Real star1.pin_n.i (107) [ALGB] (1) Real smee.lszero.v (108) [DER-] (1) Real $DER.smee.strayLoad.phi (109) [ALGB] (1) Real terminalBox.star.pin_n.v (110) [ALGB] (1) Real $FUN_11 (111) [ALGB] (2) Real[2] smee.lssigma.spacePhasor_b.v_ (112) [ALGB] (1) Real $FUN_10 (113) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStatorWinding = smee.thermalAmbient.Q_flowStatorWinding (114) [ALGB] (3) Real[3] idealDiode1.idealDiode.p.v (115) [ALGB] (3) Real[3] idealDiode2.i (116) [DER-] (2) Real[2] $DER.filter.x (117) [ALGB] (1) flow Real smee.statorCore.heatPort.Q_flow = -(-smee.statorCore.heatPort.Q_flow) (118) [ALGB] (3) Real[3] idealDiode1.plug_p.pin.v (119) [ALGB] (3) Real[3] idealDiode2.plug_p.pin.v (120) [ALGB] (1) Real voltageController.addP.y (121) [ALGB] (3) flow Real[3] idealDiode2.idealDiode.n.i (122) [DISC] (1) Boolean $SEV_7 (123) [DISC] (1) Boolean $SEV_6 (124) [ALGB] (3) Real[3] smee.is = smee.plug_sp.pin.i (125) [ALGB] (2) Real[2] smee.ir (fixed = {true for $i1 in 1:2}, start = {0.0 for $i1 in 1:2}) (126) [ALGB] (1) Real star2.pin_n.v (127) [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}) (128) [ALGB] (2) flow Real[2] smee.statorCore.spacePhasor.i_ (129) [ALGB] (3) protected flow Real[3] smee.internalThermalPort.heatPortStatorWinding.Q_flow (130) [ALGB] (3) flow Real[3] idealDiode1.idealDiode.p.i (131) [ALGB] (1) final output Real smee.powerBalance.lossPowerRotorWinding = -smee.damperCage.heatPort.Q_flow (132) [ALGB] (3) flow Real[3] idealDiode1.plug_p.pin.i (133) [ALGB] (3) flow Real[3] idealDiode2.plug_p.pin.i (134) [ALGB] (2) flow Real[2] smee.airGapR.spacePhasor_s.i_ (135) [ALGB] (1) final output Real smee.powerBalance.lossPowerStatorCore = -smee.statorCore.heatPort.Q_flow (136) [ALGB] (3) Real[3] idealDiode2.idealDiode.n.v (137) [ALGB] (3) flow Real[3] smee.rs.heatPort.Q_flow (138) [ALGB] (1) flow Real star2.pin_n.i (139) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStatorCore = smee.thermalAmbient.Q_flowStatorCore (140) [DISC] (3) Boolean[3] idealDiode1.idealDiode.off (start = {true for $i1 in 1:3}) (141) [DER-] (1) Real $DER.smee.inertiaRotor.w (142) [ALGB] (1) Real smee.re.n.v (143) [ALGB] (2) Real[2] smee.airGapR.i_rr (144) [ALGB] (2) Real[2] smee.airGapR.i_rs (145) [DER-] (1) Real $DER.smee.strayLoad.flange.phi (146) [ALGB] (3) flow Real[3] smee.strayLoad.plug_n.pin.i (147) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStrayLoad = smee.thermalAmbient.Q_flowStrayLoad (148) [ALGB] (1) Real resistor.R_actual (149) [ALGB] (3) Real[3] terminalBox.plug_sn.pin.v (150) [ALGB] (1) flow Real speed.flange.tau (151) [ALGB] (1) Real excitationVoltage.v (152) [DER-] (1) Real $DER.capacitor1.v (153) [ALGB] (2) Real[2] smee.lssigma.spacePhasor_a.v_ (154) [ALGB] (1) Real smee.tauShaft = -(-smee.tauShaft) (155) [ALGB] (1) final output Real smee.powerBalance.lossPowerStrayLoad = -smee.strayLoad.heatPort.Q_flow (156) [ALGB] (1) Real smee.re.R_actual (157) [ALGB] (3) Real[3] idealDiode1.v (158) [DER-] (1) Real $DER.smee.i_0_s (159) [ALGB] (1) Real voltageController.P.y (160) [ALGB] (3) Real[3] smee.strayLoad.plug_n.pin.v (161) [ALGB] (3) flow Real[3] terminalBox.plug_sn.pin.i (162) [ALGB] (2) flow Real[2] smee.electricalExcitation.spacePhasor_r.i_ (163) [ALGB] (1) final output Real smee.powerBalance.lossPowerExcitation = -smee.re.heatPort.Q_flow (164) [ALGB] (1) flow Real smee.brush.heatPort.Q_flow = -(-smee.brush.heatPort.Q_flow) (165) [ALGB] (3) flow Real[3] smee.spacePhasorS.plug_p.pin.i (166) [ALGB] (1) final Real smee.thermalAmbient.Q_flowRotorWinding = smee.thermalAmbient.Q_flowRotorWinding (167) [ALGB] (1) flow Real smee.inertiaRotor.flange_b.tau (168) [ALGB] (2) flow Real[2] smee.airGapR.spacePhasor_r.i_ (169) [ALGB] (3) Real[3] idealDiode1.i (170) [ALGB] (3) flow Real[3] smee.plug_sn.pin.i (171) [ALGB] (3) Real[3] smee.rs.resistor.LossPower (172) [DER-] (1) Real $DER.voltageController.I.y (173) [ALGB] (3) protected Real[3] filter.uu (174) [ALGB] (3) Real[3] idealDiode2.idealDiode.i (175) [ALGB] (2) Real[2] smee.airGapR.i_sr (176) [ALGB] (2) Real[2] smee.airGapR.i_ss (177) [DISC] (3) Boolean[3] $SEV_11[$i1] (178) [ALGB] (1) final output Real smee.powerBalance.lossPowerRotorCore = 0.0 (179) [ALGB] (3) flow Real[3] terminalBox.plugSupply.pin.i (180) [ALGB] (3) Real[3] smee.spacePhasorS.plug_p.pin.v (181) [ALGB] (3) Real[3] smee.plug_sn.pin.v (182) [ALGB] (1) Real smee.wMechanical = der(smee.phiMechanical) (start = 0.0) (183) [ALGB] (3) protected Real[3] idealDiode2.idealDiode.s (start = {0.0 for $i1 in 1:3}) (184) [ALGB] (1) Real filter.y (185) [ALGB] (1) final Real smee.thermalAmbient.Q_flowFriction = smee.thermalAmbient.Q_flowFriction (186) [ALGB] (3) Real[3] idealDiode2.idealDiode.v (187) [ALGB] (2) flow Real[2] smee.lssigma.spacePhasor_b.i_ (188) [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 (189) [ALGB] (1) Real smee.inertiaRotor.a (190) [ALGB] (3) Real[3] terminalBox.plugSupply.pin.v (191) [ALGB] (3) Real[3] star1.plug_p.pin.v (192) [ALGB] (3) Real[3] star2.plug_p.pin.v (193) [ALGB] (2) flow Real[2] smee.spacePhasorS.spacePhasor.i_ (194) [ALGB] (3) Real[3] smee.vs = smee.plug_sp.pin.v - smee.plug_sn.pin.v (195) [ALGB] (1) Real smee.damperCage.Rrq_actual (196) [ALGB] (1) flow Real groundExcitation.p.i (197) [ALGB] (3) flow Real[3] star1.plug_p.pin.i (198) [ALGB] (3) flow Real[3] star2.plug_p.pin.i (199) [ALGB] (1) final output Real smee.powerBalance.lossPowerFriction = -smee.friction.heatPort.Q_flow (200) [ALGB] (3) flow Real[3] smee.thermalAmbient.thermalCollectorStator.port_a.Q_flow (201) [ALGB] (3) Real[3] idealDiode1.plug_n.pin.v (202) [ALGB] (3) Real[3] idealDiode2.plug_n.pin.v (203) [ALGB] (3) flow Real[3] smee.rs.resistor.n.i (204) [ALGB] (1) Real smee.ve = excitationVoltage.p.v - 0.0 (205) [DISC] (3) Boolean[3] idealDiode2.idealDiode.off (start = {true for $i1 in 1:3}) (206) [ALGB] (1) final output Real smee.powerBalance.lossPowerStatorWinding = sum(smee.rs.resistor.LossPower) (207) [ALGB] (2) Real[2] smee.damperCage.spacePhasor_r.v_ (208) [ALGB] (1) flow Real smee.friction.heatPort.Q_flow = -(-smee.friction.heatPort.Q_flow) (209) [ALGB] (3) Real[3] idealDiode1.idealDiode.LossPower (210) [ALGB] (2) final Real[2] smee.idq_rr = smee.airGapR.i_rr (StateSelect = prefer) (211) [ALGB] (3) flow Real[3] idealDiode1.plug_n.pin.i (212) [ALGB] (3) flow Real[3] idealDiode2.plug_n.pin.i (213) [ALGB] (2) final Real[2] smee.idq_rs = smee.airGapR.i_rs (214) [ALGB] (3) Real[3] smee.rs.plug_p.pin.v (215) [ALGB] (3) Real[3] smee.rs.resistor.n.v (216) [ALGB] (1) final output Real smee.powerBalance.powerInertiaStator = smee.inertiaStator.a * smee.inertiaStator.J * smee.inertiaStator.w (217) [ALGB] (3) flow Real[3] smee.rs.resistor.heatPort.Q_flow = {-smee.rs.resistor[$resistor1].LossPower for $resistor1 in 1:3} (218) [DER-] (2) flow Real[2] $DER.smee.damperCage.spacePhasor_r.i_ (219) [ALGB] (1) Real setPointGain.y (220) [ALGB] (3) Real[3] idealDiode1.idealDiode.n.v (221) [ALGB] (1) Real speed.a (222) [ALGB] (1) Real voltageController.addPID.y (223) [ALGB] (1) Real smee.inertiaStator.a (224) [ALGB] (1) Real smee.lesigma.v (225) [ALGB] (2) flow Real[2] smee.lssigma.spacePhasor_a.i_ System Equations (248/438) **************************** (1) [FOR-] (3) ($RES_SIM_204) (1) [----] for $i1 in 1:3 loop (1) [----] [SCAL] (1) smee.rs.resistor[$i1].v = smee.rs.resistor[$i1].R_actual * smee.rs.resistor[$i1].i ($RES_SIM_205) (1) [----] end for; (2) [SCAL] (1) excitationVoltage.v = excitationVoltage.p.v ($RES_SIM_80) (3) [FOR-] (3) ($RES_SIM_206) (3) [----] for $i1 in 1:3 loop (3) [----] [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_207) (3) [----] end for; (4) [SCAL] (1) smee.re.v = smee.brush.n.v - smee.re.n.v ($RES_SIM_121) (5) [SCAL] (1) voltageController.limiter.simplifiedExpr = voltageController.addFF.k1 * voltageController.gainPID.y + voltageController.addFF.k2 * voltageController.FFzero.k ($RES_SIM_81) (6) [FOR-] (3) ($RES_SIM_280) (6) [----] for $i1 in 1:3 loop (6) [----] [SCAL] (1) idealDiode1.plug_n.pin[$i1].i + star1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_281) (6) [----] end for; (7) [SCAL] (1) -smee.re.heatPort.Q_flow = smee.re.v * smee.ie ($RES_SIM_122) (8) [SCAL] (1) smee.statorCore.spacePhasor.i_[2] + smee.lssigma.spacePhasor_a.i_[2] + smee.spacePhasorS.spacePhasor.i_[2] = 0.0 ($RES_SIM_366) (9) [SCAL] (1) smee.re.v = smee.re.R_actual * smee.ie ($RES_SIM_123) (10) [SCAL] (1) smee.statorCore.spacePhasor.i_[1] + smee.lssigma.spacePhasor_a.i_[1] + smee.spacePhasorS.spacePhasor.i_[1] = 0.0 ($RES_SIM_367) (11) [ARRY] (3) idealDiode1.plug_n.pin.v = star1.plug_p.pin.v ($RES_SIM_282) (12) [SCAL] (1) smee.re.R_actual = smee.re.R * (1.0 + smee.re.alpha * (smee.thermalAmbient.constTe.k - smee.re.T_ref)) ($RES_SIM_124) (13) [SCAL] (1) excitationVoltage.v = homotopy(smooth(0, if $SEV_6 then voltageController.limiter.uMax else if $SEV_7 then voltageController.limiter.uMin else voltageController.limiter.simplifiedExpr), voltageController.limiter.simplifiedExpr) ($RES_SIM_84) (14) [SCAL] (1) smee.statorCore.spacePhasor.v_[2] = smee.spacePhasorS.spacePhasor.v_[2] ($RES_SIM_368) (15) [FOR-] (3) ($RES_SIM_283) (15) [----] for $i1 in 1:3 loop (15) [----] [SCAL] (1) idealDiode2.plug_p.pin[$i1].i + star2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_284) (15) [----] end for; (16) [SCAL] (1) smee.statorCore.spacePhasor.v_[2] = smee.lssigma.spacePhasor_a.v_[2] ($RES_SIM_369) (17) [SCAL] (1) smee.electricalExcitation.ve = 1.5 * smee.electricalExcitation.turnsRatio * smee.electricalExcitation.spacePhasor_r.v_[1] ($RES_SIM_126) (18) [ARRY] (3) idealDiode2.plug_p.pin.v = star2.plug_p.pin.v ($RES_SIM_285) (19) [ARRY] (2) smee.electricalExcitation.spacePhasor_r.i_ = {-smee.ie * smee.electricalExcitation.turnsRatio, 0.0} ($RES_SIM_127) (20) [SCAL] (1) voltageController.gainTrack.y = voltageController.gainTrack.k * voltageController.addSat.y ($RES_SIM_87) (21) [SCAL] (1) terminalBox.plugSupply.pin[3].i + idealDiode2.plug_n.pin[3].i + idealDiode1.plug_p.pin[3].i = 0.0 ($RES_SIM_286) (22) [SCAL] (1) smee.electricalExcitation.ve = smee.lesigma.n.v ($RES_SIM_128) (23) [SCAL] (1) voltageController.addSat.y = voltageController.addSat.k1 * excitationVoltage.v + voltageController.addSat.k2 * voltageController.limiter.simplifiedExpr ($RES_SIM_88) (24) [SCAL] (1) terminalBox.plugSupply.pin[2].i + idealDiode2.plug_n.pin[2].i + idealDiode1.plug_p.pin[2].i = 0.0 ($RES_SIM_287) (25) [SCAL] (1) voltageController.addI.y = voltageController.addI.k2 * filter.y + voltageController.addI.k1 * setPointGain.y + voltageController.addI.k3 * voltageController.gainTrack.y ($RES_SIM_89) (26) [SCAL] (1) terminalBox.plugSupply.pin[1].i + idealDiode2.plug_n.pin[1].i + idealDiode1.plug_p.pin[1].i = 0.0 ($RES_SIM_288) (27) [SCAL] (1) terminalBox.plugSupply.pin[3].v = idealDiode1.plug_p.pin[3].v ($RES_SIM_289) (28) [FOR-] (2) ($RES_SIM_10) (28) [----] for $i1 in 1:2 loop (28) [----] [SCAL] (1) $DER.filter.x[$i1] = filter.r[$i1] * (filter.x[$i1] - filter.uu[$i1]) ($RES_SIM_11) (28) [----] end for; (29) [SCAL] (1) filter.uu[1] = voltageSensor.v / filter.u_nominal ($RES_SIM_12) (30) [SCAL] (1) smee.statorCore.spacePhasor.v_[1] = smee.spacePhasorS.spacePhasor.v_[1] ($RES_SIM_370) (31) [SCAL] (1) smee.friction.w = $DER.smee.friction.phi ($RES_SIM_212) (32) [SCAL] (1) smee.statorCore.spacePhasor.v_[1] = smee.lssigma.spacePhasor_a.v_[1] ($RES_SIM_371) (33) [SCAL] (1) smee.friction.phi = smee.strayLoad.flange.phi - smee.fixed.phi0 ($RES_SIM_213) (34) [SCAL] (1) -smee.friction.heatPort.Q_flow = 0.0 ($RES_SIM_214) (35) [SCAL] (1) voltageSensor.v = star1.pin_n.v - star2.pin_n.v ($RES_SIM_16) (36) [SCAL] (1) voltageController.addPID.y = voltageController.addPID.k2 * voltageController.Dzero.k + voltageController.addPID.k1 * voltageController.P.y + voltageController.addPID.k3 * voltageController.I.y ($RES_SIM_90) (37) [FOR-] (3) ($RES_SIM_374) (37) [----] for $i1 in 1:3 loop (37) [----] [SCAL] (1) smee.spacePhasorS.plug_p.pin[$i1].i + smee.rs.plug_n.pin[$i1].i = 0.0 ($RES_SIM_375) (37) [----] end for; (38) [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_131) (39) [SCAL] (1) voltageController.gainPID.y = voltageController.gainPID.k * voltageController.addPID.y ($RES_SIM_91) (40) [SCAL] (1) terminalBox.plugSupply.pin[3].v = idealDiode2.plug_n.pin[3].v ($RES_SIM_290) (41) [SCAL] (1) smee.inertiaStator.J * smee.inertiaStator.a = smee.inertiaStator.flange_a.tau ($RES_SIM_217) (42) [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_132) (43) [SCAL] (1) $DER.voltageController.I.y = voltageController.I.k * voltageController.addI.y ($RES_SIM_92) (44) [ARRY] (3) smee.spacePhasorS.plug_p.pin.v = smee.rs.plug_n.pin.v ($RES_SIM_376) (45) [SCAL] (1) terminalBox.plugSupply.pin[2].v = idealDiode1.plug_p.pin[2].v ($RES_SIM_291) (46) [SCAL] (1) smee.inertiaStator.a = $DER.smee.inertiaStator.w ($RES_SIM_218) (47) [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_133) (48) [FOR-] (3) ($RES_SIM_377) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) smee.strayLoad.plug_p.pin[$i1].i - smee.plug_sp.pin[$i1].i = 0.0 ($RES_SIM_378) (48) [----] end for; (49) [SCAL] (1) terminalBox.plugSupply.pin[2].v = idealDiode2.plug_n.pin[2].v ($RES_SIM_292) (50) [SCAL] (1) smee.inertiaStator.w = $DER.smee.fixed.phi0 ($RES_SIM_219) (51) [SCAL] (1) smee.damperCage.Rrq_actual = smee.damperCage.Rrq * (1.0 + smee.damperCage.alpha * (smee.thermalAmbient.constTr.k - smee.damperCage.T_ref)) ($RES_SIM_134) (52) [SCAL] (1) terminalBox.plugSupply.pin[1].v = idealDiode1.plug_p.pin[1].v ($RES_SIM_293) (53) [SCAL] (1) smee.damperCage.Rrd_actual = smee.damperCage.Rrd * (1.0 + smee.damperCage.alpha * (smee.thermalAmbient.constTr.k - smee.damperCage.T_ref)) ($RES_SIM_135) (54) [SCAL] (1) voltageController.P.y = voltageController.P.k * voltageController.addP.y ($RES_SIM_95) (55) [ARRY] (3) smee.strayLoad.plug_p.pin.v = smee.plug_sp.pin.v ($RES_SIM_379) (56) [SCAL] (1) terminalBox.plugSupply.pin[1].v = idealDiode2.plug_n.pin[1].v ($RES_SIM_294) (57) [SCAL] (1) voltageController.addP.y = voltageController.addP.k1 * setPointGain.y + voltageController.addP.k2 * filter.y ($RES_SIM_96) (58) [SCAL] (1) setPointGain.y = setPointGain.k * speedSensor.w ($RES_SIM_97) (59) [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_139) (60) [SCAL] (1) speedSensor.w = $DER.smee.strayLoad.flange.phi ($RES_SIM_99) (61) [FOR-] (3) ($RES_SIM_304) (61) [----] for $i1 in 1:3 loop (61) [----] [SCAL] (1) terminalBox.plug_sp.pin[$i1].i + smee.plug_sp.pin[$i1].i = 0.0 ($RES_SIM_305) (61) [----] end for; (62) [SCAL] (1) resistor.v = star1.pin_n.v - star2.pin_n.v ($RES_SIM_21) (63) [ARRY] (3) terminalBox.plug_sp.pin.v = smee.plug_sp.pin.v ($RES_SIM_306) (64) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_23) (65) [FOR-] (3) ($RES_SIM_380) (65) [----] for $i1 in 1:3 loop (65) [----] [SCAL] (1) smee.strayLoad.plug_n.pin[$i1].i + smee.rs.plug_p.pin[$i1].i = 0.0 ($RES_SIM_381) (65) [----] end for; (66) [FOR-] (3) ($RES_SIM_307) (66) [----] for $i1 in 1:3 loop (66) [----] [SCAL] (1) terminalBox.plug_sn.pin[$i1].i + smee.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_308) (66) [----] end for; (67) [SCAL] (1) smee.inertiaRotor.J * smee.inertiaRotor.a = smee.tauElectrical + smee.inertiaRotor.flange_b.tau ($RES_SIM_222) (68) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_24) (69) [SCAL] (1) smee.inertiaRotor.a = $DER.smee.inertiaRotor.w ($RES_SIM_223) (70) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_25) (71) [ARRY] (3) smee.strayLoad.plug_n.pin.v = smee.rs.plug_p.pin.v ($RES_SIM_382) (72) [ARRY] (3) terminalBox.plug_sn.pin.v = smee.plug_sn.pin.v ($RES_SIM_309) (73) [SCAL] (1) smee.inertiaRotor.w = $DER.smee.strayLoad.flange.phi ($RES_SIM_224) (74) [FOR-] (3) ($RES_SIM_383) (74) [----] for $i1 in 1:3 loop (74) [----] [SCAL] (1) smee.spacePhasorS.plug_n.pin[$i1].i - smee.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_384) (74) [----] end for; (75) [ARRY] (2) smee.airGapR.spacePhasor_r.v_ = $DER.smee.airGapR.psi_mr ($RES_SIM_140) (76) [ARRY] (2) smee.airGapR.spacePhasor_s.v_ = $DER.smee.airGapR.psi_ms ($RES_SIM_141) (77) [ARRY] (3) smee.spacePhasorS.plug_n.pin.v = smee.plug_sn.pin.v ($RES_SIM_385) (78) [SCAL] (1) star2.pin_n.i - (capacitor2.i + resistor.i) = 0.0 ($RES_SIM_227) (79) [ARRY] (2) smee.airGapR.i_rs = smee.airGapR.RotationMatrix * smee.airGapR.i_rr ($RES_SIM_142) (80) [SCAL] (1) capacitor2.v = -star2.pin_n.v ($RES_SIM_29) (81) [SCAL] (1) capacitor1.i + resistor.i + star1.pin_n.i = 0.0 ($RES_SIM_228) (82) [ARRY] (2) smee.airGapR.i_rr = smee.airGapR.spacePhasor_r.i_ ($RES_SIM_143) (83) [SCAL] (1) (capacitor2.i + ground.p.i) - capacitor1.i = 0.0 ($RES_SIM_229) (84) [ARRY] (2) smee.airGapR.i_ss = smee.airGapR.RotationMatrix * smee.airGapR.i_sr ($RES_SIM_144) (85) [ARRY] (2) smee.airGapR.i_ss = smee.airGapR.spacePhasor_s.i_ ($RES_SIM_145) (86) [ARRY] (4) smee.airGapR.RotationMatrix = {{$FUN_4, -$FUN_5}, {$FUN_5, $FUN_4}} ($RES_SIM_146) (87) [SCAL] (1) smee.airGapR.gamma = smee.airGapR.p * (smee.strayLoad.flange.phi - smee.fixed.phi0) ($RES_SIM_147) (88) [ARRY] (2) smee.airGapR.psi_ms = smee.airGapR.RotationMatrix * smee.airGapR.psi_mr ($RES_SIM_148) (89) [ARRY] (2) smee.airGapR.psi_mr = smee.airGapR.L * smee.airGapR.i_mr ($RES_SIM_149) (90) [SCAL] (1) smee.phiMechanical = smee.strayLoad.flange.phi - smee.fixed.phi0 ($RES_BND_441) (91) [SCAL] (1) smee.wMechanical = $DER.smee.phiMechanical ($RES_BND_442) (92) [SCAL] (1) 3.0 * smee.spacePhasorS.zero.v = sum(smee.spacePhasorS.v) ($RES_$AUX_504) (93) [FOR-] (3) ($RES_SIM_310) (93) [----] for $i1 in 1:3 loop (93) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].n.i - idealDiode2.plug_n.pin[$i1].i = 0.0 ($RES_SIM_311) (93) [----] end for; (94) [SCAL] (1) smee.powerBalance.lossPowerBrush = -smee.brush.heatPort.Q_flow ($RES_BND_446) (95) [SCAL] (1) -3.0 * smee.i_0_s = sum(smee.spacePhasorS.i) ($RES_$AUX_503) (96) [SCAL] (1) smee.powerBalance.lossPowerExcitation = -smee.re.heatPort.Q_flow ($RES_BND_447) (97) [SCAL] (1) smee.thermalAmbient.Q_flowStatorWinding = sum(smee.thermalAmbient.thermalCollectorStator.port_a.Q_flow) ($RES_$AUX_502) (98) [ARRY] (3) idealDiode2.idealDiode.n.v = idealDiode2.plug_n.pin.v ($RES_SIM_312) (99) [SCAL] (1) smee.powerBalance.powerExcitation = smee.ve * smee.ie ($RES_BND_448) (100) [SCAL] (1) $FUN_4 = cos(smee.airGapR.gamma) ($RES_$AUX_501) (101) [FOR-] (3) ($RES_SIM_313) (101) [----] for $i1 in 1:3 loop (101) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].p.i - idealDiode2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_314) (101) [----] end for; (102) [SCAL] (1) capacitor2.i = capacitor2.C * $DER.capacitor2.v ($RES_SIM_30) (103) [SCAL] (1) smee.powerBalance.lossPowerRotorWinding = -smee.damperCage.heatPort.Q_flow ($RES_BND_449) (104) [SCAL] (1) $FUN_5 = sin(smee.airGapR.gamma) ($RES_$AUX_500) (105) [ARRY] (3) idealDiode2.plug_p.pin.v = idealDiode2.idealDiode.p.v ($RES_SIM_315) (106) [FOR-] (3) ($RES_SIM_316) (106) [----] for $i1 in 1:3 loop (106) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].n.i - idealDiode1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_317) (106) [----] end for; (107) [SCAL] (1) capacitor1.v = star1.pin_n.v ($RES_SIM_33) (108) [SCAL] (1) capacitor1.i = capacitor1.C * $DER.capacitor1.v ($RES_SIM_34) (109) [ARRY] (3) idealDiode1.idealDiode.n.v = idealDiode1.plug_n.pin.v ($RES_SIM_318) (110) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortBrush.Q_flow + smee.brush.heatPort.Q_flow = 0.0 ($RES_SIM_233) (111) [FOR-] (3) ($RES_SIM_319) (111) [----] for $i1 in 1:3 loop (111) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].p.i - idealDiode1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_320) (111) [----] end for; (112) [FOR-] (3) ($RES_SIM_36) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) star2.plug_p.pin[$i1].v = star2.pin_n.v ($RES_SIM_37) (112) [----] end for; (113) [SCAL] (1) (smee.ie + groundExcitation.p.i) - smee.ie = 0.0 ($RES_SIM_235) (114) [ARRY] (2) smee.airGapR.i_mr = smee.airGapR.i_sr + smee.airGapR.i_rr ($RES_SIM_150) (115) [ARRY] (3) idealDiode2.i = idealDiode2.plug_p.pin.i ($RES_SIM_38) (116) [SCAL] (1) smee.thermalAmbient.Q_flowExcitation + smee.re.heatPort.Q_flow = 0.0 ($RES_SIM_237) (117) [ARRY] (3) idealDiode2.v = idealDiode2.plug_p.pin.v - idealDiode2.plug_n.pin.v ($RES_SIM_39) (118) [FOR-] (2) ($RES_SIM_398) (118) [----] for $i1 in 1:2 loop (118) [----] [SCAL] (1) smee.lssigma.spacePhasor_b.i_[$i1] + smee.airGapR.spacePhasor_s.i_[$i1] = 0.0 ($RES_SIM_399) (118) [----] end for; (119) [SCAL] (1) 0.0 = sum(terminalBox.star.plug_p.pin.i) ($RES_$AUX_499) (120) [ARRY] (3) smee.thermalAmbient.thermalCollectorStator.port_a.T = {smee.thermalAmbient.constTs.k for $i1 in 1:3} ($RES_SIM_156) (121) [SCAL] (1) -star1.pin_n.i = sum(star1.plug_p.pin.i) ($RES_$AUX_498) (122) [SCAL] (1) -star2.pin_n.i = sum(star2.plug_p.pin.i) ($RES_$AUX_497) (123) [SCAL] (1) $FUN_10 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(smee.vs, smee.is) ($RES_$AUX_495) (124) [SCAL] (1) $FUN_11 = sum(smee.rs.resistor.LossPower) ($RES_$AUX_494) (125) [SCAL] (1) smee.powerBalance.lossPowerFriction = -smee.friction.heatPort.Q_flow ($RES_BND_450) (126) [ARRY] (2) smee.lssigma.spacePhasor_b.v_ = smee.airGapR.spacePhasor_s.v_ ($RES_SIM_400) (127) [SCAL] (1) smee.powerBalance.lossPowerStrayLoad = -smee.strayLoad.heatPort.Q_flow ($RES_BND_451) (128) [SCAL] (1) smee.powerBalance.lossPowerRotorCore = 0.0 ($RES_BND_452) (129) [SCAL] (1) smee.powerBalance.lossPowerStatorCore = -smee.statorCore.heatPort.Q_flow ($RES_BND_453) (130) [SCAL] (1) smee.powerBalance.lossPowerStatorWinding = $FUN_11 ($RES_BND_454) (131) [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_455) (132) [SCAL] (1) smee.powerBalance.powerInertiaRotor = smee.inertiaRotor.a * smee.inertiaRotor.J * smee.inertiaRotor.w ($RES_BND_456) (133) [ARRY] (3) idealDiode1.plug_p.pin.v = idealDiode1.idealDiode.p.v ($RES_SIM_321) (134) [SCAL] (1) smee.powerBalance.powerInertiaStator = smee.inertiaStator.a * smee.inertiaStator.J * smee.inertiaStator.w ($RES_BND_457) (135) [SCAL] (1) smee.electricalExcitation.spacePhasor_r.i_[2] + smee.airGapR.spacePhasor_r.i_[2] + smee.damperCage.spacePhasor_r.i_[2] = 0.0 ($RES_SIM_407) (136) [SCAL] (1) smee.powerBalance.powerMechanical = smee.wMechanical * smee.tauShaft ($RES_BND_458) (137) [SCAL] (1) smee.electricalExcitation.spacePhasor_r.i_[1] + smee.airGapR.spacePhasor_r.i_[1] + smee.damperCage.spacePhasor_r.i_[1] = 0.0 ($RES_SIM_408) (138) [FOR-] (3) ($RES_SIM_40) (138) [----] for $i1 in 1:3 loop (138) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].i = idealDiode2.idealDiode[$i1].p.i ($RES_SIM_41) (138) [----] end for; (139) [SCAL] (1) smee.powerBalance.powerStator = $FUN_10 ($RES_BND_459) (140) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[2] = smee.damperCage.spacePhasor_r.v_[2] ($RES_SIM_409) (141) [SCAL] (1) smee.thermalAmbient.Q_flowRotorWinding + smee.damperCage.heatPort.Q_flow = 0.0 ($RES_SIM_240) (142) [FOR-] (3) ($RES_SIM_42) (142) [----] for $i1 in 1:3 loop (142) [----] [SCAL] (1) 0.0 = idealDiode2.idealDiode[$i1].p.i + idealDiode2.idealDiode[$i1].n.i ($RES_SIM_43) (142) [----] end for; (143) [SCAL] (1) smee.inertiaStator.flange_a.tau + smee.fixed.flange.tau + smee.tauElectrical = 0.0 ($RES_SIM_241) (144) [FOR-] (3) ($RES_SIM_44) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].v = idealDiode2.idealDiode[$i1].p.v - idealDiode2.idealDiode[$i1].n.v ($RES_SIM_45) (144) [----] end for; (145) [FOR-] (3) ($RES_SIM_48) (145) [----] for $i1 in 1:3 loop (145) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].LossPower = idealDiode2.idealDiode[$i1].v * idealDiode2.idealDiode[$i1].i ($RES_SIM_49) (145) [----] end for; (146) [ARRY] (3) smee.strayLoad.i = smee.strayLoad.plug_p.pin.i ($RES_SIM_164) (147) [ARRY] (3) smee.strayLoad.v = smee.strayLoad.plug_p.pin.v - smee.strayLoad.plug_n.pin.v ($RES_SIM_165) (148) [ARRY] (3) smee.strayLoad.plug_p.pin.i + smee.strayLoad.plug_n.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_166) (149) [SCAL] (1) smee.strayLoad.w = $DER.smee.strayLoad.phi ($RES_SIM_169) (150) [ARRY] (3) smee.vs = smee.plug_sp.pin.v - smee.plug_sn.pin.v ($RES_BND_460) (151) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[2] = smee.electricalExcitation.spacePhasor_r.v_[2] ($RES_SIM_410) (152) [ARRY] (3) smee.is = smee.plug_sp.pin.i ($RES_BND_461) (153) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[1] = smee.damperCage.spacePhasor_r.v_[1] ($RES_SIM_411) (154) [SCAL] (1) smee.airGapR.spacePhasor_r.v_[1] = smee.electricalExcitation.spacePhasor_r.v_[1] ($RES_SIM_412) (155) [ARRY] (2) smee.idq_ss = smee.airGapR.i_ss ($RES_BND_463) (156) [ARRY] (2) smee.idq_sr = smee.airGapR.i_sr ($RES_BND_464) (157) [SCAL] (1) smee.idq_dr[2] = smee.ir[2] ($RES_SIM_414) (158) [ARRY] (2) smee.idq_rs = smee.airGapR.i_rs ($RES_BND_465) (159) [SCAL] (1) smee.idq_dr[2] = smee.damperCage.i[2] ($RES_SIM_415) (160) [ARRY] (2) smee.idq_rr = smee.airGapR.i_rr ($RES_BND_466) (161) [SCAL] (1) smee.idq_dr[1] = smee.ir[1] ($RES_SIM_416) (162) [FOR-] (3) ($RES_BND_467) (162) [----] for $i1 in 1:3 loop (162) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.Q_flow = -smee.rs.resistor[$i1].LossPower ($RES_BND_468) (162) [----] end for; (163) [SCAL] (1) smee.idq_dr[1] = smee.damperCage.i[1] ($RES_SIM_417) (164) [FOR-] (3) ($RES_SIM_50) (164) [----] for $i1 in 1:3 loop (164) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].i = idealDiode2.idealDiode[$i1].s * (if idealDiode2.idealDiode[$i1].off then idealDiode2.idealDiode[$i1].Goff else 1.0) + idealDiode2.idealDiode[$i1].Goff * idealDiode2.idealDiode[$i1].Vknee ($RES_SIM_51) (164) [----] end for; (165) [FOR-] (3) ($RES_BND_469) (165) [----] for $i1 in 1:3 loop (165) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.T = smee.rs.resistor[$i1].T_heatPort ($RES_BND_470) (165) [----] end for; (166) [FOR-] (3) ($RES_SIM_250) (166) [----] for $i1 in 1:3 loop (166) [----] [SCAL] (1) smee.internalThermalPort.heatPortStatorWinding[$i1].Q_flow = 0.0 ($RES_SIM_251) (166) [----] end for; (167) [FOR-] (3) ($RES_SIM_52) (167) [----] for $i1 in 1:3 loop (167) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].v = idealDiode2.idealDiode[$i1].s * (if idealDiode2.idealDiode[$i1].off then 1.0 else idealDiode2.idealDiode[$i1].Ron) + idealDiode2.idealDiode[$i1].Vknee ($RES_SIM_53) (167) [----] end for; (168) [FOR-] (3) ($RES_SIM_54) (168) [----] for $i1 in 1:3 loop (168) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].off = $SEV_4[$i1] ($RES_SIM_55) (168) [----] end for; (169) [FOR-] (2) ($RES_SIM_8) (169) [----] for $i1 in 1:2 loop (169) [----] [SCAL] (1) filter.uu[$i1 + 1] = filter.x[$i1] ($RES_SIM_9) (169) [----] end for; (170) [ARRY] (3) idealDiode1.i = idealDiode1.plug_p.pin.i ($RES_SIM_56) (171) [SCAL] (1) filter.y = filter.u_nominal * filter.gain * filter.uu[3] ($RES_SIM_7) (172) [SCAL] (1) smee.strayLoad.phi = smee.strayLoad.flange.phi - smee.fixed.phi0 ($RES_SIM_170) (173) [ARRY] (3) idealDiode1.v = idealDiode1.plug_p.pin.v - idealDiode1.plug_n.pin.v ($RES_SIM_57) (174) [SCAL] (1) -smee.strayLoad.heatPort.Q_flow = 0.0 ($RES_SIM_171) (175) [FOR-] (3) ($RES_SIM_58) (175) [----] for $i1 in 1:3 loop (175) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].i = idealDiode1.idealDiode[$i1].p.i ($RES_SIM_59) (175) [----] end for; (176) [ARRY] (3) smee.strayLoad.v = {0.0 for $i1 in 1:3} ($RES_SIM_173) (177) [ARRY] (2) -smee.spacePhasorS.spacePhasor.i_ = smee.spacePhasorS.TransformationMatrix * smee.spacePhasorS.i ($RES_SIM_175) (178) [ARRY] (2) smee.spacePhasorS.spacePhasor.v_ = smee.spacePhasorS.TransformationMatrix * smee.spacePhasorS.v ($RES_SIM_177) (179) [ARRY] (3) smee.spacePhasorS.i .* smee.spacePhasorS.turnsRatio = -smee.spacePhasorS.plug_n.pin.i ($RES_SIM_179) (180) [FOR-] (3) ($RES_SIM_420) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) smee.thermalAmbient.thermalCollectorStator.port_a[$i1].Q_flow - smee.thermalAmbient.thermalPort.heatPortStatorWinding[$i1].Q_flow = 0.0 ($RES_SIM_421) (180) [----] end for; (181) [ARRY] (3) smee.thermalAmbient.thermalCollectorStator.port_a.T = smee.thermalAmbient.thermalPort.heatPortStatorWinding.T ($RES_SIM_422) (182) [SCAL] (1) smee.strayLoad.iRMS = sqrt(sum(0.3333333333333333 .* smee.strayLoad.i .^ 2.0)) ($RES_BND_475) (183) [FOR-] (3) ($RES_SIM_341) (183) [----] for $i1 in 1:3 loop (183) [----] [SCAL] (1) -(terminalBox.plug_sp.pin[$i1].i + terminalBox.plugSupply.pin[$i1].i) = 0.0 ($RES_SIM_342) (183) [----] end for; (184) [ARRY] (3) terminalBox.plug_sp.pin.v = terminalBox.plugSupply.pin.v ($RES_SIM_343) (185) [FOR-] (3) ($RES_SIM_60) (185) [----] for $i1 in 1:3 loop (185) [----] [SCAL] (1) 0.0 = idealDiode1.idealDiode[$i1].p.i + idealDiode1.idealDiode[$i1].n.i ($RES_SIM_61) (185) [----] end for; (186) [FOR-] (3) ($RES_SIM_344) (186) [----] for $i1 in 1:3 loop (186) [----] [SCAL] (1) terminalBox.star.plug_p.pin[$i1].i - terminalBox.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_345) (186) [----] end for; (187) [SCAL] (1) speed.a = (constantSpeed.k - speed.w) * speed.w_crit ($RES_SIM_102) (188) [FOR-] (3) ($RES_SIM_62) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].v = idealDiode1.idealDiode[$i1].p.v - idealDiode1.idealDiode[$i1].n.v ($RES_SIM_63) (188) [----] end for; (189) [ARRY] (3) terminalBox.plug_sn.pin.v = terminalBox.star.plug_p.pin.v ($RES_SIM_346) (190) [SCAL] (1) smee.strayLoad.heatPort.Q_flow + smee.thermalAmbient.Q_flowStrayLoad = 0.0 ($RES_SIM_261) (191) [SCAL] (1) speed.a = $DER.speed.w ($RES_SIM_103) (192) [SCAL] (1) smee.tauShaft + smee.inertiaRotor.flange_b.tau = 0.0 ($RES_SIM_262) (193) [SCAL] (1) speed.w = $DER.speed.phi ($RES_SIM_104) (194) [SCAL] (1) speed.phi = smee.strayLoad.flange.phi ($RES_SIM_105) (195) [SCAL] (1) smee.statorCore.heatPort.Q_flow + smee.thermalAmbient.Q_flowStatorCore = 0.0 ($RES_SIM_264) (196) [FOR-] (3) ($RES_SIM_66) (196) [----] for $i1 in 1:3 loop (196) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].LossPower = idealDiode1.idealDiode[$i1].v * idealDiode1.idealDiode[$i1].i ($RES_SIM_67) (196) [----] end for; (197) [ARRY] (3) smee.spacePhasorS.i .* smee.spacePhasorS.turnsRatio = smee.spacePhasorS.plug_p.pin.i ($RES_SIM_180) (198) [ARRY] (3) smee.spacePhasorS.v / smee.spacePhasorS.turnsRatio = smee.spacePhasorS.plug_p.pin.v - smee.spacePhasorS.plug_n.pin.v ($RES_SIM_181) (199) [FOR-] (3) ($RES_SIM_108) (199) [----] for $i1 in 1:3 loop (199) [----] [SCAL] (1) terminalBox.star.plug_p.pin[$i1].v = terminalBox.star.pin_n.v ($RES_SIM_109) (199) [----] end for; (200) [FOR-] (3) ($RES_SIM_68) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].i = idealDiode1.idealDiode[$i1].s * (if idealDiode1.idealDiode[$i1].off then idealDiode1.idealDiode[$i1].Goff else 1.0) + idealDiode1.idealDiode[$i1].Goff * idealDiode1.idealDiode[$i1].Vknee ($RES_SIM_69) (200) [----] end for; (201) [SCAL] (1) smee.friction.heatPort.Q_flow + smee.thermalAmbient.Q_flowFriction = 0.0 ($RES_SIM_267) (202) [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_182) (203) [ARRY] (2) smee.statorCore.spacePhasor.i_ = {0.0 for $i1 in 1:2} ($RES_SIM_183) (204) [FOR-] (3) ($RES_EVT_514) (204) [----] for $i1 in 1:3 loop (204) [----] [SCAL] (1) $SEV_4[$i1] = idealDiode2.idealDiode[$i1].s < 0.0 ($RES_EVT_515) (204) [----] end for; (205) [SCAL] (1) speed.flange.tau - smee.tauShaft = 0.0 ($RES_SIM_269) (206) [FOR-] (3) ($RES_EVT_516) (206) [----] for $i1 in 1:3 loop (206) [----] [SCAL] (1) $SEV_5[$i1] = idealDiode1.idealDiode[$i1].s < 0.0 ($RES_EVT_517) (206) [----] end for; (207) [SCAL] (1) smee.lszero.v = smee.spacePhasorS.zero.v ($RES_SIM_187) (208) [SCAL] (1) $SEV_6 = voltageController.limiter.simplifiedExpr > voltageController.limiter.uMax ($RES_EVT_518) (209) [SCAL] (1) smee.lszero.L * (-$DER.smee.i_0_s) = smee.lszero.v ($RES_SIM_188) (210) [SCAL] (1) $SEV_7 = voltageController.limiter.simplifiedExpr < voltageController.limiter.uMin ($RES_EVT_519) (211) [SCAL] (1) smee.lssigma.v_[2] = smee.lssigma.L[2] * $DER.smee.lssigma.i_[2] ($RES_SIM_189) (212) [FOR-] (3) ($RES_SIM_432) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.Q_flow - smee.rs.heatPort[$i1].Q_flow = 0.0 ($RES_SIM_433) (212) [----] end for; (213) [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_483) (214) [SCAL] (1) smee.ve = excitationVoltage.p.v ($RES_BND_484) (215) [ARRY] (3) smee.rs.resistor.heatPort.T = smee.rs.heatPort.T ($RES_SIM_434) (216) [FOR-] (3) ($RES_SIM_435) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) smee.rs.resistor[$i1].n.i - smee.rs.plug_n.pin[$i1].i = 0.0 ($RES_SIM_436) (216) [----] end for; (217) [ARRY] (3) smee.rs.resistor.n.v = smee.rs.plug_n.pin.v ($RES_SIM_437) (218) [ARRY] (2) smee.damperCage.i = -smee.damperCage.spacePhasor_r.i_ ($RES_BND_488) (219) [FOR-] (3) ($RES_SIM_438) (219) [----] for $i1 in 1:3 loop (219) [----] [SCAL] (1) smee.rs.resistor[$i1].p.i - smee.rs.plug_p.pin[$i1].i = 0.0 ($RES_SIM_439) (219) [----] end for; (220) [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_353) (221) [FOR-] (3) ($RES_SIM_70) (221) [----] for $i1 in 1:3 loop (221) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].v = idealDiode1.idealDiode[$i1].s * (if idealDiode1.idealDiode[$i1].off then 1.0 else idealDiode1.idealDiode[$i1].Ron) + idealDiode1.idealDiode[$i1].Vknee ($RES_SIM_71) (221) [----] end for; (222) [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_354) (223) [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_355) (224) [SCAL] (1) 0.0 = excitationVoltage.p.v - smee.brush.n.v ($RES_SIM_112) (225) [FOR-] (3) ($RES_SIM_72) (225) [----] for $i1 in 1:3 loop (225) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].off = $SEV_5[$i1] ($RES_SIM_73) (225) [----] end for; (226) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].T = smee.rs.heatPort[3].T ($RES_SIM_356) (227) [SCAL] (1) -smee.brush.heatPort.Q_flow = 0.0 ($RES_SIM_113) (228) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].T = smee.internalThermalPort.heatPortStatorWinding[3].T ($RES_SIM_357) (229) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].T = smee.rs.heatPort[2].T ($RES_SIM_358) (230) [FOR-] (3) ($RES_SIM_75) (230) [----] for $i1 in 1:3 loop (230) [----] [SCAL] (1) star1.plug_p.pin[$i1].v = star1.pin_n.v ($RES_SIM_76) (230) [----] end for; (231) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].T = smee.internalThermalPort.heatPortStatorWinding[2].T ($RES_SIM_359) (232) [SCAL] (1) smee.lssigma.v_[1] = smee.lssigma.L[1] * $DER.smee.lssigma.i_[1] ($RES_SIM_190) (233) [SCAL] (1) smee.lesigma.v = smee.re.n.v - smee.lesigma.n.v ($RES_SIM_117) (234) [ARRY] (2) smee.lssigma.i_ = smee.lssigma.spacePhasor_a.i_ ($RES_SIM_191) (235) [SCAL] (1) smee.lesigma.L * $DER.smee.ie = smee.lesigma.v ($RES_SIM_118) (236) [ARRY] (2) smee.lssigma.v_ = smee.lssigma.spacePhasor_a.v_ - smee.lssigma.spacePhasor_b.v_ ($RES_SIM_192) (237) [FOR-] (3) ($RES_EVT_523) (237) [----] for $i1 in 1:3 loop (237) [----] [SCAL] (1) $SEV_11[$i1] = 1.0 + smee.rs.resistor[$i1].alpha * (smee.rs.resistor[$i1].T_heatPort - smee.rs.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_524) (237) [----] end for; (238) [ARRY] (2) smee.lssigma.spacePhasor_a.i_ + smee.lssigma.spacePhasor_b.i_ = {0.0 for $i1 in 1:2} ($RES_SIM_193) (239) [ARRY] (3) smee.rs.i = smee.rs.plug_p.pin.i ($RES_SIM_194) (240) [ARRY] (3) smee.rs.v = smee.rs.plug_p.pin.v - smee.rs.plug_n.pin.v ($RES_SIM_195) (241) [FOR-] (3) ($RES_SIM_196) (241) [----] for $i1 in 1:3 loop (241) [----] [SCAL] (1) smee.rs.resistor[$i1].i = smee.rs.resistor[$i1].p.i ($RES_SIM_197) (241) [----] end for; (242) [FOR-] (3) ($RES_SIM_198) (242) [----] for $i1 in 1:3 loop (242) [----] [SCAL] (1) 0.0 = smee.rs.resistor[$i1].p.i + smee.rs.resistor[$i1].n.i ($RES_SIM_199) (242) [----] end for; (243) [ARRY] (3) smee.rs.resistor.p.v = smee.rs.plug_p.pin.v ($RES_SIM_440) (244) [SCAL] (1) voltageController.controlError = setPointGain.y - filter.y ($RES_BND_493) (245) [FOR-] (3) ($RES_SIM_200) (245) [----] for $i1 in 1:3 loop (245) [----] [SCAL] (1) smee.rs.resistor[$i1].v = smee.rs.resistor[$i1].p.v - smee.rs.resistor[$i1].n.v ($RES_SIM_201) (245) [----] end for; (246) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].T = smee.rs.heatPort[1].T ($RES_SIM_360) (247) [FOR-] (3) ($RES_SIM_202) (247) [----] for $i1 in 1:3 loop (247) [----] [SCAL] (1) smee.rs.resistor[$i1].LossPower = smee.rs.resistor[$i1].v * smee.rs.resistor[$i1].i ($RES_SIM_203) (247) [----] end for; (248) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].T = smee.internalThermalPort.heatPortStatorWinding[1].T ($RES_SIM_361)