Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse.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.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 107.9 kB / 16.42 MB, free: 6.5 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.001091/0.001091, allocations: 187.1 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.218/1.218, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.01e-05/2.01e-05, allocations: 2.281 kB / 327.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse): time 0.006983/0.007012, allocations: 5.937 MB / 333.1 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003332/0.01036, allocations: 1.859 MB / 335 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003811/0.01076, allocations: 35.81 kB / 335 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007525/0.01152, allocations: 297.8 kB / 335.3 MB, free: 11.16 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008998/0.01243, allocations: 409.5 kB / 335.7 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.01313, allocations: 367.5 kB / 336.1 MB, free: 10.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002268/0.01541, allocations: 2.542 MB / 338.6 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.01666, allocations: 1.121 MB / 339.7 MB, free: 6.691 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000818/0.01748, allocations: 0.8024 MB / 340.5 MB, free: 5.887 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008524/0.01835, allocations: 0.7981 MB / 341.3 MB, free: 5.086 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001769/0.01853, allocations: 152 kB / 341.5 MB, free: 4.938 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002097/0.01875, allocations: 156 kB / 341.6 MB, free: 4.785 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001518/0.02028, allocations: 2.031 MB / 343.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0008509/0.02114, allocations: 1.312 MB / 345 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002379/0.02138, allocations: 207.4 kB / 345.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001545/0.02154, allocations: 35.81 kB / 345.2 MB, free: 1.168 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: 410 (224) * Number of variables: 410 (191) Notification: Performance of Bindings: time 0.005422/0.02697, allocations: 6.504 MB / 351.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003581/0.02734, allocations: 338.7 kB / 352.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Early Inline: time 0.003203/0.03055, allocations: 3.126 MB / 355.2 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002038/0.03076, allocations: 183.6 kB / 355.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of Alias: time 0.003492/0.03426, allocations: 3.292 MB / 358.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001722/0.03444, allocations: 151.7 kB / 358.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of Events: time 0.0007463/0.0352, allocations: 0.6742 MB / 359.5 MB, free: 2.473 MB / 302.1 MB Notification: Performance of Detect States: time 0.001014/0.03622, allocations: 1.034 MB / 360.5 MB, free: 1.422 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001505/0.03774, allocations: 1.403 MB / 361.9 MB, free: 15.92 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency pulse2m.twomPulse.gain.y could not be divided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_48) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (167/404) **************************** (1) [ALGB] (3) protected Real[3] rectifier.diode_n.idealDiode.s (start = {0.0 for $i1 in 1:3}) (2) [ALGB] (3) Real[3] sineVoltage.sineVoltage.signalSource.y (3) [DISC] (3) Boolean[3] $SEV_6[$i1] (4) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.v (5) [ALGB] (1) Real rootMeanSquareVoltage.product.y (6) [ALGB] (3) Real[3] sineVoltage.sineVoltage.p.v (7) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.p.v (8) [ALGB] (2) Real[2] rootMeanSquareVoltage.product.u (9) [DISC] (3) final Boolean[3] rectifier.thyristor_p.idealThyristor.off (fixed = {true for $i1 in 1:3}, start = {rectifier.offStart_p[$idealThyristor1] for $idealThyristor1 in 1:3}) (10) [ALGB] (1) Real[1] multiStarResistance.star.plug_p.pin.v (11) [ALGB] (1) Real resistor.v (12) [ALGB] (3) Real[3] rectifier.ac.pin.v (13) [DISC] (1) Boolean[1] $SEV_1[$i1] (14) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.R_actual (15) [DISC] (1) Boolean $TEV_9 (16) [ALGB] (1) Real resistor.LossPower (17) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (18) [DISC] (1) Boolean $TEV_2 (19) [DISC] (1) Boolean $TEV_1 (20) [ALGB] (1) Real resistor.i (21) [DISC] (1) Boolean $TEV_0 (22) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.p.i (23) [ALGB] (3) flow Real[3] pulse2m.delta.plug_p.pin.i (24) [ALGB] (1) Real pulse2m.twomPulse.limiter.y (25) [ALGB] (1) Real rectifier.vDC = voltagesensor.p.v - currentSensor.n.v (26) [ALGB] (3) Real[3] pulse2m.voltageSensor.v (27) [ALGB] (3) Real[3] rectifier.diode_n.v (28) [ALGB] (3) Real[3] pulse2m.twomPulse.replicator.y (29) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (30) [ALGB] (3) Real[3] pulse2m.twomPulse.positiveThreshold.u (31) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.p.v (32) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (33) [ALGB] (3) Real[3] pulse2m.delta.plug_p.pin.v (34) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerNegative.entryTime (35) [DISC] (3) Boolean[3] pulse2m.twomPulse.positiveThreshold.y (36) [DISC] (3) Boolean[3] $SEV_14[$i1] (37) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeThreshold.u (38) [ALGB] (3) Real[3] rectifier.diode_n.i (39) [DISC] (3) Boolean[3] rectifier.enableLogic.booleanReplicator.y (40) [ALGB] (3) flow Real[3] pulse2m.ac.pin.i (41) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeThreshold.y (42) [ALGB] (3) flow Real[3] sineVoltage.plug_n.pin.i (43) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_n.pin.v (44) [ALGB] (1) Real rectifier.iDC = rectifier.iDC (45) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u1 (46) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u2 (47) [DISC] (3) Boolean[3] $SEV_5[$i1] (48) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeEqual.y (49) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (50) [ALGB] (3) flow Real[3] rectifier.diode_n.plug_n.pin.i (51) [ALGB] (3) Real[3] multiStarResistance.multiStar.plug_p.pin.v (52) [DISC] (3) Boolean[3] rectifier.pre.y (53) [ALGB] (3) Real[3] pulse2m.ac.pin.v (54) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (55) [DISC] (3) Boolean[3] rectifier.pre.u (56) [ALGB] (3) Real[3] pulse2m.twomPulse.v (57) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_n.pin.i (58) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (59) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_n.pin.v (60) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (61) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (62) [DER-] (1) Real $DER.meanVoltage.x (63) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.n.i (64) [ALGB] (3) Real[3] rectifier.diode_n.plug_n.pin.v (65) [ALGB] (3) flow Real[3] multiStarResistance.multiStar.plug_p.pin.i (66) [ALGB] (1) Real rectifier.LossPower (67) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.LossPower (68) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.T_heatPort (start = {288.15 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = {300.0 for $i1 in 1:1}) (69) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_p.pin.i (70) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_n.pin.i (71) [ALGB] (3) Real[3] rectifier.star_n.plug_p.pin.v (72) [ALGB] (3) Real[3] rectifier.star_p.plug_p.pin.v (73) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.n.v (74) [ALGB] (1) Real $FUN_5 (75) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_p (76) [ALGB] (1) flow Real currentSensor.p.i (77) [ALGB] (1) Real $FUN_4 (78) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_n (79) [ALGB] (1) flow Real ground.p.i (80) [ALGB] (3) Real[3] $FUN_1 (81) [DER-] (1) Real $DER.meanCurrent.x (82) [DISC] (3) Boolean[3] $SEV_13[$i1] (83) [DISC] (3) Boolean[3] $SEV_9[$i1] (84) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerPositive.u (85) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.p.v (86) [ALGB] (3) Real[3] pulse2m.twomPulse.timerPositive.y (87) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.v (88) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.LossPower (89) [DISC] (3) Boolean[3] rectifier.fire_p (90) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.p.i (91) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (92) [ALGB] (3) Real[3] sineVoltage.v (93) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (94) [ALGB] (3) flow Real[3] rectifier.diode_n.idealDiode.n.i (95) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac.pin[:].v (96) [ALGB] (3) Real[3] sineVoltage.i (97) [ALGB] (1) Real meanVoltage.u (98) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (99) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.n.v (100) [DISC] (1) Boolean $SEV_3 (101) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.v (102) [DISC] (1) Boolean $SEV_2 (103) [ALGB] (1) Real[1] multiStarResistance.resistor.v (104) [DISC] (3) Boolean[3] $SEV_12[$i1] (105) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac.pin[:].i (106) [DISC] (3) Boolean[3] $SEV_8[$i1] (107) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.i (108) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (109) [ALGB] (1) Real[1] multiStarResistance.resistor.i (110) [ALGB] (3) flow Real[3] rectifier.diode_n.plug_p.pin.i (111) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (112) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (113) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (114) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (115) [ALGB] (1) Real resistor.R_actual (116) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (117) [ALGB] (3) Real[3] rectifier.diode_n.plug_p.pin.v (118) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (119) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (120) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (121) [ALGB] (3) Real[3] rectifier.thyristor_p.v (122) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (123) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (124) [ALGB] (3) Real[3] rectifier.thyristor_p.i (125) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (126) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (127) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (128) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (129) [ALGB] (1) Real currentSensor.n.v (130) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (131) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (132) [DISC] (3) Boolean[3] $SEV_11[$i1] (133) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (134) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (135) [DISC] (3) Boolean[3] $SEV_7[$i1] (136) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (137) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (138) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (139) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (140) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u1 (141) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u2 (142) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (143) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (144) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (145) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (146) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (147) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (148) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (149) [DISC] (3) Boolean[3] pulse2m.fire_p (150) [DISC] (3) Boolean[3] pulse2m.fire_n (151) [ALGB] (1) Real voltagesensor.p.v (152) [DISC] (3) Boolean[3] rectifier.diode_n.idealDiode.off (start = {true for $i1 in 1:3}) (153) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (154) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (155) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (156) [ALGB] (1) Real[1] multiStarResistance.multiStar.starpoints.pin.v (157) [ALGB] (3) Real[3] multiStarResistance.plug.pin.v (158) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (159) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.i (160) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (161) [ALGB] (3) flow Real[3] rectifier.diode_n.idealDiode.p.i (162) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (163) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (164) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (165) [ALGB] (1) Real pulse2m.twomPulse.gain.y (166) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (167) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (200/404) **************************** (1) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_204) (2) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_205) (3) [FOR-] (3) ($RES_SIM_120) (3) [----] for $i1 in 1:3 loop (3) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].s * (if rectifier.thyristor_p.idealThyristor[$i1].off then 1.0 else rectifier.thyristor_p.idealThyristor[$i1].Ron) + rectifier.thyristor_p.idealThyristor[$i1].Vknee ($RES_SIM_121) (3) [----] end for; (4) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_80) (5) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_206) (6) [SCAL] (1) meanVoltage.u = voltagesensor.p.v - currentSensor.n.v ($RES_SIM_81) (7) [FOR-] (3) ($RES_SIM_207) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_208) (7) [----] end for; (8) [FOR-] (3) ($RES_SIM_122) (8) [----] for $i1 in 1:3 loop (8) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_12[$i1] ($RES_SIM_123) (8) [----] end for; (9) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_281) (10) [FOR-] (3) ($RES_SIM_282) (10) [----] for $i1 in 1:3 loop (10) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_283) (10) [----] end for; (11) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_209) (12) [FOR-] (3) ($RES_SIM_125) (12) [----] for $i1 in 1:3 loop (12) [----] [SCAL] (1) rectifier.star_n.plug_p.pin[$i1].v = currentSensor.n.v ($RES_SIM_126) (12) [----] end for; (13) [SCAL] (1) rectifier.LossPower = $FUN_4 + $FUN_5 ($RES_SIM_85) (14) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_284) (15) [FOR-] (3) ($RES_SIM_86) (15) [----] for $i1 in 1:3 loop (15) [----] [SCAL] (1) rectifier.pre[$i1].y = $TEV_2 ($RES_SIM_87) (15) [----] end for; (16) [FOR-] (3) ($RES_SIM_285) (16) [----] for $i1 in 1:3 loop (16) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_286) (16) [----] end for; (17) [FOR-] (3) ($RES_SIM_128) (17) [----] for $i1 in 1:3 loop (17) [----] [SCAL] (1) rectifier.star_p.plug_p.pin[$i1].v = voltagesensor.p.v ($RES_SIM_129) (17) [----] end for; (18) [ARRY] (3) rectifier.diode_n.i = rectifier.diode_n.plug_p.pin.i ($RES_SIM_88) (19) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_287) (20) [ARRY] (3) rectifier.diode_n.v = rectifier.diode_n.plug_p.pin.v - rectifier.diode_n.plug_n.pin.v ($RES_SIM_89) (21) [FOR-] (3) ($RES_SIM_210) (21) [----] for $i1 in 1:3 loop (21) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_211) (21) [----] end for; (22) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_212) (23) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_213) (24) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_214) (25) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_130) (26) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_215) (27) [FOR-] (3) ($RES_SIM_90) (27) [----] for $i1 in 1:3 loop (27) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].i = rectifier.diode_n.idealDiode[$i1].p.i ($RES_SIM_91) (27) [----] end for; (28) [SCAL] (1) resistor.v = voltagesensor.p.v - currentSensor.n.v ($RES_SIM_17) (29) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_216) (30) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_217) (31) [FOR-] (3) ($RES_SIM_132) (31) [----] for $i1 in 1:3 loop (31) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_13[$i1] ($RES_SIM_133) (31) [----] end for; (32) [FOR-] (3) ($RES_SIM_92) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) 0.0 = rectifier.diode_n.idealDiode[$i1].p.i + rectifier.diode_n.idealDiode[$i1].n.i ($RES_SIM_93) (32) [----] end for; (33) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_19) (34) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_218) (35) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_219) (36) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_134) (37) [FOR-] (3) ($RES_SIM_94) (37) [----] for $i1 in 1:3 loop (37) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].v = rectifier.diode_n.idealDiode[$i1].p.v - rectifier.diode_n.idealDiode[$i1].n.v ($RES_SIM_95) (37) [----] end for; (38) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_135) (39) [FOR-] (3) ($RES_SIM_136) (39) [----] for $i1 in 1:3 loop (39) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_137) (39) [----] end for; (40) [FOR-] (3) ($RES_SIM_138) (40) [----] for $i1 in 1:3 loop (40) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_139) (40) [----] end for; (41) [FOR-] (3) ($RES_SIM_98) (41) [----] for $i1 in 1:3 loop (41) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].LossPower = rectifier.diode_n.idealDiode[$i1].v * rectifier.diode_n.idealDiode[$i1].i ($RES_SIM_99) (41) [----] end for; (42) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_306) (43) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_307) (44) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre[$i1].u ($RES_EVT_308) (45) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_20) (46) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_21) (47) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_220) (48) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_221) (49) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_222) (50) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_223) (51) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_25) (52) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_224) (53) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_26) (54) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_225) (55) [FOR-] (3) ($RES_SIM_140) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_141) (55) [----] end for; (56) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_27) (57) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_28) (58) [FOR-] (3) ($RES_SIM_142) (58) [----] for $i1 in 1:3 loop (58) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_143) (58) [----] end for; (59) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_29) (60) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_228) (61) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.negativeEqual[3].u2 ($RES_SIM_229) (62) [FOR-] (3) ($RES_SIM_144) (62) [----] for $i1 in 1:3 loop (62) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].signalSource.y = sineVoltage.sineVoltage[$i1].signalSource.offset + (if $SEV_14[$i1] then 0.0 else sineVoltage.sineVoltage[$i1].signalSource.amplitude * $FUN_1[$i1]) ($RES_SIM_145) (62) [----] end for; (63) [SCAL] (1) currentSensor.p.i - resistor.i = 0.0 ($RES_SIM_148) (64) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_149) (65) [SCAL] (1) $TEV_9 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_315) (66) [SCAL] (1) $SEV_1[1] = 1.0 + multiStarResistance.resistor.resistor[1].alpha * (multiStarResistance.resistor.resistor[1].T_heatPort - multiStarResistance.resistor.resistor[1].T_ref) >= 1e-15 ($RES_EVT_317) (67) [SCAL] (1) $SEV_2 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_318) (68) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_319) (69) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_30) (70) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_31) (71) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_230) (72) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_32) (73) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.negativeEqual[2].u2 ($RES_SIM_231) (74) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_33) (75) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_232) (76) [SCAL] (1) multiStarResistance.resistor.resistor[1].R_actual = multiStarResistance.resistor.resistor[1].R * (1.0 + multiStarResistance.resistor.resistor[1].alpha * (multiStarResistance.resistor.resistor[1].T_heatPort - multiStarResistance.resistor.resistor[1].T_ref)) ($RES_SIM_34) (77) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.negativeEqual[1].u2 ($RES_SIM_233) (78) [ARRY] (3) pulse2m.twomPulse.negativeEqual.y = pulse2m.twomPulse.fire_n ($RES_SIM_235) (79) [FOR-] (3) ($RES_SIM_37) (79) [----] for $i1 in 1:3 loop (79) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_38) (79) [----] end for; (80) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_236) (81) [ARRY] (3) pulse2m.twomPulse.negativeEqual.u1 = pulse2m.twomPulse.timerNegative.y ($RES_SIM_237) (82) [FOR-] (3) ($RES_SIM_39) (82) [----] for $i1 in 1:3 loop (82) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_40) (82) [----] end for; (83) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_288) (84) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_238) (85) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_289) (86) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_239) (87) [FOR-] (3) ($RES_SIM_154) (87) [----] for $i1 in 1:3 loop (87) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_155) (87) [----] end for; (88) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_156) (89) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_157) (90) [FOR-] (3) ($RES_EVT_321) (90) [----] for $i1 in 1:3 loop (90) [----] [SCAL] (1) $SEV_5[$i1] = pulse2m.twomPulse.negativeEqual[$i1].u1 > pulse2m.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_322) (90) [----] end for; (91) [FOR-] (3) ($RES_EVT_323) (91) [----] for $i1 in 1:3 loop (91) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_324) (91) [----] end for; (92) [FOR-] (3) ($RES_EVT_325) (92) [----] for $i1 in 1:3 loop (92) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_326) (92) [----] end for; (93) [FOR-] (3) ($RES_EVT_327) (93) [----] for $i1 in 1:3 loop (93) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_328) (93) [----] end for; (94) [FOR-] (3) ($RES_EVT_329) (94) [----] for $i1 in 1:3 loop (94) [----] [SCAL] (1) $SEV_9[$i1] = rectifier.diode_n.idealDiode[$i1].s < 0.0 ($RES_EVT_330) (94) [----] end for; (95) [FOR-] (3) ($RES_SIM_41) (95) [----] for $i1 in 1:3 loop (95) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_42) (95) [----] end for; (96) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_290) (97) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_240) (98) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_241) (99) [FOR-] (3) ($RES_SIM_43) (99) [----] for $i1 in 1:3 loop (99) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_44) (99) [----] end for; (100) [SCAL] (1) rectifier.vDC = voltagesensor.p.v - currentSensor.n.v ($RES_BND_292) (101) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_242) (102) [SCAL] (1) pulse2m.twomPulse.limiter.y = homotopy(smooth(0, if $SEV_2 then pulse2m.twomPulse.limiter.uMax else if $SEV_3 then pulse2m.twomPulse.limiter.uMin else pulse2m.twomPulse.constantconstantFiringAngle.k), pulse2m.twomPulse.constantconstantFiringAngle.k) ($RES_SIM_45) (103) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_294) (104) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_295) (105) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.andCondition_p.u2 ($RES_SIM_246) (106) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_48) (107) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_247) (108) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_49) (109) [ARRY] (3) rectifier.pre.y = rectifier.thyristor_p.fire ($RES_SIM_248) (110) [SCAL] (1) pulse2m.ac.pin[3].i + sineVoltage.plug_p.pin[3].i + rectifier.ac.pin[3].i = 0.0 ($RES_SIM_163) (111) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre.u ($RES_SIM_249) (112) [SCAL] (1) pulse2m.ac.pin[2].i + sineVoltage.plug_p.pin[2].i + rectifier.ac.pin[2].i = 0.0 ($RES_SIM_164) (113) [SCAL] (1) pulse2m.ac.pin[1].i + sineVoltage.plug_p.pin[1].i + rectifier.ac.pin[1].i = 0.0 ($RES_SIM_165) (114) [SCAL] (1) pulse2m.ac.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_166) (115) [SCAL] (1) pulse2m.ac.pin[3].v = sineVoltage.plug_p.pin[3].v ($RES_SIM_167) (116) [SCAL] (1) pulse2m.ac.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_168) (117) [SCAL] (1) pulse2m.ac.pin[2].v = sineVoltage.plug_p.pin[2].v ($RES_SIM_169) (118) [FOR-] (3) ($RES_EVT_331) (118) [----] for $i1 in 1:3 loop (118) [----] [SCAL] (1) $SEV_10[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_332) (118) [----] end for; (119) [FOR-] (3) ($RES_EVT_333) (119) [----] for $i1 in 1:3 loop (119) [----] [SCAL] (1) $SEV_11[$i1] = $TEV_9 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_334) (119) [----] end for; (120) [FOR-] (3) ($RES_EVT_335) (120) [----] for $i1 in 1:3 loop (120) [----] [SCAL] (1) $SEV_12[$i1] = $SEV_10[$i1] or $SEV_11[$i1] ($RES_EVT_336) (120) [----] end for; (121) [FOR-] (3) ($RES_EVT_337) (121) [----] for $i1 in 1:3 loop (121) [----] [SCAL] (1) $SEV_13[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_338) (121) [----] end for; (122) [FOR-] (3) ($RES_EVT_339) (122) [----] for $i1 in 1:3 loop (122) [----] [SCAL] (1) $SEV_14[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_340) (122) [----] end for; (123) [FOR-] (3) ($RES_SIM_50) (123) [----] for $i1 in 1:3 loop (123) [----] [SCAL] (1) pulse2m.twomPulse.negativeEqual[$i1].y = $SEV_5[$i1] ($RES_SIM_51) (123) [----] end for; (124) [FOR-] (3) ($RES_SIM_52) (124) [----] for $i1 in 1:3 loop (124) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_6[$i1] ($RES_SIM_53) (124) [----] end for; (125) [FOR-] (3) ($RES_SIM_251) (125) [----] for $i1 in 1:3 loop (125) [----] [SCAL] (1) rectifier.diode_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_252) (125) [----] end for; (126) [FOR-] (3) ($RES_SIM_54) (126) [----] for $i1 in 1:3 loop (126) [----] [SCAL] (1) pulse2m.twomPulse.timerNegative[$i1].y = if pulse2m.twomPulse.timerNegative[$i1].u then time - pulse2m.twomPulse.timerNegative[$i1].entryTime else 0.0 ($RES_SIM_55) (126) [----] end for; (127) [ARRY] (3) rectifier.diode_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_253) (128) [FOR-] (3) ($RES_SIM_56) (128) [----] for $i1 in 1:3 loop (128) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (128) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (128) [----] [----] end when; (128) [----] end for; (129) [FOR-] (3) ($RES_SIM_255) (129) [----] for $i1 in 1:3 loop (129) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_256) (129) [----] end for; (130) [SCAL] (1) pulse2m.ac.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_170) (131) [SCAL] (1) pulse2m.ac.pin[1].v = sineVoltage.plug_p.pin[1].v ($RES_SIM_171) (132) [FOR-] (3) ($RES_SIM_58) (132) [----] for $i1 in 1:3 loop (132) [----] [SCAL] (1) pulse2m.twomPulse.timerPositive[$i1].y = if pulse2m.twomPulse.timerPositive[$i1].u then time - pulse2m.twomPulse.timerPositive[$i1].entryTime else 0.0 ($RES_SIM_59) (132) [----] end for; (133) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_257) (134) [SCAL] (1) (rectifier.diode_n.plug_n.pin[3].i + rectifier.thyristor_p.plug_p.pin[3].i) - rectifier.ac.pin[3].i = 0.0 ($RES_SIM_258) (135) [SCAL] (1) (rectifier.diode_n.plug_n.pin[2].i + rectifier.thyristor_p.plug_p.pin[2].i) - rectifier.ac.pin[2].i = 0.0 ($RES_SIM_259) (136) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_176) (137) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_177) (138) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_178) (139) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_179) (140) [FOR-] (3) ($RES_SIM_100) (140) [----] for $i1 in 1:3 loop (140) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].i = rectifier.diode_n.idealDiode[$i1].s * (if rectifier.diode_n.idealDiode[$i1].off then rectifier.diode_n.idealDiode[$i1].Goff else 1.0) + rectifier.diode_n.idealDiode[$i1].Goff * rectifier.diode_n.idealDiode[$i1].Vknee ($RES_SIM_101) (140) [----] end for; (141) [FOR-] (3) ($RES_SIM_60) (141) [----] for $i1 in 1:3 loop (141) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (141) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (141) [----] [----] end when; (141) [----] end for; (142) [SCAL] (1) (rectifier.diode_n.plug_n.pin[1].i + rectifier.thyristor_p.plug_p.pin[1].i) - rectifier.ac.pin[1].i = 0.0 ($RES_SIM_260) (143) [FOR-] (3) ($RES_SIM_102) (143) [----] for $i1 in 1:3 loop (143) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].v = rectifier.diode_n.idealDiode[$i1].s * (if rectifier.diode_n.idealDiode[$i1].off then 1.0 else rectifier.diode_n.idealDiode[$i1].Ron) + rectifier.diode_n.idealDiode[$i1].Vknee ($RES_SIM_103) (143) [----] end for; (144) [FOR-] (3) ($RES_SIM_62) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_7[$i1] ($RES_SIM_63) (144) [----] end for; (145) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_261) (146) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.diode_n.plug_n.pin[3].v ($RES_SIM_262) (147) [FOR-] (3) ($RES_SIM_104) (147) [----] for $i1 in 1:3 loop (147) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].off = $SEV_9[$i1] ($RES_SIM_105) (147) [----] end for; (148) [FOR-] (3) ($RES_SIM_64) (148) [----] for $i1 in 1:3 loop (148) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_65) (148) [----] end for; (149) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_263) (150) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.diode_n.plug_n.pin[2].v ($RES_SIM_264) (151) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_106) (152) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_265) (153) [FOR-] (3) ($RES_SIM_180) (153) [----] for $i1 in 1:3 loop (153) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_181) (153) [----] end for; (154) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_107) (155) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.diode_n.plug_n.pin[1].v ($RES_SIM_266) (156) [FOR-] (3) ($RES_SIM_108) (156) [----] for $i1 in 1:3 loop (156) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_109) (156) [----] end for; (157) [FOR-] (3) ($RES_SIM_267) (157) [----] for $i1 in 1:3 loop (157) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].n.i - rectifier.diode_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_268) (157) [----] end for; (158) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_182) (159) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_69) (160) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_183) (161) [ARRY] (3) rectifier.diode_n.idealDiode.n.v = rectifier.diode_n.plug_n.pin.v ($RES_SIM_269) (162) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_184) (163) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_185) (164) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_186) (165) [SCAL] (1) -(multiStarResistance.multiStar.plug_p.pin[2].i + multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.multiStar.plug_p.pin[3].i + multiStarResistance.multiStar.plug_p.pin[1].i) = 0.0 ($RES_SIM_187) (166) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_188) (167) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_189) (168) [FOR-] (3) ($RES_$AUX_304) (168) [----] for $i1 in 1:3 loop (168) [----] [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_305) (168) [----] end for; (169) [SCAL] (1) -rectifier.iDC = sum(rectifier.star_p.plug_p.pin.i) ($RES_$AUX_303) (170) [SCAL] (1) -currentSensor.p.i = sum(rectifier.star_n.plug_p.pin.i) ($RES_$AUX_302) (171) [SCAL] (1) $FUN_4 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_301) (172) [SCAL] (1) $FUN_5 = sum(rectifier.diode_n.idealDiode.LossPower) ($RES_$AUX_300) (173) [FOR-] (3) ($RES_SIM_110) (173) [----] for $i1 in 1:3 loop (173) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_111) (173) [----] end for; (174) [FOR-] (3) ($RES_SIM_270) (174) [----] for $i1 in 1:3 loop (174) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].p.i - rectifier.diode_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_271) (174) [----] end for; (175) [FOR-] (3) ($RES_SIM_112) (175) [----] for $i1 in 1:3 loop (175) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_113) (175) [----] end for; (176) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_299) (177) [ARRY] (3) rectifier.diode_n.plug_p.pin.v = rectifier.diode_n.idealDiode.p.v ($RES_SIM_272) (178) [SCAL] (1) ground.p.i = sum(multiStarResistance.star.plug_p.pin.i) ($RES_$AUX_297) (179) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_273) (180) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_296) (181) [FOR-] (3) ($RES_SIM_274) (181) [----] for $i1 in 1:3 loop (181) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_275) (181) [----] end for; (182) [FOR-] (3) ($RES_SIM_116) (182) [----] for $i1 in 1:3 loop (182) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_117) (182) [----] end for; (183) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_76) (184) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_190) (185) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_276) (186) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_191) (187) [FOR-] (3) ($RES_SIM_118) (187) [----] for $i1 in 1:3 loop (187) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].s * (if rectifier.thyristor_p.idealThyristor[$i1].off then rectifier.thyristor_p.idealThyristor[$i1].Goff else 1.0) + rectifier.thyristor_p.idealThyristor[$i1].Goff * rectifier.thyristor_p.idealThyristor[$i1].Vknee ($RES_SIM_119) (187) [----] end for; (188) [FOR-] (3) ($RES_SIM_277) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_278) (188) [----] end for; (189) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_192) (190) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_193) (191) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_279) (192) [FOR-] (3) ($RES_SIM_194) (192) [----] for $i1 in 1:3 loop (192) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_195) (192) [----] end for; (193) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_196) (194) [SCAL] (1) (pulse2m.delta.plug_n.pin[3].i + pulse2m.voltageSensor.plug_p.pin[3].i) - pulse2m.ac.pin[3].i = 0.0 ($RES_SIM_197) (195) [SCAL] (1) (pulse2m.delta.plug_n.pin[2].i + pulse2m.voltageSensor.plug_p.pin[2].i) - pulse2m.ac.pin[2].i = 0.0 ($RES_SIM_198) (196) [SCAL] (1) (pulse2m.delta.plug_n.pin[1].i + pulse2m.voltageSensor.plug_p.pin[1].i) - pulse2m.ac.pin[1].i = 0.0 ($RES_SIM_199) (197) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_200) (198) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_201) (199) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_202) (200) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_203)