Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 104.6 kB / 16.42 MB, free: 6.492 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.001002/0.001003, allocations: 192.2 kB / 17.35 MB, free: 5.754 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.256/1.256, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.181e-05, allocations: 2.281 kB / 327.2 MB, free: 3.34 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008543/0.008573, allocations: 7.714 MB / 334.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005095/0.01372, allocations: 2.727 MB / 337.6 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000948/0.01469, allocations: 55.69 kB / 337.7 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00117/0.01587, allocations: 0.5625 MB / 338.2 MB, free: 8.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001794/0.01768, allocations: 0.7302 MB / 339 MB, free: 7.492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008585/0.01855, allocations: 439.4 kB / 339.4 MB, free: 7.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003202/0.02176, allocations: 3.499 MB / 342.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001842/0.02361, allocations: 1.855 MB / 344.8 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002366/0.02599, allocations: 1.427 MB / 346.2 MB, free: 232 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001788/0.02779, allocations: 1.429 MB / 347.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000287/0.02808, allocations: 236 kB / 347.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.02935, allocations: 0.6826 MB / 348.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.002299/0.03166, allocations: 3.287 MB / 351.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.001405/0.03307, allocations: 2.128 MB / 353.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004189/0.0335, allocations: 307.1 kB / 354.2 MB, free: 8.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003258/0.03383, allocations: 47.81 kB / 354.3 MB, free: 8.062 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 (360) * Number of variables: 772 (310) Notification: Performance of Bindings: time 0.00941/0.04325, allocations: 10.9 MB / 365.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.001199/0.04446, allocations: 1.355 MB / 366.5 MB, free: 11.52 MB / 318.1 MB Notification: Performance of Early Inline: time 0.005207/0.04968, allocations: 6.176 MB / 372.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of simplify1: time 0.0003298/0.05002, allocations: 271.6 kB / 373 MB, free: 5.016 MB / 318.1 MB Notification: Performance of Alias: time 0.1377/0.1877, allocations: 5.192 MB / 378.2 MB, free: 32.56 MB / 318.1 MB Notification: Performance of simplify2: time 0.0004024/0.1882, allocations: 239 kB / 378.4 MB, free: 32.56 MB / 318.1 MB Notification: Performance of Events: time 0.001015/0.1892, allocations: 1.117 MB / 379.5 MB, free: 32.4 MB / 318.1 MB Notification: Performance of Detect States: time 0.001166/0.1904, allocations: 1.425 MB / 381 MB, free: 32.25 MB / 318.1 MB Notification: Performance of Partitioning: time 0.002364/0.1927, allocations: 2.302 MB / 383.3 MB, free: 31.9 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 3 for dependency currentQuasiRMSSensorS.ToSpacePhasor1.u could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) currentQuasiRMSSensorS.ToSpacePhasor1.y = currentQuasiRMSSensorS.ToSpacePhasor1.TransformationMatrix * currentQuasiRMSSensorS.ToSpacePhasor1.u ($RES_SIM_176) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (297/775) **************************** (1) [ALGB] (3) Real[3] load.resistor.R_actual (2) [ALGB] (3) flow Real[3] electricalPowerSensorS.plug_ni.pin.i (3) [ALGB] (1) output Real transformer.powerBalance.lossPowerTotal = transformer.powerBalance.lossPower2 + transformer.powerBalance.lossPower1 + transformer.powerBalance.lossPowerCore (4) [ALGB] (3) Real[3] transformer.Delta1.plug_n.pin.v (5) [ALGB] (3) Real[3] transformer.l1sigma.i (6) [ALGB] (3) Real[3] voltageRMSSensorL.VoltageSensor1.voltageSensor.n.v (7) [ALGB] (3) Real[3] electricalPowerSensorS.plug_ni.pin.v (8) [ALGB] (3) Real[3] transformer.core.plug_n1.pin.v (9) [ALGB] (3) Real[3] transformer.r1.resistor.heatPort.T = {transformer.r1.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}) (10) [ALGB] (3) Real[3] transformer.l1sigma.plug_p.pin.v (11) [ALGB] (3) flow Real[3] transformer.core.plug_n1.pin.i (12) [ALGB] (2) Real[2] currentQuasiRMSSensorL.ToPolar1.u (13) [ALGB] (1) Real currentQuasiRMSSensorL.ToSpacePhasor1.zero (14) [ALGB] (3) Real[3] transformer.v1 = transformer.plug1.pin.v (15) [ALGB] (3) Real[3] electricalPowerSensorS.plug_p.pin.v (16) [ALGB] (3) flow Real[3] transformer.l1sigma.plug_p.pin.i (17) [ALGB] (3) flow Real[3] currentQuasiRMSSensorL.plug_p.pin.i (18) [ALGB] (3) Real[3] transformer.v2 = transformer.plug2.pin.v (19) [ALGB] (2) Real[2] currentQuasiRMSSensorL.ToPolar1.y (20) [ALGB] (3) Real[3] load.v (21) [ALGB] (3) Real[3] currentQuasiRMSSensorS.CurrentSensor1.plug_p.pin.v (22) [ALGB] (3) Real[3] source.sineVoltage.i (23) [ALGB] (3) Real[3] transformer.core.i3 = transformer.core.plug_p3.pin.i (24) [ALGB] (2) Real[2] voltageRMSSensorL.ToPolar1.y (25) [ALGB] (3) Real[3] transformer.core.i2 = transformer.core.plug_p2.pin.i (26) [ALGB] (3) Real[3] transformer.core.i1 = transformer.core.plug_p1.pin.i (27) [ALGB] (1) Real voltageRMSSensorL.ToSpacePhasor1.zero (28) [ALGB] (2) Real[2] voltageRMSSensorL.ToPolar1.u (29) [ALGB] (3) flow Real[3] electricalPowerSensorS.plug_p.pin.i (30) [ALGB] (3) Real[3] currentQuasiRMSSensorL.plug_p.pin.v (31) [ALGB] (3) Real[3] load.i (32) [ALGB] (3) flow Real[3] currentQuasiRMSSensorS.CurrentSensor1.plug_p.pin.i (33) [ALGB] (3) Real[3] source.sineVoltage.v (34) [ALGB] (3) protected Real[3] transformer.internalThermalPort.heatPort1.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}) (35) [ALGB] (2) protected Real[2] electricalPowerSensorS.i_ (36) [ALGB] (1) Real transformer.thermalAmbient.Q_flow2 = transformer.thermalAmbient.Q_flow2 (37) [ALGB] (1) Real transformer.thermalAmbient.Q_flow1 = transformer.thermalAmbient.Q_flow1 (38) [ALGB] (2) protected Real[2] electricalPowerSensorL.v_ (39) [ALGB] (3) Real[3] deltaS.plug_n.pin.v (40) [ALGB] (3) flow Real[3] transformer.plug2.pin.i (41) [ALGB] (2) Real[2] voltageRMSSensorL.ToSpacePhasor1.y (42) [ALGB] (3) flow Real[3] transformer.r1.plug_n.pin.i (43) [ALGB] (3) flow Real[3] voltageRMSSensorL.VoltageSensor1.voltageSensor.p.i (44) [ALGB] (3) Real[3] voltageRMSSensorL.ToSpacePhasor1.u (45) [ALGB] (3) flow Real[3] deltaS.plug_n.pin.i (46) [ALGB] (3) Real[3] transformer.plug2.pin.v (47) [ALGB] (3) Real[3] electricalPowerSensorL.plug_ni.pin.v (48) [ALGB] (1) Real voltageQuasiRMSSensorS.Gain1.y (49) [ALGB] (3) flow Real[3] load.plug_n.pin.i (50) [ALGB] (1) flow Real starL.pin_n.i (51) [ALGB] (1) Real voltageQuasiRMSSensorS.Gain1.u (52) [ALGB] (3) Real[3] currentQuasiRMSSensorS.CurrentSensor1.currentSensor.p.v (53) [ALGB] (3) Real[3] transformer.r1.plug_n.pin.v (54) [ALGB] (3) Real[3] voltageRMSSensorL.VoltageSensor1.voltageSensor.v (55) [ALGB] (3) Real[3] voltageRMSSensorL.VoltageSensor1.voltageSensor.p.v (56) [DER-] (3) Real[3] $DER.transformer.l2sigma.inductor.i (57) [ALGB] (3) flow Real[3] voltageRMSSensorL.VoltageSensor1.plug_p.pin.i (58) [ALGB] (3) flow Real[3] electricalPowerSensorL.plug_ni.pin.i (59) [ALGB] (3) Real[3] electricalPowerSensorL.plug_p.pin.v (60) [ALGB] (3) flow Real[3] currentQuasiRMSSensorS.plug_p.pin.i (61) [ALGB] (3) Real[3] load.plug_n.pin.v (62) [ALGB] (3) protected Real[3] transformer.internalThermalPort.heatPort2.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}) (63) [ALGB] (3) flow Real[3] currentQuasiRMSSensorS.CurrentSensor1.currentSensor.p.i (64) [ALGB] (3) Real[3] voltageRMSSensorL.VoltageSensor1.plug_p.pin.v (65) [DISC] (3) Boolean[3] $SEV_3[$i1] (66) [ALGB] (3) flow Real[3] electricalPowerSensorL.plug_p.pin.i (67) [ALGB] (3) Real[3] currentQuasiRMSSensorS.plug_p.pin.v (68) [ALGB] (3) Real[3] transformer.core.plug_p3.pin.v (69) [ALGB] (1) flow Real starS.pin_n.i (70) [ALGB] (3) Real[3] transformer.i1 = transformer.plug1.pin.i (71) [ALGB] (3) Real[3] transformer.Rot2.plug_p.pin.v (72) [ALGB] (3) Real[3] transformer.i2 = transformer.plug2.pin.i (73) [ALGB] (3) Real[3] transformer.l1sigma.inductor.p.v (74) [ALGB] (3) flow Real[3] starL.plug_p.pin.i (75) [ALGB] (3) Real[3] transformer.core.v3 = transformer.core.plug_p3.pin.v - transformer.core.plug_n3.pin.v (76) [ALGB] (3) flow Real[3] transformer.core.plug_p3.pin.i (77) [ALGB] (3) Real[3] transformer.core.v2 = transformer.core.plug_p2.pin.v - transformer.core.plug_n2.pin.v (78) [ALGB] (3) Real[3] transformer.core.v1 = transformer.core.plug_p1.pin.v - transformer.core.plug_n1.pin.v (79) [ALGB] (3) Real[3] transformer.r1.resistor.R_actual (80) [ALGB] (3) flow Real[3] transformer.Rot2.plug_p.pin.i (81) [ALGB] (3) flow Real[3] transformer.thermalAmbient.thermalCollector1.port_a.Q_flow (82) [ALGB] (3) Real[3] transformer.l2sigma.plug_p.pin.v (83) [ALGB] (3) flow Real[3] transformer.l1sigma.inductor.p.i (84) [ALGB] (3) Real[3] starL.plug_p.pin.v (85) [ALGB] (3) Real[3] transformer.r2.resistor.R_actual (86) [ALGB] (2) protected Real[2] electricalPowerSensorS.v_ (87) [ALGB] (3) flow Real[3] transformer.r2.plug_p.pin.i (88) [ALGB] (3) flow Real[3] transformer.r2.resistor.n.i (89) [DISC] (3) Boolean[3] $SEV_2[$i1] (90) [ALGB] (3) protected flow Real[3] transformer.internalThermalPort.heatPort2.Q_flow (91) [ALGB] (2) Real[2] voltageQuasiRMSSensorS.ToPolar1.u (92) [ALGB] (3) flow Real[3] transformer.l2sigma.plug_p.pin.i (93) [ALGB] (2) Real[2] voltageQuasiRMSSensorS.ToPolar1.y (94) [ALGB] (3) flow Real[3] source.sineVoltage.n.i (95) [ALGB] (3) Real[3] transformer.r2.plug_p.pin.v (96) [ALGB] (3) Real[3] transformer.r2.resistor.n.v (97) [ALGB] (1) Real electricalPowerSensorL.P (98) [ALGB] (1) Real electricalPowerSensorL.Q (99) [ALGB] (3) flow Real[3] transformer.thermalAmbient.thermalPort.heatPort2.Q_flow (100) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.plug_p.pin.v (101) [ALGB] (3) Real[3] source.sineVoltage.n.v (102) [ALGB] (3) Real[3] deltaL.plug_p.pin.v (103) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.v (104) [ALGB] (3) Real[3] transformer.r2.resistor.v (105) [ALGB] (3) Real[3] currentQuasiRMSSensorS.CurrentSensor1.currentSensor.n.v (106) [ALGB] (3) Real[3] transformer.thermalAmbient.thermalPort.heatPort1.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}) (107) [ALGB] (3) flow Real[3] voltageQuasiRMSSensorS.plug_p.pin.i (108) [ALGB] (3) Real[3] source.v (109) [ALGB] (3) flow Real[3] deltaL.plug_p.pin.i (110) [ALGB] (3) Real[3] transformer.r2.resistor.i (111) [DISC] (3) Boolean[3] $SEV_1[$i1] (112) [ALGB] (3) flow Real[3] currentQuasiRMSSensorS.CurrentSensor1.currentSensor.n.i (113) [ALGB] (3) flow Real[3] starS.plug_p.pin.i (114) [ALGB] (3) Real[3] load.resistor.LossPower (115) [ALGB] (3) Real[3] source.i (116) [ALGB] (3) flow Real[3] currentQuasiRMSSensorL.CurrentSensor1.currentSensor.n.i (117) [ALGB] (3) Real[3] starS.plug_p.pin.v (118) [ALGB] (3) protected flow Real[3] transformer.internalThermalPort.heatPort1.Q_flow (119) [ALGB] (1) Real currentQuasiRMSSensorS.Gain1.u (120) [ALGB] (3) Real[3] load.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}) (121) [ALGB] (3) Real[3] currentQuasiRMSSensorS.CurrentSensor1.i (122) [ALGB] (3) Real[3] source.plug_n.pin.v (123) [ALGB] (1) Real currentQuasiRMSSensorS.Gain1.y (124) [ALGB] (3) Real[3] currentQuasiRMSSensorL.CurrentSensor1.currentSensor.n.v (125) [ALGB] (3) flow Real[3] transformer.r1.heatPort.Q_flow (126) [ALGB] (3) Real[3] transformer.l1sigma.inductor.n.v (127) [ALGB] (3) flow Real[3] currentQuasiRMSSensorL.CurrentSensor1.plug_p.pin.i (128) [ALGB] (3) flow Real[3] transformer.star2.plug_p.pin.i (129) [ALGB] (3) Real[3] voltageRMSSensorL.plug_n.pin.v (130) [ALGB] (1) final output Real transformer.powerBalance.power2 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(transformer.v2, transformer.i2) (131) [ALGB] (3) flow Real[3] source.plug_n.pin.i (132) [ALGB] (3) Real[3] transformer.thermalAmbient.thermalPort.heatPort2.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}) (133) [ALGB] (3) flow Real[3] voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.n.i (134) [ALGB] (1) final output Real transformer.powerBalance.power1 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(transformer.v1, transformer.i1) (135) [ALGB] (3) flow Real[3] transformer.thermalAmbient.thermalPort.heatPort1.Q_flow (136) [ALGB] (1) final output Real transformer.powerBalance.lossPowerCore = 0.0 (137) [DISC] (3) Boolean[3] $SEV_0[$i1] (138) [ALGB] (3) flow Real[3] transformer.l1sigma.inductor.n.i (139) [ALGB] (3) Real[3] currentQuasiRMSSensorL.CurrentSensor1.plug_p.pin.v (140) [ALGB] (3) Real[3] transformer.r1.resistor.v (141) [ALGB] (3) flow Real[3] transformer.r2.resistor.p.i (142) [ALGB] (3) Real[3] transformer.star2.plug_p.pin.v (143) [ALGB] (3) flow Real[3] voltageQuasiRMSSensorS.VoltageSensor1.plug_p.pin.i (144) [ALGB] (3) flow Real[3] voltageRMSSensorL.plug_n.pin.i (145) [ALGB] (3) Real[3] transformer.core.plug_n3.pin.v (146) [ALGB] (1) Real transformer.star2.pin_n.v (147) [DISC] (1) Boolean $SEV_8 (148) [ALGB] (3) Real[3] transformer.r2.resistor.heatPort.T = {transformer.r2.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}) (149) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.n.v (150) [DISC] (1) Boolean $SEV_7 (151) [DISC] (1) Boolean $SEV_5 (152) [DISC] (1) Boolean $SEV_4 (153) [ALGB] (3) Real[3] transformer.l2sigma.inductor.p.v (154) [ALGB] (1) Real currentQuasiRMSSensorL.Gain1.u (155) [ALGB] (3) Real[3] transformer.r1.resistor.i (156) [ALGB] (3) flow Real[3] source.sineVoltage.p.i (157) [ALGB] (3) flow Real[3] transformer.r2.resistor.heatPort.Q_flow = {-transformer.r2.resistor[$resistor1].LossPower for $resistor1 in 1:3} (158) [ALGB] (3) Real[3] transformer.r2.resistor.p.v (159) [ALGB] (1) Real currentQuasiRMSSensorL.Gain1.y (160) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.VoltageSensor1.plug_p.pin.v (161) [ALGB] (3) flow Real[3] transformer.core.plug_n3.pin.i (162) [ALGB] (3) Real[3] transformer.core.plug_p2.pin.v (163) [ALGB] (3) flow Real[3] transformer.l2sigma.inductor.p.i (164) [ALGB] (3) flow Real[3] currentQuasiRMSSensorL.plug_n.pin.i (165) [ALGB] (3) Real[3] transformer.thermalAmbient.thermalCollector2.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}) (166) [ALGB] (3) flow Real[3] transformer.Delta1.plug_p.pin.i (167) [ALGB] (3) Real[3] source.sineVoltage.p.v (168) [ALGB] (1) Real voltageRMSSensorL.Gain1.u (169) [ALGB] (1) Real voltageRMSSensorL.Gain1.y (170) [ALGB] (3) flow Real[3] transformer.core.plug_p2.pin.i (171) [ALGB] (3) Real[3] currentQuasiRMSSensorL.plug_n.pin.v (172) [ALGB] (3) Real[3] transformer.Delta1.plug_p.pin.v (173) [ALGB] (3) Real[3] transformer.l1sigma.inductor.v (174) [DER-] (3) Real[3] $DER.transformer.l1sigma.inductor.i (175) [ALGB] (3) Real[3] electricalPowerSensorL.plug_nv.pin.v (176) [ALGB] (3) flow Real[3] electricalPowerSensorS.plug_nv.pin.i (177) [ALGB] (3) flow Real[3] transformer.r2.heatPort.Q_flow (178) [ALGB] (3) Real[3] deltaS.plug_p.pin.v (179) [ALGB] (1) final output Real transformer.powerBalance.lossPower2 = sum(transformer.r2.resistor.LossPower) (180) [ALGB] (3) Real[3] transformer.r2.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}) (181) [ALGB] (3) Real[3] transformer.r2.v (182) [ALGB] (1) final output Real transformer.powerBalance.lossPower1 = sum(transformer.r1.resistor.LossPower) (183) [ALGB] (3) flow Real[3] currentQuasiRMSSensorL.CurrentSensor1.currentSensor.p.i (184) [ALGB] (3) Real[3] currentQuasiRMSSensorL.CurrentSensor1.i (185) [ALGB] (3) Real[3] transformer.l1sigma.plug_n.pin.v (186) [ALGB] (3) flow Real[3] electricalPowerSensorL.plug_nv.pin.i (187) [ALGB] (3) Real[3] electricalPowerSensorS.plug_nv.pin.v (188) [ALGB] (3) flow Real[3] transformer.r1.resistor.heatPort.Q_flow = {-transformer.r1.resistor[$resistor1].LossPower for $resistor1 in 1:3} (189) [ALGB] (3) flow Real[3] deltaS.plug_p.pin.i (190) [ALGB] (3) Real[3] transformer.r2.i (191) [ALGB] (3) Real[3] currentQuasiRMSSensorL.CurrentSensor1.currentSensor.p.v (192) [ALGB] (3) flow Real[3] transformer.l1sigma.plug_n.pin.i (193) [ALGB] (3) Real[3] currentQuasiRMSSensorS.CurrentSensor1.plug_n.pin.v (194) [ALGB] (3) Real[3] currentQuasiRMSSensorL.CurrentSensor1.currentSensor.i (195) [ALGB] (3) flow Real[3] voltageRMSSensorL.VoltageSensor1.plug_n.pin.i (196) [ALGB] (3) Real[3] transformer.r1.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}) (197) [ALGB] (3) flow Real[3] voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.p.i (198) [ALGB] (1) Real $FUN_30 (199) [ALGB] (3) flow Real[3] currentQuasiRMSSensorS.plug_n.pin.i (200) [ALGB] (3) flow Real[3] currentQuasiRMSSensorS.CurrentSensor1.plug_n.pin.i (201) [ALGB] (3) Real[3] voltageRMSSensorL.VoltageSensor1.plug_n.pin.v (202) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.p.v (203) [ALGB] (3) Real[3] currentQuasiRMSSensorS.plug_n.pin.v (204) [ALGB] (3) Real[3] transformer.l2sigma.inductor.n.v (205) [ALGB] (3) Real[3] transformer.r1.v (206) [ALGB] (1) Real $FUN_29 (207) [ALGB] (1) Real $FUN_9 (208) [ALGB] (1) Real $FUN_28 (209) [ALGB] (3) Real[3] transformer.l2sigma.inductor.v (210) [ALGB] (1) Real $FUN_8 (211) [ALGB] (1) Real $FUN_27 (212) [ALGB] (1) Real $FUN_6 (213) [ALGB] (3) flow Real[3] transformer.l2sigma.inductor.n.i (214) [ALGB] (2) Real[2] $FUN_5 (215) [ALGB] (1) Real $FUN_4 (216) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.VoltageSensor1.v (217) [ALGB] (2) Real[2] $FUN_3 (218) [ALGB] (1) Real $FUN_22 (219) [ALGB] (3) Real[3] transformer.r1.i (220) [ALGB] (3) Real[3] transformer.r1.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}) (221) [ALGB] (2) Real[2] $FUN_21 (222) [ALGB] (3) Real[3] $FUN_1 (223) [ALGB] (1) Real $FUN_20 (224) [ALGB] (3) flow Real[3] transformer.r1.plug_p.pin.i (225) [ALGB] (3) flow Real[3] transformer.r1.resistor.n.i (226) [ALGB] (3) Real[3] load.resistor.v (227) [DISC] (3) Boolean[3] $SEV_9[$i1] (228) [ALGB] (3) Real[3] transformer.r2.resistor.LossPower (229) [ALGB] (3) flow Real[3] load.plug_p.pin.i (230) [ALGB] (3) flow Real[3] load.resistor.n.i (231) [ALGB] (3) Real[3] transformer.r1.plug_p.pin.v (232) [ALGB] (3) Real[3] transformer.r1.resistor.n.v (233) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.ToSpacePhasor1.u (234) [ALGB] (3) Real[3] load.resistor.i (235) [ALGB] (2) Real[2] voltageQuasiRMSSensorS.ToSpacePhasor1.y (236) [ALGB] (3) flow Real[3] transformer.r2.plug_n.pin.i (237) [ALGB] (3) Real[3] load.plug_p.pin.v (238) [ALGB] (3) Real[3] load.resistor.n.v (239) [ALGB] (2) Real[2] $FUN_19 (240) [ALGB] (1) Real $FUN_18 (241) [ALGB] (1) Real $FUN_17 (242) [ALGB] (3) Real[3] transformer.core.plug_n2.pin.v (243) [ALGB] (1) Real $FUN_15 (244) [ALGB] (1) Real $FUN_14 (245) [ALGB] (1) Real $FUN_12 (246) [ALGB] (3) Real[3] voltageRMSSensorL.VoltageSensor1.v (247) [ALGB] (1) Real $FUN_11 (248) [ALGB] (3) flow Real[3] transformer.thermalAmbient.thermalCollector2.port_a.Q_flow (249) [ALGB] (3) Real[3] transformer.r2.plug_n.pin.v (250) [ALGB] (3) flow Real[3] transformer.core.plug_n2.pin.i (251) [ALGB] (3) Real[3] transformer.core.plug_p1.pin.v (252) [ALGB] (3) Real[3] currentQuasiRMSSensorS.CurrentSensor1.currentSensor.i (253) [ALGB] (3) Real[3] transformer.Rot2.plug_n.pin.v (254) [ALGB] (3) flow Real[3] transformer.core.plug_p1.pin.i (255) [ALGB] (3) flow Real[3] transformer.Rot2.plug_n.pin.i (256) [ALGB] (3) Real[3] transformer.l2sigma.plug_n.pin.v (257) [ALGB] (3) Real[3] transformer.thermalAmbient.thermalCollector1.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}) (258) [ALGB] (1) Real voltageQuasiRMSSensorS.ToSpacePhasor1.zero (259) [ALGB] (1) Real currentQuasiRMSSensorS.ToSpacePhasor1.zero (260) [ALGB] (3) flow Real[3] transformer.l2sigma.plug_n.pin.i (261) [ALGB] (3) Real[3] transformer.l2sigma.v (262) [ALGB] (3) flow Real[3] transformer.plug1.pin.i (263) [ALGB] (3) Real[3] currentQuasiRMSSensorL.ToSpacePhasor1.u (264) [ALGB] (2) Real[2] currentQuasiRMSSensorS.ToPolar1.u (265) [ALGB] (2) Real[2] currentQuasiRMSSensorL.ToSpacePhasor1.y (266) [ALGB] (3) Real[3] source.plug_p.pin.v (267) [ALGB] (3) Real[3] transformer.l2sigma.i (268) [ALGB] (2) Real[2] currentQuasiRMSSensorS.ToPolar1.y (269) [ALGB] (3) Real[3] transformer.plug1.pin.v (270) [ALGB] (3) flow Real[3] transformer.r1.resistor.p.i (271) [ALGB] (3) flow Real[3] currentQuasiRMSSensorL.CurrentSensor1.plug_n.pin.i (272) [ALGB] (3) Real[3] transformer.r2.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}) (273) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.plug_n.pin.v (274) [ALGB] (3) Real[3] deltaL.plug_n.pin.v (275) [ALGB] (3) Real[3] voltageRMSSensorL.plug_p.pin.v (276) [ALGB] (3) flow Real[3] source.plug_p.pin.i (277) [ALGB] (3) flow Real[3] load.resistor.p.i (278) [ALGB] (3) Real[3] transformer.r1.resistor.p.v (279) [ALGB] (3) Real[3] currentQuasiRMSSensorL.CurrentSensor1.plug_n.pin.v (280) [ALGB] (3) flow Real[3] voltageQuasiRMSSensorS.plug_n.pin.i (281) [ALGB] (2) Real[2] currentQuasiRMSSensorS.ToSpacePhasor1.y (282) [ALGB] (3) flow Real[3] deltaL.plug_n.pin.i (283) [ALGB] (3) flow Real[3] voltageRMSSensorL.plug_p.pin.i (284) [ALGB] (3) flow Real[3] voltageQuasiRMSSensorS.VoltageSensor1.plug_n.pin.i (285) [ALGB] (3) Real[3] currentQuasiRMSSensorS.ToSpacePhasor1.u (286) [ALGB] (3) Real[3] load.resistor.p.v (287) [ALGB] (3) Real[3] voltageQuasiRMSSensorS.VoltageSensor1.plug_n.pin.v (288) [ALGB] (2) protected Real[2] electricalPowerSensorL.i_ (289) [ALGB] (3) Real[3] transformer.r1.resistor.LossPower (290) [ALGB] (1) Real transformer.thermalAmbient.Q_flowTotal = transformer.thermalAmbient.Q_flow2 + transformer.thermalAmbient.Q_flow1 + 0.0 (291) [ALGB] (1) Real electricalPowerSensorS.P (292) [ALGB] (1) Real electricalPowerSensorS.Q (293) [ALGB] (3) flow Real[3] transformer.Delta1.plug_n.pin.i (294) [ALGB] (3) Real[3] source.sineVoltage.signalSource.y (295) [ALGB] (3) Real[3] transformer.core.im = transformer.core.i2 / transformer.core.n12 + transformer.core.i1 + transformer.core.i3 / transformer.core.n13 (296) [ALGB] (3) Real[3] transformer.l1sigma.v (297) [ALGB] (3) flow Real[3] voltageRMSSensorL.VoltageSensor1.voltageSensor.n.i System Equations (343/775) **************************** (1) [ARRY] (3) voltageQuasiRMSSensorS.VoltageSensor1.plug_n.pin.v = voltageQuasiRMSSensorS.plug_n.pin.v ($RES_SIM_429) (2) [ARRY] (3) electricalPowerSensorL.plug_ni.pin.v = load.plug_p.pin.v ($RES_SIM_255) (3) [FOR-] (3) ($RES_SIM_256) (3) [----] for $i1 in 1:3 loop (3) [----] [SCAL] (1) currentQuasiRMSSensorL.plug_n.pin[$i1].i + electricalPowerSensorL.plug_p.pin[$i1].i = 0.0 ($RES_SIM_257) (3) [----] end for; (4) [ARRY] (3) currentQuasiRMSSensorL.plug_n.pin.v = electricalPowerSensorL.plug_p.pin.v ($RES_SIM_258) (5) [FOR-] (3) ($RES_SIM_259) (5) [----] for $i1 in 1:3 loop (5) [----] [SCAL] (1) electricalPowerSensorS.plug_ni.pin[$i1].i + currentQuasiRMSSensorS.plug_p.pin[$i1].i = 0.0 ($RES_SIM_260) (5) [----] end for; (6) [ARRY] (3) transformer.l2sigma.plug_n.pin.v = transformer.Rot2.plug_p.pin.v ($RES_SIM_340) (7) [FOR-] (3) ($RES_SIM_342) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) transformer.thermalAmbient.thermalCollector2.port_a[$i1].Q_flow - transformer.thermalAmbient.thermalPort.heatPort2[$i1].Q_flow = 0.0 ($RES_SIM_343) (7) [----] end for; (8) [FOR-] (3) ($RES_$AUX_517) (8) [----] for $i1 in 1:3 loop (8) [----] [SCAL] (1) $FUN_1[$i1] = sin(source.sineVoltage[$i1].signalSource.freqHz * 6.283185307179586 * (time - source.sineVoltage[$i1].signalSource.startTime) + source.sineVoltage[$i1].signalSource.phase) ($RES_$AUX_518) (8) [----] end for; (9) [ARRY] (3) transformer.thermalAmbient.thermalCollector2.port_a.T = transformer.thermalAmbient.thermalPort.heatPort2.T ($RES_SIM_344) (10) [SCAL] (1) -starS.pin_n.i = sum(starS.plug_p.pin.i) ($RES_$AUX_516) (11) [FOR-] (3) ($RES_SIM_345) (11) [----] for $i1 in 1:3 loop (11) [----] [SCAL] (1) transformer.thermalAmbient.thermalCollector1.port_a[$i1].Q_flow - transformer.thermalAmbient.thermalPort.heatPort1[$i1].Q_flow = 0.0 ($RES_SIM_346) (11) [----] end for; (12) [FOR-] (3) ($RES_SIM_170) (12) [----] for $i1 in 1:3 loop (12) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_171) (12) [----] end for; (13) [ARRY] (3) transformer.i1 = transformer.plug1.pin.i ($RES_BND_470) (14) [TUPL] (3) ($FUN_3, $FUN_4) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(electricalPowerSensorS.plug_p.pin.v - electricalPowerSensorS.plug_nv.pin.v) ($RES_$AUX_515) (15) [ARRY] (3) transformer.v2 = transformer.plug2.pin.v ($RES_BND_471) (16) [TUPL] (3) ($FUN_5, $FUN_6) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(electricalPowerSensorS.plug_p.pin.i) ($RES_$AUX_514) (17) [ARRY] (3) transformer.thermalAmbient.thermalCollector1.port_a.T = transformer.thermalAmbient.thermalPort.heatPort1.T ($RES_SIM_347) (18) [FOR-] (3) ($RES_SIM_172) (18) [----] for $i1 in 1:3 loop (18) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_173) (18) [----] end for; (19) [ARRY] (3) transformer.i2 = transformer.plug2.pin.i ($RES_BND_472) (20) [SCAL] (1) 3.0 * currentQuasiRMSSensorS.ToSpacePhasor1.zero = sum(currentQuasiRMSSensorS.ToSpacePhasor1.u) ($RES_$AUX_513) (21) [FOR-] (3) ($RES_BND_473) (21) [----] for $i1 in 1:3 loop (21) [----] [SCAL] (1) transformer.r1.resistor[$i1].heatPort.Q_flow = -transformer.r1.resistor[$i1].LossPower ($RES_BND_474) (21) [----] end for; (22) [SCAL] (1) $FUN_8 = sqrt(currentQuasiRMSSensorS.ToPolar1.u[1] ^ 2.0 + currentQuasiRMSSensorS.ToPolar1.u[2] ^ 2.0) ($RES_$AUX_512) (23) [SCAL] (1) currentQuasiRMSSensorS.ToPolar1.y[2] = if noEvent($SEV_8) then 0.0 else $FUN_9 ($RES_SIM_174) (24) [SCAL] (1) $FUN_9 = atan2(currentQuasiRMSSensorS.ToPolar1.u[2], currentQuasiRMSSensorS.ToPolar1.u[1]) ($RES_$AUX_511) (25) [SCAL] (1) currentQuasiRMSSensorS.ToPolar1.y[1] = $FUN_8 ($RES_SIM_175) (26) [FOR-] (3) ($RES_BND_475) (26) [----] for $i1 in 1:3 loop (26) [----] [SCAL] (1) transformer.r1.resistor[$i1].heatPort.T = transformer.r1.resistor[$i1].T_heatPort ($RES_BND_476) (26) [----] end for; (27) [SCAL] (1) 3.0 * voltageQuasiRMSSensorS.ToSpacePhasor1.zero = sum(voltageQuasiRMSSensorS.ToSpacePhasor1.u) ($RES_$AUX_510) (28) [ARRY] (2) currentQuasiRMSSensorS.ToSpacePhasor1.y = currentQuasiRMSSensorS.ToSpacePhasor1.TransformationMatrix * currentQuasiRMSSensorS.ToSpacePhasor1.u ($RES_SIM_176) (29) [FOR-] (3) ($RES_BND_477) (29) [----] for $i1 in 1:3 loop (29) [----] [SCAL] (1) transformer.r2.resistor[$i1].heatPort.Q_flow = -transformer.r2.resistor[$i1].LossPower ($RES_BND_478) (29) [----] end for; (30) [SCAL] (1) currentQuasiRMSSensorS.Gain1.y = currentQuasiRMSSensorS.Gain1.k * currentQuasiRMSSensorS.Gain1.u ($RES_SIM_178) (31) [FOR-] (3) ($RES_SIM_430) (31) [----] for $i1 in 1:3 loop (31) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.plug_p.pin[$i1].i - voltageQuasiRMSSensorS.plug_p.pin[$i1].i = 0.0 ($RES_SIM_431) (31) [----] end for; (32) [FOR-] (3) ($RES_SIM_179) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].n.i = -currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].i ($RES_SIM_180) (32) [----] end for; (33) [FOR-] (3) ($RES_BND_479) (33) [----] for $i1 in 1:3 loop (33) [----] [SCAL] (1) transformer.r2.resistor[$i1].heatPort.T = transformer.r2.resistor[$i1].T_heatPort ($RES_BND_480) (33) [----] end for; (34) [ARRY] (3) voltageQuasiRMSSensorS.plug_p.pin.v = voltageQuasiRMSSensorS.VoltageSensor1.plug_p.pin.v ($RES_SIM_432) (35) [ARRY] (3) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.v = voltageQuasiRMSSensorS.VoltageSensor1.v ($RES_SIM_433) (36) [FOR-] (3) ($RES_SIM_434) (36) [----] for $i1 in 1:3 loop (36) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].p.i - voltageQuasiRMSSensorS.VoltageSensor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_435) (36) [----] end for; (37) [ARRY] (3) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.p.v = voltageQuasiRMSSensorS.VoltageSensor1.plug_p.pin.v ($RES_SIM_436) (38) [ARRY] (3) electricalPowerSensorS.plug_ni.pin.v = currentQuasiRMSSensorS.plug_p.pin.v ($RES_SIM_261) (39) [FOR-] (3) ($RES_SIM_437) (39) [----] for $i1 in 1:3 loop (39) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].n.i - voltageQuasiRMSSensorS.VoltageSensor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_438) (39) [----] end for; (40) [FOR-] (3) ($RES_SIM_262) (40) [----] for $i1 in 1:3 loop (40) [----] [SCAL] (1) source.plug_p.pin[$i1].i + electricalPowerSensorS.plug_p.pin[$i1].i = 0.0 ($RES_SIM_263) (40) [----] end for; (41) [ARRY] (3) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor.n.v = voltageQuasiRMSSensorS.VoltageSensor1.plug_n.pin.v ($RES_SIM_439) (42) [ARRY] (3) source.plug_p.pin.v = electricalPowerSensorS.plug_p.pin.v ($RES_SIM_264) (43) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[3].i + starL.plug_p.pin[3].i + load.plug_n.pin[3].i = 0.0 ($RES_SIM_266) (44) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[2].i + starL.plug_p.pin[2].i + load.plug_n.pin[2].i = 0.0 ($RES_SIM_267) (45) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[1].i + starL.plug_p.pin[1].i + load.plug_n.pin[1].i = 0.0 ($RES_SIM_268) (46) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[3].v = load.plug_n.pin[3].v ($RES_SIM_269) (47) [SCAL] (1) $FUN_11 = sqrt(voltageQuasiRMSSensorS.ToPolar1.u[1] ^ 2.0 + voltageQuasiRMSSensorS.ToPolar1.u[2] ^ 2.0) ($RES_$AUX_509) (48) [SCAL] (1) $FUN_12 = atan2(voltageQuasiRMSSensorS.ToPolar1.u[2], voltageQuasiRMSSensorS.ToPolar1.u[1]) ($RES_$AUX_508) (49) [FOR-] (3) ($RES_SIM_353) (49) [----] for $i1 in 1:3 loop (49) [----] [SCAL] (1) transformer.l2sigma.inductor[$i1].n.i - transformer.l2sigma.plug_n.pin[$i1].i = 0.0 ($RES_SIM_354) (49) [----] end for; (50) [SCAL] (1) 3.0 * voltageRMSSensorL.ToSpacePhasor1.zero = sum(voltageRMSSensorL.ToSpacePhasor1.u) ($RES_$AUX_507) (51) [SCAL] (1) $FUN_14 = sqrt(voltageRMSSensorL.ToPolar1.u[1] ^ 2.0 + voltageRMSSensorL.ToPolar1.u[2] ^ 2.0) ($RES_$AUX_506) (52) [ARRY] (3) transformer.l2sigma.inductor.n.v = transformer.l2sigma.plug_n.pin.v ($RES_SIM_355) (53) [SCAL] (1) $FUN_15 = atan2(voltageRMSSensorL.ToPolar1.u[2], voltageRMSSensorL.ToPolar1.u[1]) ($RES_$AUX_505) (54) [FOR-] (3) ($RES_SIM_356) (54) [----] for $i1 in 1:3 loop (54) [----] [SCAL] (1) transformer.l2sigma.inductor[$i1].p.i - transformer.l2sigma.plug_p.pin[$i1].i = 0.0 ($RES_SIM_357) (54) [----] end for; (55) [FOR-] (3) ($RES_SIM_181) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].p.i = currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].i ($RES_SIM_182) (55) [----] end for; (56) [ARRY] (3) transformer.core.v1 = transformer.core.plug_p1.pin.v - transformer.core.plug_n1.pin.v ($RES_BND_481) (57) [SCAL] (1) 3.0 * currentQuasiRMSSensorL.ToSpacePhasor1.zero = sum(currentQuasiRMSSensorL.ToSpacePhasor1.u) ($RES_$AUX_504) (58) [ARRY] (3) transformer.core.i1 = transformer.core.plug_p1.pin.i ($RES_BND_482) (59) [SCAL] (1) $FUN_17 = sqrt(currentQuasiRMSSensorL.ToPolar1.u[1] ^ 2.0 + currentQuasiRMSSensorL.ToPolar1.u[2] ^ 2.0) ($RES_$AUX_503) (60) [ARRY] (3) transformer.l2sigma.inductor.p.v = transformer.l2sigma.plug_p.pin.v ($RES_SIM_358) (61) [FOR-] (3) ($RES_SIM_183) (61) [----] for $i1 in 1:3 loop (61) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].p.v = currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].n.v ($RES_SIM_184) (61) [----] end for; (62) [ARRY] (3) transformer.core.v2 = transformer.core.plug_p2.pin.v - transformer.core.plug_n2.pin.v ($RES_BND_483) (63) [SCAL] (1) $FUN_18 = atan2(currentQuasiRMSSensorL.ToPolar1.u[2], currentQuasiRMSSensorL.ToPolar1.u[1]) ($RES_$AUX_502) (64) [FOR-] (3) ($RES_SIM_359) (64) [----] for $i1 in 1:3 loop (64) [----] [SCAL] (1) transformer.r2.resistor[$i1].heatPort.Q_flow - transformer.r2.heatPort[$i1].Q_flow = 0.0 ($RES_SIM_360) (64) [----] end for; (65) [ARRY] (3) transformer.core.i2 = transformer.core.plug_p2.pin.i ($RES_BND_484) (66) [TUPL] (3) ($FUN_19, $FUN_20) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(electricalPowerSensorL.plug_p.pin.v - electricalPowerSensorL.plug_nv.pin.v) ($RES_$AUX_501) (67) [SCAL] (1) 0.6666666666666666 * electricalPowerSensorS.Q = electricalPowerSensorS.v_[2] * electricalPowerSensorS.i_[1] - electricalPowerSensorS.v_[1] * electricalPowerSensorS.i_[2] ($RES_SIM_185) (68) [ARRY] (3) transformer.core.v3 = transformer.core.plug_p3.pin.v - transformer.core.plug_n3.pin.v ($RES_BND_485) (69) [TUPL] (3) ($FUN_21, $FUN_22) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(electricalPowerSensorL.plug_p.pin.i) ($RES_$AUX_500) (70) [SCAL] (1) 0.6666666666666666 * electricalPowerSensorS.P = electricalPowerSensorS.v_[1] * electricalPowerSensorS.i_[1] + electricalPowerSensorS.v_[2] * electricalPowerSensorS.i_[2] ($RES_SIM_186) (71) [ARRY] (3) transformer.core.i3 = transformer.core.plug_p3.pin.i ($RES_BND_486) (72) [ARRY] (2) electricalPowerSensorS.i_ = $FUN_5 ($RES_SIM_187) (73) [ARRY] (3) transformer.core.im = transformer.core.i2 / transformer.core.n12 + transformer.core.i1 + transformer.core.i3 / transformer.core.n13 ($RES_BND_487) (74) [ARRY] (2) electricalPowerSensorS.v_ = $FUN_3 ($RES_SIM_188) (75) [ARRY] (3) electricalPowerSensorS.plug_nv.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_189) (76) [SCAL] (1) currentQuasiRMSSensorS.ToPolar1.y[1] = currentQuasiRMSSensorS.Gain1.u ($RES_SIM_441) (77) [ARRY] (2) currentQuasiRMSSensorS.ToSpacePhasor1.y = currentQuasiRMSSensorS.ToPolar1.u ($RES_SIM_442) (78) [ARRY] (3) currentQuasiRMSSensorS.CurrentSensor1.i = currentQuasiRMSSensorS.ToSpacePhasor1.u ($RES_SIM_443) (79) [FOR-] (3) ($RES_SIM_444) (79) [----] for $i1 in 1:3 loop (79) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.plug_n.pin[$i1].i - currentQuasiRMSSensorS.plug_n.pin[$i1].i = 0.0 ($RES_SIM_445) (79) [----] end for; (80) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[3].v = starL.plug_p.pin[3].v ($RES_SIM_270) (81) [ARRY] (3) currentQuasiRMSSensorS.CurrentSensor1.plug_n.pin.v = currentQuasiRMSSensorS.plug_n.pin.v ($RES_SIM_446) (82) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[2].v = load.plug_n.pin[2].v ($RES_SIM_271) (83) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[2].v = starL.plug_p.pin[2].v ($RES_SIM_272) (84) [FOR-] (3) ($RES_SIM_447) (84) [----] for $i1 in 1:3 loop (84) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.plug_p.pin[$i1].i - currentQuasiRMSSensorS.plug_p.pin[$i1].i = 0.0 ($RES_SIM_448) (84) [----] end for; (85) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[1].v = load.plug_n.pin[1].v ($RES_SIM_273) (86) [SCAL] (1) electricalPowerSensorL.plug_nv.pin[1].v = starL.plug_p.pin[1].v ($RES_SIM_274) (87) [ARRY] (3) currentQuasiRMSSensorS.plug_p.pin.v = currentQuasiRMSSensorS.CurrentSensor1.plug_p.pin.v ($RES_SIM_449) (88) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[3].i + starS.plug_p.pin[3].i + source.plug_n.pin[3].i = 0.0 ($RES_SIM_276) (89) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[2].i + starS.plug_p.pin[2].i + source.plug_n.pin[2].i = 0.0 ($RES_SIM_277) (90) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[1].i + starS.plug_p.pin[1].i + source.plug_n.pin[1].i = 0.0 ($RES_SIM_278) (91) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[3].v = source.plug_n.pin[3].v ($RES_SIM_279) (92) [ARRY] (3) transformer.r2.resistor.heatPort.T = transformer.r2.heatPort.T ($RES_SIM_361) (93) [FOR-] (3) ($RES_SIM_362) (93) [----] for $i1 in 1:3 loop (93) [----] [SCAL] (1) transformer.r2.resistor[$i1].n.i - transformer.r2.plug_n.pin[$i1].i = 0.0 ($RES_SIM_363) (93) [----] end for; (94) [ARRY] (3) transformer.r2.resistor.n.v = transformer.r2.plug_n.pin.v ($RES_SIM_364) (95) [ARRY] (3) electricalPowerSensorS.plug_p.pin.i + electricalPowerSensorS.plug_ni.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_190) (96) [FOR-] (3) ($RES_SIM_365) (96) [----] for $i1 in 1:3 loop (96) [----] [SCAL] (1) transformer.r2.resistor[$i1].p.i - transformer.r2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_366) (96) [----] end for; (97) [ARRY] (3) electricalPowerSensorS.plug_p.pin.v = electricalPowerSensorS.plug_ni.pin.v ($RES_SIM_191) (98) [SCAL] (1) transformer.thermalAmbient.Q_flowTotal = transformer.thermalAmbient.Q_flow2 + transformer.thermalAmbient.Q_flow1 ($RES_BND_491) (99) [ARRY] (3) transformer.r2.resistor.p.v = transformer.r2.plug_p.pin.v ($RES_SIM_367) (100) [FOR-] (3) ($RES_SIM_368) (100) [----] for $i1 in 1:3 loop (100) [----] [SCAL] (1) transformer.l1sigma.inductor[$i1].n.i - transformer.l1sigma.plug_n.pin[$i1].i = 0.0 ($RES_SIM_369) (100) [----] end for; (101) [FOR-] (3) ($RES_SIM_194) (101) [----] for $i1 in 1:3 loop (101) [----] [SCAL] (1) starS.plug_p.pin[$i1].v = 0.0 ($RES_SIM_195) (101) [----] end for; (102) [ARRY] (3) source.i = source.plug_p.pin.i ($RES_SIM_196) (103) [ARRY] (3) source.v = source.plug_p.pin.v - source.plug_n.pin.v ($RES_SIM_197) (104) [FOR-] (3) ($RES_SIM_198) (104) [----] for $i1 in 1:3 loop (104) [----] [SCAL] (1) source.sineVoltage[$i1].i = source.sineVoltage[$i1].p.i ($RES_SIM_199) (104) [----] end for; (105) [ARRY] (3) currentQuasiRMSSensorS.CurrentSensor1.currentSensor.i = currentQuasiRMSSensorS.CurrentSensor1.i ($RES_SIM_450) (106) [FOR-] (3) ($RES_SIM_451) (106) [----] for $i1 in 1:3 loop (106) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].n.i - currentQuasiRMSSensorS.CurrentSensor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_452) (106) [----] end for; (107) [ARRY] (3) currentQuasiRMSSensorS.CurrentSensor1.currentSensor.n.v = currentQuasiRMSSensorS.CurrentSensor1.plug_n.pin.v ($RES_SIM_453) (108) [FOR-] (3) ($RES_SIM_454) (108) [----] for $i1 in 1:3 loop (108) [----] [SCAL] (1) currentQuasiRMSSensorS.CurrentSensor1.currentSensor[$i1].p.i - currentQuasiRMSSensorS.CurrentSensor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_455) (108) [----] end for; (109) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[3].v = starS.plug_p.pin[3].v ($RES_SIM_280) (110) [ARRY] (3) currentQuasiRMSSensorS.CurrentSensor1.plug_p.pin.v = currentQuasiRMSSensorS.CurrentSensor1.currentSensor.p.v ($RES_SIM_456) (111) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[2].v = source.plug_n.pin[2].v ($RES_SIM_281) (112) [FOR-] (3) ($RES_SIM_457) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) source.sineVoltage[$i1].n.i - source.plug_n.pin[$i1].i = 0.0 ($RES_SIM_458) (112) [----] end for; (113) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[2].v = starS.plug_p.pin[2].v ($RES_SIM_282) (114) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[1].v = source.plug_n.pin[1].v ($RES_SIM_283) (115) [ARRY] (3) source.sineVoltage.n.v = source.plug_n.pin.v ($RES_SIM_459) (116) [SCAL] (1) electricalPowerSensorS.plug_nv.pin[1].v = starS.plug_p.pin[1].v ($RES_SIM_284) (117) [FOR-] (3) ($RES_SIM_286) (117) [----] for $i1 in 1:3 loop (117) [----] [SCAL] (1) transformer.l2sigma.plug_p.pin[$i1].i + transformer.r2.plug_n.pin[$i1].i = 0.0 ($RES_SIM_287) (117) [----] end for; (118) [ARRY] (3) transformer.l2sigma.plug_p.pin.v = transformer.r2.plug_n.pin.v ($RES_SIM_288) (119) [FOR-] (3) ($RES_SIM_289) (119) [----] for $i1 in 1:3 loop (119) [----] [SCAL] (1) transformer.r2.plug_p.pin[$i1].i - transformer.plug2.pin[$i1].i = 0.0 ($RES_SIM_290) (119) [----] end for; (120) [FOR-] (3) ($RES_SIM_9) (120) [----] for $i1 in 1:3 loop (120) [----] [-IF-] (1)if $SEV_0[$i1] then (120) [----] [----] [SCAL] (1) transformer.Delta1.plug_n.pin[$i1].v = transformer.Delta1.plug_p.pin[$i1 + 1].v ($RES_SIM_11) (120) [----] [----] else (120) [----] [----] [SCAL] (1) transformer.Delta1.plug_n.pin[$i1].v = transformer.Delta1.plug_p.pin[1].v ($RES_SIM_12) (120) [----] [----] end if; (120) [----] end for; (121) [ARRY] (3) transformer.l1sigma.inductor.n.v = transformer.l1sigma.plug_n.pin.v ($RES_SIM_370) (122) [FOR-] (3) ($RES_SIM_371) (122) [----] for $i1 in 1:3 loop (122) [----] [SCAL] (1) transformer.l1sigma.inductor[$i1].p.i - transformer.l1sigma.plug_p.pin[$i1].i = 0.0 ($RES_SIM_372) (122) [----] end for; (123) [FOR-] (3) ($RES_SIM_5) (123) [----] for $i1 in 1:3 loop (123) [----] [-IF-] (1)if $SEV_0[$i1] then (123) [----] [----] [SCAL] (1) transformer.Rot2.plug_n.pin[$i1].i + transformer.Rot2.plug_p.pin[$i1 + 1].i = 0.0 ($RES_SIM_7) (123) [----] [----] else (123) [----] [----] [SCAL] (1) transformer.Rot2.plug_n.pin[$i1].i + transformer.Rot2.plug_p.pin[1].i = 0.0 ($RES_SIM_8) (123) [----] [----] end if; (123) [----] end for; (124) [ARRY] (3) transformer.l1sigma.inductor.p.v = transformer.l1sigma.plug_p.pin.v ($RES_SIM_373) (125) [FOR-] (3) ($RES_SIM_374) (125) [----] for $i1 in 1:3 loop (125) [----] [SCAL] (1) transformer.r1.resistor[$i1].heatPort.Q_flow - transformer.r1.heatPort[$i1].Q_flow = 0.0 ($RES_SIM_375) (125) [----] end for; (126) [ARRY] (3) transformer.r1.resistor.heatPort.T = transformer.r1.heatPort.T ($RES_SIM_376) (127) [FOR-] (3) ($RES_SIM_1) (127) [----] for $i1 in 1:3 loop (127) [----] [-IF-] (1)if $SEV_0[$i1] then (127) [----] [----] [SCAL] (1) transformer.Rot2.plug_n.pin[$i1].v = transformer.Rot2.plug_p.pin[$i1 + 1].v ($RES_SIM_3) (127) [----] [----] else (127) [----] [----] [SCAL] (1) transformer.Rot2.plug_n.pin[$i1].v = transformer.Rot2.plug_p.pin[1].v ($RES_SIM_4) (127) [----] [----] end if; (127) [----] end for; (128) [FOR-] (3) ($RES_SIM_377) (128) [----] for $i1 in 1:3 loop (128) [----] [SCAL] (1) transformer.r1.resistor[$i1].n.i - transformer.r1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_378) (128) [----] end for; (129) [ARRY] (3) transformer.r1.resistor.n.v = transformer.r1.plug_n.pin.v ($RES_SIM_379) (130) [FOR-] (3) ($RES_SIM_460) (130) [----] for $i1 in 1:3 loop (130) [----] [SCAL] (1) source.sineVoltage[$i1].p.i - source.plug_p.pin[$i1].i = 0.0 ($RES_SIM_461) (130) [----] end for; (131) [ARRY] (3) source.sineVoltage.p.v = source.plug_p.pin.v ($RES_SIM_462) (132) [ARRY] (3) transformer.r2.plug_p.pin.v = transformer.plug2.pin.v ($RES_SIM_291) (133) [SCAL] (1) (transformer.r2.heatPort[3].Q_flow + transformer.thermalAmbient.thermalPort.heatPort2[3].Q_flow) - transformer.internalThermalPort.heatPort2[3].Q_flow = 0.0 ($RES_SIM_293) (134) [SCAL] (1) (transformer.r2.heatPort[2].Q_flow + transformer.thermalAmbient.thermalPort.heatPort2[2].Q_flow) - transformer.internalThermalPort.heatPort2[2].Q_flow = 0.0 ($RES_SIM_294) (135) [SCAL] (1) (transformer.r2.heatPort[1].Q_flow + transformer.thermalAmbient.thermalPort.heatPort2[1].Q_flow) - transformer.internalThermalPort.heatPort2[1].Q_flow = 0.0 ($RES_SIM_295) (136) [SCAL] (1) transformer.r2.heatPort[3].T = transformer.thermalAmbient.thermalPort.heatPort2[3].T ($RES_SIM_296) (137) [SCAL] (1) transformer.r2.heatPort[3].T = transformer.internalThermalPort.heatPort2[3].T ($RES_SIM_297) (138) [SCAL] (1) transformer.r2.heatPort[2].T = transformer.thermalAmbient.thermalPort.heatPort2[2].T ($RES_SIM_298) (139) [SCAL] (1) transformer.r2.heatPort[2].T = transformer.internalThermalPort.heatPort2[2].T ($RES_SIM_299) (140) [FOR-] (3) ($RES_SIM_380) (140) [----] for $i1 in 1:3 loop (140) [----] [SCAL] (1) transformer.r1.resistor[$i1].p.i - transformer.r1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_381) (140) [----] end for; (141) [ARRY] (3) transformer.r1.resistor.p.v = transformer.r1.plug_p.pin.v ($RES_SIM_382) (142) [FOR-] (3) ($RES_SIM_383) (142) [----] for $i1 in 1:3 loop (142) [----] [SCAL] (1) load.resistor[$i1].n.i - load.plug_n.pin[$i1].i = 0.0 ($RES_SIM_384) (142) [----] end for; (143) [ARRY] (3) load.resistor.n.v = load.plug_n.pin.v ($RES_SIM_385) (144) [FOR-] (3) ($RES_SIM_386) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) load.resistor[$i1].p.i - load.plug_p.pin[$i1].i = 0.0 ($RES_SIM_387) (144) [----] end for; (145) [ARRY] (3) load.resistor.p.v = load.plug_p.pin.v ($RES_SIM_388) (146) [FOR-] (3) ($RES_SIM_13) (146) [----] for $i1 in 1:3 loop (146) [----] [-IF-] (1)if $SEV_0[$i1] then (146) [----] [----] [SCAL] (1) transformer.Delta1.plug_n.pin[$i1].i + transformer.Delta1.plug_p.pin[$i1 + 1].i = 0.0 ($RES_SIM_15) (146) [----] [----] else (146) [----] [----] [SCAL] (1) transformer.Delta1.plug_n.pin[$i1].i + transformer.Delta1.plug_p.pin[1].i = 0.0 ($RES_SIM_16) (146) [----] [----] end if; (146) [----] end for; (147) [FOR-] (3) ($RES_SIM_18) (147) [----] for $i1 in 1:3 loop (147) [----] [SCAL] (1) transformer.star2.plug_p.pin[$i1].v = transformer.star2.pin_n.v ($RES_SIM_19) (147) [----] end for; (148) [SCAL] (1) currentQuasiRMSSensorL.ToPolar1.y[1] = currentQuasiRMSSensorL.Gain1.u ($RES_SIM_390) (149) [ARRY] (2) currentQuasiRMSSensorL.ToSpacePhasor1.y = currentQuasiRMSSensorL.ToPolar1.u ($RES_SIM_391) (150) [ARRY] (3) currentQuasiRMSSensorL.CurrentSensor1.i = currentQuasiRMSSensorL.ToSpacePhasor1.u ($RES_SIM_392) (151) [FOR-] (3) ($RES_SIM_393) (151) [----] for $i1 in 1:3 loop (151) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.plug_n.pin[$i1].i - currentQuasiRMSSensorL.plug_n.pin[$i1].i = 0.0 ($RES_SIM_394) (151) [----] end for; (152) [ARRY] (3) currentQuasiRMSSensorL.CurrentSensor1.plug_n.pin.v = currentQuasiRMSSensorL.plug_n.pin.v ($RES_SIM_395) (153) [FOR-] (3) ($RES_SIM_396) (153) [----] for $i1 in 1:3 loop (153) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.plug_p.pin[$i1].i - currentQuasiRMSSensorL.plug_p.pin[$i1].i = 0.0 ($RES_SIM_397) (153) [----] end for; (154) [ARRY] (3) currentQuasiRMSSensorL.plug_p.pin.v = currentQuasiRMSSensorL.CurrentSensor1.plug_p.pin.v ($RES_SIM_398) (155) [ARRY] (3) currentQuasiRMSSensorL.CurrentSensor1.currentSensor.i = currentQuasiRMSSensorL.CurrentSensor1.i ($RES_SIM_399) (156) [ARRY] (3) transformer.thermalAmbient.thermalCollector2.port_a.T = {transformer.thermalAmbient.constT2.k for $i1 in 1:3} ($RES_SIM_20) (157) [ARRY] (3) transformer.thermalAmbient.thermalCollector1.port_a.T = {transformer.thermalAmbient.constT1.k for $i1 in 1:3} ($RES_SIM_22) (158) [ARRY] (3) transformer.core.plug_p3.pin.i + transformer.core.plug_n3.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_29) (159) [ARRY] (3) transformer.core.plug_p2.pin.i + transformer.core.plug_n2.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_30) (160) [ARRY] (3) transformer.core.plug_p1.pin.i + transformer.core.plug_n1.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_31) (161) [ARRY] (3) transformer.core.v1 = transformer.core.n13 * transformer.core.v3 ($RES_SIM_32) (162) [ARRY] (3) transformer.core.v1 = transformer.core.n12 * transformer.core.v2 ($RES_SIM_33) (163) [ARRY] (3) transformer.core.im = {0.0 for $i1 in 1:3} ($RES_SIM_34) (164) [ARRY] (3) transformer.l2sigma.i = transformer.l2sigma.plug_p.pin.i ($RES_SIM_35) (165) [ARRY] (3) transformer.l2sigma.v = transformer.l2sigma.plug_p.pin.v - transformer.l2sigma.plug_n.pin.v ($RES_SIM_36) (166) [FOR-] (3) ($RES_SIM_37) (166) [----] for $i1 in 1:3 loop (166) [----] [SCAL] (1) transformer.l2sigma.inductor[$i1].i = transformer.l2sigma.inductor[$i1].p.i ($RES_SIM_38) (166) [----] end for; (167) [FOR-] (3) ($RES_SIM_39) (167) [----] for $i1 in 1:3 loop (167) [----] [SCAL] (1) 0.0 = transformer.l2sigma.inductor[$i1].p.i + transformer.l2sigma.inductor[$i1].n.i ($RES_SIM_40) (167) [----] end for; (168) [FOR-] (3) ($RES_SIM_41) (168) [----] for $i1 in 1:3 loop (168) [----] [SCAL] (1) transformer.l2sigma.inductor[$i1].v = transformer.l2sigma.inductor[$i1].p.v - transformer.l2sigma.inductor[$i1].n.v ($RES_SIM_42) (168) [----] end for; (169) [FOR-] (3) ($RES_SIM_43) (169) [----] for $i1 in 1:3 loop (169) [----] [SCAL] (1) transformer.l2sigma.inductor[$i1].L * $DER.transformer.l2sigma.inductor[$i1].i = transformer.l2sigma.inductor[$i1].v ($RES_SIM_44) (169) [----] end for; (170) [ARRY] (3) transformer.r2.i = transformer.r2.plug_p.pin.i ($RES_SIM_45) (171) [ARRY] (3) transformer.r2.v = transformer.r2.plug_p.pin.v - transformer.r2.plug_n.pin.v ($RES_SIM_46) (172) [FOR-] (3) ($RES_SIM_47) (172) [----] for $i1 in 1:3 loop (172) [----] [SCAL] (1) transformer.r2.resistor[$i1].i = transformer.r2.resistor[$i1].p.i ($RES_SIM_48) (172) [----] end for; (173) [FOR-] (3) ($RES_SIM_49) (173) [----] for $i1 in 1:3 loop (173) [----] [SCAL] (1) 0.0 = transformer.r2.resistor[$i1].p.i + transformer.r2.resistor[$i1].n.i ($RES_SIM_50) (173) [----] end for; (174) [FOR-] (3) ($RES_SIM_51) (174) [----] for $i1 in 1:3 loop (174) [----] [SCAL] (1) transformer.r2.resistor[$i1].v = transformer.r2.resistor[$i1].p.v - transformer.r2.resistor[$i1].n.v ($RES_SIM_52) (174) [----] end for; (175) [FOR-] (3) ($RES_SIM_53) (175) [----] for $i1 in 1:3 loop (175) [----] [SCAL] (1) transformer.r2.resistor[$i1].LossPower = transformer.r2.resistor[$i1].v * transformer.r2.resistor[$i1].i ($RES_SIM_54) (175) [----] end for; (176) [FOR-] (3) ($RES_SIM_55) (176) [----] for $i1 in 1:3 loop (176) [----] [SCAL] (1) transformer.r2.resistor[$i1].v = transformer.r2.resistor[$i1].R_actual * transformer.r2.resistor[$i1].i ($RES_SIM_56) (176) [----] end for; (177) [FOR-] (3) ($RES_SIM_57) (177) [----] for $i1 in 1:3 loop (177) [----] [SCAL] (1) transformer.r2.resistor[$i1].R_actual = transformer.r2.resistor[$i1].R * (1.0 + transformer.r2.resistor[$i1].alpha * (transformer.r2.resistor[$i1].T_heatPort - transformer.r2.resistor[$i1].T_ref)) ($RES_SIM_58) (177) [----] end for; (178) [FOR-] (3) ($RES_SIM_101) (178) [----] for $i1 in 1:3 loop (178) [----] [SCAL] (1) load.resistor[$i1].LossPower = load.resistor[$i1].v * load.resistor[$i1].i ($RES_SIM_102) (178) [----] end for; (179) [FOR-] (3) ($RES_SIM_103) (179) [----] for $i1 in 1:3 loop (179) [----] [SCAL] (1) load.resistor[$i1].v = load.resistor[$i1].R_actual * load.resistor[$i1].i ($RES_SIM_104) (179) [----] end for; (180) [FOR-] (3) ($RES_SIM_105) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) load.resistor[$i1].R_actual = load.resistor[$i1].R * (1.0 + load.resistor[$i1].alpha * (load.resistor[$i1].T_heatPort - load.resistor[$i1].T_ref)) ($RES_SIM_106) (180) [----] end for; (181) [SCAL] (1) 0.6666666666666666 * electricalPowerSensorL.Q = electricalPowerSensorL.v_[2] * electricalPowerSensorL.i_[1] - electricalPowerSensorL.v_[1] * electricalPowerSensorL.i_[2] ($RES_SIM_109) (182) [SCAL] (1) -starL.pin_n.i = sum(starL.plug_p.pin.i) ($RES_$AUX_499) (183) [SCAL] (1) transformer.thermalAmbient.Q_flow1 = sum(transformer.thermalAmbient.thermalCollector1.port_a.Q_flow) ($RES_$AUX_498) (184) [SCAL] (1) transformer.thermalAmbient.Q_flow2 = sum(transformer.thermalAmbient.thermalCollector2.port_a.Q_flow) ($RES_$AUX_497) (185) [ARRY] (3) transformer.l1sigma.i = transformer.l1sigma.plug_p.pin.i ($RES_SIM_61) (186) [SCAL] (1) 0.0 = sum(transformer.star2.plug_p.pin.i) ($RES_$AUX_496) (187) [ARRY] (3) transformer.l1sigma.v = transformer.l1sigma.plug_p.pin.v - transformer.l1sigma.plug_n.pin.v ($RES_SIM_62) (188) [SCAL] (1) $FUN_27 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(transformer.v1, transformer.i1) ($RES_$AUX_495) (189) [FOR-] (3) ($RES_SIM_63) (189) [----] for $i1 in 1:3 loop (189) [----] [SCAL] (1) transformer.l1sigma.inductor[$i1].i = transformer.l1sigma.inductor[$i1].p.i ($RES_SIM_64) (189) [----] end for; (190) [SCAL] (1) $FUN_28 = Modelica.Electrical.Machines.SpacePhasors.Functions.activePower(transformer.v2, transformer.i2) ($RES_$AUX_494) (191) [SCAL] (1) $FUN_29 = sum(transformer.r1.resistor.LossPower) ($RES_$AUX_493) (192) [FOR-] (3) ($RES_SIM_65) (192) [----] for $i1 in 1:3 loop (192) [----] [SCAL] (1) 0.0 = transformer.l1sigma.inductor[$i1].p.i + transformer.l1sigma.inductor[$i1].n.i ($RES_SIM_66) (192) [----] end for; (193) [SCAL] (1) $FUN_30 = sum(transformer.r2.resistor.LossPower) ($RES_$AUX_492) (194) [FOR-] (3) ($RES_SIM_67) (194) [----] for $i1 in 1:3 loop (194) [----] [SCAL] (1) transformer.l1sigma.inductor[$i1].v = transformer.l1sigma.inductor[$i1].p.v - transformer.l1sigma.inductor[$i1].n.v ($RES_SIM_68) (194) [----] end for; (195) [FOR-] (3) ($RES_SIM_69) (195) [----] for $i1 in 1:3 loop (195) [----] [SCAL] (1) transformer.l1sigma.inductor[$i1].L * $DER.transformer.l1sigma.inductor[$i1].i = transformer.l1sigma.inductor[$i1].v ($RES_SIM_70) (195) [----] end for; (196) [SCAL] (1) 0.6666666666666666 * electricalPowerSensorL.P = electricalPowerSensorL.v_[1] * electricalPowerSensorL.i_[1] + electricalPowerSensorL.v_[2] * electricalPowerSensorL.i_[2] ($RES_SIM_110) (197) [ARRY] (2) electricalPowerSensorL.i_ = $FUN_21 ($RES_SIM_111) (198) [ARRY] (2) electricalPowerSensorL.v_ = $FUN_19 ($RES_SIM_112) (199) [ARRY] (3) electricalPowerSensorL.plug_nv.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_113) (200) [ARRY] (3) electricalPowerSensorL.plug_p.pin.i + electricalPowerSensorL.plug_ni.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_114) (201) [ARRY] (3) electricalPowerSensorL.plug_p.pin.v = electricalPowerSensorL.plug_ni.pin.v ($RES_SIM_115) (202) [SCAL] (1) currentQuasiRMSSensorL.ToPolar1.y[2] = if noEvent($SEV_4) then 0.0 else $FUN_18 ($RES_SIM_116) (203) [SCAL] (1) currentQuasiRMSSensorL.ToPolar1.y[1] = $FUN_17 ($RES_SIM_117) (204) [ARRY] (2) currentQuasiRMSSensorL.ToSpacePhasor1.y = currentQuasiRMSSensorL.ToSpacePhasor1.TransformationMatrix * currentQuasiRMSSensorL.ToSpacePhasor1.u ($RES_SIM_118) (205) [ARRY] (3) transformer.r1.i = transformer.r1.plug_p.pin.i ($RES_SIM_71) (206) [FOR-] (3) ($RES_SIM_200) (206) [----] for $i1 in 1:3 loop (206) [----] [SCAL] (1) 0.0 = source.sineVoltage[$i1].p.i + source.sineVoltage[$i1].n.i ($RES_SIM_201) (206) [----] end for; (207) [ARRY] (3) transformer.r1.v = transformer.r1.plug_p.pin.v - transformer.r1.plug_n.pin.v ($RES_SIM_72) (208) [FOR-] (3) ($RES_SIM_73) (208) [----] for $i1 in 1:3 loop (208) [----] [SCAL] (1) transformer.r1.resistor[$i1].i = transformer.r1.resistor[$i1].p.i ($RES_SIM_74) (208) [----] end for; (209) [FOR-] (3) ($RES_SIM_202) (209) [----] for $i1 in 1:3 loop (209) [----] [SCAL] (1) source.sineVoltage[$i1].v = source.sineVoltage[$i1].p.v - source.sineVoltage[$i1].n.v ($RES_SIM_203) (209) [----] end for; (210) [FOR-] (3) ($RES_SIM_75) (210) [----] for $i1 in 1:3 loop (210) [----] [SCAL] (1) 0.0 = transformer.r1.resistor[$i1].p.i + transformer.r1.resistor[$i1].n.i ($RES_SIM_76) (210) [----] end for; (211) [FOR-] (3) ($RES_SIM_204) (211) [----] for $i1 in 1:3 loop (211) [----] [SCAL] (1) source.sineVoltage[$i1].v = source.sineVoltage[$i1].signalSource.y ($RES_SIM_205) (211) [----] end for; (212) [FOR-] (3) ($RES_SIM_77) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) transformer.r1.resistor[$i1].v = transformer.r1.resistor[$i1].p.v - transformer.r1.resistor[$i1].n.v ($RES_SIM_78) (212) [----] end for; (213) [FOR-] (3) ($RES_SIM_206) (213) [----] for $i1 in 1:3 loop (213) [----] [SCAL] (1) source.sineVoltage[$i1].signalSource.y = source.sineVoltage[$i1].signalSource.offset + (if $SEV_9[$i1] then 0.0 else source.sineVoltage[$i1].signalSource.amplitude * $FUN_1[$i1]) ($RES_SIM_207) (213) [----] end for; (214) [FOR-] (3) ($RES_SIM_79) (214) [----] for $i1 in 1:3 loop (214) [----] [SCAL] (1) transformer.r1.resistor[$i1].LossPower = transformer.r1.resistor[$i1].v * transformer.r1.resistor[$i1].i ($RES_SIM_80) (214) [----] end for; (215) [SCAL] (1) currentQuasiRMSSensorL.Gain1.y = currentQuasiRMSSensorL.Gain1.k * currentQuasiRMSSensorL.Gain1.u ($RES_SIM_120) (216) [FOR-] (3) ($RES_SIM_121) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].n.i = -currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].i ($RES_SIM_122) (216) [----] end for; (217) [FOR-] (3) ($RES_SIM_123) (217) [----] for $i1 in 1:3 loop (217) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].p.i = currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].i ($RES_SIM_124) (217) [----] end for; (218) [FOR-] (3) ($RES_SIM_125) (218) [----] for $i1 in 1:3 loop (218) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].p.v = currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].n.v ($RES_SIM_126) (218) [----] end for; (219) [FOR-] (3) ($RES_SIM_127) (219) [----] for $i1 in 1:3 loop (219) [----] [-IF-] (1)if $SEV_0[$i1] then (219) [----] [----] [SCAL] (1) deltaL.plug_n.pin[$i1].v = deltaL.plug_p.pin[$i1 + 1].v ($RES_SIM_129) (219) [----] [----] else (219) [----] [----] [SCAL] (1) deltaL.plug_n.pin[$i1].v = deltaL.plug_p.pin[1].v ($RES_SIM_130) (219) [----] [----] end if; (219) [----] end for; (220) [FOR-] (3) ($RES_SIM_81) (220) [----] for $i1 in 1:3 loop (220) [----] [SCAL] (1) transformer.r1.resistor[$i1].v = transformer.r1.resistor[$i1].R_actual * transformer.r1.resistor[$i1].i ($RES_SIM_82) (220) [----] end for; (221) [FOR-] (3) ($RES_SIM_211) (221) [----] for $i1 in 1:3 loop (221) [----] [SCAL] (1) transformer.internalThermalPort.heatPort2[$i1].Q_flow = 0.0 ($RES_SIM_212) (221) [----] end for; (222) [FOR-] (3) ($RES_SIM_83) (222) [----] for $i1 in 1:3 loop (222) [----] [SCAL] (1) transformer.r1.resistor[$i1].R_actual = transformer.r1.resistor[$i1].R * (1.0 + transformer.r1.resistor[$i1].alpha * (transformer.r1.resistor[$i1].T_heatPort - transformer.r1.resistor[$i1].T_ref)) ($RES_SIM_84) (222) [----] end for; (223) [FOR-] (3) ($RES_SIM_213) (223) [----] for $i1 in 1:3 loop (223) [----] [SCAL] (1) transformer.internalThermalPort.heatPort1[$i1].Q_flow = 0.0 ($RES_SIM_214) (223) [----] end for; (224) [FOR-] (3) ($RES_SIM_89) (224) [----] for $i1 in 1:3 loop (224) [----] [SCAL] (1) starL.plug_p.pin[$i1].v = 0.0 ($RES_SIM_90) (224) [----] end for; (225) [SCAL] (1) transformer.r2.heatPort[1].T = transformer.thermalAmbient.thermalPort.heatPort2[1].T ($RES_SIM_300) (226) [SCAL] (1) transformer.r2.heatPort[1].T = transformer.internalThermalPort.heatPort2[1].T ($RES_SIM_301) (227) [SCAL] (1) (transformer.r1.heatPort[3].Q_flow + transformer.thermalAmbient.thermalPort.heatPort1[3].Q_flow) - transformer.internalThermalPort.heatPort1[3].Q_flow = 0.0 ($RES_SIM_302) (228) [SCAL] (1) (transformer.r1.heatPort[2].Q_flow + transformer.thermalAmbient.thermalPort.heatPort1[2].Q_flow) - transformer.internalThermalPort.heatPort1[2].Q_flow = 0.0 ($RES_SIM_303) (229) [SCAL] (1) (transformer.r1.heatPort[1].Q_flow + transformer.thermalAmbient.thermalPort.heatPort1[1].Q_flow) - transformer.internalThermalPort.heatPort1[1].Q_flow = 0.0 ($RES_SIM_304) (230) [SCAL] (1) transformer.r1.heatPort[3].T = transformer.thermalAmbient.thermalPort.heatPort1[3].T ($RES_SIM_305) (231) [SCAL] (1) transformer.r1.heatPort[3].T = transformer.internalThermalPort.heatPort1[3].T ($RES_SIM_306) (232) [FOR-] (3) ($RES_SIM_131) (232) [----] for $i1 in 1:3 loop (232) [----] [-IF-] (1)if $SEV_0[$i1] then (232) [----] [----] [SCAL] (1) deltaL.plug_n.pin[$i1].i + deltaL.plug_p.pin[$i1 + 1].i = 0.0 ($RES_SIM_133) (232) [----] [----] else (232) [----] [----] [SCAL] (1) deltaL.plug_n.pin[$i1].i + deltaL.plug_p.pin[1].i = 0.0 ($RES_SIM_134) (232) [----] [----] end if; (232) [----] end for; (233) [SCAL] (1) transformer.r1.heatPort[2].T = transformer.thermalAmbient.thermalPort.heatPort1[2].T ($RES_SIM_307) (234) [SCAL] (1) transformer.r1.heatPort[2].T = transformer.internalThermalPort.heatPort1[2].T ($RES_SIM_308) (235) [SCAL] (1) transformer.r1.heatPort[1].T = transformer.thermalAmbient.thermalPort.heatPort1[1].T ($RES_SIM_309) (236) [SCAL] (1) voltageRMSSensorL.ToPolar1.y[2] = if noEvent($SEV_5) then 0.0 else $FUN_15 ($RES_SIM_135) (237) [SCAL] (1) voltageRMSSensorL.ToPolar1.y[1] = $FUN_14 ($RES_SIM_136) (238) [ARRY] (2) voltageRMSSensorL.ToSpacePhasor1.y = voltageRMSSensorL.ToSpacePhasor1.TransformationMatrix * voltageRMSSensorL.ToSpacePhasor1.u ($RES_SIM_137) (239) [SCAL] (1) voltageRMSSensorL.Gain1.y = voltageRMSSensorL.Gain1.k * voltageRMSSensorL.Gain1.u ($RES_SIM_139) (240) [ARRY] (3) load.i = load.plug_p.pin.i ($RES_SIM_91) (241) [ARRY] (3) load.v = load.plug_p.pin.v - load.plug_n.pin.v ($RES_SIM_92) (242) [FOR-] (3) ($RES_SIM_93) (242) [----] for $i1 in 1:3 loop (242) [----] [SCAL] (1) load.resistor[$i1].i = load.resistor[$i1].p.i ($RES_SIM_94) (242) [----] end for; (243) [FOR-] (3) ($RES_SIM_223) (243) [----] for $i1 in 1:3 loop (243) [----] [SCAL] (1) deltaL.plug_p.pin[$i1].i + voltageRMSSensorL.plug_n.pin[$i1].i = 0.0 ($RES_SIM_224) (243) [----] end for; (244) [FOR-] (3) ($RES_SIM_95) (244) [----] for $i1 in 1:3 loop (244) [----] [SCAL] (1) 0.0 = load.resistor[$i1].p.i + load.resistor[$i1].n.i ($RES_SIM_96) (244) [----] end for; (245) [ARRY] (3) deltaL.plug_p.pin.v = voltageRMSSensorL.plug_n.pin.v ($RES_SIM_225) (246) [FOR-] (3) ($RES_SIM_97) (246) [----] for $i1 in 1:3 loop (246) [----] [SCAL] (1) load.resistor[$i1].v = load.resistor[$i1].p.v - load.resistor[$i1].n.v ($RES_SIM_98) (246) [----] end for; (247) [SCAL] (1) voltageQuasiRMSSensorS.plug_p.pin[3].i + currentQuasiRMSSensorS.plug_n.pin[3].i + deltaS.plug_n.pin[3].i + transformer.plug1.pin[3].i = 0.0 ($RES_SIM_226) (248) [SCAL] (1) voltageQuasiRMSSensorS.plug_p.pin[2].i + currentQuasiRMSSensorS.plug_n.pin[2].i + deltaS.plug_n.pin[2].i + transformer.plug1.pin[2].i = 0.0 ($RES_SIM_227) (249) [FOR-] (3) ($RES_SIM_99) (249) [----] for $i1 in 1:3 loop (249) [----] [SCAL] (1) load.resistor[$i1].T_heatPort = load.resistor[$i1].T ($RES_SIM_100) (249) [----] end for; (250) [FOR-] (3) ($RES_EVT_523) (250) [----] for $i1 in 1:3 loop (250) [----] [SCAL] (1) $SEV_0[$i1] = $i1 < 3 ($RES_EVT_524) (250) [----] end for; (251) [SCAL] (1) voltageQuasiRMSSensorS.plug_p.pin[1].i + currentQuasiRMSSensorS.plug_n.pin[1].i + deltaS.plug_n.pin[1].i + transformer.plug1.pin[1].i = 0.0 ($RES_SIM_228) (252) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[3].v = transformer.plug1.pin[3].v ($RES_SIM_229) (253) [FOR-] (3) ($RES_EVT_525) (253) [----] for $i1 in 1:3 loop (253) [----] [SCAL] (1) $SEV_1[$i1] = 1.0 + transformer.r2.resistor[$i1].alpha * (transformer.r2.resistor[$i1].T_heatPort - transformer.r2.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_526) (253) [----] end for; (254) [FOR-] (3) ($RES_EVT_527) (254) [----] for $i1 in 1:3 loop (254) [----] [SCAL] (1) $SEV_2[$i1] = 1.0 + transformer.r1.resistor[$i1].alpha * (transformer.r1.resistor[$i1].T_heatPort - transformer.r1.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_528) (254) [----] end for; (255) [FOR-] (3) ($RES_EVT_529) (255) [----] for $i1 in 1:3 loop (255) [----] [SCAL] (1) $SEV_3[$i1] = 1.0 + load.resistor[$i1].alpha * (load.resistor[$i1].T_heatPort - load.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_530) (255) [----] end for; (256) [SCAL] (1) transformer.r1.heatPort[1].T = transformer.internalThermalPort.heatPort1[1].T ($RES_SIM_310) (257) [FOR-] (3) ($RES_SIM_311) (257) [----] for $i1 in 1:3 loop (257) [----] [SCAL] (1) transformer.r1.plug_n.pin[$i1].i + transformer.l1sigma.plug_p.pin[$i1].i = 0.0 ($RES_SIM_312) (257) [----] end for; (258) [ARRY] (3) transformer.r1.plug_n.pin.v = transformer.l1sigma.plug_p.pin.v ($RES_SIM_313) (259) [FOR-] (3) ($RES_SIM_314) (259) [----] for $i1 in 1:3 loop (259) [----] [SCAL] (1) transformer.core.plug_p2.pin[$i1].i + transformer.star2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_315) (259) [----] end for; (260) [FOR-] (3) ($RES_SIM_140) (260) [----] for $i1 in 1:3 loop (260) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].v = voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].p.v - voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].n.v ($RES_SIM_141) (260) [----] end for; (261) [ARRY] (3) transformer.core.plug_p2.pin.v = transformer.star2.plug_p.pin.v ($RES_SIM_316) (262) [FOR-] (3) ($RES_SIM_317) (262) [----] for $i1 in 1:3 loop (262) [----] [SCAL] (1) transformer.core.plug_n3.pin[$i1].i + transformer.Rot2.plug_n.pin[$i1].i = 0.0 ($RES_SIM_318) (262) [----] end for; (263) [FOR-] (3) ($RES_SIM_142) (263) [----] for $i1 in 1:3 loop (263) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_143) (263) [----] end for; (264) [ARRY] (3) transformer.core.plug_n3.pin.v = transformer.Rot2.plug_n.pin.v ($RES_SIM_319) (265) [FOR-] (3) ($RES_SIM_144) (265) [----] for $i1 in 1:3 loop (265) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_145) (265) [----] end for; (266) [FOR-] (3) ($RES_SIM_400) (266) [----] for $i1 in 1:3 loop (266) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].n.i - currentQuasiRMSSensorL.CurrentSensor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_401) (266) [----] end for; (267) [ARRY] (3) currentQuasiRMSSensorL.CurrentSensor1.currentSensor.n.v = currentQuasiRMSSensorL.CurrentSensor1.plug_n.pin.v ($RES_SIM_402) (268) [FOR-] (3) ($RES_SIM_403) (268) [----] for $i1 in 1:3 loop (268) [----] [SCAL] (1) currentQuasiRMSSensorL.CurrentSensor1.currentSensor[$i1].p.i - currentQuasiRMSSensorL.CurrentSensor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_404) (268) [----] end for; (269) [ARRY] (3) currentQuasiRMSSensorL.CurrentSensor1.plug_p.pin.v = currentQuasiRMSSensorL.CurrentSensor1.currentSensor.p.v ($RES_SIM_405) (270) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[3].v = voltageQuasiRMSSensorS.plug_p.pin[3].v ($RES_SIM_230) (271) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[3].v = deltaS.plug_n.pin[3].v ($RES_SIM_231) (272) [SCAL] (1) voltageRMSSensorL.ToPolar1.y[1] = voltageRMSSensorL.Gain1.u ($RES_SIM_407) (273) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[2].v = transformer.plug1.pin[2].v ($RES_SIM_232) (274) [ARRY] (2) voltageRMSSensorL.ToSpacePhasor1.y = voltageRMSSensorL.ToPolar1.u ($RES_SIM_408) (275) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[2].v = voltageQuasiRMSSensorS.plug_p.pin[2].v ($RES_SIM_233) (276) [ARRY] (3) voltageRMSSensorL.VoltageSensor1.v = voltageRMSSensorL.ToSpacePhasor1.u ($RES_SIM_409) (277) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[2].v = deltaS.plug_n.pin[2].v ($RES_SIM_234) (278) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[1].v = transformer.plug1.pin[1].v ($RES_SIM_235) (279) [SCAL] (1) $SEV_4 = currentQuasiRMSSensorL.ToPolar1.y[1] <= 1e-60 ($RES_EVT_531) (280) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[1].v = voltageQuasiRMSSensorS.plug_p.pin[1].v ($RES_SIM_236) (281) [SCAL] (1) $SEV_5 = voltageRMSSensorL.ToPolar1.y[1] <= 1e-60 ($RES_EVT_532) (282) [SCAL] (1) currentQuasiRMSSensorS.plug_n.pin[1].v = deltaS.plug_n.pin[1].v ($RES_SIM_237) (283) [FOR-] (3) ($RES_SIM_238) (283) [----] for $i1 in 1:3 loop (283) [----] [SCAL] (1) deltaS.plug_p.pin[$i1].i + voltageQuasiRMSSensorS.plug_n.pin[$i1].i = 0.0 ($RES_SIM_239) (283) [----] end for; (284) [SCAL] (1) $SEV_7 = voltageQuasiRMSSensorS.ToPolar1.y[1] <= 1e-60 ($RES_EVT_534) (285) [SCAL] (1) $SEV_8 = currentQuasiRMSSensorS.ToPolar1.y[1] <= 1e-60 ($RES_EVT_535) (286) [FOR-] (3) ($RES_EVT_536) (286) [----] for $i1 in 1:3 loop (286) [----] [SCAL] (1) $SEV_9[$i1] = time < source.sineVoltage[$i1].signalSource.startTime ($RES_EVT_537) (286) [----] end for; (287) [FOR-] (3) ($RES_SIM_320) (287) [----] for $i1 in 1:3 loop (287) [----] [SCAL] (1) transformer.core.plug_n2.pin[$i1].i + transformer.core.plug_p3.pin[$i1].i = 0.0 ($RES_SIM_321) (287) [----] end for; (288) [ARRY] (3) transformer.core.plug_n2.pin.v = transformer.core.plug_p3.pin.v ($RES_SIM_322) (289) [FOR-] (3) ($RES_SIM_323) (289) [----] for $i1 in 1:3 loop (289) [----] [SCAL] (1) transformer.l1sigma.plug_n.pin[$i1].i + transformer.core.plug_p1.pin[$i1].i = 0.0 ($RES_SIM_324) (289) [----] end for; (290) [ARRY] (3) transformer.l1sigma.plug_n.pin.v = transformer.core.plug_p1.pin.v ($RES_SIM_325) (291) [FOR-] (3) ($RES_SIM_326) (291) [----] for $i1 in 1:3 loop (291) [----] [SCAL] (1) transformer.Delta1.plug_n.pin[$i1].i + transformer.core.plug_n1.pin[$i1].i = 0.0 ($RES_SIM_327) (291) [----] end for; (292) [ARRY] (3) transformer.Delta1.plug_n.pin.v = transformer.core.plug_n1.pin.v ($RES_SIM_328) (293) [SCAL] (1) (transformer.r1.plug_p.pin[3].i + transformer.Delta1.plug_p.pin[3].i) - transformer.plug1.pin[3].i = 0.0 ($RES_SIM_329) (294) [FOR-] (3) ($RES_SIM_155) (294) [----] for $i1 in 1:3 loop (294) [----] [-IF-] (1)if $SEV_0[$i1] then (294) [----] [----] [SCAL] (1) deltaS.plug_n.pin[$i1].v = deltaS.plug_p.pin[$i1 + 1].v ($RES_SIM_157) (294) [----] [----] else (294) [----] [----] [SCAL] (1) deltaS.plug_n.pin[$i1].v = deltaS.plug_p.pin[1].v ($RES_SIM_158) (294) [----] [----] end if; (294) [----] end for; (295) [FOR-] (3) ($RES_SIM_410) (295) [----] for $i1 in 1:3 loop (295) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.plug_n.pin[$i1].i - voltageRMSSensorL.plug_n.pin[$i1].i = 0.0 ($RES_SIM_411) (295) [----] end for; (296) [FOR-] (3) ($RES_SIM_159) (296) [----] for $i1 in 1:3 loop (296) [----] [-IF-] (1)if $SEV_0[$i1] then (296) [----] [----] [SCAL] (1) deltaS.plug_n.pin[$i1].i + deltaS.plug_p.pin[$i1 + 1].i = 0.0 ($RES_SIM_161) (296) [----] [----] else (296) [----] [----] [SCAL] (1) deltaS.plug_n.pin[$i1].i + deltaS.plug_p.pin[1].i = 0.0 ($RES_SIM_162) (296) [----] [----] end if; (296) [----] end for; (297) [ARRY] (3) voltageRMSSensorL.VoltageSensor1.plug_n.pin.v = voltageRMSSensorL.plug_n.pin.v ($RES_SIM_412) (298) [FOR-] (3) ($RES_SIM_413) (298) [----] for $i1 in 1:3 loop (298) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.plug_p.pin[$i1].i - voltageRMSSensorL.plug_p.pin[$i1].i = 0.0 ($RES_SIM_414) (298) [----] end for; (299) [ARRY] (3) voltageRMSSensorL.plug_p.pin.v = voltageRMSSensorL.VoltageSensor1.plug_p.pin.v ($RES_SIM_415) (300) [ARRY] (3) deltaS.plug_p.pin.v = voltageQuasiRMSSensorS.plug_n.pin.v ($RES_SIM_240) (301) [ARRY] (3) voltageRMSSensorL.VoltageSensor1.voltageSensor.v = voltageRMSSensorL.VoltageSensor1.v ($RES_SIM_416) (302) [SCAL] (1) voltageRMSSensorL.plug_p.pin[3].i + deltaL.plug_n.pin[3].i + currentQuasiRMSSensorL.plug_p.pin[3].i + transformer.plug2.pin[3].i = 0.0 ($RES_SIM_241) (303) [FOR-] (3) ($RES_SIM_417) (303) [----] for $i1 in 1:3 loop (303) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].p.i - voltageRMSSensorL.VoltageSensor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_418) (303) [----] end for; (304) [SCAL] (1) voltageRMSSensorL.plug_p.pin[2].i + deltaL.plug_n.pin[2].i + currentQuasiRMSSensorL.plug_p.pin[2].i + transformer.plug2.pin[2].i = 0.0 ($RES_SIM_242) (305) [SCAL] (1) voltageRMSSensorL.plug_p.pin[1].i + deltaL.plug_n.pin[1].i + currentQuasiRMSSensorL.plug_p.pin[1].i + transformer.plug2.pin[1].i = 0.0 ($RES_SIM_243) (306) [ARRY] (3) voltageRMSSensorL.VoltageSensor1.voltageSensor.p.v = voltageRMSSensorL.VoltageSensor1.plug_p.pin.v ($RES_SIM_419) (307) [SCAL] (1) deltaL.plug_n.pin[3].v = transformer.plug2.pin[3].v ($RES_SIM_244) (308) [SCAL] (1) deltaL.plug_n.pin[3].v = currentQuasiRMSSensorL.plug_p.pin[3].v ($RES_SIM_245) (309) [SCAL] (1) deltaL.plug_n.pin[3].v = voltageRMSSensorL.plug_p.pin[3].v ($RES_SIM_246) (310) [SCAL] (1) deltaL.plug_n.pin[2].v = transformer.plug2.pin[2].v ($RES_SIM_247) (311) [SCAL] (1) deltaL.plug_n.pin[2].v = currentQuasiRMSSensorL.plug_p.pin[2].v ($RES_SIM_248) (312) [SCAL] (1) deltaL.plug_n.pin[2].v = voltageRMSSensorL.plug_p.pin[2].v ($RES_SIM_249) (313) [SCAL] (1) (transformer.r1.plug_p.pin[2].i + transformer.Delta1.plug_p.pin[2].i) - transformer.plug1.pin[2].i = 0.0 ($RES_SIM_330) (314) [SCAL] (1) (transformer.r1.plug_p.pin[1].i + transformer.Delta1.plug_p.pin[1].i) - transformer.plug1.pin[1].i = 0.0 ($RES_SIM_331) (315) [SCAL] (1) transformer.plug1.pin[3].v = transformer.Delta1.plug_p.pin[3].v ($RES_SIM_332) (316) [SCAL] (1) transformer.plug1.pin[3].v = transformer.r1.plug_p.pin[3].v ($RES_SIM_333) (317) [SCAL] (1) transformer.plug1.pin[2].v = transformer.Delta1.plug_p.pin[2].v ($RES_SIM_334) (318) [SCAL] (1) transformer.plug1.pin[2].v = transformer.r1.plug_p.pin[2].v ($RES_SIM_335) (319) [SCAL] (1) transformer.plug1.pin[1].v = transformer.Delta1.plug_p.pin[1].v ($RES_SIM_336) (320) [SCAL] (1) transformer.plug1.pin[1].v = transformer.r1.plug_p.pin[1].v ($RES_SIM_337) (321) [FOR-] (3) ($RES_SIM_338) (321) [----] for $i1 in 1:3 loop (321) [----] [SCAL] (1) transformer.l2sigma.plug_n.pin[$i1].i + transformer.Rot2.plug_p.pin[$i1].i = 0.0 ($RES_SIM_339) (321) [----] end for; (322) [SCAL] (1) voltageQuasiRMSSensorS.ToPolar1.y[2] = if noEvent($SEV_7) then 0.0 else $FUN_12 ($RES_SIM_163) (323) [SCAL] (1) transformer.powerBalance.lossPowerCore = 0.0 ($RES_BND_463) (324) [SCAL] (1) voltageQuasiRMSSensorS.ToPolar1.y[1] = $FUN_11 ($RES_SIM_164) (325) [SCAL] (1) transformer.powerBalance.lossPower2 = $FUN_30 ($RES_BND_464) (326) [ARRY] (2) voltageQuasiRMSSensorS.ToSpacePhasor1.y = voltageQuasiRMSSensorS.ToSpacePhasor1.TransformationMatrix * voltageQuasiRMSSensorS.ToSpacePhasor1.u ($RES_SIM_165) (327) [SCAL] (1) transformer.powerBalance.lossPower1 = $FUN_29 ($RES_BND_465) (328) [SCAL] (1) transformer.powerBalance.lossPowerTotal = transformer.powerBalance.lossPower2 + transformer.powerBalance.lossPower1 + transformer.powerBalance.lossPowerCore ($RES_BND_466) (329) [SCAL] (1) voltageQuasiRMSSensorS.Gain1.y = voltageQuasiRMSSensorS.Gain1.k * voltageQuasiRMSSensorS.Gain1.u ($RES_SIM_167) (330) [SCAL] (1) transformer.powerBalance.power2 = $FUN_28 ($RES_BND_467) (331) [FOR-] (3) ($RES_SIM_168) (331) [----] for $i1 in 1:3 loop (331) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].v = voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].p.v - voltageQuasiRMSSensorS.VoltageSensor1.voltageSensor[$i1].n.v ($RES_SIM_169) (331) [----] end for; (332) [SCAL] (1) transformer.powerBalance.power1 = $FUN_27 ($RES_BND_468) (333) [FOR-] (3) ($RES_SIM_420) (333) [----] for $i1 in 1:3 loop (333) [----] [SCAL] (1) voltageRMSSensorL.VoltageSensor1.voltageSensor[$i1].n.i - voltageRMSSensorL.VoltageSensor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_421) (333) [----] end for; (334) [ARRY] (3) transformer.v1 = transformer.plug1.pin.v ($RES_BND_469) (335) [ARRY] (3) voltageRMSSensorL.VoltageSensor1.voltageSensor.n.v = voltageRMSSensorL.VoltageSensor1.plug_n.pin.v ($RES_SIM_422) (336) [SCAL] (1) voltageQuasiRMSSensorS.ToPolar1.y[1] = voltageQuasiRMSSensorS.Gain1.u ($RES_SIM_424) (337) [ARRY] (2) voltageQuasiRMSSensorS.ToSpacePhasor1.y = voltageQuasiRMSSensorS.ToPolar1.u ($RES_SIM_425) (338) [SCAL] (1) deltaL.plug_n.pin[1].v = transformer.plug2.pin[1].v ($RES_SIM_250) (339) [ARRY] (3) voltageQuasiRMSSensorS.VoltageSensor1.v = voltageQuasiRMSSensorS.ToSpacePhasor1.u ($RES_SIM_426) (340) [SCAL] (1) deltaL.plug_n.pin[1].v = currentQuasiRMSSensorL.plug_p.pin[1].v ($RES_SIM_251) (341) [FOR-] (3) ($RES_SIM_427) (341) [----] for $i1 in 1:3 loop (341) [----] [SCAL] (1) voltageQuasiRMSSensorS.VoltageSensor1.plug_n.pin[$i1].i - voltageQuasiRMSSensorS.plug_n.pin[$i1].i = 0.0 ($RES_SIM_428) (341) [----] end for; (342) [SCAL] (1) deltaL.plug_n.pin[1].v = voltageRMSSensorL.plug_p.pin[1].v ($RES_SIM_252) (343) [FOR-] (3) ($RES_SIM_253) (343) [----] for $i1 in 1:3 loop (343) [----] [SCAL] (1) electricalPowerSensorL.plug_ni.pin[$i1].i + load.plug_p.pin[$i1].i = 0.0 ($RES_SIM_254) (343) [----] end for;