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_RL.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_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 108.2 kB / 16.42 MB, free: 6.512 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.001231/0.001231, allocations: 189.9 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.278/1.278, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.333e-05/3.334e-05, allocations: 3.484 kB / 327.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL): time 0.006819/0.006861, allocations: 6.082 MB / 333.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003264/0.01015, allocations: 1.898 MB / 335.2 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004362/0.0106, allocations: 39.75 kB / 335.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000692/0.0113, allocations: 313.7 kB / 335.6 MB, free: 10.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007377/0.01208, allocations: 409.5 kB / 336 MB, free: 10.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.01266, allocations: 391.4 kB / 336.3 MB, free: 10.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002065/0.01474, allocations: 2.639 MB / 339 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.01595, allocations: 1.182 MB / 340.2 MB, free: 6.277 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007804/0.01674, allocations: 0.8375 MB / 341 MB, free: 5.438 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007785/0.01753, allocations: 0.8292 MB / 341.8 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001725/0.01771, allocations: 156 kB / 342 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002153/0.01793, allocations: 164 kB / 342.1 MB, free: 4.293 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001407/0.01935, allocations: 2.128 MB / 344.3 MB, free: 2.145 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0007837/0.02014, allocations: 1.358 MB / 345.6 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.02035, allocations: 215.3 kB / 345.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001461/0.0205, allocations: 35.81 kB / 345.9 MB, free: 0.5234 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: 443 (243) * Number of variables: 443 (206) Notification: Performance of Bindings: time 0.005675/0.02618, allocations: 6.795 MB / 352.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000422/0.02661, allocations: 354.8 kB / 353 MB, free: 9.191 MB / 302.1 MB Notification: Performance of Early Inline: time 0.003096/0.02972, allocations: 3.342 MB / 356.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002029/0.02993, allocations: 183.7 kB / 356.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of Alias: time 0.00353/0.03347, allocations: 3.523 MB / 360.1 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001602/0.03365, allocations: 155.8 kB / 360.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of Events: time 0.000772/0.03443, allocations: 0.743 MB / 360.9 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of Detect States: time 0.001137/0.03558, allocations: 1.13 MB / 362.1 MB, free: 15.82 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001459/0.03705, allocations: 1.5 MB / 363.6 MB, free: 14.22 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_54) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (183/444) **************************** (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) [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 = resistor.p.v - currentSensor.n.v (26) [ALGB] (3) Real[3] pulse2m.voltageSensor.v (27) [ALGB] (3) Real[3] pulse2m.twomPulse.replicator.y (28) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (29) [ALGB] (3) Real[3] pulse2m.twomPulse.positiveThreshold.u (30) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.p.v (31) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (32) [ALGB] (3) Real[3] pulse2m.delta.plug_p.pin.v (33) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerNegative.entryTime (34) [DISC] (3) Boolean[3] pulse2m.twomPulse.positiveThreshold.y (35) [DISC] (3) Boolean[3] $SEV_14[$i1] (36) [ALGB] (3) Real[3] rectifier.thyristor_n.v (37) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeThreshold.u (38) [DISC] (3) Boolean[3] rectifier.enableLogic.booleanReplicator.y (39) [ALGB] (3) flow Real[3] pulse2m.ac.pin.i (40) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeThreshold.y (41) [ALGB] (3) flow Real[3] sineVoltage.plug_n.pin.i (42) [ALGB] (1) Real rectifier.iDC = rectifier.iDC (43) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_n.pin.v (44) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u1 (45) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u2 (46) [DISC] (3) Boolean[3] $SEV_5[$i1] (47) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeEqual.y (48) [ALGB] (3) Real[3] rectifier.thyristor_n.i (49) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (50) [ALGB] (3) Real[3] multiStarResistance.multiStar.plug_p.pin.v (51) [ALGB] (3) Real[3] pulse2m.ac.pin.v (52) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (53) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_p.pin.v (54) [ALGB] (3) Real[3] pulse2m.twomPulse.v (55) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_n.pin.i (56) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (57) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_n.pin.v (58) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (59) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (60) [DER-] (1) Real $DER.meanVoltage.x (61) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.n.i (62) [ALGB] (3) flow Real[3] multiStarResistance.multiStar.plug_p.pin.i (63) [ALGB] (1) Real rectifier.LossPower (64) [ALGB] (1) Real resistor.n.v (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 inductor.v (121) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.i (122) [DISC] (3) Boolean[3] rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off (123) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (124) [ALGB] (1) Real[1] multiStarResistance.resistor.i (125) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (126) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_n.pin.v (127) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (128) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (129) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (130) [ALGB] (1) Real resistor.R_actual (131) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (132) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (133) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (134) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (135) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_n.pin.i (136) [ALGB] (3) Real[3] rectifier.thyristor_p.v (137) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (138) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (139) [ALGB] (3) Real[3] rectifier.thyristor_p.i (140) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (141) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (142) [DISC] (3) Boolean[3] $SEV_16[$i1] (143) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (144) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (145) [ALGB] (1) Real currentSensor.n.v (146) [ALGB] (1) Real resistor.p.v (147) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (148) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (149) [DISC] (3) Boolean[3] $SEV_11[$i1] (150) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (151) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (152) [DISC] (3) Boolean[3] $SEV_7[$i1] (153) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (154) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (155) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (156) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (157) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u1 (158) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u2 (159) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (160) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (161) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (162) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (163) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (164) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (165) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (166) [DISC] (3) Boolean[3] pulse2m.fire_p (167) [DISC] (3) Boolean[3] pulse2m.fire_n (168) [DER-] (1) Real $DER.inductor.i (169) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (170) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (171) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (172) [ALGB] (1) Real[1] multiStarResistance.multiStar.starpoints.pin.v (173) [ALGB] (3) Real[3] multiStarResistance.plug.pin.v (174) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (175) [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}) (176) [DISC] (3) Boolean[3] $SEV_15[$i1] (177) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (178) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (179) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (180) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (181) [ALGB] (1) Real pulse2m.twomPulse.gain.y (182) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (183) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (220/444) **************************** (1) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_204) (2) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_205) (3) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_120) (4) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_206) (5) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_121) (6) [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_280) (7) [FOR-] (3) ($RES_SIM_207) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.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].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_123) (8) [----] end for; (9) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_82) (10) [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_281) (11) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_282) (12) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_209) (13) [FOR-] (3) ($RES_SIM_124) (13) [----] for $i1 in 1:3 loop (13) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_125) (13) [----] end for; (14) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.thyristor_n.plug_n.pin[3].v ($RES_SIM_283) (15) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_284) (16) [FOR-] (3) ($RES_SIM_126) (16) [----] for $i1 in 1:3 loop (16) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_127) (16) [----] end for; (17) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_86) (18) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.thyristor_n.plug_n.pin[2].v ($RES_SIM_285) (19) [SCAL] (1) meanVoltage.u = resistor.p.v - currentSensor.n.v ($RES_SIM_87) (20) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_286) (21) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.thyristor_n.plug_n.pin[1].v ($RES_SIM_287) (22) [ARRY] (3) rectifier.thyristor_n.fire = rectifier.thyristor_n.idealThyristor.fire ($RES_SIM_288) (23) [FOR-] (3) ($RES_SIM_289) (23) [----] for $i1 in 1:3 loop (23) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].n.i - rectifier.thyristor_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_290) (23) [----] end for; (24) [FOR-] (3) ($RES_EVT_370) (24) [----] for $i1 in 1:3 loop (24) [----] [SCAL] (1) $SEV_17[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_371) (24) [----] end for; (25) [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_210) (26) [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_211) (27) [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_212) (28) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_213) (29) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_214) (30) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_215) (31) [FOR-] (3) ($RES_SIM_130) (31) [----] for $i1 in 1:3 loop (31) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_131) (31) [----] end for; (32) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_216) (33) [SCAL] (1) rectifier.LossPower = $FUN_4 + $FUN_5 ($RES_SIM_91) (34) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_217) (35) [FOR-] (3) ($RES_SIM_132) (35) [----] for $i1 in 1:3 loop (35) [----] [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_133) (35) [----] end for; (36) [FOR-] (3) ($RES_SIM_92) (36) [----] for $i1 in 1:3 loop (36) [----] [SCAL] (1) rectifier.pre_n[$i1].y = $TEV_2 ($RES_SIM_93) (36) [----] end for; (37) [SCAL] (1) inductor.v = resistor.n.v - currentSensor.n.v ($RES_SIM_19) (38) [ARRY] (3) rectifier.thyristor_n.idealThyristor.n.v = rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_291) (39) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_218) (40) [FOR-] (3) ($RES_SIM_292) (40) [----] for $i1 in 1:3 loop (40) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].p.i - rectifier.thyristor_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_293) (40) [----] end for; (41) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_219) (42) [FOR-] (3) ($RES_SIM_134) (42) [----] for $i1 in 1:3 loop (42) [----] [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_135) (42) [----] end for; (43) [FOR-] (3) ($RES_SIM_94) (43) [----] for $i1 in 1:3 loop (43) [----] [SCAL] (1) rectifier.pre_p[$i1].y = $TEV_3 ($RES_SIM_95) (43) [----] end for; (44) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.thyristor_n.idealThyristor.p.v ($RES_SIM_294) (45) [FOR-] (3) ($RES_SIM_136) (45) [----] for $i1 in 1:3 loop (45) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_14[$i1] ($RES_SIM_137) (45) [----] end for; (46) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_295) (47) [FOR-] (3) ($RES_SIM_97) (47) [----] for $i1 in 1:3 loop (47) [----] [SCAL] (1) rectifier.star_n.plug_p.pin[$i1].v = currentSensor.n.v ($RES_SIM_98) (47) [----] end for; (48) [FOR-] (3) ($RES_SIM_296) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_297) (48) [----] end for; (49) [FOR-] (3) ($RES_SIM_138) (49) [----] for $i1 in 1:3 loop (49) [----] [SCAL] (1) rectifier.andCondition_n[$i1].y = $SEV_15[$i1] ($RES_SIM_139) (49) [----] end for; (50) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_298) (51) [FOR-] (3) ($RES_SIM_299) (51) [----] for $i1 in 1:3 loop (51) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_300) (51) [----] end for; (52) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_301) (53) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_303) (54) [SCAL] (1) $DER.inductor.i = inductor.v ($RES_SIM_20) (55) [FOR-] (3) ($RES_SIM_304) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_305) (55) [----] end for; (56) [FOR-] (3) ($RES_SIM_220) (56) [----] for $i1 in 1:3 loop (56) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_221) (56) [----] end for; (57) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_306) (58) [SCAL] (1) resistor.v = resistor.p.v - resistor.n.v ($RES_SIM_23) (59) [FOR-] (3) ($RES_SIM_307) (59) [----] for $i1 in 1:3 loop (59) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_308) (59) [----] end for; (60) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_222) (61) [FOR-] (3) ($RES_SIM_223) (61) [----] for $i1 in 1:3 loop (61) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_224) (61) [----] end for; (62) [SCAL] (1) resistor.LossPower = resistor.v * inductor.i ($RES_SIM_25) (63) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_309) (64) [SCAL] (1) resistor.v = resistor.R_actual * inductor.i ($RES_SIM_26) (65) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_225) (66) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_140) (67) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_27) (68) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_226) (69) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_227) (70) [FOR-] (3) ($RES_SIM_142) (70) [----] for $i1 in 1:3 loop (70) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_16[$i1] ($RES_SIM_143) (70) [----] end for; (71) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_228) (72) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_229) (73) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_144) (74) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_145) (75) [FOR-] (3) ($RES_SIM_146) (75) [----] for $i1 in 1:3 loop (75) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_147) (75) [----] end for; (76) [FOR-] (3) ($RES_SIM_148) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_149) (76) [----] end for; (77) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_31) (78) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_230) (79) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_32) (80) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_231) (81) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_33) (82) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_232) (83) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_34) (84) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_233) (85) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_35) (86) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_234) (87) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_36) (88) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_235) (89) [FOR-] (3) ($RES_SIM_150) (89) [----] for $i1 in 1:3 loop (89) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_151) (89) [----] end for; (90) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_37) (91) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_236) (92) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_38) (93) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_237) (94) [FOR-] (3) ($RES_SIM_152) (94) [----] for $i1 in 1:3 loop (94) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_153) (94) [----] end for; (95) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_39) (96) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_238) (97) [FOR-] (3) ($RES_SIM_154) (97) [----] for $i1 in 1:3 loop (97) [----] [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_155) (97) [----] end for; (98) [SCAL] (1) currentSensor.p.i - inductor.i = 0.0 ($RES_SIM_156) (99) [SCAL] (1) inductor.i + rectifier.iDC = 0.0 ($RES_SIM_158) (100) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_329) (101) [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_40) (102) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_241) (103) [FOR-] (3) ($RES_SIM_43) (103) [----] for $i1 in 1:3 loop (103) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_44) (103) [----] end for; (104) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.negativeEqual[3].u2 ($RES_SIM_242) (105) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_243) (106) [FOR-] (3) ($RES_SIM_45) (106) [----] for $i1 in 1:3 loop (106) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_46) (106) [----] end for; (107) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.negativeEqual[2].u2 ($RES_SIM_244) (108) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_245) (109) [FOR-] (3) ($RES_SIM_47) (109) [----] for $i1 in 1:3 loop (109) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_48) (109) [----] end for; (110) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.negativeEqual[1].u2 ($RES_SIM_246) (111) [FOR-] (3) ($RES_SIM_49) (111) [----] for $i1 in 1:3 loop (111) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_50) (111) [----] end for; (112) [ARRY] (3) pulse2m.twomPulse.negativeEqual.y = pulse2m.twomPulse.fire_n ($RES_SIM_248) (113) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_249) (114) [FOR-] (3) ($RES_SIM_165) (114) [----] for $i1 in 1:3 loop (114) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_166) (114) [----] end for; (115) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_167) (116) [ARRY] (3) pulse2m.fire_n = rectifier.fire_n ($RES_SIM_168) (117) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_169) (118) [FOR-] (3) ($RES_$AUX_327) (118) [----] for $i1 in 1:3 loop (118) [----] [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_328) (118) [----] end for; (119) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_330) (120) [SCAL] (1) -rectifier.iDC = sum(rectifier.star_p.plug_p.pin.i) ($RES_$AUX_326) (121) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre_n[$i1].u ($RES_EVT_331) (122) [SCAL] (1) -currentSensor.p.i = sum(rectifier.star_n.plug_p.pin.i) ($RES_$AUX_325) (123) [SCAL] (1) $TEV_3 = $PRE.rectifier.pre_p[$i1].u ($RES_EVT_332) (124) [SCAL] (1) $FUN_4 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_324) (125) [SCAL] (1) $FUN_5 = sum(rectifier.thyristor_n.idealThyristor.LossPower) ($RES_$AUX_323) (126) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_322) (127) [SCAL] (1) ground.p.i = sum(multiStarResistance.star.plug_p.pin.i) ($RES_$AUX_320) (128) [SCAL] (1) $TEV_10 = $PRE.rectifier.thyristor_n.idealThyristor[$i1].off ($RES_EVT_339) (129) [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_51) (130) [ARRY] (3) pulse2m.twomPulse.negativeEqual.u1 = pulse2m.twomPulse.timerNegative.y ($RES_SIM_250) (131) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_251) (132) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_252) (133) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_54) (134) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_253) (135) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_55) (136) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_254) (137) [FOR-] (3) ($RES_SIM_56) (137) [----] for $i1 in 1:3 loop (137) [----] [SCAL] (1) pulse2m.twomPulse.negativeEqual[$i1].y = $SEV_5[$i1] ($RES_SIM_57) (137) [----] end for; (138) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_255) (139) [SCAL] (1) pulse2m.ac.pin[3].i + sineVoltage.plug_p.pin[3].i + rectifier.ac.pin[3].i = 0.0 ($RES_SIM_171) (140) [FOR-] (3) ($RES_SIM_58) (140) [----] for $i1 in 1:3 loop (140) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_6[$i1] ($RES_SIM_59) (140) [----] end for; (141) [SCAL] (1) pulse2m.ac.pin[2].i + sineVoltage.plug_p.pin[2].i + rectifier.ac.pin[2].i = 0.0 ($RES_SIM_172) (142) [SCAL] (1) pulse2m.ac.pin[1].i + sineVoltage.plug_p.pin[1].i + rectifier.ac.pin[1].i = 0.0 ($RES_SIM_173) (143) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_259) (144) [SCAL] (1) pulse2m.ac.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_174) (145) [SCAL] (1) pulse2m.ac.pin[3].v = sineVoltage.plug_p.pin[3].v ($RES_SIM_175) (146) [SCAL] (1) pulse2m.ac.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_176) (147) [SCAL] (1) pulse2m.ac.pin[2].v = sineVoltage.plug_p.pin[2].v ($RES_SIM_177) (148) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_319) (149) [SCAL] (1) pulse2m.ac.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_178) (150) [SCAL] (1) pulse2m.ac.pin[1].v = sineVoltage.plug_p.pin[1].v ($RES_SIM_179) (151) [SCAL] (1) $TEV_11 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_340) (152) [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_342) (153) [SCAL] (1) $SEV_2 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_343) (154) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_344) (155) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_310) (156) [FOR-] (3) ($RES_EVT_346) (156) [----] for $i1 in 1:3 loop (156) [----] [SCAL] (1) $SEV_5[$i1] = pulse2m.twomPulse.negativeEqual[$i1].u1 > pulse2m.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_347) (156) [----] end for; (157) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_311) (158) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_312) (159) [FOR-] (3) ($RES_EVT_348) (159) [----] for $i1 in 1:3 loop (159) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_349) (159) [----] end for; (160) [SCAL] (1) rectifier.vDC = resistor.p.v - currentSensor.n.v ($RES_BND_314) (161) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_316) (162) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_317) (163) [ARRY] (3) rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off ($RES_BND_318) (164) [FOR-] (3) ($RES_SIM_100) (164) [----] for $i1 in 1:3 loop (164) [----] [SCAL] (1) rectifier.star_p.plug_p.pin[$i1].v = resistor.p.v ($RES_SIM_101) (164) [----] end for; (165) [FOR-] (3) ($RES_SIM_60) (165) [----] for $i1 in 1:3 loop (165) [----] [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_61) (165) [----] end for; (166) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_n[3].u2 ($RES_SIM_260) (167) [ARRY] (3) rectifier.thyristor_n.i = rectifier.thyristor_n.plug_p.pin.i ($RES_SIM_102) (168) [FOR-] (3) ($RES_SIM_62) (168) [----] for $i1 in 1:3 loop (168) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (168) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (168) [----] [----] end when; (168) [----] end for; (169) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_p[3].u2 ($RES_SIM_261) (170) [ARRY] (3) rectifier.thyristor_n.v = rectifier.thyristor_n.plug_p.pin.v - rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_103) (171) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_n[2].u2 ($RES_SIM_262) (172) [FOR-] (3) ($RES_SIM_104) (172) [----] for $i1 in 1:3 loop (172) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].p.i ($RES_SIM_105) (172) [----] end for; (173) [FOR-] (3) ($RES_SIM_64) (173) [----] for $i1 in 1:3 loop (173) [----] [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_65) (173) [----] end for; (174) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_p[2].u2 ($RES_SIM_263) (175) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_n[1].u2 ($RES_SIM_264) (176) [FOR-] (3) ($RES_SIM_106) (176) [----] for $i1 in 1:3 loop (176) [----] [SCAL] (1) 0.0 = rectifier.thyristor_n.idealThyristor[$i1].p.i + rectifier.thyristor_n.idealThyristor[$i1].n.i ($RES_SIM_107) (176) [----] end for; (177) [FOR-] (3) ($RES_SIM_66) (177) [----] for $i1 in 1:3 loop (177) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (177) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (177) [----] [----] end when; (177) [----] end for; (178) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_p[1].u2 ($RES_SIM_265) (179) [ARRY] (3) rectifier.fire_n = rectifier.andCondition_n.u1 ($RES_SIM_266) (180) [FOR-] (3) ($RES_SIM_108) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].p.v - rectifier.thyristor_n.idealThyristor[$i1].n.v ($RES_SIM_109) (180) [----] end for; (181) [FOR-] (3) ($RES_SIM_68) (181) [----] for $i1 in 1:3 loop (181) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_7[$i1] ($RES_SIM_69) (181) [----] end for; (182) [ARRY] (3) rectifier.andCondition_n.y = rectifier.pre_n.u ($RES_SIM_267) (183) [ARRY] (3) rectifier.pre_n.y = rectifier.thyristor_n.fire ($RES_SIM_268) (184) [ARRY] (3) rectifier.pre_p.y = rectifier.thyristor_p.fire ($RES_SIM_269) (185) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_189) (186) [FOR-] (3) ($RES_EVT_350) (186) [----] for $i1 in 1:3 loop (186) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_351) (186) [----] end for; (187) [FOR-] (3) ($RES_EVT_352) (187) [----] for $i1 in 1:3 loop (187) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_353) (187) [----] end for; (188) [FOR-] (3) ($RES_EVT_354) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) $SEV_9[$i1] = rectifier.thyristor_n.idealThyristor[$i1].s < 0.0 ($RES_EVT_355) (188) [----] end for; (189) [FOR-] (3) ($RES_EVT_356) (189) [----] for $i1 in 1:3 loop (189) [----] [SCAL] (1) $SEV_10[$i1] = $TEV_10 and not rectifier.thyristor_n.idealThyristor[$i1].fire ($RES_EVT_357) (189) [----] end for; (190) [FOR-] (3) ($RES_EVT_358) (190) [----] for $i1 in 1:3 loop (190) [----] [SCAL] (1) $SEV_11[$i1] = $SEV_9[$i1] or $SEV_10[$i1] ($RES_EVT_359) (190) [----] end for; (191) [FOR-] (3) ($RES_SIM_70) (191) [----] for $i1 in 1:3 loop (191) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_71) (191) [----] end for; (192) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre_p.u ($RES_SIM_270) (193) [FOR-] (3) ($RES_SIM_112) (193) [----] for $i1 in 1:3 loop (193) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].LossPower = rectifier.thyristor_n.idealThyristor[$i1].v * rectifier.thyristor_n.idealThyristor[$i1].i ($RES_SIM_113) (193) [----] end for; (194) [FOR-] (3) ($RES_SIM_272) (194) [----] for $i1 in 1:3 loop (194) [----] [SCAL] (1) rectifier.thyristor_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_273) (194) [----] end for; (195) [FOR-] (3) ($RES_SIM_114) (195) [----] for $i1 in 1:3 loop (195) [----] [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_115) (195) [----] end for; (196) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_75) (197) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_274) (198) [FOR-] (3) ($RES_SIM_116) (198) [----] for $i1 in 1:3 loop (198) [----] [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_117) (198) [----] end for; (199) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_190) (200) [FOR-] (3) ($RES_SIM_276) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_277) (200) [----] end for; (201) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_191) (202) [FOR-] (3) ($RES_SIM_118) (202) [----] for $i1 in 1:3 loop (202) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].off = $SEV_11[$i1] ($RES_SIM_119) (202) [----] end for; (203) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_192) (204) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_278) (205) [FOR-] (3) ($RES_SIM_193) (205) [----] for $i1 in 1:3 loop (205) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_194) (205) [----] end for; (206) [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_279) (207) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_195) (208) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_196) (209) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_197) (210) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_198) (211) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_199) (212) [FOR-] (3) ($RES_EVT_360) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) $SEV_12[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_361) (212) [----] end for; (213) [FOR-] (3) ($RES_EVT_362) (213) [----] for $i1 in 1:3 loop (213) [----] [SCAL] (1) $SEV_13[$i1] = $TEV_11 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_363) (213) [----] end for; (214) [FOR-] (3) ($RES_EVT_364) (214) [----] for $i1 in 1:3 loop (214) [----] [SCAL] (1) $SEV_14[$i1] = $SEV_12[$i1] or $SEV_13[$i1] ($RES_EVT_365) (214) [----] end for; (215) [FOR-] (3) ($RES_EVT_366) (215) [----] for $i1 in 1:3 loop (215) [----] [SCAL] (1) $SEV_15[$i1] = rectifier.andCondition_n[$i1].u1 and rectifier.andCondition_n[$i1].u2 ($RES_EVT_367) (215) [----] end for; (216) [FOR-] (3) ($RES_EVT_368) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) $SEV_16[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_369) (216) [----] end for; (217) [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_200) (218) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_201) (219) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_202) (220) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_203)