Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R.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.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, 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.001184/0.001185, allocations: 187.8 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.226/1.226, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.905e-05/1.905e-05, allocations: 3.547 kB / 327.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R): time 0.007006/0.007032, allocations: 5.972 MB / 333.2 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003646/0.0107, allocations: 1.878 MB / 335.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004616/0.01118, allocations: 35.75 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007906/0.01198, allocations: 313.8 kB / 335.4 MB, free: 11.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008009/0.01279, allocations: 409.5 kB / 335.8 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005745/0.01338, allocations: 375.5 kB / 336.2 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002168/0.01556, allocations: 2.62 MB / 338.8 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.01675, allocations: 1.173 MB / 340 MB, free: 6.461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007919/0.01755, allocations: 0.8142 MB / 340.8 MB, free: 5.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008133/0.01837, allocations: 0.8253 MB / 341.6 MB, free: 4.816 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001711/0.01855, allocations: 159.9 kB / 341.8 MB, free: 4.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.01877, allocations: 160 kB / 341.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001574/0.02035, allocations: 2.074 MB / 344 MB, free: 2.41 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0009122/0.02127, allocations: 1.351 MB / 345.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002414/0.02152, allocations: 203.4 kB / 345.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001598/0.02169, allocations: 47.81 kB / 345.6 MB, free: 0.7969 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: 437 (237) * Number of variables: 437 (200) Notification: Performance of Bindings: time 0.006326/0.02802, allocations: 6.647 MB / 352.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0004915/0.02852, allocations: 387.6 kB / 352.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of Early Inline: time 0.003158/0.03169, allocations: 3.284 MB / 355.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001867/0.03189, allocations: 191.7 kB / 356.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of Alias: time 0.003465/0.03536, allocations: 3.4 MB / 359.5 MB, free: 2.438 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001582/0.03553, allocations: 147.8 kB / 359.6 MB, free: 2.293 MB / 302.1 MB Notification: Performance of Events: time 0.000736/0.03627, allocations: 0.7527 MB / 360.4 MB, free: 1.539 MB / 302.1 MB Notification: Performance of Detect States: time 0.001042/0.03732, allocations: 1.117 MB / 361.5 MB, free: 412 kB / 302.1 MB Notification: Performance of Partitioning: time 0.001609/0.03894, allocations: 1.481 MB / 363 MB, free: 14.82 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_50) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (181/442) **************************** (1) [ALGB] (3) Real[3] sineVoltage.sineVoltage.signalSource.y (2) [DISC] (3) Boolean[3] $SEV_6[$i1] (3) [ALGB] (1) Real rootMeanSquareVoltage.product.y (4) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.p.i (5) [ALGB] (3) Real[3] sineVoltage.sineVoltage.p.v (6) [ALGB] (2) Real[2] rootMeanSquareVoltage.product.u (7) [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}) (8) [ALGB] (1) Real[1] multiStarResistance.star.plug_p.pin.v (9) [ALGB] (1) Real resistor.v (10) [ALGB] (3) Real[3] rectifier.ac.pin.v (11) [DISC] (1) Boolean[1] $SEV_1[$i1] (12) [DISC] (3) Boolean[3] rectifier.pre_n.u (13) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.R_actual (14) [ALGB] (1) Real resistor.LossPower (15) [DISC] (3) Boolean[3] rectifier.pre_n.y (16) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.p.v (17) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (18) [DISC] (1) Boolean $TEV_3 (19) [DISC] (1) Boolean $TEV_2 (20) [DISC] (1) Boolean $TEV_1 (21) [ALGB] (1) Real resistor.i (22) [DISC] (1) Boolean $TEV_0 (23) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.p.i (24) [ALGB] (3) flow Real[3] pulse2m.delta.plug_p.pin.i (25) [ALGB] (1) Real pulse2m.twomPulse.limiter.y (26) [ALGB] (1) Real rectifier.vDC = resistor.p.v - currentSensor.n.v (27) [ALGB] (3) Real[3] pulse2m.voltageSensor.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] rectifier.thyristor_n.v (38) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeThreshold.u (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 rectifier.iDC = rectifier.iDC (44) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_n.pin.v (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) [ALGB] (3) Real[3] rectifier.thyristor_n.i (50) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (51) [ALGB] (3) Real[3] multiStarResistance.multiStar.plug_p.pin.v (52) [ALGB] (3) Real[3] pulse2m.ac.pin.v (53) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (54) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_p.pin.v (55) [ALGB] (3) Real[3] pulse2m.twomPulse.v (56) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_n.pin.i (57) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (58) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_n.pin.v (59) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (60) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (61) [DER-] (1) Real $DER.meanVoltage.x (62) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.n.i (63) [ALGB] (3) flow Real[3] multiStarResistance.multiStar.plug_p.pin.i (64) [ALGB] (1) Real rectifier.LossPower (65) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.LossPower (66) [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}) (67) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_p.pin.i (68) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_p.pin.i (69) [DISC] (3) Boolean[3] rectifier.andCondition_n.y (70) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_n.pin.i (71) [DISC] (3) Boolean[3] rectifier.andCondition_n.u2 (72) [DISC] (3) Boolean[3] rectifier.andCondition_n.u1 (73) [ALGB] (3) Real[3] rectifier.star_n.plug_p.pin.v (74) [ALGB] (3) Real[3] rectifier.star_p.plug_p.pin.v (75) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.n.v (76) [ALGB] (1) Real $FUN_5 (77) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_p (78) [ALGB] (1) flow Real currentSensor.p.i (79) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.LossPower (80) [ALGB] (1) Real $FUN_4 (81) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_n (82) [ALGB] (1) flow Real ground.p.i (83) [ALGB] (3) Real[3] $FUN_1 (84) [DISC] (3) Boolean[3] rectifier.thyristor_n.idealThyristor.fire (85) [DER-] (1) Real $DER.meanCurrent.x (86) [DISC] (3) Boolean[3] rectifier.thyristor_n.fire (87) [DISC] (3) Boolean[3] $SEV_13[$i1] (88) [DISC] (1) Boolean $TEV_11 (89) [DISC] (1) Boolean $TEV_10 (90) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.i (91) [DISC] (3) Boolean[3] $SEV_9[$i1] (92) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerPositive.u (93) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.p.v (94) [ALGB] (3) Real[3] pulse2m.twomPulse.timerPositive.y (95) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.v (96) [DISC] (3) Boolean[3] rectifier.fire_n (97) [ALGB] (3) protected final Real[3] rectifier.thyristor_n.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (98) [DISC] (3) Boolean[3] rectifier.fire_p (99) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.v (100) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.p.i (101) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (102) [ALGB] (3) Real[3] sineVoltage.v (103) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (104) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac.pin[:].v (105) [ALGB] (3) Real[3] sineVoltage.i (106) [DISC] (3) Boolean[3] rectifier.pre_p.u (107) [ALGB] (1) Real meanVoltage.u (108) [DISC] (3) Boolean[3] rectifier.pre_p.y (109) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.n.i (110) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (111) [DISC] (3) Boolean[3] $SEV_17[$i1] (112) [DISC] (1) Boolean $SEV_3 (113) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.v (114) [DISC] (1) Boolean $SEV_2 (115) [ALGB] (1) Real[1] multiStarResistance.resistor.v (116) [DISC] (3) Boolean[3] $SEV_12[$i1] (117) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac.pin[:].i (118) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.n.v (119) [DISC] (3) Boolean[3] $SEV_8[$i1] (120) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.i (121) [DISC] (3) Boolean[3] rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off (122) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (123) [ALGB] (1) Real[1] multiStarResistance.resistor.i (124) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (125) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_n.pin.v (126) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (127) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (128) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (129) [ALGB] (1) Real resistor.R_actual (130) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (131) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (132) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (133) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (134) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_n.pin.i (135) [ALGB] (3) Real[3] rectifier.thyristor_p.v (136) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (137) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (138) [ALGB] (3) Real[3] rectifier.thyristor_p.i (139) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (140) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (141) [DISC] (3) Boolean[3] $SEV_16[$i1] (142) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (143) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (144) [ALGB] (1) Real currentSensor.n.v (145) [ALGB] (1) Real resistor.p.v (146) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (147) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (148) [DISC] (3) Boolean[3] $SEV_11[$i1] (149) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (150) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (151) [DISC] (3) Boolean[3] $SEV_7[$i1] (152) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (153) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (154) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (155) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (156) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u1 (157) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u2 (158) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (159) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (160) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (161) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (162) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (163) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (164) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (165) [DISC] (3) Boolean[3] pulse2m.fire_p (166) [DISC] (3) Boolean[3] pulse2m.fire_n (167) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (168) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (169) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (170) [ALGB] (1) Real[1] multiStarResistance.multiStar.starpoints.pin.v (171) [ALGB] (3) Real[3] multiStarResistance.plug.pin.v (172) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (173) [DISC] (3) final Boolean[3] rectifier.thyristor_n.idealThyristor.off (fixed = {true for $i1 in 1:3}, start = {rectifier.offStart_n[$idealThyristor1] for $idealThyristor1 in 1:3}) (174) [DISC] (3) Boolean[3] $SEV_15[$i1] (175) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (176) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (177) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (178) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (179) [ALGB] (1) Real pulse2m.twomPulse.gain.y (180) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (181) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (218/442) **************************** (1) [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_204) (2) [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_205) (3) [FOR-] (3) ($RES_SIM_120) (3) [----] for $i1 in 1:3 loop (3) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_121) (3) [----] end for; (4) [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_206) (5) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_280) (6) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_207) (7) [FOR-] (3) ($RES_SIM_122) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_123) (7) [----] end for; (8) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_82) (9) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.thyristor_n.plug_n.pin[1].v ($RES_SIM_281) (10) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_208) (11) [SCAL] (1) meanVoltage.u = resistor.p.v - currentSensor.n.v ($RES_SIM_83) (12) [ARRY] (3) rectifier.thyristor_n.fire = rectifier.thyristor_n.idealThyristor.fire ($RES_SIM_282) (13) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_209) (14) [FOR-] (3) ($RES_SIM_283) (14) [----] for $i1 in 1:3 loop (14) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].n.i - rectifier.thyristor_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_284) (14) [----] end for; (15) [FOR-] (3) ($RES_SIM_126) (15) [----] for $i1 in 1:3 loop (15) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_127) (15) [----] end for; (16) [ARRY] (3) rectifier.thyristor_n.idealThyristor.n.v = rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_285) (17) [SCAL] (1) rectifier.LossPower = $FUN_4 + $FUN_5 ($RES_SIM_87) (18) [FOR-] (3) ($RES_SIM_286) (18) [----] for $i1 in 1:3 loop (18) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].p.i - rectifier.thyristor_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_287) (18) [----] end for; (19) [FOR-] (3) ($RES_SIM_128) (19) [----] for $i1 in 1:3 loop (19) [----] [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_129) (19) [----] end for; (20) [FOR-] (3) ($RES_SIM_88) (20) [----] for $i1 in 1:3 loop (20) [----] [SCAL] (1) rectifier.pre_n[$i1].y = $TEV_2 ($RES_SIM_89) (20) [----] end for; (21) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.thyristor_n.idealThyristor.p.v ($RES_SIM_288) (22) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_289) (23) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_210) (24) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_211) (25) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_212) (26) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_213) (27) [FOR-] (3) ($RES_SIM_214) (27) [----] for $i1 in 1:3 loop (27) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_215) (27) [----] end for; (28) [FOR-] (3) ($RES_SIM_130) (28) [----] for $i1 in 1:3 loop (28) [----] [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_131) (28) [----] end for; (29) [FOR-] (3) ($RES_SIM_90) (29) [----] for $i1 in 1:3 loop (29) [----] [SCAL] (1) rectifier.pre_p[$i1].y = $TEV_3 ($RES_SIM_91) (29) [----] end for; (30) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_216) (31) [FOR-] (3) ($RES_SIM_290) (31) [----] for $i1 in 1:3 loop (31) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_291) (31) [----] end for; (32) [FOR-] (3) ($RES_SIM_217) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_218) (32) [----] end for; (33) [FOR-] (3) ($RES_SIM_132) (33) [----] for $i1 in 1:3 loop (33) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_14[$i1] ($RES_SIM_133) (33) [----] end for; (34) [SCAL] (1) resistor.v = resistor.p.v - currentSensor.n.v ($RES_SIM_19) (35) [FOR-] (3) ($RES_SIM_93) (35) [----] for $i1 in 1:3 loop (35) [----] [SCAL] (1) rectifier.star_n.plug_p.pin[$i1].v = currentSensor.n.v ($RES_SIM_94) (35) [----] end for; (36) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_292) (37) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_219) (38) [FOR-] (3) ($RES_SIM_134) (38) [----] for $i1 in 1:3 loop (38) [----] [SCAL] (1) rectifier.andCondition_n[$i1].y = $SEV_15[$i1] ($RES_SIM_135) (38) [----] end for; (39) [FOR-] (3) ($RES_SIM_293) (39) [----] for $i1 in 1:3 loop (39) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_294) (39) [----] end for; (40) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_136) (41) [FOR-] (3) ($RES_SIM_96) (41) [----] for $i1 in 1:3 loop (41) [----] [SCAL] (1) rectifier.star_p.plug_p.pin[$i1].v = resistor.p.v ($RES_SIM_97) (41) [----] end for; (42) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_295) (43) [FOR-] (3) ($RES_SIM_138) (43) [----] for $i1 in 1:3 loop (43) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_16[$i1] ($RES_SIM_139) (43) [----] end for; (44) [ARRY] (3) rectifier.thyristor_n.i = rectifier.thyristor_n.plug_p.pin.i ($RES_SIM_98) (45) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_297) (46) [ARRY] (3) rectifier.thyristor_n.v = rectifier.thyristor_n.plug_p.pin.v - rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_99) (47) [FOR-] (3) ($RES_SIM_298) (47) [----] for $i1 in 1:3 loop (47) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_299) (47) [----] end for; (48) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_300) (49) [FOR-] (3) ($RES_SIM_301) (49) [----] for $i1 in 1:3 loop (49) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_302) (49) [----] end for; (50) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_303) (51) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_21) (52) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_220) (53) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_22) (54) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_221) (55) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_23) (56) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_222) (57) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_223) (58) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_224) (59) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_225) (60) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_140) (61) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_27) (62) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_226) (63) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_141) (64) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_28) (65) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_227) (66) [FOR-] (3) ($RES_SIM_142) (66) [----] for $i1 in 1:3 loop (66) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_143) (66) [----] end for; (67) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_29) (68) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_228) (69) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_229) (70) [FOR-] (3) ($RES_SIM_144) (70) [----] for $i1 in 1:3 loop (70) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_145) (70) [----] end for; (71) [FOR-] (3) ($RES_SIM_146) (71) [----] for $i1 in 1:3 loop (71) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_147) (71) [----] end for; (72) [FOR-] (3) ($RES_SIM_148) (72) [----] for $i1 in 1:3 loop (72) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_149) (72) [----] end for; (73) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_30) (74) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_31) (75) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_230) (76) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_32) (77) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_231) (78) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_33) (79) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_232) (80) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_34) (81) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_35) (82) [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_36) (83) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_235) (84) [FOR-] (3) ($RES_SIM_150) (84) [----] for $i1 in 1:3 loop (84) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].signalSource.y = sineVoltage.sineVoltage[$i1].signalSource.offset + (if $SEV_17[$i1] then 0.0 else sineVoltage.sineVoltage[$i1].signalSource.amplitude * $FUN_1[$i1]) ($RES_SIM_151) (84) [----] end for; (85) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.negativeEqual[3].u2 ($RES_SIM_236) (86) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_237) (87) [SCAL] (1) currentSensor.p.i - resistor.i = 0.0 ($RES_SIM_152) (88) [FOR-] (3) ($RES_SIM_39) (88) [----] for $i1 in 1:3 loop (88) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_40) (88) [----] end for; (89) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.negativeEqual[2].u2 ($RES_SIM_238) (90) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_153) (91) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_239) (92) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_323) (93) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_324) (94) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre_n[$i1].u ($RES_EVT_325) (95) [SCAL] (1) $TEV_3 = $PRE.rectifier.pre_p[$i1].u ($RES_EVT_326) (96) [FOR-] (3) ($RES_SIM_41) (96) [----] for $i1 in 1:3 loop (96) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_42) (96) [----] end for; (97) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.negativeEqual[1].u2 ($RES_SIM_240) (98) [FOR-] (3) ($RES_SIM_43) (98) [----] for $i1 in 1:3 loop (98) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_44) (98) [----] end for; (99) [ARRY] (3) pulse2m.twomPulse.negativeEqual.y = pulse2m.twomPulse.fire_n ($RES_SIM_242) (100) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_243) (101) [FOR-] (3) ($RES_SIM_45) (101) [----] for $i1 in 1:3 loop (101) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_46) (101) [----] end for; (102) [ARRY] (3) pulse2m.twomPulse.negativeEqual.u1 = pulse2m.twomPulse.timerNegative.y ($RES_SIM_244) (103) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_245) (104) [FOR-] (3) ($RES_SIM_160) (104) [----] for $i1 in 1:3 loop (104) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_161) (104) [----] end for; (105) [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_47) (106) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_246) (107) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_247) (108) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_162) (109) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_248) (110) [ARRY] (3) pulse2m.fire_n = rectifier.fire_n ($RES_SIM_163) (111) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_249) (112) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_164) (113) [SCAL] (1) pulse2m.ac.pin[3].i + sineVoltage.plug_p.pin[3].i + rectifier.ac.pin[3].i = 0.0 ($RES_SIM_166) (114) [SCAL] (1) pulse2m.ac.pin[2].i + sineVoltage.plug_p.pin[2].i + rectifier.ac.pin[2].i = 0.0 ($RES_SIM_167) (115) [SCAL] (1) pulse2m.ac.pin[1].i + sineVoltage.plug_p.pin[1].i + rectifier.ac.pin[1].i = 0.0 ($RES_SIM_168) (116) [SCAL] (1) pulse2m.ac.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_169) (117) [SCAL] (1) $TEV_10 = $PRE.rectifier.thyristor_n.idealThyristor[$i1].off ($RES_EVT_333) (118) [SCAL] (1) $TEV_11 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_334) (119) [FOR-] (3) ($RES_$AUX_321) (119) [----] for $i1 in 1:3 loop (119) [----] [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_322) (119) [----] end for; (120) [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_336) (121) [SCAL] (1) -rectifier.iDC = sum(rectifier.star_p.plug_p.pin.i) ($RES_$AUX_320) (122) [SCAL] (1) $SEV_2 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_337) (123) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_338) (124) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_304) (125) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_305) (126) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_306) (127) [SCAL] (1) rectifier.vDC = resistor.p.v - currentSensor.n.v ($RES_BND_308) (128) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_50) (129) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_51) (130) [FOR-] (3) ($RES_SIM_52) (130) [----] for $i1 in 1:3 loop (130) [----] [SCAL] (1) pulse2m.twomPulse.negativeEqual[$i1].y = $SEV_5[$i1] ($RES_SIM_53) (130) [----] end for; (131) [FOR-] (3) ($RES_SIM_54) (131) [----] for $i1 in 1:3 loop (131) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_6[$i1] ($RES_SIM_55) (131) [----] end for; (132) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_253) (133) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_n[3].u2 ($RES_SIM_254) (134) [FOR-] (3) ($RES_SIM_56) (134) [----] for $i1 in 1:3 loop (134) [----] [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_57) (134) [----] end for; (135) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_p[3].u2 ($RES_SIM_255) (136) [SCAL] (1) pulse2m.ac.pin[3].v = sineVoltage.plug_p.pin[3].v ($RES_SIM_170) (137) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_n[2].u2 ($RES_SIM_256) (138) [SCAL] (1) pulse2m.ac.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_171) (139) [FOR-] (3) ($RES_SIM_58) (139) [----] for $i1 in 1:3 loop (139) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (139) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (139) [----] [----] end when; (139) [----] end for; (140) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_p[2].u2 ($RES_SIM_257) (141) [SCAL] (1) pulse2m.ac.pin[2].v = sineVoltage.plug_p.pin[2].v ($RES_SIM_172) (142) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_n[1].u2 ($RES_SIM_258) (143) [SCAL] (1) pulse2m.ac.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_173) (144) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_p[1].u2 ($RES_SIM_259) (145) [SCAL] (1) pulse2m.ac.pin[1].v = sineVoltage.plug_p.pin[1].v ($RES_SIM_174) (146) [SCAL] (1) -currentSensor.p.i = sum(rectifier.star_n.plug_p.pin.i) ($RES_$AUX_319) (147) [SCAL] (1) $FUN_4 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_318) (148) [SCAL] (1) $FUN_5 = sum(rectifier.thyristor_n.idealThyristor.LossPower) ($RES_$AUX_317) (149) [FOR-] (3) ($RES_EVT_340) (149) [----] for $i1 in 1:3 loop (149) [----] [SCAL] (1) $SEV_5[$i1] = pulse2m.twomPulse.negativeEqual[$i1].u1 > pulse2m.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_341) (149) [----] end for; (150) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_316) (151) [FOR-] (3) ($RES_EVT_342) (151) [----] for $i1 in 1:3 loop (151) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_343) (151) [----] end for; (152) [SCAL] (1) ground.p.i = sum(multiStarResistance.star.plug_p.pin.i) ($RES_$AUX_314) (153) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_313) (154) [FOR-] (3) ($RES_EVT_344) (154) [----] for $i1 in 1:3 loop (154) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_345) (154) [----] end for; (155) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_310) (156) [FOR-] (3) ($RES_EVT_346) (156) [----] for $i1 in 1:3 loop (156) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_347) (156) [----] end for; (157) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_311) (158) [ARRY] (3) rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off ($RES_BND_312) (159) [FOR-] (3) ($RES_EVT_348) (159) [----] for $i1 in 1:3 loop (159) [----] [SCAL] (1) $SEV_9[$i1] = rectifier.thyristor_n.idealThyristor[$i1].s < 0.0 ($RES_EVT_349) (159) [----] end for; (160) [FOR-] (3) ($RES_SIM_100) (160) [----] for $i1 in 1:3 loop (160) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].p.i ($RES_SIM_101) (160) [----] end for; (161) [FOR-] (3) ($RES_SIM_60) (161) [----] for $i1 in 1:3 loop (161) [----] [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_61) (161) [----] end for; (162) [ARRY] (3) rectifier.fire_n = rectifier.andCondition_n.u1 ($RES_SIM_260) (163) [FOR-] (3) ($RES_SIM_102) (163) [----] for $i1 in 1:3 loop (163) [----] [SCAL] (1) 0.0 = rectifier.thyristor_n.idealThyristor[$i1].p.i + rectifier.thyristor_n.idealThyristor[$i1].n.i ($RES_SIM_103) (163) [----] end for; (164) [FOR-] (3) ($RES_SIM_62) (164) [----] for $i1 in 1:3 loop (164) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (164) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (164) [----] [----] end when; (164) [----] end for; (165) [ARRY] (3) rectifier.andCondition_n.y = rectifier.pre_n.u ($RES_SIM_261) (166) [ARRY] (3) rectifier.pre_n.y = rectifier.thyristor_n.fire ($RES_SIM_262) (167) [FOR-] (3) ($RES_SIM_104) (167) [----] for $i1 in 1:3 loop (167) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].p.v - rectifier.thyristor_n.idealThyristor[$i1].n.v ($RES_SIM_105) (167) [----] end for; (168) [FOR-] (3) ($RES_SIM_64) (168) [----] for $i1 in 1:3 loop (168) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_7[$i1] ($RES_SIM_65) (168) [----] end for; (169) [ARRY] (3) rectifier.pre_p.y = rectifier.thyristor_p.fire ($RES_SIM_263) (170) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre_p.u ($RES_SIM_264) (171) [FOR-] (3) ($RES_SIM_66) (171) [----] for $i1 in 1:3 loop (171) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_67) (171) [----] end for; (172) [FOR-] (3) ($RES_SIM_266) (172) [----] for $i1 in 1:3 loop (172) [----] [SCAL] (1) rectifier.thyristor_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_267) (172) [----] end for; (173) [FOR-] (3) ($RES_SIM_108) (173) [----] for $i1 in 1:3 loop (173) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].LossPower = rectifier.thyristor_n.idealThyristor[$i1].v * rectifier.thyristor_n.idealThyristor[$i1].i ($RES_SIM_109) (173) [----] end for; (174) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_268) (175) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_183) (176) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_184) (177) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_185) (178) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_186) (179) [FOR-] (3) ($RES_SIM_187) (179) [----] for $i1 in 1:3 loop (179) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_188) (179) [----] end for; (180) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_189) (181) [FOR-] (3) ($RES_EVT_350) (181) [----] for $i1 in 1:3 loop (181) [----] [SCAL] (1) $SEV_10[$i1] = $TEV_10 and not rectifier.thyristor_n.idealThyristor[$i1].fire ($RES_EVT_351) (181) [----] end for; (182) [FOR-] (3) ($RES_EVT_352) (182) [----] for $i1 in 1:3 loop (182) [----] [SCAL] (1) $SEV_11[$i1] = $SEV_9[$i1] or $SEV_10[$i1] ($RES_EVT_353) (182) [----] end for; (183) [FOR-] (3) ($RES_EVT_354) (183) [----] for $i1 in 1:3 loop (183) [----] [SCAL] (1) $SEV_12[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_355) (183) [----] end for; (184) [FOR-] (3) ($RES_EVT_356) (184) [----] for $i1 in 1:3 loop (184) [----] [SCAL] (1) $SEV_13[$i1] = $TEV_11 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_357) (184) [----] end for; (185) [FOR-] (3) ($RES_EVT_358) (185) [----] for $i1 in 1:3 loop (185) [----] [SCAL] (1) $SEV_14[$i1] = $SEV_12[$i1] or $SEV_13[$i1] ($RES_EVT_359) (185) [----] end for; (186) [FOR-] (3) ($RES_SIM_110) (186) [----] for $i1 in 1:3 loop (186) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].s * (if rectifier.thyristor_n.idealThyristor[$i1].off then rectifier.thyristor_n.idealThyristor[$i1].Goff else 1.0) + rectifier.thyristor_n.idealThyristor[$i1].Goff * rectifier.thyristor_n.idealThyristor[$i1].Vknee ($RES_SIM_111) (186) [----] end for; (187) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_71) (188) [FOR-] (3) ($RES_SIM_270) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_271) (188) [----] end for; (189) [FOR-] (3) ($RES_SIM_112) (189) [----] for $i1 in 1:3 loop (189) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].s * (if rectifier.thyristor_n.idealThyristor[$i1].off then 1.0 else rectifier.thyristor_n.idealThyristor[$i1].Ron) + rectifier.thyristor_n.idealThyristor[$i1].Vknee ($RES_SIM_113) (189) [----] end for; (190) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_272) (191) [FOR-] (3) ($RES_SIM_114) (191) [----] for $i1 in 1:3 loop (191) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].off = $SEV_11[$i1] ($RES_SIM_115) (191) [----] end for; (192) [SCAL] (1) (rectifier.thyristor_n.plug_n.pin[3].i + rectifier.thyristor_p.plug_p.pin[3].i) - rectifier.ac.pin[3].i = 0.0 ($RES_SIM_273) (193) [SCAL] (1) (rectifier.thyristor_n.plug_n.pin[2].i + rectifier.thyristor_p.plug_p.pin[2].i) - rectifier.ac.pin[2].i = 0.0 ($RES_SIM_274) (194) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_116) (195) [SCAL] (1) (rectifier.thyristor_n.plug_n.pin[1].i + rectifier.thyristor_p.plug_p.pin[1].i) - rectifier.ac.pin[1].i = 0.0 ($RES_SIM_275) (196) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_190) (197) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_117) (198) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_276) (199) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_191) (200) [FOR-] (3) ($RES_SIM_118) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_119) (200) [----] end for; (201) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_78) (202) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.thyristor_n.plug_n.pin[3].v ($RES_SIM_277) (203) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_192) (204) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_278) (205) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_193) (206) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.thyristor_n.plug_n.pin[2].v ($RES_SIM_279) (207) [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_194) (208) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_195) (209) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_196) (210) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_197) (211) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_198) (212) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_199) (213) [FOR-] (3) ($RES_EVT_360) (213) [----] for $i1 in 1:3 loop (213) [----] [SCAL] (1) $SEV_15[$i1] = rectifier.andCondition_n[$i1].u1 and rectifier.andCondition_n[$i1].u2 ($RES_EVT_361) (213) [----] end for; (214) [FOR-] (3) ($RES_EVT_362) (214) [----] for $i1 in 1:3 loop (214) [----] [SCAL] (1) $SEV_16[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_363) (214) [----] end for; (215) [FOR-] (3) ($RES_EVT_364) (215) [----] for $i1 in 1:3 loop (215) [----] [SCAL] (1) $SEV_17[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_365) (215) [----] end for; (216) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_200) (217) [FOR-] (3) ($RES_SIM_201) (217) [----] for $i1 in 1:3 loop (217) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_202) (217) [----] end for; (218) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_203)