Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.MultiPhase.Examples.TestSensors.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.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.MultiPhase.Examples.TestSensors") translateModel(Modelica.Electrical.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.MultiPhase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 107.4 kB / 16.42 MB, free: 6.484 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.001226/0.001226, allocations: 187.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.436/1.436, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.071e-05/3.072e-05, allocations: 2.281 kB / 327.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.MultiPhase.Examples.TestSensors): time 0.007158/0.007197, allocations: 5.97 MB / 333.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00393/0.01115, allocations: 1.671 MB / 334.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005315/0.0117, allocations: 43.81 kB / 334.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005935/0.0123, allocations: 297.5 kB / 335.2 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001129/0.01344, allocations: 373.5 kB / 335.5 MB, free: 10.96 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006554/0.0141, allocations: 351.6 kB / 335.9 MB, free: 10.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001989/0.0161, allocations: 2.167 MB / 338 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.01789, allocations: 1.58 MB / 339.6 MB, free: 6.816 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.01896, allocations: 0.8571 MB / 340.5 MB, free: 5.957 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009864/0.01996, allocations: 0.8837 MB / 341.3 MB, free: 5.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002109/0.02018, allocations: 188 kB / 341.5 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005364/0.02072, allocations: 359.6 kB / 341.9 MB, free: 4.535 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001744/0.02248, allocations: 2.248 MB / 344.1 MB, free: 2.266 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.001039/0.02352, allocations: 1.427 MB / 345.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003213/0.02385, allocations: 231.3 kB / 345.8 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002324/0.02409, allocations: 43.75 kB / 345.8 MB, free: 0.5508 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: 578 (330) * Number of variables: 578 (296) Notification: Performance of Bindings: time 0.007355/0.03145, allocations: 7.795 MB / 353.6 MB, free: 8.523 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0005414/0.03201, allocations: 481.2 kB / 354.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of Early Inline: time 0.004635/0.03665, allocations: 4.789 MB / 358.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of simplify1: time 0.0003025/0.03696, allocations: 243.7 kB / 359.1 MB, free: 2.953 MB / 302.1 MB Notification: Performance of Alias: time 0.006481/0.04345, allocations: 5.754 MB / 364.9 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simplify2: time 0.0002069/0.04368, allocations: 155.8 kB / 365 MB, free: 12.61 MB / 318.1 MB Notification: Performance of Events: time 0.0003338/0.04402, allocations: 293 kB / 365.3 MB, free: 12.32 MB / 318.1 MB Notification: Performance of Detect States: time 0.0008313/0.04486, allocations: 0.8607 MB / 366.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001586/0.04646, allocations: 1.397 MB / 367.6 MB, free: 10.02 MB / 318.1 MB Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (189/479) **************************** (1) [ALGB] (3) Real[3] sineVoltage.sineVoltage.signalSource.y (2) [ALGB] (3) flow Real[3] powerSensor.voltageSensor.voltageSensor.p.i (3) [ALGB] (3) Real[3] sineVoltage.sineVoltage.p.v (4) [ALGB] (3) Real[3] resistor.v (5) [ALGB] (3) Real[3] powerSensor.voltageSensor.plug_n.pin.v (6) [DISC] (3) Boolean[3] $SEV_1[$i1] (7) [ALGB] (3) Real[3] resistor.resistor.R_actual (8) [ALGB] (1) Real reactivePowerSensor.powerSensor1.voltageSensor.v (9) [ALGB] (1) Real feedbackV.u1 (10) [ALGB] (1) Real feedbackP.u1 (11) [ALGB] (3) Real[3] voltageQuasiRMSSensor.voltageSensor.plug_p.pin.v (12) [ALGB] (1) Real feedbackP.u2 (13) [ALGB] (3) Real[3] inductor.inductor.n.v (14) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (15) [ALGB] (3) Real[3] voltageQuasiRMSSensor.voltageSensor.voltageSensor.n.v (16) [ALGB] (1) Real aronSensor.powerSensor3.voltageSensor.v (17) [ALGB] (3) flow Real[3] powerSensor.voltageSensor.plug_n.pin.i (18) [ALGB] (3) Real[3] resistor.i (19) [ALGB] (1) Real aronSensor.powerSensor1.currentSensor.i (20) [ALGB] (3) Real[3] currentQuasiRMSSensor.currentSensor.plug_n.pin.v (21) [ALGB] (3) flow Real[3] voltageQuasiRMSSensor.voltageSensor.plug_p.pin.i (22) [ALGB] (3) flow Real[3] inductor.inductor.n.i (23) [ALGB] (3) flow Real[3] voltageQuasiRMSSensor.voltageSensor.voltageSensor.n.i (24) [ALGB] (3) Real[3] powerSensor.nc.pin.v (25) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (26) [ALGB] (3) Real[3] reactivePowerSensor.plugToPins_n.plug_n.pin.v (27) [ALGB] (1) Real reactivePowerSensor.add.u1 (28) [ALGB] (1) Real aronSensor.add.u1 (29) [ALGB] (1) Real reactivePowerSensor.add.u2 (30) [ALGB] (3) Real[3] powerSensorSpacePhasor.plug_ni.pin.v (31) [ALGB] (1) Real aronSensor.add.u2 (32) [ALGB] (1) Real reactivePowerSensor.add.u3 (33) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.currentSensor.plug_n.pin.i (34) [ALGB] (3) flow Real[3] powerSensor.nc.pin.i (35) [ALGB] (3) flow Real[3] sineVoltage.plug_n.pin.i (36) [ALGB] (3) flow Real[3] reactivePowerSensor.plugToPins_n.plug_n.pin.i (37) [ALGB] (3) flow Real[3] powerSensorSpacePhasor.plug_ni.pin.i (38) [ALGB] (3) flow Real[3] powerSensor.currentSensor.plug_n.pin.i (39) [ALGB] (1) Real aronSensor.powerSensor3.currentSensor.n.v (40) [ALGB] (1) Real feedbackI.u1 (41) [DISC] (3) Boolean[3] $SEV_0[$i1] (42) [ALGB] (3) Real[3] powerSensor.currentSensor.plug_n.pin.v (43) [ALGB] (3) Real[3] powerSensor.currentSensor.i (44) [ALGB] (3) flow Real[3] resistor.resistor.n.i (45) [ALGB] (3) Real[3] aronSensor.plugToPins_p.pin_p.v (46) [ALGB] (3) Real[3] voltageQuasiRMSSensor.v (47) [ALGB] (3) Real[3] inductor.inductor.v (48) [ALGB] (3) Real[3] powerSensor.pc.pin.v (49) [ALGB] (3) Real[3] reactivePowerSensor.plug_n.pin.v (50) [ALGB] (3) Real[3] powerSensor.currentSensor.currentSensor.p.v (51) [ALGB] (3) Real[3] aronSensor.plugToPins_p.plug_p.pin.v (52) [ALGB] (1) Real reactivePowerSensor.powerSensor3.currentSensor.i (53) [ALGB] (3) Real[3] resistor.resistor.n.v (54) [ALGB] (1) Real $FUN_7 (55) [ALGB] (1) Real powerSensorSpacePhasor.Q (56) [ALGB] (3) flow Real[3] aronSensor.plugToPins_p.pin_p.i (57) [ALGB] (2) Real[2] $FUN_6 (58) [ALGB] (3) flow Real[3] resistor.plug_p.pin.i (59) [ALGB] (1) Real $FUN_5 (60) [ALGB] (2) Real[2] $FUN_4 (61) [ALGB] (3) Real[3] voltageQuasiRMSSensor.i (62) [ALGB] (3) flow Real[3] powerSensor.pc.pin.i (63) [ALGB] (3) Real[3] $FUN_1 (64) [ALGB] (3) Real[3] inductor.plug_p.pin.v (65) [ALGB] (3) flow Real[3] reactivePowerSensor.plug_n.pin.i (66) [ALGB] (3) flow Real[3] powerSensor.currentSensor.currentSensor.p.i (67) [ALGB] (3) Real[3] currentQuasiRMSSensor.currentSensor.currentSensor.p.v (68) [ALGB] (3) flow Real[3] aronSensor.plug_n.pin.i (69) [ALGB] (3) flow Real[3] aronSensor.plugToPins_p.plug_p.pin.i (70) [ALGB] (1) Real reactivePowerSensor.powerSensor1.currentSensor.i (71) [ALGB] (3) Real[3] resistor.resistor.LossPower (72) [ALGB] (1) Real reactivePowerSensor.powerSensor3.currentSensor.n.v (73) [ALGB] (3) Real[3] resistor.plug_p.pin.v (74) [ALGB] (3) Real[3] currentQuasiRMSSensor.v (75) [ALGB] (3) flow Real[3] voltageQuasiRMSSensor.plug_n.pin.i (76) [ALGB] (3) Real[3] powerSensor.product.y (77) [ALGB] (1) Real feedbackP.y (78) [ALGB] (3) flow Real[3] inductor.plug_p.pin.i (79) [ALGB] (3) Real[3] powerSensor.currentSensor.currentSensor.i (80) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.currentSensor.currentSensor.p.i (81) [ALGB] (3) Real[3] aronSensor.plug_n.pin.v (82) [ALGB] (3) Real[3] resistor.resistor.i (83) [ALGB] (3) Real[3] powerSensor.voltageSensor.voltageSensor.n.v (84) [DER-] (3) Real[3] $DER.inductor.inductor.i (85) [ALGB] (3) Real[3] powerSensor.nv.pin.v (86) [ALGB] (3) Real[3] powerSensor.sum.u (87) [ALGB] (3) Real[3] currentQuasiRMSSensor.i (88) [ALGB] (3) Real[3] voltageQuasiRMSSensor.plug_n.pin.v (89) [ALGB] (3) Real[3] voltageQuasiRMSSensor.voltageSensor.plug_n.pin.v (90) [ALGB] (3) Real[3] resistor.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}) (91) [ALGB] (3) Real[3] sineVoltage.v (92) [ALGB] (3) Real[3] resistor.resistor.v (93) [ALGB] (3) flow Real[3] powerSensor.voltageSensor.voltageSensor.n.i (94) [ALGB] (3) Real[3] currentQuasiRMSSensor.plug_p.pin.v (95) [ALGB] (3) flow Real[3] powerSensor.nv.pin.i (96) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (97) [ALGB] (3) Real[3] aronSensor.plugToPins_n.pin_n.v (98) [ALGB] (3) flow Real[3] voltageQuasiRMSSensor.voltageSensor.plug_n.pin.i (99) [ALGB] (1) Real feedbackSpacePhasor.y (100) [ALGB] (3) Real[3] reactivePowerSensor.plugToPins_p.pin_p.v (101) [ALGB] (3) Real[3] sineVoltage.i (102) [ALGB] (1) Real feedbackSpacePhasor.u1 (103) [ALGB] (3) Real[3] powerSensorSpacePhasor.plug_p.pin.v (104) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.plug_p.pin.i (105) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (106) [ALGB] (3) flow Real[3] aronSensor.plugToPins_n.pin_n.i (107) [ALGB] (3) Real[3] powerSensor.product.u2 (108) [ALGB] (2) protected Real[2] powerSensorSpacePhasor.v_ (109) [ALGB] (3) Real[3] powerSensor.product.u1 (110) [ALGB] (3) flow Real[3] reactivePowerSensor.plugToPins_p.pin_p.i (111) [ALGB] (3) Real[3] voltageQuasiRMSSensor.voltageSensor.voltageSensor.v (112) [ALGB] (3) flow Real[3] powerSensorSpacePhasor.plug_p.pin.i (113) [ALGB] (3) Real[3] inductor.inductor.p.v (114) [ALGB] (3) Real[3] powerSensor.pv.pin.v (115) [ALGB] (3) Real[3] inductor.v (116) [ALGB] (3) flow Real[3] powerSensor.currentSensor.plug_p.pin.i (117) [ALGB] (1) Real reactivePowerSensor.powerSensor2.currentSensor.i (118) [ALGB] (3) Real[3] voltageQuasiRMSSensor.voltageSensor.voltageSensor.p.v (119) [ALGB] (1) Real reactivePowerSensor.powerSensor2.pv.v (120) [ALGB] (1) Real starLoad.pin_n.v (121) [ALGB] (3) Real[3] powerSensorSpacePhasor.plug_nv.pin.v (122) [ALGB] (1) flow Real star.pin_n.i (123) [ALGB] (3) Real[3] powerSensor.voltageSensor.plug_p.pin.v (124) [ALGB] (1) Real feedbackQ.y (125) [ALGB] (3) flow Real[3] inductor.inductor.p.i (126) [ALGB] (3) flow Real[3] powerSensor.pv.pin.i (127) [ALGB] (3) Real[3] inductor.i (128) [ALGB] (3) Real[3] powerSensor.currentSensor.plug_p.pin.v (129) [ALGB] (3) flow Real[3] voltageQuasiRMSSensor.voltageSensor.voltageSensor.p.i (130) [ALGB] (3) Real[3] currentQuasiRMSSensor.quasiRMS.u (131) [ALGB] (3) flow Real[3] powerSensorSpacePhasor.plug_nv.pin.i (132) [ALGB] (1) Real aronSensor.powerSensor1.voltageSensor.n.v (133) [ALGB] (3) flow Real[3] powerSensor.voltageSensor.plug_p.pin.i (134) [ALGB] (3) Real[3] starLoad.plug_p.pin.v (135) [ALGB] (3) Real[3] voltageQuasiRMSSensor.voltageSensor.v (136) [ALGB] (3) Real[3] currentQuasiRMSSensor.currentSensor.currentSensor.i (137) [ALGB] (3) Real[3] aronSensor.plugToPins_n.plug_n.pin.v (138) [ALGB] (1) Real reactivePowerSensor.powerSensor1.voltageSensor.n.v (139) [ALGB] (3) Real[3] powerSensor.voltageSensor.voltageSensor.v (140) [ALGB] (3) Real[3] currentQuasiRMSSensor.currentSensor.plug_p.pin.v (141) [ALGB] (3) Real[3] reactivePowerSensor.plugToPins_n.pin_n.v (142) [ALGB] (1) Real feedbackAron.u1 (143) [ALGB] (1) Real feedbackI.y (144) [ALGB] (3) Real[3] inductor.plug_n.pin.v (145) [ALGB] (3) flow Real[3] starLoad.plug_p.pin.i (146) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (147) [ALGB] (3) Real[3] reactivePowerSensor.plugToPins_p.plug_p.pin.v (148) [ALGB] (3) flow Real[3] resistor.resistor.p.i (149) [ALGB] (3) flow Real[3] aronSensor.plug_p.pin.i (150) [ALGB] (3) flow Real[3] aronSensor.plugToPins_n.plug_n.pin.i (151) [ALGB] (1) Real aronSensor.powerSensor1.currentSensor.n.v (152) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.currentSensor.plug_p.pin.i (153) [ALGB] (3) flow Real[3] reactivePowerSensor.plugToPins_n.pin_n.i (154) [ALGB] (3) Real[3] powerSensor.currentSensor.currentSensor.n.v (155) [ALGB] (3) flow Real[3] voltageQuasiRMSSensor.plug_p.pin.i (156) [ALGB] (1) Real reactivePowerSensor.powerSensor2.voltageSensor.n.v (157) [ALGB] (3) flow Real[3] inductor.plug_n.pin.i (158) [ALGB] (3) Real[3] voltageQuasiRMSSensor.quasiRMS.u (159) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (160) [ALGB] (3) flow Real[3] reactivePowerSensor.plugToPins_p.plug_p.pin.i (161) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (162) [ALGB] (3) Real[3] powerSensor.voltageSensor.v (163) [ALGB] (3) Real[3] resistor.resistor.p.v (164) [ALGB] (3) Real[3] aronSensor.plug_p.pin.v (165) [ALGB] (1) Real reactivePowerSensor.powerSensor1.pv.v (166) [ALGB] (1) Real feedbackV.y (167) [ALGB] (1) Real reactivePowerSensor.powerSensor2.voltageSensor.v (168) [ALGB] (3) flow Real[3] powerSensor.currentSensor.currentSensor.n.i (169) [ALGB] (3) Real[3] voltageQuasiRMSSensor.plug_p.pin.v (170) [ALGB] (3) Real[3] currentQuasiRMSSensor.currentSensor.currentSensor.n.v (171) [ALGB] (1) Real aronSensor.powerSensor3.currentSensor.i (172) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (173) [ALGB] (3) Real[3] currentQuasiRMSSensor.plug_n.pin.v (174) [ALGB] (3) flow Real[3] star.plug_p.pin.i (175) [ALGB] (2) protected Real[2] powerSensorSpacePhasor.i_ (176) [ALGB] (1) Real reactivePowerSensor.powerSensor2.currentSensor.n.v (177) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.currentSensor.currentSensor.n.i (178) [ALGB] (1) Real feedbackQ.u1 (179) [ALGB] (1) Real reactivePowerSensor.powerSensor3.voltageSensor.v (180) [ALGB] (3) Real[3] currentQuasiRMSSensor.currentSensor.i (181) [ALGB] (3) Real[3] reactivePowerSensor.plug_p.pin.v (182) [ALGB] (3) flow Real[3] currentQuasiRMSSensor.plug_n.pin.i (183) [ALGB] (3) Real[3] star.plug_p.pin.v (184) [ALGB] (1) Real feedbackAron.y (185) [ALGB] (3) flow Real[3] resistor.plug_n.pin.i (186) [ALGB] (3) Real[3] powerSensor.voltageSensor.voltageSensor.p.v (187) [ALGB] (1) Real aronSensor.powerSensor1.voltageSensor.v (188) [ALGB] (3) flow Real[3] reactivePowerSensor.plug_p.pin.i (189) [ALGB] (3) Real[3] resistor.plug_n.pin.v System Equations (221/479) **************************** (1) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[2].v = sineVoltage.plug_p.pin[2].v ($RES_SIM_204) (2) [ARRY] (3) currentQuasiRMSSensor.currentSensor.i = currentQuasiRMSSensor.quasiRMS.u ($RES_SIM_363) (3) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[1].v = voltageQuasiRMSSensor.plug_p.pin[1].v ($RES_SIM_205) (4) [FOR-] (3) ($RES_SIM_120) (4) [----] for $i1 in 1:3 loop (4) [----] [SCAL] (1) resistor.resistor[$i1].v = resistor.resistor[$i1].R_actual * resistor.resistor[$i1].i ($RES_SIM_121) (4) [----] end for; (5) [FOR-] (3) ($RES_SIM_80) (5) [----] for $i1 in 1:3 loop (5) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_81) (5) [----] end for; (6) [FOR-] (3) ($RES_SIM_364) (6) [----] for $i1 in 1:3 loop (6) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.plug_n.pin[$i1].i - currentQuasiRMSSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_365) (6) [----] end for; (7) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[1].v = sineVoltage.plug_p.pin[1].v ($RES_SIM_206) (8) [SCAL] (1) star.plug_p.pin[3].i + sineVoltage.plug_n.pin[3].i + voltageQuasiRMSSensor.plug_n.pin[3].i = 0.0 ($RES_SIM_207) (9) [FOR-] (3) ($RES_SIM_122) (9) [----] for $i1 in 1:3 loop (9) [----] [SCAL] (1) resistor.resistor[$i1].R_actual = resistor.resistor[$i1].R * (1.0 + resistor.resistor[$i1].alpha * (resistor.resistor[$i1].T_heatPort - resistor.resistor[$i1].T_ref)) ($RES_SIM_123) (9) [----] end for; (10) [FOR-] (3) ($RES_SIM_82) (10) [----] for $i1 in 1:3 loop (10) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_83) (10) [----] end for; (11) [ARRY] (3) currentQuasiRMSSensor.currentSensor.plug_n.pin.v = currentQuasiRMSSensor.plug_n.pin.v ($RES_SIM_366) (12) [SCAL] (1) star.plug_p.pin[2].i + sineVoltage.plug_n.pin[2].i + voltageQuasiRMSSensor.plug_n.pin[2].i = 0.0 ($RES_SIM_208) (13) [FOR-] (3) ($RES_SIM_367) (13) [----] for $i1 in 1:3 loop (13) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.plug_p.pin[$i1].i - currentQuasiRMSSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_368) (13) [----] end for; (14) [SCAL] (1) star.plug_p.pin[1].i + sineVoltage.plug_n.pin[1].i + voltageQuasiRMSSensor.plug_n.pin[1].i = 0.0 ($RES_SIM_209) (15) [SCAL] (1) feedbackI.y = feedbackI.u1 - constI.k ($RES_SIM_85) (16) [ARRY] (3) currentQuasiRMSSensor.plug_p.pin.v = currentQuasiRMSSensor.currentSensor.plug_p.pin.v ($RES_SIM_369) (17) [SCAL] (1) aronSensor.powerSensor1.voltageSensor.n.v = aronSensor.plugToPins_n.pin_n[2].v ($RES_SIM_284) (18) [ARRY] (3) currentQuasiRMSSensor.i = currentQuasiRMSSensor.plug_p.pin.i ($RES_SIM_86) (19) [ARRY] (3) currentQuasiRMSSensor.v = currentQuasiRMSSensor.plug_p.pin.v - currentQuasiRMSSensor.plug_n.pin.v ($RES_SIM_87) (20) [SCAL] (1) aronSensor.powerSensor1.voltageSensor.n.v = aronSensor.plugToPins_p.pin_p[2].v ($RES_SIM_286) (21) [FOR-] (3) ($RES_SIM_128) (21) [----] for $i1 in 1:3 loop (21) [----] [SCAL] (1) star.plug_p.pin[$i1].v = 0.0 ($RES_SIM_129) (21) [----] end for; (22) [SCAL] (1) feedbackI.u1 = sqrt(sum(0.3333333333333333 .* currentQuasiRMSSensor.quasiRMS.u .^ 2.0)) ($RES_SIM_88) (23) [SCAL] (1) aronSensor.powerSensor3.currentSensor.n.v = aronSensor.plugToPins_n.pin_n[3].v ($RES_SIM_287) (24) [FOR-] (3) ($RES_SIM_89) (24) [----] for $i1 in 1:3 loop (24) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.currentSensor[$i1].n.i = -currentQuasiRMSSensor.currentSensor.currentSensor[$i1].i ($RES_SIM_90) (24) [----] end for; (25) [SCAL] (1) aronSensor.powerSensor3.currentSensor.n.v = aronSensor.plugToPins_p.pin_p[3].v ($RES_SIM_288) (26) [SCAL] (1) feedbackQ.u1 = reactivePowerSensor.add.k2 * reactivePowerSensor.add.u2 + reactivePowerSensor.add.k1 * reactivePowerSensor.add.u1 + reactivePowerSensor.add.k3 * reactivePowerSensor.add.u3 ($RES_SIM_10) (27) [SCAL] (1) reactivePowerSensor.add.u2 = reactivePowerSensor.powerSensor2.voltageSensor.v * reactivePowerSensor.powerSensor2.currentSensor.i ($RES_SIM_11) (28) [SCAL] (1) sineVoltage.plug_n.pin[3].v = voltageQuasiRMSSensor.plug_n.pin[3].v ($RES_SIM_210) (29) [SCAL] (1) sineVoltage.plug_n.pin[3].v = star.plug_p.pin[3].v ($RES_SIM_211) (30) [ARRY] (3) currentQuasiRMSSensor.currentSensor.currentSensor.i = currentQuasiRMSSensor.currentSensor.i ($RES_SIM_370) (31) [SCAL] (1) sineVoltage.plug_n.pin[2].v = voltageQuasiRMSSensor.plug_n.pin[2].v ($RES_SIM_212) (32) [FOR-] (3) ($RES_SIM_371) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.currentSensor[$i1].n.i - currentQuasiRMSSensor.currentSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_372) (32) [----] end for; (33) [SCAL] (1) sineVoltage.plug_n.pin[2].v = star.plug_p.pin[2].v ($RES_SIM_213) (34) [SCAL] (1) reactivePowerSensor.powerSensor2.voltageSensor.v = reactivePowerSensor.powerSensor2.pv.v - reactivePowerSensor.powerSensor2.voltageSensor.n.v ($RES_SIM_15) (35) [SCAL] (1) sineVoltage.plug_n.pin[1].v = voltageQuasiRMSSensor.plug_n.pin[1].v ($RES_SIM_214) (36) [ARRY] (3) currentQuasiRMSSensor.currentSensor.currentSensor.n.v = currentQuasiRMSSensor.currentSensor.plug_n.pin.v ($RES_SIM_373) (37) [SCAL] (1) sineVoltage.plug_n.pin[1].v = star.plug_p.pin[1].v ($RES_SIM_215) (38) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_130) (39) [FOR-] (3) ($RES_SIM_374) (39) [----] for $i1 in 1:3 loop (39) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.currentSensor[$i1].p.i - currentQuasiRMSSensor.currentSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_375) (39) [----] end for; (40) [SCAL] (1) powerSensor.nv.pin[3].i + powerSensorSpacePhasor.plug_nv.pin[3].i + starLoad.plug_p.pin[3].i + inductor.plug_n.pin[3].i = 0.0 ($RES_SIM_216) (41) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_131) (42) [FOR-] (3) ($RES_SIM_91) (42) [----] for $i1 in 1:3 loop (42) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.currentSensor[$i1].p.i = currentQuasiRMSSensor.currentSensor.currentSensor[$i1].i ($RES_SIM_92) (42) [----] end for; (43) [SCAL] (1) reactivePowerSensor.add.u1 = reactivePowerSensor.powerSensor1.voltageSensor.v * reactivePowerSensor.powerSensor1.currentSensor.i ($RES_SIM_18) (44) [SCAL] (1) aronSensor.powerSensor1.currentSensor.n.v = aronSensor.plugToPins_n.pin_n[1].v ($RES_SIM_290) (45) [SCAL] (1) powerSensor.nv.pin[2].i + powerSensorSpacePhasor.plug_nv.pin[2].i + starLoad.plug_p.pin[2].i + inductor.plug_n.pin[2].i = 0.0 ($RES_SIM_217) (46) [FOR-] (3) ($RES_SIM_132) (46) [----] for $i1 in 1:3 loop (46) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_133) (46) [----] end for; (47) [ARRY] (3) currentQuasiRMSSensor.currentSensor.plug_p.pin.v = currentQuasiRMSSensor.currentSensor.currentSensor.p.v ($RES_SIM_376) (48) [SCAL] (1) aronSensor.powerSensor1.currentSensor.n.v = aronSensor.plugToPins_p.pin_p[1].v ($RES_SIM_291) (49) [SCAL] (1) powerSensor.nv.pin[1].i + powerSensorSpacePhasor.plug_nv.pin[1].i + starLoad.plug_p.pin[1].i + inductor.plug_n.pin[1].i = 0.0 ($RES_SIM_218) (50) [FOR-] (3) ($RES_SIM_93) (50) [----] for $i1 in 1:3 loop (50) [----] [SCAL] (1) currentQuasiRMSSensor.currentSensor.currentSensor[$i1].p.v = currentQuasiRMSSensor.currentSensor.currentSensor[$i1].n.v ($RES_SIM_94) (50) [----] end for; (51) [FOR-] (3) ($RES_SIM_377) (51) [----] for $i1 in 1:3 loop (51) [----] [SCAL] (1) inductor.inductor[$i1].n.i - inductor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_378) (51) [----] end for; (52) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[3].v = inductor.plug_n.pin[3].v ($RES_SIM_219) (53) [FOR-] (3) ($RES_SIM_134) (53) [----] for $i1 in 1:3 loop (53) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_135) (53) [----] end for; (54) [FOR-] (3) ($RES_SIM_293) (54) [----] for $i1 in 1:3 loop (54) [----] [SCAL] (1) aronSensor.plugToPins_n.plug_n.pin[$i1].i - aronSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_294) (54) [----] end for; (55) [ARRY] (3) inductor.inductor.n.v = inductor.plug_n.pin.v ($RES_SIM_379) (56) [FOR-] (3) ($RES_SIM_136) (56) [----] for $i1 in 1:3 loop (56) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_137) (56) [----] end for; (57) [FOR-] (3) ($RES_SIM_96) (57) [----] for $i1 in 1:3 loop (57) [----] [SCAL] (1) starLoad.plug_p.pin[$i1].v = starLoad.pin_n.v ($RES_SIM_97) (57) [----] end for; (58) [ARRY] (3) aronSensor.plugToPins_n.plug_n.pin.v = aronSensor.plug_n.pin.v ($RES_SIM_295) (59) [FOR-] (3) ($RES_SIM_296) (59) [----] for $i1 in 1:3 loop (59) [----] [SCAL] (1) aronSensor.plugToPins_p.plug_p.pin[$i1].i - aronSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_297) (59) [----] end for; (60) [FOR-] (3) ($RES_SIM_138) (60) [----] for $i1 in 1:3 loop (60) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_139) (60) [----] end for; (61) [ARRY] (3) inductor.i = inductor.plug_p.pin.i ($RES_SIM_98) (62) [ARRY] (3) inductor.v = inductor.plug_p.pin.v - inductor.plug_n.pin.v ($RES_SIM_99) (63) [ARRY] (3) aronSensor.plug_p.pin.v = aronSensor.plugToPins_p.plug_p.pin.v ($RES_SIM_298) (64) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[3].v = powerSensor.nv.pin[3].v ($RES_SIM_220) (65) [SCAL] (1) reactivePowerSensor.powerSensor1.voltageSensor.v = reactivePowerSensor.powerSensor1.pv.v - reactivePowerSensor.powerSensor1.voltageSensor.n.v ($RES_SIM_22) (66) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[3].v = starLoad.plug_p.pin[3].v ($RES_SIM_221) (67) [FOR-] (3) ($RES_SIM_380) (67) [----] for $i1 in 1:3 loop (67) [----] [SCAL] (1) inductor.inductor[$i1].p.i - inductor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_381) (67) [----] end for; (68) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[2].v = inductor.plug_n.pin[2].v ($RES_SIM_222) (69) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[2].v = powerSensor.nv.pin[2].v ($RES_SIM_223) (70) [ARRY] (3) reactivePowerSensor.plugToPins_n.plug_n.pin.i = -reactivePowerSensor.plugToPins_n.pin_n.i ($RES_SIM_25) (71) [ARRY] (3) inductor.inductor.p.v = inductor.plug_p.pin.v ($RES_SIM_382) (72) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[2].v = starLoad.plug_p.pin[2].v ($RES_SIM_224) (73) [ARRY] (3) reactivePowerSensor.plugToPins_n.pin_n.v = reactivePowerSensor.plugToPins_n.plug_n.pin.v ($RES_SIM_26) (74) [FOR-] (3) ($RES_SIM_383) (74) [----] for $i1 in 1:3 loop (74) [----] [SCAL] (1) resistor.resistor[$i1].n.i - resistor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_384) (74) [----] end for; (75) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[1].v = inductor.plug_n.pin[1].v ($RES_SIM_225) (76) [FOR-] (3) ($RES_SIM_140) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].signalSource.y = sineVoltage.sineVoltage[$i1].signalSource.offset + (if $SEV_1[$i1] then 0.0 else sineVoltage.sineVoltage[$i1].signalSource.amplitude * $FUN_1[$i1]) ($RES_SIM_141) (76) [----] end for; (77) [ARRY] (3) reactivePowerSensor.plugToPins_p.plug_p.pin.i = -reactivePowerSensor.plugToPins_p.pin_p.i ($RES_SIM_27) (78) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[1].v = powerSensor.nv.pin[1].v ($RES_SIM_226) (79) [ARRY] (3) reactivePowerSensor.plugToPins_p.pin_p.v = reactivePowerSensor.plugToPins_p.plug_p.pin.v ($RES_SIM_28) (80) [ARRY] (3) resistor.resistor.n.v = resistor.plug_n.pin.v ($RES_SIM_385) (81) [SCAL] (1) powerSensorSpacePhasor.plug_nv.pin[1].v = starLoad.plug_p.pin[1].v ($RES_SIM_227) (82) [SCAL] (1) feedbackAron.y = feedbackAron.u1 - feedbackP.u2 ($RES_SIM_29) (83) [FOR-] (3) ($RES_SIM_386) (83) [----] for $i1 in 1:3 loop (83) [----] [SCAL] (1) resistor.resistor[$i1].p.i - resistor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_387) (83) [----] end for; (84) [FOR-] (3) ($RES_SIM_228) (84) [----] for $i1 in 1:3 loop (84) [----] [SCAL] (1) resistor.plug_n.pin[$i1].i + inductor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_229) (84) [----] end for; (85) [SCAL] (1) reactivePowerSensor.plugToPins_n.pin_n[3].i - reactivePowerSensor.powerSensor3.currentSensor.i = 0.0 ($RES_SIM_144) (86) [ARRY] (3) resistor.resistor.p.v = resistor.plug_p.pin.v ($RES_SIM_388) (87) [FOR-] (3) ($RES_SIM_389) (87) [----] for $i1 in 1:3 loop (87) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_390) (87) [----] end for; (88) [SCAL] (1) reactivePowerSensor.plugToPins_n.pin_n[1].i - reactivePowerSensor.powerSensor1.currentSensor.i = 0.0 ($RES_SIM_147) (89) [SCAL] (1) reactivePowerSensor.powerSensor3.currentSensor.i + reactivePowerSensor.plugToPins_p.pin_p[3].i = 0.0 ($RES_SIM_148) (90) [SCAL] (1) reactivePowerSensor.plugToPins_n.pin_n[2].i - reactivePowerSensor.powerSensor2.currentSensor.i = 0.0 ($RES_SIM_149) (91) [SCAL] (1) feedbackAron.u1 = aronSensor.add.k1 * aronSensor.add.u1 + aronSensor.add.k2 * aronSensor.add.u2 ($RES_SIM_30) (92) [SCAL] (1) aronSensor.add.u1 = aronSensor.powerSensor3.voltageSensor.v * aronSensor.powerSensor3.currentSensor.i ($RES_SIM_31) (93) [ARRY] (3) resistor.plug_n.pin.v = inductor.plug_p.pin.v ($RES_SIM_230) (94) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_391) (95) [ARRY] (3) powerSensor.product.y = powerSensor.sum.u ($RES_SIM_318) (96) [SCAL] (1) aronSensor.powerSensor3.voltageSensor.v = aronSensor.powerSensor3.currentSensor.n.v - aronSensor.powerSensor1.voltageSensor.n.v ($RES_SIM_35) (97) [FOR-] (3) ($RES_SIM_392) (97) [----] for $i1 in 1:3 loop (97) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_393) (97) [----] end for; (98) [ARRY] (3) powerSensor.currentSensor.i = powerSensor.product.u2 ($RES_SIM_319) (99) [SCAL] (1) reactivePowerSensor.powerSensor3.currentSensor.n.v = reactivePowerSensor.plugToPins_n.pin_n[3].v ($RES_SIM_235) (100) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_394) (101) [SCAL] (1) reactivePowerSensor.powerSensor2.voltageSensor.n.v = reactivePowerSensor.plugToPins_n.pin_n[1].v ($RES_SIM_236) (102) [SCAL] (1) aronSensor.add.u2 = aronSensor.powerSensor1.voltageSensor.v * aronSensor.powerSensor1.currentSensor.i ($RES_SIM_38) (103) [SCAL] (1) reactivePowerSensor.powerSensor2.currentSensor.i + reactivePowerSensor.plugToPins_p.pin_p[2].i = 0.0 ($RES_SIM_152) (104) [SCAL] (1) reactivePowerSensor.powerSensor1.currentSensor.i + reactivePowerSensor.plugToPins_p.pin_p[1].i = 0.0 ($RES_SIM_153) (105) [SCAL] (1) aronSensor.plugToPins_n.pin_n[3].i - aronSensor.powerSensor3.currentSensor.i = 0.0 ($RES_SIM_156) (106) [FOR-] (3) ($RES_EVT_402) (106) [----] for $i1 in 1:3 loop (106) [----] [SCAL] (1) $SEV_0[$i1] = 1.0 + resistor.resistor[$i1].alpha * (resistor.resistor[$i1].T_heatPort - resistor.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_403) (106) [----] end for; (107) [FOR-] (3) ($RES_EVT_404) (107) [----] for $i1 in 1:3 loop (107) [----] [SCAL] (1) $SEV_1[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_405) (107) [----] end for; (108) [SCAL] (1) aronSensor.plugToPins_n.pin_n[2].i + aronSensor.plugToPins_p.pin_p[2].i = 0.0 ($RES_SIM_159) (109) [ARRY] (3) powerSensor.voltageSensor.v = powerSensor.product.u1 ($RES_SIM_320) (110) [FOR-] (3) ($RES_SIM_321) (110) [----] for $i1 in 1:3 loop (110) [----] [SCAL] (1) powerSensor.voltageSensor.plug_n.pin[$i1].i - powerSensor.nv.pin[$i1].i = 0.0 ($RES_SIM_322) (110) [----] end for; (111) [ARRY] (3) powerSensor.voltageSensor.plug_n.pin.v = powerSensor.nv.pin.v ($RES_SIM_323) (112) [FOR-] (3) ($RES_SIM_324) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) powerSensor.voltageSensor.plug_p.pin[$i1].i - powerSensor.pv.pin[$i1].i = 0.0 ($RES_SIM_325) (112) [----] end for; (113) [SCAL] (1) reactivePowerSensor.powerSensor2.currentSensor.n.v = reactivePowerSensor.plugToPins_n.pin_n[2].v ($RES_SIM_240) (114) [SCAL] (1) aronSensor.powerSensor1.voltageSensor.v = aronSensor.powerSensor1.currentSensor.n.v - aronSensor.powerSensor1.voltageSensor.n.v ($RES_SIM_42) (115) [ARRY] (3) powerSensor.voltageSensor.plug_p.pin.v = powerSensor.pv.pin.v ($RES_SIM_326) (116) [SCAL] (1) reactivePowerSensor.plugToPins_p.pin_p[3].v = reactivePowerSensor.powerSensor1.voltageSensor.n.v ($RES_SIM_241) (117) [FOR-] (3) ($RES_SIM_327) (117) [----] for $i1 in 1:3 loop (117) [----] [SCAL] (1) powerSensor.currentSensor.plug_n.pin[$i1].i - powerSensor.nc.pin[$i1].i = 0.0 ($RES_SIM_328) (117) [----] end for; (118) [SCAL] (1) reactivePowerSensor.plugToPins_p.pin_p[3].v = reactivePowerSensor.powerSensor2.pv.v ($RES_SIM_242) (119) [SCAL] (1) reactivePowerSensor.plugToPins_p.pin_p[3].v = reactivePowerSensor.powerSensor3.currentSensor.n.v ($RES_SIM_243) (120) [ARRY] (3) aronSensor.plugToPins_n.plug_n.pin.i = -aronSensor.plugToPins_n.pin_n.i ($RES_SIM_45) (121) [ARRY] (3) powerSensor.currentSensor.plug_n.pin.v = powerSensor.nc.pin.v ($RES_SIM_329) (122) [SCAL] (1) reactivePowerSensor.plugToPins_p.pin_p[2].v = reactivePowerSensor.powerSensor1.pv.v ($RES_SIM_244) (123) [ARRY] (3) aronSensor.plugToPins_n.pin_n.v = aronSensor.plugToPins_n.plug_n.pin.v ($RES_SIM_46) (124) [SCAL] (1) reactivePowerSensor.plugToPins_p.pin_p[2].v = reactivePowerSensor.powerSensor2.currentSensor.n.v ($RES_SIM_245) (125) [SCAL] (1) aronSensor.plugToPins_n.pin_n[1].i - aronSensor.powerSensor1.currentSensor.i = 0.0 ($RES_SIM_160) (126) [ARRY] (3) aronSensor.plugToPins_p.plug_p.pin.i = -aronSensor.plugToPins_p.pin_p.i ($RES_SIM_47) (127) [SCAL] (1) reactivePowerSensor.plugToPins_p.pin_p[1].v = reactivePowerSensor.powerSensor2.voltageSensor.n.v ($RES_SIM_246) (128) [SCAL] (1) aronSensor.powerSensor3.currentSensor.i + aronSensor.plugToPins_p.pin_p[3].i = 0.0 ($RES_SIM_161) (129) [ARRY] (3) aronSensor.plugToPins_p.pin_p.v = aronSensor.plugToPins_p.plug_p.pin.v ($RES_SIM_48) (130) [SCAL] (1) aronSensor.powerSensor1.currentSensor.i + aronSensor.plugToPins_p.pin_p[1].i = 0.0 ($RES_SIM_162) (131) [SCAL] (1) feedbackSpacePhasor.y = feedbackSpacePhasor.u1 - feedbackP.u2 ($RES_SIM_49) (132) [FOR-] (3) ($RES_SIM_248) (132) [----] for $i1 in 1:3 loop (132) [----] [SCAL] (1) reactivePowerSensor.plugToPins_n.plug_n.pin[$i1].i - reactivePowerSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_249) (132) [----] end for; (133) [FOR-] (3) ($RES_SIM_169) (133) [----] for $i1 in 1:3 loop (133) [----] [SCAL] (1) reactivePowerSensor.plug_n.pin[$i1].i + aronSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_170) (133) [----] end for; (134) [FOR-] (3) ($RES_$AUX_400) (134) [----] for $i1 in 1:3 loop (134) [----] [SCAL] (1) $FUN_1[$i1] = sin(sineVoltage.sineVoltage[$i1].signalSource.freqHz * 6.283185307179586 * (time - sineVoltage.sineVoltage[$i1].signalSource.startTime) + sineVoltage.sineVoltage[$i1].signalSource.phase) ($RES_$AUX_401) (134) [----] end for; (135) [FOR-] (3) ($RES_SIM_330) (135) [----] for $i1 in 1:3 loop (135) [----] [SCAL] (1) powerSensor.currentSensor.plug_p.pin[$i1].i - powerSensor.pc.pin[$i1].i = 0.0 ($RES_SIM_331) (135) [----] end for; (136) [ARRY] (3) powerSensor.pc.pin.v = powerSensor.currentSensor.plug_p.pin.v ($RES_SIM_332) (137) [ARRY] (3) powerSensor.currentSensor.currentSensor.i = powerSensor.currentSensor.i ($RES_SIM_333) (138) [SCAL] (1) 0.6666666666666666 * powerSensorSpacePhasor.Q = powerSensorSpacePhasor.v_[2] * powerSensorSpacePhasor.i_[1] - powerSensorSpacePhasor.v_[1] * powerSensorSpacePhasor.i_[2] ($RES_SIM_50) (139) [FOR-] (3) ($RES_SIM_334) (139) [----] for $i1 in 1:3 loop (139) [----] [SCAL] (1) powerSensor.currentSensor.currentSensor[$i1].n.i - powerSensor.currentSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_335) (139) [----] end for; (140) [SCAL] (1) 0.6666666666666666 * feedbackSpacePhasor.u1 = powerSensorSpacePhasor.v_[1] * powerSensorSpacePhasor.i_[1] + powerSensorSpacePhasor.v_[2] * powerSensorSpacePhasor.i_[2] ($RES_SIM_51) (141) [ARRY] (3) reactivePowerSensor.plugToPins_n.plug_n.pin.v = reactivePowerSensor.plug_n.pin.v ($RES_SIM_250) (142) [ARRY] (2) powerSensorSpacePhasor.i_ = $FUN_6 ($RES_SIM_52) (143) [ARRY] (3) powerSensor.currentSensor.currentSensor.n.v = powerSensor.currentSensor.plug_n.pin.v ($RES_SIM_336) (144) [FOR-] (3) ($RES_SIM_251) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) reactivePowerSensor.plugToPins_p.plug_p.pin[$i1].i - reactivePowerSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_252) (144) [----] end for; (145) [ARRY] (2) powerSensorSpacePhasor.v_ = $FUN_4 ($RES_SIM_53) (146) [FOR-] (3) ($RES_SIM_337) (146) [----] for $i1 in 1:3 loop (146) [----] [SCAL] (1) powerSensor.currentSensor.currentSensor[$i1].p.i - powerSensor.currentSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_338) (146) [----] end for; (147) [ARRY] (3) powerSensorSpacePhasor.plug_nv.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_54) (148) [ARRY] (3) reactivePowerSensor.plug_p.pin.v = reactivePowerSensor.plugToPins_p.plug_p.pin.v ($RES_SIM_253) (149) [ARRY] (3) powerSensorSpacePhasor.plug_p.pin.i + powerSensorSpacePhasor.plug_ni.pin.i = {0.0 for $i1 in 1:3} ($RES_SIM_55) (150) [ARRY] (3) powerSensor.currentSensor.plug_p.pin.v = powerSensor.currentSensor.currentSensor.p.v ($RES_SIM_339) (151) [ARRY] (3) powerSensorSpacePhasor.plug_p.pin.v = powerSensorSpacePhasor.plug_ni.pin.v ($RES_SIM_56) (152) [SCAL] (1) reactivePowerSensor.powerSensor3.voltageSensor.v = reactivePowerSensor.powerSensor2.voltageSensor.n.v - reactivePowerSensor.powerSensor2.currentSensor.n.v ($RES_SIM_7) (153) [SCAL] (1) feedbackP.y = feedbackP.u1 - feedbackP.u2 ($RES_SIM_57) (154) [SCAL] (1) -star.pin_n.i = sum(star.plug_p.pin.i) ($RES_$AUX_399) (155) [ARRY] (3) reactivePowerSensor.plug_n.pin.v = aronSensor.plug_p.pin.v ($RES_SIM_171) (156) [SCAL] (1) feedbackP.u1 = powerSensor.sum.k * powerSensor.sum.u ($RES_SIM_58) (157) [SCAL] (1) 0.0 = sum(starLoad.plug_p.pin.i) ($RES_$AUX_398) (158) [FOR-] (3) ($RES_SIM_172) (158) [----] for $i1 in 1:3 loop (158) [----] [SCAL] (1) powerSensorSpacePhasor.plug_ni.pin[$i1].i + reactivePowerSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_173) (158) [----] end for; (159) [FOR-] (3) ($RES_SIM_59) (159) [----] for $i1 in 1:3 loop (159) [----] [SCAL] (1) powerSensor.product[$i1].y = powerSensor.product[$i1].u1 * powerSensor.product[$i1].u2 ($RES_SIM_60) (159) [----] end for; (160) [TUPL] (3) ($FUN_4, $FUN_5) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(powerSensorSpacePhasor.plug_p.pin.v - powerSensorSpacePhasor.plug_nv.pin.v) ($RES_$AUX_397) (161) [SCAL] (1) reactivePowerSensor.add.u3 = reactivePowerSensor.powerSensor3.voltageSensor.v * reactivePowerSensor.powerSensor3.currentSensor.i ($RES_SIM_3) (162) [TUPL] (3) ($FUN_6, $FUN_7) = Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(powerSensorSpacePhasor.plug_p.pin.i) ($RES_$AUX_396) (163) [ARRY] (3) powerSensorSpacePhasor.plug_ni.pin.v = reactivePowerSensor.plug_p.pin.v ($RES_SIM_174) (164) [SCAL] (1) feedbackQ.y = feedbackQ.u1 - powerSensorSpacePhasor.Q ($RES_SIM_2) (165) [FOR-] (3) ($RES_SIM_175) (165) [----] for $i1 in 1:3 loop (165) [----] [SCAL] (1) powerSensorSpacePhasor.plug_p.pin[$i1].i + currentQuasiRMSSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_176) (165) [----] end for; (166) [ARRY] (3) powerSensorSpacePhasor.plug_p.pin.v = currentQuasiRMSSensor.plug_n.pin.v ($RES_SIM_177) (167) [ARRY] (3) powerSensor.voltageSensor.voltageSensor.v = powerSensor.voltageSensor.v ($RES_SIM_340) (168) [FOR-] (3) ($RES_SIM_341) (168) [----] for $i1 in 1:3 loop (168) [----] [SCAL] (1) powerSensor.voltageSensor.voltageSensor[$i1].p.i - powerSensor.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_342) (168) [----] end for; (169) [ARRY] (3) powerSensor.voltageSensor.voltageSensor.p.v = powerSensor.voltageSensor.plug_p.pin.v ($RES_SIM_343) (170) [FOR-] (3) ($RES_SIM_100) (170) [----] for $i1 in 1:3 loop (170) [----] [SCAL] (1) inductor.inductor[$i1].i = inductor.inductor[$i1].p.i ($RES_SIM_101) (170) [----] end for; (171) [FOR-] (3) ($RES_SIM_344) (171) [----] for $i1 in 1:3 loop (171) [----] [SCAL] (1) powerSensor.voltageSensor.voltageSensor[$i1].n.i - powerSensor.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_345) (171) [----] end for; (172) [FOR-] (3) ($RES_SIM_61) (172) [----] for $i1 in 1:3 loop (172) [----] [SCAL] (1) powerSensor.currentSensor.currentSensor[$i1].n.i = -powerSensor.currentSensor.currentSensor[$i1].i ($RES_SIM_62) (172) [----] end for; (173) [SCAL] (1) feedbackP.u2 = sum(voltageQuasiRMSSensor.v * currentQuasiRMSSensor.i) ($RES_BND_395) (174) [FOR-] (3) ($RES_SIM_102) (174) [----] for $i1 in 1:3 loop (174) [----] [SCAL] (1) 0.0 = inductor.inductor[$i1].p.i + inductor.inductor[$i1].n.i ($RES_SIM_103) (174) [----] end for; (175) [ARRY] (3) powerSensor.voltageSensor.voltageSensor.n.v = powerSensor.voltageSensor.plug_n.pin.v ($RES_SIM_346) (176) [FOR-] (3) ($RES_SIM_63) (176) [----] for $i1 in 1:3 loop (176) [----] [SCAL] (1) powerSensor.currentSensor.currentSensor[$i1].p.i = powerSensor.currentSensor.currentSensor[$i1].i ($RES_SIM_64) (176) [----] end for; (177) [FOR-] (3) ($RES_SIM_104) (177) [----] for $i1 in 1:3 loop (177) [----] [SCAL] (1) inductor.inductor[$i1].v = inductor.inductor[$i1].p.v - inductor.inductor[$i1].n.v ($RES_SIM_105) (177) [----] end for; (178) [ARRY] (3) voltageQuasiRMSSensor.voltageSensor.v = voltageQuasiRMSSensor.quasiRMS.u ($RES_SIM_348) (179) [FOR-] (3) ($RES_SIM_65) (179) [----] for $i1 in 1:3 loop (179) [----] [SCAL] (1) powerSensor.currentSensor.currentSensor[$i1].p.v = powerSensor.currentSensor.currentSensor[$i1].n.v ($RES_SIM_66) (179) [----] end for; (180) [FOR-] (3) ($RES_SIM_349) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.plug_n.pin[$i1].i - voltageQuasiRMSSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_350) (180) [----] end for; (181) [FOR-] (3) ($RES_SIM_106) (181) [----] for $i1 in 1:3 loop (181) [----] [SCAL] (1) inductor.inductor[$i1].L * $DER.inductor.inductor[$i1].i = inductor.inductor[$i1].v ($RES_SIM_107) (181) [----] end for; (182) [FOR-] (3) ($RES_SIM_67) (182) [----] for $i1 in 1:3 loop (182) [----] [SCAL] (1) powerSensor.voltageSensor.voltageSensor[$i1].v = powerSensor.voltageSensor.voltageSensor[$i1].p.v - powerSensor.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_68) (182) [----] end for; (183) [ARRY] (3) resistor.i = resistor.plug_p.pin.i ($RES_SIM_108) (184) [ARRY] (3) resistor.v = resistor.plug_p.pin.v - resistor.plug_n.pin.v ($RES_SIM_109) (185) [FOR-] (3) ($RES_SIM_69) (185) [----] for $i1 in 1:3 loop (185) [----] [SCAL] (1) powerSensor.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_70) (185) [----] end for; (186) [SCAL] (1) aronSensor.plug_n.pin[3].i + powerSensor.pc.pin[3].i + powerSensor.pv.pin[3].i = 0.0 ($RES_SIM_184) (187) [SCAL] (1) aronSensor.plug_n.pin[2].i + powerSensor.pc.pin[2].i + powerSensor.pv.pin[2].i = 0.0 ($RES_SIM_185) (188) [SCAL] (1) aronSensor.plug_n.pin[1].i + powerSensor.pc.pin[1].i + powerSensor.pv.pin[1].i = 0.0 ($RES_SIM_186) (189) [SCAL] (1) aronSensor.plug_n.pin[3].v = powerSensor.pv.pin[3].v ($RES_SIM_187) (190) [SCAL] (1) aronSensor.plug_n.pin[3].v = powerSensor.pc.pin[3].v ($RES_SIM_188) (191) [SCAL] (1) aronSensor.plug_n.pin[2].v = powerSensor.pv.pin[2].v ($RES_SIM_189) (192) [ARRY] (3) voltageQuasiRMSSensor.voltageSensor.plug_n.pin.v = voltageQuasiRMSSensor.plug_n.pin.v ($RES_SIM_351) (193) [FOR-] (3) ($RES_SIM_352) (193) [----] for $i1 in 1:3 loop (193) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.plug_p.pin[$i1].i - voltageQuasiRMSSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_353) (193) [----] end for; (194) [FOR-] (3) ($RES_SIM_110) (194) [----] for $i1 in 1:3 loop (194) [----] [SCAL] (1) resistor.resistor[$i1].i = resistor.resistor[$i1].p.i ($RES_SIM_111) (194) [----] end for; (195) [ARRY] (3) voltageQuasiRMSSensor.plug_p.pin.v = voltageQuasiRMSSensor.voltageSensor.plug_p.pin.v ($RES_SIM_354) (196) [FOR-] (3) ($RES_SIM_71) (196) [----] for $i1 in 1:3 loop (196) [----] [SCAL] (1) powerSensor.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_72) (196) [----] end for; (197) [ARRY] (3) voltageQuasiRMSSensor.voltageSensor.voltageSensor.v = voltageQuasiRMSSensor.voltageSensor.v ($RES_SIM_355) (198) [FOR-] (3) ($RES_SIM_112) (198) [----] for $i1 in 1:3 loop (198) [----] [SCAL] (1) 0.0 = resistor.resistor[$i1].p.i + resistor.resistor[$i1].n.i ($RES_SIM_113) (198) [----] end for; (199) [FOR-] (3) ($RES_SIM_356) (199) [----] for $i1 in 1:3 loop (199) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].p.i - voltageQuasiRMSSensor.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_357) (199) [----] end for; (200) [FOR-] (3) ($RES_SIM_114) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) resistor.resistor[$i1].v = resistor.resistor[$i1].p.v - resistor.resistor[$i1].n.v ($RES_SIM_115) (200) [----] end for; (201) [SCAL] (1) feedbackV.y = feedbackV.u1 - constV.k ($RES_SIM_74) (202) [ARRY] (3) voltageQuasiRMSSensor.voltageSensor.voltageSensor.p.v = voltageQuasiRMSSensor.voltageSensor.plug_p.pin.v ($RES_SIM_358) (203) [ARRY] (3) voltageQuasiRMSSensor.i = voltageQuasiRMSSensor.plug_p.pin.i ($RES_SIM_75) (204) [FOR-] (3) ($RES_SIM_359) (204) [----] for $i1 in 1:3 loop (204) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].n.i - voltageQuasiRMSSensor.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_360) (204) [----] end for; (205) [FOR-] (3) ($RES_SIM_116) (205) [----] for $i1 in 1:3 loop (205) [----] [SCAL] (1) resistor.resistor[$i1].T_heatPort = resistor.resistor[$i1].T ($RES_SIM_117) (205) [----] end for; (206) [ARRY] (3) voltageQuasiRMSSensor.v = voltageQuasiRMSSensor.plug_p.pin.v - voltageQuasiRMSSensor.plug_n.pin.v ($RES_SIM_76) (207) [SCAL] (1) aronSensor.plug_n.pin[2].v = powerSensor.pc.pin[2].v ($RES_SIM_190) (208) [SCAL] (1) feedbackV.u1 = sqrt(sum(0.3333333333333333 .* voltageQuasiRMSSensor.quasiRMS.u .^ 2.0)) ($RES_SIM_77) (209) [SCAL] (1) aronSensor.plug_n.pin[1].v = powerSensor.pv.pin[1].v ($RES_SIM_191) (210) [FOR-] (3) ($RES_SIM_118) (210) [----] for $i1 in 1:3 loop (210) [----] [SCAL] (1) resistor.resistor[$i1].LossPower = resistor.resistor[$i1].v * resistor.resistor[$i1].i ($RES_SIM_119) (210) [----] end for; (211) [FOR-] (3) ($RES_SIM_78) (211) [----] for $i1 in 1:3 loop (211) [----] [SCAL] (1) voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].v = voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].p.v - voltageQuasiRMSSensor.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_79) (211) [----] end for; (212) [SCAL] (1) aronSensor.plug_n.pin[1].v = powerSensor.pc.pin[1].v ($RES_SIM_192) (213) [FOR-] (3) ($RES_SIM_193) (213) [----] for $i1 in 1:3 loop (213) [----] [SCAL] (1) powerSensor.nc.pin[$i1].i + resistor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_194) (213) [----] end for; (214) [ARRY] (3) powerSensor.nc.pin.v = resistor.plug_p.pin.v ($RES_SIM_195) (215) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[3].i + sineVoltage.plug_p.pin[3].i + voltageQuasiRMSSensor.plug_p.pin[3].i = 0.0 ($RES_SIM_198) (216) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[2].i + sineVoltage.plug_p.pin[2].i + voltageQuasiRMSSensor.plug_p.pin[2].i = 0.0 ($RES_SIM_199) (217) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[1].i + sineVoltage.plug_p.pin[1].i + voltageQuasiRMSSensor.plug_p.pin[1].i = 0.0 ($RES_SIM_200) (218) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[3].v = voltageQuasiRMSSensor.plug_p.pin[3].v ($RES_SIM_201) (219) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[3].v = sineVoltage.plug_p.pin[3].v ($RES_SIM_202) (220) [ARRY] (3) voltageQuasiRMSSensor.voltageSensor.voltageSensor.n.v = voltageQuasiRMSSensor.voltageSensor.plug_n.pin.v ($RES_SIM_361) (221) [SCAL] (1) currentQuasiRMSSensor.plug_p.pin[2].v = voltageQuasiRMSSensor.plug_p.pin[2].v ($RES_SIM_203)