Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=22000,variableFilter="time|capacitor1.v|capacitor2.v|filter.x.1.|filter.x.2.|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.lesigma.i|speed.phi|speed.w|voltageController.I.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 106.8 kB / 17.69 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 192 kB / 18.63 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.223/1.223, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.17e-05, allocations: 4.953 kB / 302 MB, free: 5.203 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.01182/0.01186, allocations: 11.95 MB / 314 MB, free: 9.199 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.02247, allocations: 6.491 MB / 320.5 MB, free: 2.688 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002816/0.02535, allocations: 63.75 kB / 320.5 MB, free: 2.625 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00274/0.02811, allocations: 0.8617 MB / 321.4 MB, free: 1.754 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003125/0.03129, allocations: 0.943 MB / 322.3 MB, free: 0.8047 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004191/0.0355, allocations: 1.959 MB / 324.3 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004581/0.04009, allocations: 3.837 MB / 328.1 MB, free: 11 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001815/0.04192, allocations: 1.44 MB / 329.6 MB, free: 9.508 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00182/0.04376, allocations: 1.378 MB / 330.9 MB, free: 8.125 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001315/0.04508, allocations: 1.389 MB / 332.3 MB, free: 6.73 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002836/0.04537, allocations: 244 kB / 332.6 MB, free: 6.492 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.04787, allocations: 1.369 MB / 333.9 MB, free: 5.121 MB / 270.1 MB Notification: Performance of combineBinaries: time 0.002826/0.0507, allocations: 4.065 MB / 338 MB, free: 1.016 MB / 270.1 MB Notification: Performance of replaceArrayConstructors: time 0.001607/0.05232, allocations: 2.568 MB / 340.6 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00053/0.05286, allocations: 394.9 kB / 341 MB, free: 14.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0004437/0.05331, allocations: 67.69 kB / 341 MB, free: 13.96 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 617 (435) * Number of variables: 617 (405) Notification: Performance of Bindings: time 0.01022/0.06354, allocations: 12.65 MB / 353.7 MB, free: 1.012 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.001279/0.06483, allocations: 1.547 MB / 355.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of Early Inline: time 0.005275/0.07012, allocations: 6.098 MB / 361.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of simplify1: time 0.0003838/0.07052, allocations: 371.5 kB / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of Alias: time 0.1401/0.2106, allocations: 8.601 MB / 370.3 MB, free: 41.3 MB / 302.1 MB Notification: Performance of simplify2: time 0.0005331/0.2112, allocations: 246.7 kB / 370.5 MB, free: 41.3 MB / 302.1 MB Notification: Performance of Events: time 0.0009185/0.2121, allocations: 0.7052 MB / 371.2 MB, free: 41.19 MB / 302.1 MB Notification: Performance of Detect States: time 0.001252/0.2133, allocations: 1.217 MB / 372.5 MB, free: 41.09 MB / 302.1 MB Notification: Performance of Partitioning: time 0.002015/0.2154, allocations: 1.679 MB / 374.1 MB, free: 40.78 MB / 302.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (225/439) **************************** (1) [ALGB] (1) Real smee.spacePhasorS.zero.v (2) [ALGB] (3) flow Real[3] idealDiode2.idealDiode.p.i (3) [ALGB] (3) flow Real[3] smee.rs.plug_p.pin.i (4) [ALGB] (2) flow Real[2] smee.airGap.spacePhasor_r.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) [ALGB] (3) flow Real[3] smee.strayLoad.plug_p.pin.i (9) [ALGB] (3) flow Real[3] terminalBox.star.plug_p.pin.i (10) [ALGB] (1) Real resistor.LossPower (11) [ALGB] (2) Real[2] smee.electricalExcitation.spacePhasor_r.v_ (12) [ALGB] (1) Real voltageController.controlError = setPointGain.y - filter.y (13) [ALGB] (1) flow Real smee.thermalAmbient.thermalPort.heatPortBrush.Q_flow (14) [ALGB] (1) Real smee.lesigma.n.v (15) [ALGB] (3) Real[3] idealDiode2.idealDiode.p.v (16) [ALGB] (1) final output Real smee.powerBalance.powerInertiaRotor = smee.inertiaRotor.a * smee.inertiaRotor.J * smee.inertiaRotor.w (17) [ALGB] (1) final output Real smee.powerBalance.powerExcitation = smee.ve * smee.ie (18) [ALGB] (1) flow Real smee.strayLoad.heatPort.Q_flow = -(-smee.strayLoad.heatPort.Q_flow) (19) [DER-] (1) Real $DER.speed.w (20) [DER-] (1) parameter Real $DER.smee.fixed.phi0 (21) [ALGB] (1) Real resistor.i (22) [ALGB] (2) final Real[2] smee.idq_sr = smee.airGap.i_sr (StateSelect = prefer) (23) [ALGB] (2) final Real[2] smee.idq_ss = smee.airGap.i_ss (24) [ALGB] (3) Real[3] smee.strayLoad.plug_p.pin.v (25) [ALGB] (3) Real[3] terminalBox.star.plug_p.pin.v (26) [ALGB] (1) flow Real smee.inertiaStator.flange_a.tau (27) [ALGB] (1) final output Real smee.powerBalance.powerStator = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(smee.vs, smee.is) (28) [ALGB] (3) Real[3] smee.rs.v (29) [DER-] (1) Real $DER.smee.phiMechanical (30) [ALGB] (3) flow Real[3] smee.plug_sp.pin.i (31) [ALGB] (1) flow Real smee.damperCage.heatPort.Q_flow = -(-smee.damperCage.heatPort.Q_flow) (32) [ALGB] (1) Real smee.electricalExcitation.ve (33) [ALGB] (1) Real smee.strayLoad.w (34) [ALGB] (1) Real capacitor1.i (35) [ALGB] (2) Real[2] smee.idq_dr (StateSelect = prefer) (36) [ALGB] (3) Real[3] smee.strayLoad.v (37) [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}) (38) [ALGB] (1) Real voltageController.addSat.y (39) [DER-] (1) Real $DER.speed.phi (40) [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}) (41) [ALGB] (3) Real[3] idealDiode1.idealDiode.v (42) [ALGB] (3) Real[3] smee.rs.i (43) [ALGB] (3) Real[3] idealDiode2.idealDiode.LossPower (44) [ALGB] (2) Real[2] smee.spacePhasorS.spacePhasor.v_ (45) [ALGB] (1) Real voltageController.addI.y (46) [ALGB] (3) Real[3] smee.plug_sp.pin.v (47) [ALGB] (3) protected Real[3] idealDiode1.idealDiode.s (start = {0.0 for $i1 in 1:3}) (48) [ALGB] (2) flow Real[2] smee.airGap.spacePhasor_s.i_ (49) [ALGB] (3) Real[3] smee.spacePhasorS.i (50) [ALGB] (1) final output Real smee.powerBalance.powerMechanical = smee.wMechanical * smee.tauShaft (51) [ALGB] (1) Real smee.brush.n.v (52) [ALGB] (3) Real[3] smee.strayLoad.i (53) [DISC] (3) Boolean[3] $SEV_5[$i1] (54) [ALGB] (2) Real[2] smee.statorCore.spacePhasor.v_ (55) [ALGB] (3) Real[3] idealDiode1.idealDiode.i (56) [ALGB] (1) Real smee.strayLoad.iRMS = Modelica.Electrical.Polyphase.Functions.quasiRMS(smee.strayLoad.i) (57) [ALGB] (2) Real[2] smee.damperCage.i = -smee.damperCage.spacePhasor_r.i_ (58) [ALGB] (3) Real[3] smee.spacePhasorS.v (59) [ALGB] (1) Real smee.tauElectrical = smee.tauElectrical (60) [ALGB] (1) Real voltageSensor.v (61) [ALGB] (3) Real[3] terminalBox.plug_sp.pin.v (62) [ALGB] (1) Real excitationVoltage.p.v (63) [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}) (64) [ALGB] (1) Real voltageController.gainTrack.y (65) [ALGB] (1) Real smee.airGap.gamma (66) [ALGB] (1) Real voltageController.gainPID.y (67) [ALGB] (3) flow Real[3] terminalBox.plug_sp.pin.i (68) [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}) (69) [ALGB] (1) Real $FUN_8 (70) [ALGB] (1) protected Real voltageController.limiter.simplifiedExpr (71) [ALGB] (1) Real $FUN_7 (72) [DER-] (2) Real[2] $DER.smee.airGap.psi_mr (73) [ALGB] (3) Real[3] smee.rs.resistor.i (74) [ALGB] (1) Real $FUN_5 (75) [DER-] (2) Real[2] $DER.smee.airGap.psi_ms (76) [ALGB] (1) Real $FUN_4 (77) [ALGB] (1) flow Real ground.p.i (78) [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 (79) [ALGB] (3) flow Real[3] smee.spacePhasorS.plug_n.pin.i (80) [ALGB] (3) Real[3] smee.rs.plug_n.pin.v (81) [ALGB] (2) Real[2] smee.airGap.spacePhasor_r.v_ (82) [DER-] (1) Real $DER.smee.ie (83) [DER-] (1) Real $DER.smee.inertiaStator.w (84) [ALGB] (2) Real[2] smee.lssigma.v_ (85) [ALGB] (3) Real[3] smee.rs.resistor.v (86) [ALGB] (1) Real speedSensor.w (87) [ALGB] (3) flow Real[3] smee.rs.resistor.p.i (88) [ALGB] (1) Real capacitor2.i (89) [ALGB] (3) Real[3] smee.rs.resistor.R_actual (90) [ALGB] (1) Real smee.damperCage.Rrd_actual (91) [ALGB] (3) Real[3] smee.spacePhasorS.plug_n.pin.v (92) [ALGB] (3) flow Real[3] smee.rs.plug_n.pin.i (93) [ALGB] (1) flow Real smee.re.heatPort.Q_flow = -(-smee.re.heatPort.Q_flow) (94) [ALGB] (1) Real star1.pin_n.v (95) [DISC] (3) Boolean[3] $SEV_4[$i1] (96) [DER-] (1) Real $DER.capacitor2.v (97) [ALGB] (1) final output Real smee.powerBalance.lossPowerBrush = -smee.brush.heatPort.Q_flow (98) [DER-] (1) Real $DER.smee.friction.phi (99) [ALGB] (4) Real[2, 2] smee.airGap.RotationMatrix (100) [ALGB] (3) flow Real[3] smee.thermalAmbient.thermalPort.heatPortStatorWinding.Q_flow (101) [ALGB] (1) Real smee.friction.w (102) [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}) (103) [ALGB] (1) final Real smee.thermalAmbient.Q_flowExcitation = smee.thermalAmbient.Q_flowExcitation (104) [ALGB] (3) Real[3] smee.rs.resistor.p.v (105) [DER-] (2) Real[2] $DER.smee.lssigma.i_ (106) [ALGB] (1) Real smee.re.v (107) [ALGB] (2) Real[2] smee.airGap.i_mr (108) [ALGB] (3) Real[3] idealDiode2.v (109) [ALGB] (1) flow Real star1.pin_n.i (110) [ALGB] (1) Real smee.lszero.v (111) [DER-] (1) Real $DER.smee.strayLoad.phi (112) [ALGB] (1) Real terminalBox.star.pin_n.v (113) [ALGB] (2) Real[2] smee.lssigma.spacePhasor_b.v_ (114) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStatorWinding = smee.thermalAmbient.Q_flowStatorWinding (115) [ALGB] (3) Real[3] idealDiode1.idealDiode.p.v (116) [ALGB] (3) Real[3] idealDiode2.i (117) [DER-] (2) Real[2] $DER.filter.x (118) [ALGB] (1) flow Real smee.statorCore.heatPort.Q_flow = -(-smee.statorCore.heatPort.Q_flow) (119) [ALGB] (3) Real[3] idealDiode1.plug_p.pin.v (120) [ALGB] (3) Real[3] idealDiode2.plug_p.pin.v (121) [ALGB] (1) Real voltageController.addP.y (122) [ALGB] (2) Real[2] smee.airGap.spacePhasor_s.v_ (123) [ALGB] (3) flow Real[3] idealDiode2.idealDiode.n.i (124) [DISC] (1) Boolean $SEV_7 (125) [DISC] (1) Boolean $SEV_6 (126) [ALGB] (3) Real[3] smee.is = smee.plug_sp.pin.i (127) [ALGB] (2) Real[2] smee.ir (fixed = {true for $i1 in 1:2}, start = {0.0 for $i1 in 1:2}) (128) [ALGB] (1) Real star2.pin_n.v (129) [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}) (130) [ALGB] (2) flow Real[2] smee.statorCore.spacePhasor.i_ (131) [ALGB] (3) protected flow Real[3] smee.internalThermalPort.heatPortStatorWinding.Q_flow (132) [ALGB] (3) flow Real[3] idealDiode1.idealDiode.p.i (133) [ALGB] (1) final output Real smee.powerBalance.lossPowerRotorWinding = -smee.damperCage.heatPort.Q_flow (134) [ALGB] (3) flow Real[3] idealDiode1.plug_p.pin.i (135) [ALGB] (3) flow Real[3] idealDiode2.plug_p.pin.i (136) [ALGB] (1) final output Real smee.powerBalance.lossPowerStatorCore = -smee.statorCore.heatPort.Q_flow (137) [ALGB] (3) Real[3] idealDiode2.idealDiode.n.v (138) [ALGB] (3) flow Real[3] smee.rs.heatPort.Q_flow (139) [ALGB] (1) flow Real star2.pin_n.i (140) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStatorCore = smee.thermalAmbient.Q_flowStatorCore (141) [DISC] (3) Boolean[3] idealDiode1.idealDiode.off (start = {true for $i1 in 1:3}) (142) [DER-] (1) Real $DER.smee.inertiaRotor.w (143) [ALGB] (1) Real smee.re.n.v (144) [DER-] (1) Real $DER.smee.strayLoad.flange.phi (145) [ALGB] (3) flow Real[3] smee.strayLoad.plug_n.pin.i (146) [ALGB] (1) final Real smee.thermalAmbient.Q_flowStrayLoad = smee.thermalAmbient.Q_flowStrayLoad (147) [ALGB] (1) Real resistor.R_actual (148) [ALGB] (3) Real[3] terminalBox.plug_sn.pin.v (149) [ALGB] (1) flow Real speed.flange.tau (150) [ALGB] (1) Real excitationVoltage.v (151) [DER-] (1) Real $DER.capacitor1.v (152) [ALGB] (2) Real[2] smee.lssigma.spacePhasor_a.v_ (153) [ALGB] (1) Real smee.tauShaft = -(-smee.tauShaft) (154) [ALGB] (1) final output Real smee.powerBalance.lossPowerStrayLoad = -smee.strayLoad.heatPort.Q_flow (155) [ALGB] (1) Real smee.re.R_actual (156) [ALGB] (2) Real[2] smee.airGap.i_ss (157) [ALGB] (2) Real[2] smee.airGap.i_sr (158) [ALGB] (3) Real[3] idealDiode1.v (159) [DER-] (1) Real $DER.smee.i_0_s (160) [ALGB] (1) Real voltageController.P.y (161) [ALGB] (3) Real[3] smee.strayLoad.plug_n.pin.v (162) [ALGB] (3) flow Real[3] terminalBox.plug_sn.pin.i (163) [ALGB] (2) flow Real[2] smee.electricalExcitation.spacePhasor_r.i_ (164) [ALGB] (1) final output Real smee.powerBalance.lossPowerExcitation = -smee.re.heatPort.Q_flow (165) [ALGB] (1) flow Real smee.brush.heatPort.Q_flow = -(-smee.brush.heatPort.Q_flow) (166) [ALGB] (3) flow Real[3] smee.spacePhasorS.plug_p.pin.i (167) [ALGB] (1) final Real smee.thermalAmbient.Q_flowRotorWinding = smee.thermalAmbient.Q_flowRotorWinding (168) [ALGB] (1) flow Real smee.inertiaRotor.flange_b.tau (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) [DISC] (3) Boolean[3] $SEV_11[$i1] (176) [ALGB] (1) final output Real smee.powerBalance.lossPowerRotorCore = 0.0 (177) [ALGB] (3) flow Real[3] terminalBox.plugSupply.pin.i (178) [ALGB] (3) Real[3] smee.spacePhasorS.plug_p.pin.v (179) [ALGB] (3) Real[3] smee.plug_sn.pin.v (180) [ALGB] (1) Real smee.wMechanical = der(smee.phiMechanical) (start = 0.0) (181) [ALGB] (3) protected Real[3] idealDiode2.idealDiode.s (start = {0.0 for $i1 in 1:3}) (182) [ALGB] (1) Real filter.y (183) [ALGB] (2) Real[2] smee.airGap.i_rs (184) [ALGB] (2) Real[2] smee.airGap.i_rr (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.airGap.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.airGap.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 (254/438) **************************** (1) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].T = smee.internalThermalPort.heatPortStatorWinding[2].T ($RES_SIM_362) (2) [SCAL] (1) smee.friction.phi = smee.strayLoad.flange.phi - smee.fixed.phi0 ($RES_SIM_204) (3) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].T = smee.rs.heatPort[1].T ($RES_SIM_363) (4) [SCAL] (1) -smee.friction.heatPort.Q_flow = 0.0 ($RES_SIM_205) (5) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[1].T = smee.internalThermalPort.heatPortStatorWinding[1].T ($RES_SIM_364) (6) [SCAL] (1) voltageController.gainTrack.y = voltageController.gainTrack.k * voltageController.addSat.y ($RES_SIM_81) (7) [SCAL] (1) terminalBox.plugSupply.pin[3].v = idealDiode1.plug_p.pin[3].v ($RES_SIM_280) (8) [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_122) (9) [SCAL] (1) voltageController.addSat.y = voltageController.addSat.k1 * excitationVoltage.v + voltageController.addSat.k2 * voltageController.limiter.simplifiedExpr ($RES_SIM_82) (10) [SCAL] (1) terminalBox.plugSupply.pin[3].v = idealDiode2.plug_n.pin[3].v ($RES_SIM_281) (11) [SCAL] (1) smee.inertiaStator.J * smee.inertiaStator.a = smee.inertiaStator.flange_a.tau ($RES_SIM_208) (12) [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_123) (13) [SCAL] (1) voltageController.addI.y = voltageController.addI.k2 * filter.y + voltageController.addI.k1 * setPointGain.y + voltageController.addI.k3 * voltageController.gainTrack.y ($RES_SIM_83) (14) [SCAL] (1) terminalBox.plugSupply.pin[2].v = idealDiode1.plug_p.pin[2].v ($RES_SIM_282) (15) [SCAL] (1) smee.inertiaStator.a = $DER.smee.inertiaStator.w ($RES_SIM_209) (16) [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_124) (17) [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_84) (18) [SCAL] (1) terminalBox.plugSupply.pin[2].v = idealDiode2.plug_n.pin[2].v ($RES_SIM_283) (19) [SCAL] (1) smee.damperCage.Rrq_actual = smee.damperCage.Rrq * (1.0 + smee.damperCage.alpha * (smee.thermalAmbient.constTr.k - smee.damperCage.T_ref)) ($RES_SIM_125) (20) [SCAL] (1) voltageController.gainPID.y = voltageController.gainPID.k * voltageController.addPID.y ($RES_SIM_85) (21) [SCAL] (1) smee.statorCore.spacePhasor.i_[2] + smee.lssigma.spacePhasor_a.i_[2] + smee.spacePhasorS.spacePhasor.i_[2] = 0.0 ($RES_SIM_369) (22) [SCAL] (1) terminalBox.plugSupply.pin[1].v = idealDiode1.plug_p.pin[1].v ($RES_SIM_284) (23) [SCAL] (1) smee.damperCage.Rrd_actual = smee.damperCage.Rrd * (1.0 + smee.damperCage.alpha * (smee.thermalAmbient.constTr.k - smee.damperCage.T_ref)) ($RES_SIM_126) (24) [SCAL] (1) $DER.voltageController.I.y = voltageController.I.k * voltageController.addI.y ($RES_SIM_86) (25) [SCAL] (1) terminalBox.plugSupply.pin[1].v = idealDiode2.plug_n.pin[1].v ($RES_SIM_285) (26) [SCAL] (1) voltageController.P.y = voltageController.P.k * voltageController.addP.y ($RES_SIM_89) (27) [FOR-] (2) ($RES_SIM_10) (27) [----] for $i1 in 1:2 loop (27) [----] [SCAL] (1) $DER.filter.x[$i1] = filter.r[$i1] * (filter.x[$i1] - filter.uu[$i1]) ($RES_SIM_11) (27) [----] end for; (28) [SCAL] (1) smee.inertiaStator.w = $DER.smee.fixed.phi0 ($RES_SIM_210) (29) [SCAL] (1) filter.uu[1] = voltageSensor.v / filter.u_nominal ($RES_SIM_12) (30) [SCAL] (1) smee.statorCore.spacePhasor.i_[1] + smee.lssigma.spacePhasor_a.i_[1] + smee.spacePhasorS.spacePhasor.i_[1] = 0.0 ($RES_SIM_370) (31) [SCAL] (1) smee.statorCore.spacePhasor.v_[2] = smee.spacePhasorS.spacePhasor.v_[2] ($RES_SIM_371) (32) [SCAL] (1) smee.inertiaRotor.J * smee.inertiaRotor.a = smee.tauElectrical + smee.inertiaRotor.flange_b.tau ($RES_SIM_213) (33) [SCAL] (1) smee.statorCore.spacePhasor.v_[2] = smee.lssigma.spacePhasor_a.v_[2] ($RES_SIM_372) (34) [SCAL] (1) smee.inertiaRotor.a = $DER.smee.inertiaRotor.w ($RES_SIM_214) (35) [SCAL] (1) voltageSensor.v = star1.pin_n.v - star2.pin_n.v ($RES_SIM_16) (36) [SCAL] (1) smee.statorCore.spacePhasor.v_[1] = smee.spacePhasorS.spacePhasor.v_[1] ($RES_SIM_373) (37) [SCAL] (1) smee.inertiaRotor.w = $DER.smee.strayLoad.flange.phi ($RES_SIM_215) (38) [SCAL] (1) smee.tauElectrical = 1.5 * smee.airGap.p * (smee.airGap.spacePhasor_s.i_[2] * smee.airGap.psi_ms[1] - smee.airGap.spacePhasor_s.i_[1] * smee.airGap.psi_ms[2]) ($RES_SIM_130) (39) [SCAL] (1) voltageController.addP.y = voltageController.addP.k1 * setPointGain.y + voltageController.addP.k2 * filter.y ($RES_SIM_90) (40) [SCAL] (1) smee.statorCore.spacePhasor.v_[1] = smee.lssigma.spacePhasor_a.v_[1] ($RES_SIM_374) (41) [ARRY] (2) smee.airGap.spacePhasor_r.v_ = $DER.smee.airGap.psi_mr ($RES_SIM_131) (42) [SCAL] (1) setPointGain.y = setPointGain.k * speedSensor.w ($RES_SIM_91) (43) [ARRY] (2) smee.airGap.spacePhasor_s.v_ = $DER.smee.airGap.psi_ms ($RES_SIM_132) (44) [SCAL] (1) resistor.v = star1.pin_n.v - star2.pin_n.v ($RES_SIM_19) (45) [SCAL] (1) star2.pin_n.i - (capacitor2.i + resistor.i) = 0.0 ($RES_SIM_218) (46) [ARRY] (2) smee.airGap.i_rs = smee.airGap.RotationMatrix * smee.airGap.i_rr ($RES_SIM_133) (47) [SCAL] (1) speedSensor.w = $DER.smee.strayLoad.flange.phi ($RES_SIM_93) (48) [FOR-] (3) ($RES_SIM_377) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) smee.spacePhasorS.plug_p.pin[$i1].i + smee.rs.plug_n.pin[$i1].i = 0.0 ($RES_SIM_378) (48) [----] end for; (49) [SCAL] (1) capacitor1.i + resistor.i + star1.pin_n.i = 0.0 ($RES_SIM_219) (50) [ARRY] (2) smee.airGap.i_rr = smee.airGap.spacePhasor_r.i_ ($RES_SIM_134) (51) [ARRY] (2) smee.airGap.i_ss = smee.airGap.RotationMatrix * smee.airGap.i_sr ($RES_SIM_135) (52) [ARRY] (3) smee.spacePhasorS.plug_p.pin.v = smee.rs.plug_n.pin.v ($RES_SIM_379) (53) [ARRY] (2) smee.airGap.i_ss = smee.airGap.spacePhasor_s.i_ ($RES_SIM_136) (54) [SCAL] (1) speed.a = (constantSpeed.k - speed.w) * speed.w_crit ($RES_SIM_96) (55) [FOR-] (3) ($RES_SIM_295) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) terminalBox.plug_sp.pin[$i1].i + smee.plug_sp.pin[$i1].i = 0.0 ($RES_SIM_296) (55) [----] end for; (56) [ARRY] (4) smee.airGap.RotationMatrix = {{$FUN_4, -$FUN_5}, {$FUN_5, $FUN_4}} ($RES_SIM_137) (57) [SCAL] (1) speed.a = $DER.speed.w ($RES_SIM_97) (58) [SCAL] (1) smee.airGap.gamma = smee.airGap.p * (smee.strayLoad.flange.phi - smee.fixed.phi0) ($RES_SIM_138) (59) [SCAL] (1) speed.w = $DER.speed.phi ($RES_SIM_98) (60) [ARRY] (3) terminalBox.plug_sp.pin.v = smee.plug_sp.pin.v ($RES_SIM_297) (61) [ARRY] (2) smee.airGap.psi_ms = smee.airGap.RotationMatrix * smee.airGap.psi_mr ($RES_SIM_139) (62) [SCAL] (1) speed.phi = smee.strayLoad.flange.phi ($RES_SIM_99) (63) [FOR-] (3) ($RES_SIM_298) (63) [----] for $i1 in 1:3 loop (63) [----] [SCAL] (1) terminalBox.plug_sn.pin[$i1].i + smee.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_299) (63) [----] end for; (64) [ARRY] (3) terminalBox.plug_sn.pin.v = smee.plug_sn.pin.v ($RES_SIM_300) (65) [SCAL] (1) -(star2.plug_p.pin[2].i + star2.pin_n.i + star2.plug_p.pin[3].i + star2.plug_p.pin[1].i) = 0.0 ($RES_SIM_301) (66) [SCAL] (1) star2.plug_p.pin[3].v = star2.plug_p.pin[1].v ($RES_SIM_302) (67) [SCAL] (1) star2.plug_p.pin[3].v = star2.plug_p.pin[2].v ($RES_SIM_303) (68) [SCAL] (1) star2.plug_p.pin[3].v = star2.pin_n.v ($RES_SIM_304) (69) [FOR-] (3) ($RES_SIM_305) (69) [----] for $i1 in 1:3 loop (69) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].n.i - idealDiode2.plug_n.pin[$i1].i = 0.0 ($RES_SIM_306) (69) [----] end for; (70) [SCAL] (1) (capacitor2.i + ground.p.i) - capacitor1.i = 0.0 ($RES_SIM_220) (71) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_23) (72) [FOR-] (3) ($RES_SIM_380) (72) [----] for $i1 in 1:3 loop (72) [----] [SCAL] (1) smee.strayLoad.plug_p.pin[$i1].i - smee.plug_sp.pin[$i1].i = 0.0 ($RES_SIM_381) (72) [----] end for; (73) [ARRY] (3) idealDiode2.idealDiode.n.v = idealDiode2.plug_n.pin.v ($RES_SIM_307) (74) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_24) (75) [FOR-] (3) ($RES_SIM_308) (75) [----] for $i1 in 1:3 loop (75) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].p.i - idealDiode2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_309) (75) [----] end for; (76) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_25) (77) [ARRY] (3) smee.strayLoad.plug_p.pin.v = smee.plug_sp.pin.v ($RES_SIM_382) (78) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortBrush.Q_flow + smee.brush.heatPort.Q_flow = 0.0 ($RES_SIM_224) (79) [FOR-] (3) ($RES_SIM_383) (79) [----] for $i1 in 1:3 loop (79) [----] [SCAL] (1) smee.strayLoad.plug_n.pin[$i1].i + smee.rs.plug_p.pin[$i1].i = 0.0 ($RES_SIM_384) (79) [----] end for; (80) [ARRY] (2) smee.airGap.psi_mr = smee.airGap.L * smee.airGap.i_mr ($RES_SIM_140) (81) [SCAL] (1) capacitor2.v = -star2.pin_n.v ($RES_SIM_27) (82) [SCAL] (1) (smee.ie + groundExcitation.p.i) - smee.ie = 0.0 ($RES_SIM_226) (83) [ARRY] (2) smee.airGap.i_mr = smee.airGap.i_sr + smee.airGap.i_rr ($RES_SIM_141) (84) [ARRY] (3) smee.strayLoad.plug_n.pin.v = smee.rs.plug_p.pin.v ($RES_SIM_385) (85) [FOR-] (3) ($RES_SIM_386) (85) [----] for $i1 in 1:3 loop (85) [----] [SCAL] (1) smee.spacePhasorS.plug_n.pin[$i1].i - smee.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_387) (85) [----] end for; (86) [SCAL] (1) smee.thermalAmbient.Q_flowExcitation + smee.re.heatPort.Q_flow = 0.0 ($RES_SIM_228) (87) [ARRY] (3) smee.spacePhasorS.plug_n.pin.v = smee.plug_sn.pin.v ($RES_SIM_388) (88) [ARRY] (3) smee.thermalAmbient.thermalCollectorStator.port_a.T = {smee.thermalAmbient.constTs.k for $i1 in 1:3} ($RES_SIM_147) (89) [SCAL] (1) smee.phiMechanical = smee.strayLoad.flange.phi - smee.fixed.phi0 ($RES_BND_444) (90) [SCAL] (1) smee.wMechanical = $DER.smee.phiMechanical ($RES_BND_445) (91) [SCAL] (1) 3.0 * smee.spacePhasorS.zero.v = sum(smee.spacePhasorS.v) ($RES_$AUX_504) (92) [ARRY] (3) idealDiode2.plug_p.pin.v = idealDiode2.idealDiode.p.v ($RES_SIM_310) (93) [SCAL] (1) -3.0 * smee.i_0_s = sum(smee.spacePhasorS.i) ($RES_$AUX_503) (94) [FOR-] (3) ($RES_SIM_311) (94) [----] for $i1 in 1:3 loop (94) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].n.i - idealDiode1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_312) (94) [----] end for; (95) [SCAL] (1) smee.thermalAmbient.Q_flowStatorWinding = sum(smee.thermalAmbient.thermalCollectorStator.port_a.Q_flow) ($RES_$AUX_502) (96) [SCAL] (1) $FUN_4 = cos(smee.airGap.gamma) ($RES_$AUX_501) (97) [ARRY] (3) idealDiode1.idealDiode.n.v = idealDiode1.plug_n.pin.v ($RES_SIM_313) (98) [SCAL] (1) capacitor2.i = capacitor2.C * $DER.capacitor2.v ($RES_SIM_30) (99) [SCAL] (1) smee.powerBalance.lossPowerBrush = -smee.brush.heatPort.Q_flow ($RES_BND_449) (100) [SCAL] (1) $FUN_5 = sin(smee.airGap.gamma) ($RES_$AUX_500) (101) [FOR-] (3) ($RES_SIM_314) (101) [----] for $i1 in 1:3 loop (101) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].p.i - idealDiode1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_315) (101) [----] end for; (102) [SCAL] (1) capacitor1.v = star1.pin_n.v ($RES_SIM_31) (103) [ARRY] (3) idealDiode1.plug_p.pin.v = idealDiode1.idealDiode.p.v ($RES_SIM_316) (104) [SCAL] (1) smee.thermalAmbient.Q_flowRotorWinding + smee.damperCage.heatPort.Q_flow = 0.0 ($RES_SIM_231) (105) [SCAL] (1) -(star1.plug_p.pin[2].i + star1.pin_n.i + star1.plug_p.pin[3].i + star1.plug_p.pin[1].i) = 0.0 ($RES_SIM_317) (106) [SCAL] (1) smee.inertiaStator.flange_a.tau + smee.fixed.flange.tau + smee.tauElectrical = 0.0 ($RES_SIM_232) (107) [SCAL] (1) capacitor1.i = capacitor1.C * $DER.capacitor1.v ($RES_SIM_34) (108) [SCAL] (1) star1.plug_p.pin[3].v = star1.plug_p.pin[1].v ($RES_SIM_318) (109) [ARRY] (3) idealDiode2.i = idealDiode2.plug_p.pin.i ($RES_SIM_35) (110) [SCAL] (1) star1.plug_p.pin[3].v = star1.plug_p.pin[2].v ($RES_SIM_319) (111) [ARRY] (3) idealDiode2.v = idealDiode2.plug_p.pin.v - idealDiode2.plug_n.pin.v ($RES_SIM_36) (112) [FOR-] (3) ($RES_SIM_37) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].v = idealDiode2.idealDiode[$i1].p.v - idealDiode2.idealDiode[$i1].n.v ($RES_SIM_38) (112) [----] end for; (113) [FOR-] (3) ($RES_SIM_39) (113) [----] for $i1 in 1:3 loop (113) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].i = idealDiode2.idealDiode[$i1].p.i ($RES_SIM_40) (113) [----] end for; (114) [ARRY] (3) smee.strayLoad.i = smee.strayLoad.plug_p.pin.i ($RES_SIM_155) (115) [ARRY] (3) smee.strayLoad.v = smee.strayLoad.plug_p.pin.v - smee.strayLoad.plug_n.pin.v ($RES_SIM_156) (116) [SCAL] (1) $FUN_7 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(smee.vs, smee.is) ($RES_$AUX_498) (117) [ARRY] (3) smee.strayLoad.plug_p.pin.i + smee.strayLoad.plug_n.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_157) (118) [SCAL] (1) $FUN_8 = sum(smee.rs.resistor.LossPower) ($RES_$AUX_497) (119) [SCAL] (1) smee.powerBalance.lossPowerExcitation = -smee.re.heatPort.Q_flow ($RES_BND_450) (120) [SCAL] (1) smee.powerBalance.powerExcitation = smee.ve * smee.ie ($RES_BND_451) (121) [FOR-] (2) ($RES_SIM_401) (121) [----] for $i1 in 1:2 loop (121) [----] [SCAL] (1) smee.lssigma.spacePhasor_b.i_[$i1] + smee.airGap.spacePhasor_s.i_[$i1] = 0.0 ($RES_SIM_402) (121) [----] end for; (122) [SCAL] (1) smee.powerBalance.lossPowerRotorWinding = -smee.damperCage.heatPort.Q_flow ($RES_BND_452) (123) [SCAL] (1) smee.powerBalance.lossPowerFriction = -smee.friction.heatPort.Q_flow ($RES_BND_453) (124) [ARRY] (2) smee.lssigma.spacePhasor_b.v_ = smee.airGap.spacePhasor_s.v_ ($RES_SIM_403) (125) [SCAL] (1) smee.powerBalance.lossPowerStrayLoad = -smee.strayLoad.heatPort.Q_flow ($RES_BND_454) (126) [SCAL] (1) smee.powerBalance.lossPowerRotorCore = 0.0 ($RES_BND_455) (127) [SCAL] (1) star1.plug_p.pin[3].v = star1.pin_n.v ($RES_SIM_320) (128) [SCAL] (1) smee.powerBalance.lossPowerStatorCore = -smee.statorCore.heatPort.Q_flow ($RES_BND_456) (129) [SCAL] (1) smee.powerBalance.lossPowerStatorWinding = $FUN_8 ($RES_BND_457) (130) [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_458) (131) [SCAL] (1) smee.powerBalance.powerInertiaRotor = smee.inertiaRotor.a * smee.inertiaRotor.J * smee.inertiaRotor.w ($RES_BND_459) (132) [FOR-] (3) ($RES_SIM_41) (132) [----] for $i1 in 1:3 loop (132) [----] [SCAL] (1) 0.0 = idealDiode2.idealDiode[$i1].p.i + idealDiode2.idealDiode[$i1].n.i ($RES_SIM_42) (132) [----] end for; (133) [FOR-] (3) ($RES_SIM_241) (133) [----] for $i1 in 1:3 loop (133) [----] [SCAL] (1) smee.internalThermalPort.heatPortStatorWinding[$i1].Q_flow = 0.0 ($RES_SIM_242) (133) [----] end for; (134) [FOR-] (3) ($RES_SIM_45) (134) [----] for $i1 in 1:3 loop (134) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].LossPower = idealDiode2.idealDiode[$i1].v * idealDiode2.idealDiode[$i1].i ($RES_SIM_46) (134) [----] end for; (135) [SCAL] (1) smee.strayLoad.w = $DER.smee.strayLoad.phi ($RES_SIM_160) (136) [FOR-] (3) ($RES_SIM_47) (136) [----] for $i1 in 1:3 loop (136) [----] [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_48) (136) [----] end for; (137) [SCAL] (1) smee.strayLoad.phi = smee.strayLoad.flange.phi - smee.fixed.phi0 ($RES_SIM_161) (138) [SCAL] (1) -smee.strayLoad.heatPort.Q_flow = 0.0 ($RES_SIM_162) (139) [FOR-] (3) ($RES_SIM_49) (139) [----] for $i1 in 1:3 loop (139) [----] [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_50) (139) [----] end for; (140) [ARRY] (3) smee.strayLoad.v = {0.0 for $i1 in 1:3} ($RES_SIM_164) (141) [ARRY] (2) -smee.spacePhasorS.spacePhasor.i_ = smee.spacePhasorS.TransformationMatrix * smee.spacePhasorS.i ($RES_SIM_166) (142) [ARRY] (2) smee.spacePhasorS.spacePhasor.v_ = smee.spacePhasorS.TransformationMatrix * smee.spacePhasorS.v ($RES_SIM_168) (143) [SCAL] (1) smee.powerBalance.powerInertiaStator = smee.inertiaStator.a * smee.inertiaStator.J * smee.inertiaStator.w ($RES_BND_460) (144) [SCAL] (1) smee.electricalExcitation.spacePhasor_r.i_[2] + smee.airGap.spacePhasor_r.i_[2] + smee.damperCage.spacePhasor_r.i_[2] = 0.0 ($RES_SIM_410) (145) [SCAL] (1) smee.powerBalance.powerMechanical = smee.wMechanical * smee.tauShaft ($RES_BND_461) (146) [SCAL] (1) smee.electricalExcitation.spacePhasor_r.i_[1] + smee.airGap.spacePhasor_r.i_[1] + smee.damperCage.spacePhasor_r.i_[1] = 0.0 ($RES_SIM_411) (147) [SCAL] (1) smee.powerBalance.powerStator = $FUN_7 ($RES_BND_462) (148) [SCAL] (1) smee.airGap.spacePhasor_r.v_[2] = smee.damperCage.spacePhasor_r.v_[2] ($RES_SIM_412) (149) [ARRY] (3) smee.vs = smee.plug_sp.pin.v - smee.plug_sn.pin.v ($RES_BND_463) (150) [SCAL] (1) smee.airGap.spacePhasor_r.v_[2] = smee.electricalExcitation.spacePhasor_r.v_[2] ($RES_SIM_413) (151) [ARRY] (3) smee.is = smee.plug_sp.pin.i ($RES_BND_464) (152) [SCAL] (1) smee.airGap.spacePhasor_r.v_[1] = smee.damperCage.spacePhasor_r.v_[1] ($RES_SIM_414) (153) [SCAL] (1) smee.airGap.spacePhasor_r.v_[1] = smee.electricalExcitation.spacePhasor_r.v_[1] ($RES_SIM_415) (154) [ARRY] (2) smee.idq_ss = smee.airGap.i_ss ($RES_BND_466) (155) [ARRY] (2) smee.idq_sr = smee.airGap.i_sr ($RES_BND_467) (156) [SCAL] (1) smee.idq_dr[2] = smee.ir[2] ($RES_SIM_417) (157) [ARRY] (2) smee.idq_rs = smee.airGap.i_rs ($RES_BND_468) (158) [SCAL] (1) smee.idq_dr[2] = smee.damperCage.i[2] ($RES_SIM_418) (159) [ARRY] (2) smee.idq_rr = smee.airGap.i_rr ($RES_BND_469) (160) [SCAL] (1) smee.idq_dr[1] = smee.ir[1] ($RES_SIM_419) (161) [FOR-] (3) ($RES_SIM_51) (161) [----] for $i1 in 1:3 loop (161) [----] [SCAL] (1) idealDiode2.idealDiode[$i1].off = $SEV_4[$i1] ($RES_SIM_52) (161) [----] end for; (162) [ARRY] (3) idealDiode1.i = idealDiode1.plug_p.pin.i ($RES_SIM_53) (163) [SCAL] (1) smee.strayLoad.heatPort.Q_flow + smee.thermalAmbient.Q_flowStrayLoad = 0.0 ($RES_SIM_252) (164) [ARRY] (3) idealDiode1.v = idealDiode1.plug_p.pin.v - idealDiode1.plug_n.pin.v ($RES_SIM_54) (165) [SCAL] (1) smee.tauShaft + smee.inertiaRotor.flange_b.tau = 0.0 ($RES_SIM_253) (166) [FOR-] (3) ($RES_SIM_55) (166) [----] for $i1 in 1:3 loop (166) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].v = idealDiode1.idealDiode[$i1].p.v - idealDiode1.idealDiode[$i1].n.v ($RES_SIM_56) (166) [----] end for; (167) [FOR-] (2) ($RES_SIM_8) (167) [----] for $i1 in 1:2 loop (167) [----] [SCAL] (1) filter.uu[$i1 + 1] = filter.x[$i1] ($RES_SIM_9) (167) [----] end for; (168) [SCAL] (1) filter.y = filter.u_nominal * filter.gain * filter.uu[3] ($RES_SIM_7) (169) [SCAL] (1) smee.statorCore.heatPort.Q_flow + smee.thermalAmbient.Q_flowStatorCore = 0.0 ($RES_SIM_255) (170) [ARRY] (3) smee.spacePhasorS.i .* smee.spacePhasorS.turnsRatio = -smee.spacePhasorS.plug_n.pin.i ($RES_SIM_170) (171) [FOR-] (3) ($RES_SIM_57) (171) [----] for $i1 in 1:3 loop (171) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].i = idealDiode1.idealDiode[$i1].p.i ($RES_SIM_58) (171) [----] end for; (172) [ARRY] (3) smee.spacePhasorS.i .* smee.spacePhasorS.turnsRatio = smee.spacePhasorS.plug_p.pin.i ($RES_SIM_171) (173) [ARRY] (3) smee.spacePhasorS.v / smee.spacePhasorS.turnsRatio = smee.spacePhasorS.plug_p.pin.v - smee.spacePhasorS.plug_n.pin.v ($RES_SIM_172) (174) [FOR-] (3) ($RES_SIM_59) (174) [----] for $i1 in 1:3 loop (174) [----] [SCAL] (1) 0.0 = idealDiode1.idealDiode[$i1].p.i + idealDiode1.idealDiode[$i1].n.i ($RES_SIM_60) (174) [----] end for; (175) [SCAL] (1) smee.friction.heatPort.Q_flow + smee.thermalAmbient.Q_flowFriction = 0.0 ($RES_SIM_258) (176) [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_173) (177) [ARRY] (2) smee.statorCore.spacePhasor.i_ = {0.0 for $i1 in 1:2} ($RES_SIM_174) (178) [SCAL] (1) smee.lszero.v = smee.spacePhasorS.zero.v ($RES_SIM_176) (179) [SCAL] (1) smee.lszero.L * (-$DER.smee.i_0_s) = smee.lszero.v ($RES_SIM_179) (180) [FOR-] (3) ($RES_BND_470) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.Q_flow = -smee.rs.resistor[$i1].LossPower ($RES_BND_471) (180) [----] end for; (181) [SCAL] (1) smee.idq_dr[1] = smee.damperCage.i[1] ($RES_SIM_420) (182) [FOR-] (3) ($RES_BND_472) (182) [----] for $i1 in 1:3 loop (182) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.T = smee.rs.resistor[$i1].T_heatPort ($RES_BND_473) (182) [----] end for; (183) [FOR-] (3) ($RES_SIM_423) (183) [----] for $i1 in 1:3 loop (183) [----] [SCAL] (1) smee.thermalAmbient.thermalCollectorStator.port_a[$i1].Q_flow - smee.thermalAmbient.thermalPort.heatPortStatorWinding[$i1].Q_flow = 0.0 ($RES_SIM_424) (183) [----] end for; (184) [ARRY] (3) smee.thermalAmbient.thermalCollectorStator.port_a.T = smee.thermalAmbient.thermalPort.heatPortStatorWinding.T ($RES_SIM_425) (185) [FOR-] (3) ($RES_SIM_340) (185) [----] for $i1 in 1:3 loop (185) [----] [SCAL] (1) -(terminalBox.plug_sp.pin[$i1].i + terminalBox.plugSupply.pin[$i1].i) = 0.0 ($RES_SIM_341) (185) [----] end for; (186) [ARRY] (3) terminalBox.plug_sp.pin.v = terminalBox.plugSupply.pin.v ($RES_SIM_342) (187) [SCAL] (1) smee.strayLoad.iRMS = sqrt(sum(0.3333333333333333 .* smee.strayLoad.i .^ 2.0)) ($RES_BND_478) (188) [FOR-] (3) ($RES_SIM_343) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) terminalBox.star.plug_p.pin[$i1].i - terminalBox.plug_sn.pin[$i1].i = 0.0 ($RES_SIM_344) (188) [----] end for; (189) [SCAL] (1) 0.0 = excitationVoltage.p.v - smee.brush.n.v ($RES_SIM_101) (190) [ARRY] (3) terminalBox.plug_sn.pin.v = terminalBox.star.plug_p.pin.v ($RES_SIM_345) (191) [SCAL] (1) speed.flange.tau - smee.tauShaft = 0.0 ($RES_SIM_260) (192) [SCAL] (1) -(terminalBox.star.plug_p.pin[2].i + terminalBox.star.plug_p.pin[3].i + terminalBox.star.plug_p.pin[1].i) = 0.0 ($RES_SIM_346) (193) [FOR-] (3) ($RES_SIM_63) (193) [----] for $i1 in 1:3 loop (193) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].LossPower = idealDiode1.idealDiode[$i1].v * idealDiode1.idealDiode[$i1].i ($RES_SIM_64) (193) [----] end for; (194) [SCAL] (1) terminalBox.star.plug_p.pin[3].v = terminalBox.star.plug_p.pin[1].v ($RES_SIM_347) (195) [SCAL] (1) -smee.brush.heatPort.Q_flow = 0.0 ($RES_SIM_104) (196) [SCAL] (1) terminalBox.star.plug_p.pin[3].v = terminalBox.star.plug_p.pin[2].v ($RES_SIM_348) (197) [FOR-] (3) ($RES_SIM_65) (197) [----] for $i1 in 1:3 loop (197) [----] [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_66) (197) [----] end for; (198) [SCAL] (1) terminalBox.star.plug_p.pin[3].v = terminalBox.star.pin_n.v ($RES_SIM_349) (199) [SCAL] (1) smee.lesigma.v = smee.re.n.v - smee.lesigma.n.v ($RES_SIM_106) (200) [SCAL] (1) smee.lssigma.v_[2] = smee.lssigma.L[2] * $DER.smee.lssigma.i_[2] ($RES_SIM_180) (201) [FOR-] (3) ($RES_SIM_67) (201) [----] for $i1 in 1:3 loop (201) [----] [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_68) (201) [----] end for; (202) [SCAL] (1) smee.lssigma.v_[1] = smee.lssigma.L[1] * $DER.smee.lssigma.i_[1] ($RES_SIM_181) (203) [ARRY] (2) smee.lssigma.i_ = smee.lssigma.spacePhasor_a.i_ ($RES_SIM_182) (204) [SCAL] (1) smee.lesigma.L * $DER.smee.ie = smee.lesigma.v ($RES_SIM_109) (205) [FOR-] (3) ($RES_SIM_69) (205) [----] for $i1 in 1:3 loop (205) [----] [SCAL] (1) idealDiode1.idealDiode[$i1].off = $SEV_5[$i1] ($RES_SIM_70) (205) [----] end for; (206) [ARRY] (2) smee.lssigma.v_ = smee.lssigma.spacePhasor_a.v_ - smee.lssigma.spacePhasor_b.v_ ($RES_SIM_183) (207) [FOR-] (3) ($RES_EVT_514) (207) [----] for $i1 in 1:3 loop (207) [----] [SCAL] (1) $SEV_4[$i1] = idealDiode2.idealDiode[$i1].s < 0.0 ($RES_EVT_515) (207) [----] end for; (208) [ARRY] (2) smee.lssigma.spacePhasor_a.i_ + smee.lssigma.spacePhasor_b.i_ = {0.0 for $i1 in 1:2} ($RES_SIM_184) (209) [ARRY] (3) smee.rs.i = smee.rs.plug_p.pin.i ($RES_SIM_185) (210) [FOR-] (3) ($RES_EVT_516) (210) [----] for $i1 in 1:3 loop (210) [----] [SCAL] (1) $SEV_5[$i1] = idealDiode1.idealDiode[$i1].s < 0.0 ($RES_EVT_517) (210) [----] end for; (211) [ARRY] (3) smee.rs.v = smee.rs.plug_p.pin.v - smee.rs.plug_n.pin.v ($RES_SIM_186) (212) [FOR-] (3) ($RES_SIM_187) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) smee.rs.resistor[$i1].v = smee.rs.resistor[$i1].p.v - smee.rs.resistor[$i1].n.v ($RES_SIM_188) (212) [----] end for; (213) [SCAL] (1) $SEV_6 = voltageController.limiter.simplifiedExpr > voltageController.limiter.uMax ($RES_EVT_518) (214) [SCAL] (1) $SEV_7 = voltageController.limiter.simplifiedExpr < voltageController.limiter.uMin ($RES_EVT_519) (215) [FOR-] (3) ($RES_SIM_189) (215) [----] for $i1 in 1:3 loop (215) [----] [SCAL] (1) smee.rs.resistor[$i1].i = smee.rs.resistor[$i1].p.i ($RES_SIM_190) (215) [----] end for; (216) [FOR-] (3) ($RES_SIM_435) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) smee.rs.resistor[$i1].heatPort.Q_flow - smee.rs.heatPort[$i1].Q_flow = 0.0 ($RES_SIM_436) (216) [----] end for; (217) [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_486) (218) [SCAL] (1) smee.ve = excitationVoltage.p.v ($RES_BND_487) (219) [ARRY] (3) smee.rs.resistor.heatPort.T = smee.rs.heatPort.T ($RES_SIM_437) (220) [FOR-] (3) ($RES_SIM_438) (220) [----] for $i1 in 1:3 loop (220) [----] [SCAL] (1) smee.rs.resistor[$i1].n.i - smee.rs.plug_n.pin[$i1].i = 0.0 ($RES_SIM_439) (220) [----] end for; (221) [SCAL] (1) smee.re.v = smee.brush.n.v - smee.re.n.v ($RES_SIM_110) (222) [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_356) (223) [FOR-] (3) ($RES_SIM_271) (223) [----] for $i1 in 1:3 loop (223) [----] [SCAL] (1) idealDiode1.plug_n.pin[$i1].i + star1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_272) (223) [----] end for; (224) [SCAL] (1) -smee.re.heatPort.Q_flow = smee.re.v * smee.ie ($RES_SIM_113) (225) [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_357) (226) [SCAL] (1) smee.re.v = smee.re.R_actual * smee.ie ($RES_SIM_114) (227) [SCAL] (1) excitationVoltage.v = excitationVoltage.p.v ($RES_SIM_74) (228) [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_358) (229) [ARRY] (3) idealDiode1.plug_n.pin.v = star1.plug_p.pin.v ($RES_SIM_273) (230) [SCAL] (1) smee.re.R_actual = smee.re.R * (1.0 + smee.re.alpha * (smee.thermalAmbient.constTe.k - smee.re.T_ref)) ($RES_SIM_115) (231) [SCAL] (1) voltageController.limiter.simplifiedExpr = voltageController.addFF.k1 * voltageController.gainPID.y + voltageController.addFF.k2 * voltageController.FFzero.k ($RES_SIM_75) (232) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].T = smee.rs.heatPort[3].T ($RES_SIM_359) (233) [FOR-] (3) ($RES_SIM_274) (233) [----] for $i1 in 1:3 loop (233) [----] [SCAL] (1) idealDiode2.plug_p.pin[$i1].i + star2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_275) (233) [----] end for; (234) [SCAL] (1) smee.electricalExcitation.ve = 1.5 * smee.electricalExcitation.turnsRatio * smee.electricalExcitation.spacePhasor_r.v_[1] ($RES_SIM_117) (235) [ARRY] (3) idealDiode2.plug_p.pin.v = star2.plug_p.pin.v ($RES_SIM_276) (236) [FOR-] (3) ($RES_SIM_191) (236) [----] for $i1 in 1:3 loop (236) [----] [SCAL] (1) 0.0 = smee.rs.resistor[$i1].p.i + smee.rs.resistor[$i1].n.i ($RES_SIM_192) (236) [----] end for; (237) [ARRY] (2) smee.electricalExcitation.spacePhasor_r.i_ = {-smee.ie * smee.electricalExcitation.turnsRatio, 0.0} ($RES_SIM_118) (238) [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_78) (239) [SCAL] (1) terminalBox.plugSupply.pin[3].i + idealDiode2.plug_n.pin[3].i + idealDiode1.plug_p.pin[3].i = 0.0 ($RES_SIM_277) (240) [SCAL] (1) smee.electricalExcitation.ve = smee.lesigma.n.v ($RES_SIM_119) (241) [FOR-] (3) ($RES_EVT_523) (241) [----] for $i1 in 1:3 loop (241) [----] [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) (241) [----] end for; (242) [SCAL] (1) terminalBox.plugSupply.pin[2].i + idealDiode2.plug_n.pin[2].i + idealDiode1.plug_p.pin[2].i = 0.0 ($RES_SIM_278) (243) [FOR-] (3) ($RES_SIM_193) (243) [----] for $i1 in 1:3 loop (243) [----] [SCAL] (1) smee.rs.resistor[$i1].LossPower = smee.rs.resistor[$i1].v * smee.rs.resistor[$i1].i ($RES_SIM_194) (243) [----] end for; (244) [SCAL] (1) terminalBox.plugSupply.pin[1].i + idealDiode2.plug_n.pin[1].i + idealDiode1.plug_p.pin[1].i = 0.0 ($RES_SIM_279) (245) [FOR-] (3) ($RES_SIM_195) (245) [----] for $i1 in 1:3 loop (245) [----] [SCAL] (1) smee.rs.resistor[$i1].v = smee.rs.resistor[$i1].R_actual * smee.rs.resistor[$i1].i ($RES_SIM_196) (245) [----] end for; (246) [FOR-] (3) ($RES_SIM_197) (246) [----] for $i1 in 1:3 loop (246) [----] [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_198) (246) [----] end for; (247) [ARRY] (3) smee.rs.resistor.n.v = smee.rs.plug_n.pin.v ($RES_SIM_440) (248) [ARRY] (2) smee.damperCage.i = -smee.damperCage.spacePhasor_r.i_ ($RES_BND_491) (249) [FOR-] (3) ($RES_SIM_441) (249) [----] for $i1 in 1:3 loop (249) [----] [SCAL] (1) smee.rs.resistor[$i1].p.i - smee.rs.plug_p.pin[$i1].i = 0.0 ($RES_SIM_442) (249) [----] end for; (250) [ARRY] (3) smee.rs.resistor.p.v = smee.rs.plug_p.pin.v ($RES_SIM_443) (251) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[3].T = smee.internalThermalPort.heatPortStatorWinding[3].T ($RES_SIM_360) (252) [SCAL] (1) voltageController.controlError = setPointGain.y - filter.y ($RES_BND_496) (253) [SCAL] (1) smee.thermalAmbient.thermalPort.heatPortStatorWinding[2].T = smee.rs.heatPort[2].T ($RES_SIM_361) (254) [SCAL] (1) smee.friction.w = $DER.smee.friction.phi ($RES_SIM_203)