Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV.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_RLV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001171, allocations: 113.4 kB / 17.75 MB, free: 5.324 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.001127/0.001127, allocations: 188.3 kB / 18.68 MB, free: 4.402 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.326/1.326, allocations: 205.1 MB / 224.6 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.592e-05, allocations: 3.266 kB / 328.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV): time 0.006459/0.006484, allocations: 6.176 MB / 334.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003134/0.009632, allocations: 1.909 MB / 336.7 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004079/0.01006, allocations: 35.81 kB / 336.7 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000715/0.01078, allocations: 317.6 kB / 337 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007673/0.01158, allocations: 421.4 kB / 337.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.01219, allocations: 391.4 kB / 337.8 MB, free: 10 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002195/0.01439, allocations: 2.671 MB / 340.5 MB, free: 7.324 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001224/0.01563, allocations: 1.186 MB / 341.6 MB, free: 6.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008205/0.01646, allocations: 0.8453 MB / 342.5 MB, free: 5.25 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007886/0.01726, allocations: 0.8409 MB / 343.3 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001785/0.01744, allocations: 167.9 kB / 343.5 MB, free: 4.242 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.01767, allocations: 164 kB / 343.7 MB, free: 4.082 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001578/0.01925, allocations: 2.151 MB / 345.8 MB, free: 1.91 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0009102/0.02017, allocations: 1.385 MB / 347.2 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.02041, allocations: 219.3 kB / 347.4 MB, free: 300 kB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001403/0.02055, allocations: 35.81 kB / 347.4 MB, free: 264 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 449 (249) * Number of variables: 449 (212) Notification: Performance of Bindings: time 0.006259/0.02682, allocations: 6.757 MB / 354.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0005065/0.02734, allocations: 0.5346 MB / 354.7 MB, free: 8.754 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002938/0.03028, allocations: 3.397 MB / 358.1 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001855/0.03048, allocations: 183.8 kB / 358.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of Alias: time 0.003666/0.03415, allocations: 3.671 MB / 362 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001458/0.0343, allocations: 159.7 kB / 362.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of Events: time 0.0007595/0.03507, allocations: 0.7469 MB / 362.9 MB, free: 312 kB / 302.1 MB Notification: Performance of Detect States: time 0.000996/0.03608, allocations: 1.133 MB / 364 MB, free: 15.15 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001467/0.03755, allocations: 1.504 MB / 365.5 MB, free: 13.55 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_58) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (184/445) **************************** (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] (1) Real inductor.n.v (126) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (127) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_n.pin.v (128) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (129) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (130) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (131) [ALGB] (1) Real resistor.R_actual (132) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (133) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (134) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (135) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (136) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_n.pin.i (137) [ALGB] (3) Real[3] rectifier.thyristor_p.v (138) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (139) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (140) [ALGB] (3) Real[3] rectifier.thyristor_p.i (141) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (142) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (143) [DISC] (3) Boolean[3] $SEV_16[$i1] (144) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (145) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (146) [ALGB] (1) Real currentSensor.n.v (147) [ALGB] (1) Real resistor.p.v (148) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (149) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (150) [DISC] (3) Boolean[3] $SEV_11[$i1] (151) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (152) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (153) [DISC] (3) Boolean[3] $SEV_7[$i1] (154) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (155) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (156) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (157) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (158) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u1 (159) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u2 (160) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (161) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (162) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (163) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (164) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (165) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (166) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (167) [DISC] (3) Boolean[3] pulse2m.fire_p (168) [DISC] (3) Boolean[3] pulse2m.fire_n (169) [DER-] (1) Real $DER.inductor.i (170) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (171) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (172) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (173) [ALGB] (1) Real[1] multiStarResistance.multiStar.starpoints.pin.v (174) [ALGB] (3) Real[3] multiStarResistance.plug.pin.v (175) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (176) [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}) (177) [DISC] (3) Boolean[3] $SEV_15[$i1] (178) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (179) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (180) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (181) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (182) [ALGB] (1) Real pulse2m.twomPulse.gain.y (183) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (184) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (221/445) **************************** (1) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_204) (2) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_205) (3) [FOR-] (3) ($RES_SIM_120) (3) [----] for $i1 in 1:3 loop (3) [----] [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_121) (3) [----] end for; (4) [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_206) (5) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_280) (6) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_207) (7) [FOR-] (3) ($RES_SIM_122) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].off = $SEV_11[$i1] ($RES_SIM_123) (7) [----] end for; (8) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_208) (9) [FOR-] (3) ($RES_SIM_282) (9) [----] for $i1 in 1:3 loop (9) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_283) (9) [----] end for; (10) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_209) (11) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_124) (12) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_125) (13) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_284) (14) [FOR-] (3) ($RES_SIM_126) (14) [----] for $i1 in 1:3 loop (14) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_127) (14) [----] end for; (15) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_86) (16) [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_285) (17) [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_286) (18) [FOR-] (3) ($RES_SIM_128) (18) [----] for $i1 in 1:3 loop (18) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_129) (18) [----] end for; (19) [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_287) (20) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_288) (21) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.thyristor_n.plug_n.pin[3].v ($RES_SIM_289) (22) [FOR-] (3) ($RES_EVT_370) (22) [----] for $i1 in 1:3 loop (22) [----] [SCAL] (1) $SEV_14[$i1] = $SEV_12[$i1] or $SEV_13[$i1] ($RES_EVT_371) (22) [----] end for; (23) [FOR-] (3) ($RES_EVT_372) (23) [----] for $i1 in 1:3 loop (23) [----] [SCAL] (1) $SEV_15[$i1] = rectifier.andCondition_n[$i1].u1 and rectifier.andCondition_n[$i1].u2 ($RES_EVT_373) (23) [----] end for; (24) [FOR-] (3) ($RES_EVT_374) (24) [----] for $i1 in 1:3 loop (24) [----] [SCAL] (1) $SEV_16[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_375) (24) [----] end for; (25) [FOR-] (3) ($RES_EVT_376) (25) [----] for $i1 in 1:3 loop (25) [----] [SCAL] (1) $SEV_17[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_377) (25) [----] end for; (26) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_210) (27) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_211) (28) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_212) (29) [FOR-] (3) ($RES_SIM_213) (29) [----] for $i1 in 1:3 loop (29) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_214) (29) [----] end for; (30) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.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].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_131) (31) [----] end for; (32) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_90) (33) [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_216) (34) [SCAL] (1) meanVoltage.u = resistor.p.v - currentSensor.n.v ($RES_SIM_91) (35) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_290) (36) [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_217) (37) [SCAL] (1) constantVoltage.V = inductor.n.v - currentSensor.n.v ($RES_SIM_19) (38) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.thyristor_n.plug_n.pin[2].v ($RES_SIM_291) (39) [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_218) (40) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_292) (41) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].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].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_135) (42) [----] end for; (43) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.thyristor_n.plug_n.pin[1].v ($RES_SIM_293) (44) [SCAL] (1) rectifier.LossPower = $FUN_4 + $FUN_5 ($RES_SIM_95) (45) [ARRY] (3) rectifier.thyristor_n.fire = rectifier.thyristor_n.idealThyristor.fire ($RES_SIM_294) (46) [FOR-] (3) ($RES_SIM_136) (46) [----] for $i1 in 1:3 loop (46) [----] [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_137) (46) [----] end for; (47) [FOR-] (3) ($RES_SIM_96) (47) [----] for $i1 in 1:3 loop (47) [----] [SCAL] (1) rectifier.pre_n[$i1].y = $TEV_2 ($RES_SIM_97) (47) [----] end for; (48) [FOR-] (3) ($RES_SIM_295) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].n.i - rectifier.thyristor_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_296) (48) [----] end for; (49) [FOR-] (3) ($RES_SIM_138) (49) [----] for $i1 in 1:3 loop (49) [----] [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_139) (49) [----] end for; (50) [FOR-] (3) ($RES_SIM_98) (50) [----] for $i1 in 1:3 loop (50) [----] [SCAL] (1) rectifier.pre_p[$i1].y = $TEV_3 ($RES_SIM_99) (50) [----] end for; (51) [ARRY] (3) rectifier.thyristor_n.idealThyristor.n.v = rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_297) (52) [FOR-] (3) ($RES_SIM_298) (52) [----] for $i1 in 1:3 loop (52) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].p.i - rectifier.thyristor_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_299) (52) [----] end for; (53) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.thyristor_n.idealThyristor.p.v ($RES_SIM_300) (54) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_301) (55) [FOR-] (3) ($RES_SIM_302) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_303) (55) [----] end for; (56) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_304) (57) [FOR-] (3) ($RES_SIM_305) (57) [----] for $i1 in 1:3 loop (57) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_306) (57) [----] end for; (58) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_220) (59) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_221) (60) [SCAL] (1) inductor.v = resistor.n.v - inductor.n.v ($RES_SIM_23) (61) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_307) (62) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_222) (63) [SCAL] (1) $DER.inductor.i = inductor.v ($RES_SIM_24) (64) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_223) (65) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_309) (66) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_224) (67) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_225) (68) [FOR-] (3) ($RES_SIM_140) (68) [----] for $i1 in 1:3 loop (68) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_14[$i1] ($RES_SIM_141) (68) [----] end for; (69) [SCAL] (1) resistor.v = resistor.p.v - resistor.n.v ($RES_SIM_27) (70) [FOR-] (3) ($RES_SIM_226) (70) [----] for $i1 in 1:3 loop (70) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_227) (70) [----] end for; (71) [FOR-] (3) ($RES_SIM_142) (71) [----] for $i1 in 1:3 loop (71) [----] [SCAL] (1) rectifier.andCondition_n[$i1].y = $SEV_15[$i1] ($RES_SIM_143) (71) [----] end for; (72) [SCAL] (1) resistor.LossPower = resistor.v * inductor.i ($RES_SIM_29) (73) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_228) (74) [FOR-] (3) ($RES_SIM_229) (74) [----] for $i1 in 1:3 loop (74) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_230) (74) [----] end for; (75) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_144) (76) [FOR-] (3) ($RES_SIM_146) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_16[$i1] ($RES_SIM_147) (76) [----] end for; (77) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_148) (78) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_149) (79) [FOR-] (3) ($RES_SIM_310) (79) [----] for $i1 in 1:3 loop (79) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_311) (79) [----] end for; (80) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_312) (81) [FOR-] (3) ($RES_SIM_313) (81) [----] for $i1 in 1:3 loop (81) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_314) (81) [----] end for; (82) [SCAL] (1) resistor.v = resistor.R_actual * inductor.i ($RES_SIM_30) (83) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_31) (84) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_315) (85) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_231) (86) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_232) (87) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_233) (88) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_35) (89) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_234) (90) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_36) (91) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_235) (92) [FOR-] (3) ($RES_SIM_150) (92) [----] for $i1 in 1:3 loop (92) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_151) (92) [----] end for; (93) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_37) (94) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_236) (95) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_38) (96) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_237) (97) [FOR-] (3) ($RES_SIM_152) (97) [----] for $i1 in 1:3 loop (97) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_153) (97) [----] end for; (98) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_39) (99) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_238) (100) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_239) (101) [FOR-] (3) ($RES_SIM_154) (101) [----] for $i1 in 1:3 loop (101) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_155) (101) [----] end for; (102) [FOR-] (3) ($RES_SIM_156) (102) [----] for $i1 in 1:3 loop (102) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_157) (102) [----] end for; (103) [FOR-] (3) ($RES_SIM_158) (103) [----] for $i1 in 1:3 loop (103) [----] [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_159) (103) [----] end for; (104) [FOR-] (3) ($RES_$AUX_333) (104) [----] for $i1 in 1:3 loop (104) [----] [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_334) (104) [----] end for; (105) [SCAL] (1) -rectifier.iDC = sum(rectifier.star_p.plug_p.pin.i) ($RES_$AUX_332) (106) [SCAL] (1) -currentSensor.p.i = sum(rectifier.star_n.plug_p.pin.i) ($RES_$AUX_331) (107) [SCAL] (1) $FUN_4 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_330) (108) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_40) (109) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_41) (110) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_240) (111) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_42) (112) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_241) (113) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_43) (114) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_242) (115) [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_44) (116) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_243) (117) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_244) (118) [SCAL] (1) currentSensor.p.i - inductor.i = 0.0 ($RES_SIM_160) (119) [FOR-] (3) ($RES_SIM_47) (119) [----] for $i1 in 1:3 loop (119) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_48) (119) [----] end for; (120) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_247) (121) [FOR-] (3) ($RES_SIM_49) (121) [----] for $i1 in 1:3 loop (121) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_50) (121) [----] end for; (122) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.negativeEqual[3].u2 ($RES_SIM_248) (123) [SCAL] (1) inductor.i + rectifier.iDC = 0.0 ($RES_SIM_163) (124) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_249) (125) [SCAL] (1) $FUN_5 = sum(rectifier.thyristor_n.idealThyristor.LossPower) ($RES_$AUX_329) (126) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_328) (127) [SCAL] (1) ground.p.i = sum(multiStarResistance.star.plug_p.pin.i) ($RES_$AUX_326) (128) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_325) (129) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_335) (130) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_336) (131) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre_n[$i1].u ($RES_EVT_337) (132) [SCAL] (1) $TEV_3 = $PRE.rectifier.pre_p[$i1].u ($RES_EVT_338) (133) [FOR-] (3) ($RES_SIM_51) (133) [----] for $i1 in 1:3 loop (133) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_52) (133) [----] end for; (134) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.negativeEqual[2].u2 ($RES_SIM_250) (135) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_251) (136) [FOR-] (3) ($RES_SIM_53) (136) [----] for $i1 in 1:3 loop (136) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_54) (136) [----] end for; (137) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.negativeEqual[1].u2 ($RES_SIM_252) (138) [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_55) (139) [ARRY] (3) pulse2m.twomPulse.negativeEqual.y = pulse2m.twomPulse.fire_n ($RES_SIM_254) (140) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_255) (141) [FOR-] (3) ($RES_SIM_170) (141) [----] for $i1 in 1:3 loop (141) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_171) (141) [----] end for; (142) [ARRY] (3) pulse2m.twomPulse.negativeEqual.u1 = pulse2m.twomPulse.timerNegative.y ($RES_SIM_256) (143) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_58) (144) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_257) (145) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_172) (146) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_59) (147) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_258) (148) [ARRY] (3) pulse2m.fire_n = rectifier.fire_n ($RES_SIM_173) (149) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_259) (150) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_174) (151) [SCAL] (1) pulse2m.ac.pin[3].i + sineVoltage.plug_p.pin[3].i + rectifier.ac.pin[3].i = 0.0 ($RES_SIM_176) (152) [SCAL] (1) pulse2m.ac.pin[2].i + sineVoltage.plug_p.pin[2].i + rectifier.ac.pin[2].i = 0.0 ($RES_SIM_177) (153) [SCAL] (1) pulse2m.ac.pin[1].i + sineVoltage.plug_p.pin[1].i + rectifier.ac.pin[1].i = 0.0 ($RES_SIM_178) (154) [SCAL] (1) pulse2m.ac.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_179) (155) [SCAL] (1) $TEV_10 = $PRE.rectifier.thyristor_n.idealThyristor[$i1].off ($RES_EVT_345) (156) [SCAL] (1) $TEV_11 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_346) (157) [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_348) (158) [SCAL] (1) $SEV_2 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_349) (159) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_316) (160) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_317) (161) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_318) (162) [FOR-] (3) ($RES_SIM_60) (162) [----] for $i1 in 1:3 loop (162) [----] [SCAL] (1) pulse2m.twomPulse.negativeEqual[$i1].y = $SEV_5[$i1] ($RES_SIM_61) (162) [----] end for; (163) [FOR-] (3) ($RES_SIM_101) (163) [----] for $i1 in 1:3 loop (163) [----] [SCAL] (1) rectifier.star_n.plug_p.pin[$i1].v = currentSensor.n.v ($RES_SIM_102) (163) [----] end for; (164) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_260) (165) [FOR-] (3) ($RES_SIM_62) (165) [----] for $i1 in 1:3 loop (165) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_6[$i1] ($RES_SIM_63) (165) [----] end for; (166) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_261) (167) [FOR-] (3) ($RES_SIM_104) (167) [----] for $i1 in 1:3 loop (167) [----] [SCAL] (1) rectifier.star_p.plug_p.pin[$i1].v = resistor.p.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.timerNegative[$i1].y = if pulse2m.twomPulse.timerNegative[$i1].u then time - pulse2m.twomPulse.timerNegative[$i1].entryTime else 0.0 ($RES_SIM_65) (168) [----] end for; (169) [ARRY] (3) rectifier.thyristor_n.i = rectifier.thyristor_n.plug_p.pin.i ($RES_SIM_106) (170) [FOR-] (3) ($RES_SIM_66) (170) [----] for $i1 in 1:3 loop (170) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (170) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (170) [----] [----] end when; (170) [----] end for; (171) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_265) (172) [SCAL] (1) pulse2m.ac.pin[3].v = sineVoltage.plug_p.pin[3].v ($RES_SIM_180) (173) [ARRY] (3) rectifier.thyristor_n.v = rectifier.thyristor_n.plug_p.pin.v - rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_107) (174) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_n[3].u2 ($RES_SIM_266) (175) [SCAL] (1) pulse2m.ac.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_181) (176) [FOR-] (3) ($RES_SIM_108) (176) [----] for $i1 in 1:3 loop (176) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].p.i ($RES_SIM_109) (176) [----] end for; (177) [FOR-] (3) ($RES_SIM_68) (177) [----] for $i1 in 1:3 loop (177) [----] [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_69) (177) [----] end for; (178) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_p[3].u2 ($RES_SIM_267) (179) [SCAL] (1) pulse2m.ac.pin[2].v = sineVoltage.plug_p.pin[2].v ($RES_SIM_182) (180) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_n[2].u2 ($RES_SIM_268) (181) [SCAL] (1) pulse2m.ac.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_183) (182) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_p[2].u2 ($RES_SIM_269) (183) [SCAL] (1) pulse2m.ac.pin[1].v = sineVoltage.plug_p.pin[1].v ($RES_SIM_184) (184) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_350) (185) [FOR-] (3) ($RES_EVT_352) (185) [----] for $i1 in 1:3 loop (185) [----] [SCAL] (1) $SEV_5[$i1] = pulse2m.twomPulse.negativeEqual[$i1].u1 > pulse2m.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_353) (185) [----] end for; (186) [FOR-] (3) ($RES_EVT_354) (186) [----] for $i1 in 1:3 loop (186) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_355) (186) [----] end for; (187) [SCAL] (1) rectifier.vDC = resistor.p.v - currentSensor.n.v ($RES_BND_320) (188) [FOR-] (3) ($RES_EVT_356) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_357) (188) [----] end for; (189) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_322) (190) [FOR-] (3) ($RES_EVT_358) (190) [----] for $i1 in 1:3 loop (190) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_359) (190) [----] end for; (191) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_323) (192) [ARRY] (3) rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off ($RES_BND_324) (193) [FOR-] (3) ($RES_SIM_110) (193) [----] for $i1 in 1:3 loop (193) [----] [SCAL] (1) 0.0 = rectifier.thyristor_n.idealThyristor[$i1].p.i + rectifier.thyristor_n.idealThyristor[$i1].n.i ($RES_SIM_111) (193) [----] end for; (194) [FOR-] (3) ($RES_SIM_70) (194) [----] for $i1 in 1:3 loop (194) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (194) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (194) [----] [----] end when; (194) [----] end for; (195) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_n[1].u2 ($RES_SIM_270) (196) [FOR-] (3) ($RES_SIM_112) (196) [----] for $i1 in 1:3 loop (196) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].p.v - rectifier.thyristor_n.idealThyristor[$i1].n.v ($RES_SIM_113) (196) [----] end for; (197) [FOR-] (3) ($RES_SIM_72) (197) [----] for $i1 in 1:3 loop (197) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_7[$i1] ($RES_SIM_73) (197) [----] end for; (198) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_p[1].u2 ($RES_SIM_271) (199) [ARRY] (3) rectifier.fire_n = rectifier.andCondition_n.u1 ($RES_SIM_272) (200) [FOR-] (3) ($RES_SIM_74) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_75) (200) [----] end for; (201) [ARRY] (3) rectifier.andCondition_n.y = rectifier.pre_n.u ($RES_SIM_273) (202) [ARRY] (3) rectifier.pre_n.y = rectifier.thyristor_n.fire ($RES_SIM_274) (203) [FOR-] (3) ($RES_SIM_116) (203) [----] for $i1 in 1:3 loop (203) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].LossPower = rectifier.thyristor_n.idealThyristor[$i1].v * rectifier.thyristor_n.idealThyristor[$i1].i ($RES_SIM_117) (203) [----] end for; (204) [ARRY] (3) rectifier.pre_p.y = rectifier.thyristor_p.fire ($RES_SIM_275) (205) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre_p.u ($RES_SIM_276) (206) [FOR-] (3) ($RES_SIM_118) (206) [----] for $i1 in 1:3 loop (206) [----] [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_119) (206) [----] end for; (207) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_79) (208) [FOR-] (3) ($RES_SIM_278) (208) [----] for $i1 in 1:3 loop (208) [----] [SCAL] (1) rectifier.thyristor_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_279) (208) [----] end for; (209) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_195) (210) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_196) (211) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_197) (212) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_198) (213) [FOR-] (3) ($RES_SIM_199) (213) [----] for $i1 in 1:3 loop (213) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_200) (213) [----] end for; (214) [FOR-] (3) ($RES_EVT_360) (214) [----] for $i1 in 1:3 loop (214) [----] [SCAL] (1) $SEV_9[$i1] = rectifier.thyristor_n.idealThyristor[$i1].s < 0.0 ($RES_EVT_361) (214) [----] end for; (215) [FOR-] (3) ($RES_EVT_362) (215) [----] for $i1 in 1:3 loop (215) [----] [SCAL] (1) $SEV_10[$i1] = $TEV_10 and not rectifier.thyristor_n.idealThyristor[$i1].fire ($RES_EVT_363) (215) [----] end for; (216) [FOR-] (3) ($RES_EVT_364) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) $SEV_11[$i1] = $SEV_9[$i1] or $SEV_10[$i1] ($RES_EVT_365) (216) [----] end for; (217) [FOR-] (3) ($RES_EVT_366) (217) [----] for $i1 in 1:3 loop (217) [----] [SCAL] (1) $SEV_12[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_367) (217) [----] end for; (218) [FOR-] (3) ($RES_EVT_368) (218) [----] for $i1 in 1:3 loop (218) [----] [SCAL] (1) $SEV_13[$i1] = $TEV_11 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_369) (218) [----] end for; (219) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_201) (220) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_202) (221) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_203)