Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.pre_n.1..u|rectifier.pre_n.2..u|rectifier.pre_n.3..u|rectifier.pre_p.1..u|rectifier.pre_p.2..u|rectifier.pre_p.3..u|rectifier.thyristor_n.idealThyristor.1..off|rectifier.thyristor_n.idealThyristor.2..off|rectifier.thyristor_n.idealThyristor.3..off|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.pre_n.1..u|rectifier.pre_n.2..u|rectifier.pre_n.3..u|rectifier.pre_p.1..u|rectifier.pre_p.2..u|rectifier.pre_p.3..u|rectifier.thyristor_n.idealThyristor.1..off|rectifier.thyristor_n.idealThyristor.2..off|rectifier.thyristor_n.idealThyristor.3..off|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 110 kB / 17.75 MB, free: 5.328 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.001163/0.001163, allocations: 199.6 kB / 18.68 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.192/1.192, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.753e-05, allocations: 2.281 kB / 352 MB, free: 3.223 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R): time 0.006793/0.006818, allocations: 6.087 MB / 358.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003641/0.01048, allocations: 1.874 MB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005773/0.01108, allocations: 51.75 kB / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008025/0.01189, allocations: 301.7 kB / 360.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.01292, allocations: 421.5 kB / 360.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000735/0.01367, allocations: 383.4 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00268/0.01636, allocations: 2.733 MB / 363.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.01782, allocations: 1.268 MB / 365.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009702/0.0188, allocations: 0.8492 MB / 365.9 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001/0.01981, allocations: 0.8526 MB / 366.8 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001865/0.02001, allocations: 164 kB / 366.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002341/0.02025, allocations: 164 kB / 367.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001589/0.02184, allocations: 2.14 MB / 369.2 MB, free: 1.848 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0008868/0.02274, allocations: 1.382 MB / 370.6 MB, free: 460 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.02299, allocations: 219.3 kB / 370.8 MB, free: 240 kB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001893/0.02318, allocations: 35.81 kB / 370.9 MB, free: 204 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 (248) * Number of variables: 452 (207) Notification: Performance of Bindings: time 0.172/0.1952, allocations: 6.908 MB / 377.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003505/0.1955, allocations: 348.7 kB / 378.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002759/0.1983, allocations: 3.418 MB / 381.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002625/0.1986, allocations: 190.9 kB / 381.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of Alias: time 0.003487/0.2021, allocations: 3.504 MB / 385.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002024/0.2023, allocations: 160.6 kB / 385.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of Events: time 0.0008234/0.2031, allocations: 0.8147 MB / 386.2 MB, free: 8.547 MB / 302.1 MB Notification: Performance of Detect States: time 0.000994/0.2041, allocations: 1.148 MB / 387.4 MB, free: 7.785 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001538/0.2057, allocations: 1.546 MB / 388.9 MB, free: 6.863 MB / 302.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_53) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (185/454) **************************** (1) [ALGB] (3) Real[3] sineVoltage.sineVoltage.signalSource.y (2) [DISC] (3) Boolean[3] $SEV_6[$i1] (3) [ALGB] (1) Real rootMeanSquareVoltage.product.y (4) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.p.i (5) [ALGB] (3) Real[3] sineVoltage.sineVoltage.p.v (6) [ALGB] (2) Real[2] rootMeanSquareVoltage.product.u (7) [DISC] (3) final Boolean[3] rectifier.thyristor_p.idealThyristor.off (fixed = {true for $i1 in 1:3}, start = {rectifier.offStart_p[$idealThyristor1] for $idealThyristor1 in 1:3}) (8) [ALGB] (1) Real[1] multiStarResistance.star.plug_p.pin.v (9) [ALGB] (1) Real resistor.v (10) [ALGB] (3) Real[3] rectifier.ac.pin.v (11) [DISC] (1) Boolean[1] $SEV_1[$i1] (12) [DISC] (3) Boolean[3] rectifier.pre_n.u (13) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.R_actual (14) [ALGB] (1) Real resistor.LossPower (15) [DISC] (3) Boolean[3] rectifier.pre_n.y (16) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.p.v (17) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (18) [DISC] (1) Boolean $TEV_3 (19) [DISC] (1) Boolean $TEV_2 (20) [DISC] (1) Boolean $TEV_1 (21) [ALGB] (1) Real resistor.i (22) [DISC] (1) Boolean $TEV_0 (23) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.p.i (24) [ALGB] (3) flow Real[3] pulse2m.delta.plug_p.pin.i (25) [ALGB] (1) Real pulse2m.twomPulse.limiter.y (26) [ALGB] (1) Real rectifier.vDC = resistor.p.v - currentSensor.n.v (27) [ALGB] (3) Real[3] pulse2m.voltageSensor.v (28) [ALGB] (3) Real[3] pulse2m.twomPulse.replicator.y (29) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (30) [ALGB] (3) Real[3] pulse2m.twomPulse.positiveThreshold.u (31) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.p.v (32) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (33) [ALGB] (3) Real[3] pulse2m.delta.plug_p.pin.v (34) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerNegative.entryTime (35) [DISC] (3) Boolean[3] pulse2m.twomPulse.positiveThreshold.y (36) [DISC] (3) Boolean[3] $SEV_14[$i1] (37) [ALGB] (3) Real[3] rectifier.thyristor_n.v (38) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeThreshold.u (39) [DISC] (3) Boolean[3] rectifier.enableLogic.booleanReplicator.y (40) [ALGB] (3) flow Real[3] pulse2m.ac.pin.i (41) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeThreshold.y (42) [ALGB] (3) flow Real[3] sineVoltage.plug_n.pin.i (43) [ALGB] (3) Real[3] pulse2m.twomPulse.gainPositive.u (44) [ALGB] (1) Real rectifier.iDC = rectifier.iDC (45) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_n.pin.v (46) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u1 (47) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u2 (48) [ALGB] (3) Real[3] pulse2m.twomPulse.gainPositive.y (49) [ALGB] (3) Real[3] rectifier.thyristor_n.i (50) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (51) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterNegative.u1 (52) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterNegative.u2 (53) [ALGB] (3) Real[3] multiStarResistance.multiStar.plug_p.pin.v (54) [ALGB] (3) Real[3] pulse2m.ac.pin.v (55) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (56) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_p.pin.v (57) [ALGB] (3) Real[3] pulse2m.twomPulse.v (58) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_n.pin.i (59) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (60) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_n.pin.v (61) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (62) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (63) [DER-] (1) Real $DER.meanVoltage.x (64) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.n.i (65) [ALGB] (3) flow Real[3] multiStarResistance.multiStar.plug_p.pin.i (66) [ALGB] (1) Real rectifier.LossPower (67) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.LossPower (68) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.T_heatPort (start = {288.15 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = {300.0 for $i1 in 1:1}) (69) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_p.pin.i (70) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_p.pin.i (71) [DISC] (3) Boolean[3] rectifier.andCondition_n.y (72) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_n.pin.i (73) [DISC] (3) Boolean[3] rectifier.andCondition_n.u2 (74) [DISC] (3) Boolean[3] rectifier.andCondition_n.u1 (75) [ALGB] (3) Real[3] rectifier.star_n.plug_p.pin.v (76) [ALGB] (3) Real[3] rectifier.star_p.plug_p.pin.v (77) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.n.v (78) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_p (79) [ALGB] (1) flow Real currentSensor.p.i (80) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.LossPower (81) [DISC] (3) Boolean[3] $SEV_18[$i1] (82) [ALGB] (1) Real $FUN_3 (83) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_n (84) [ALGB] (1) flow Real ground.p.i (85) [ALGB] (1) Real $FUN_2 (86) [ALGB] (3) Real[3] $FUN_1 (87) [DISC] (3) Boolean[3] rectifier.thyristor_n.idealThyristor.fire (88) [DER-] (1) Real $DER.meanCurrent.x (89) [DISC] (3) Boolean[3] rectifier.thyristor_n.fire (90) [DISC] (3) Boolean[3] $SEV_13[$i1] (91) [DISC] (1) Boolean $TEV_11 (92) [DISC] (1) Boolean $TEV_10 (93) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.i (94) [DISC] (3) Boolean[3] $SEV_9[$i1] (95) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerPositive.u (96) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.p.v (97) [ALGB] (3) Real[3] pulse2m.twomPulse.timerPositive.y (98) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.v (99) [DISC] (3) Boolean[3] rectifier.fire_n (100) [ALGB] (3) protected final Real[3] rectifier.thyristor_n.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (101) [DISC] (3) Boolean[3] rectifier.fire_p (102) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.v (103) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.p.i (104) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (105) [ALGB] (3) Real[3] sineVoltage.v (106) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (107) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac.pin[:].v (108) [ALGB] (3) Real[3] sineVoltage.i (109) [DISC] (3) Boolean[3] rectifier.pre_p.u (110) [ALGB] (1) Real meanVoltage.u (111) [DISC] (3) Boolean[3] rectifier.pre_p.y (112) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.n.i (113) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (114) [DISC] (1) Boolean $SEV_4 (115) [DISC] (3) Boolean[3] $SEV_17[$i1] (116) [DISC] (1) Boolean $SEV_3 (117) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.v (118) [ALGB] (1) Real[1] multiStarResistance.resistor.v (119) [DISC] (3) Boolean[3] $SEV_12[$i1] (120) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac.pin[:].i (121) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.n.v (122) [DISC] (3) Boolean[3] $SEV_8[$i1] (123) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.i (124) [DISC] (3) Boolean[3] rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off (125) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (126) [ALGB] (1) Real[1] multiStarResistance.resistor.i (127) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (128) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_n.pin.v (129) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (130) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (131) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (132) [ALGB] (3) Real[3] pulse2m.twomPulse.gainNegative.u (133) [ALGB] (1) Real resistor.R_actual (134) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (135) [ALGB] (3) Real[3] pulse2m.twomPulse.gainNegative.y (136) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (137) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (138) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (139) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_n.pin.i (140) [ALGB] (3) Real[3] rectifier.thyristor_p.v (141) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (142) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (143) [ALGB] (3) Real[3] rectifier.thyristor_p.i (144) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (145) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (146) [DISC] (3) Boolean[3] $SEV_16[$i1] (147) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (148) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (149) [ALGB] (1) Real currentSensor.n.v (150) [ALGB] (1) Real resistor.p.v (151) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (152) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (153) [DISC] (3) Boolean[3] $SEV_11[$i1] (154) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (155) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterNegative.y (156) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (157) [DISC] (3) Boolean[3] $SEV_7[$i1] (158) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (159) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (160) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (161) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (162) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (163) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (164) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (165) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (166) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (167) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (168) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (169) [DISC] (3) Boolean[3] pulse2m.fire_p (170) [DISC] (3) Boolean[3] pulse2m.fire_n (171) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (172) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (173) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (174) [ALGB] (1) Real[1] multiStarResistance.multiStar.starpoints.pin.v (175) [ALGB] (3) Real[3] multiStarResistance.plug.pin.v (176) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (177) [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}) (178) [DISC] (3) Boolean[3] $SEV_15[$i1] (179) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (180) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (181) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (182) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (183) [ALGB] (1) Real pulse2m.twomPulse.gain.y (184) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (185) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (226/454) **************************** (1) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_205) (2) [FOR-] (3) ($RES_SIM_120) (2) [----] for $i1 in 1:3 loop (2) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_121) (2) [----] end for; (3) [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_206) (4) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_280) (5) [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_207) (6) [FOR-] (3) ($RES_SIM_122) (6) [----] for $i1 in 1:3 loop (6) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_123) (6) [----] end for; (7) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.thyristor_n.plug_n.pin[3].v ($RES_SIM_281) (8) [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_208) (9) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_83) (10) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_282) (11) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_209) (12) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.thyristor_n.plug_n.pin[2].v ($RES_SIM_283) (13) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].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].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_127) (14) [----] end for; (15) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.thyristor_n.plug_n.pin[1].v ($RES_SIM_285) (16) [SCAL] (1) -(rectifier.star_n.plug_p.pin[2].i + currentSensor.p.i + rectifier.star_n.plug_p.pin[3].i + rectifier.star_n.plug_p.pin[1].i) = 0.0 ($RES_SIM_286) (17) [FOR-] (3) ($RES_SIM_128) (17) [----] for $i1 in 1:3 loop (17) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].s * (if rectifier.thyristor_p.idealThyristor[$i1].off then rectifier.thyristor_p.idealThyristor[$i1].Goff else 1.0) + rectifier.thyristor_p.idealThyristor[$i1].Goff * rectifier.thyristor_p.idealThyristor[$i1].Vknee ($RES_SIM_129) (17) [----] end for; (18) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_88) (19) [SCAL] (1) rectifier.star_n.plug_p.pin[3].v = rectifier.star_n.plug_p.pin[1].v ($RES_SIM_287) (20) [SCAL] (1) meanVoltage.u = resistor.p.v - currentSensor.n.v ($RES_SIM_89) (21) [SCAL] (1) rectifier.star_n.plug_p.pin[3].v = rectifier.star_n.plug_p.pin[2].v ($RES_SIM_288) (22) [SCAL] (1) rectifier.star_n.plug_p.pin[3].v = currentSensor.n.v ($RES_SIM_289) (23) [FOR-] (3) ($RES_EVT_370) (23) [----] for $i1 in 1:3 loop (23) [----] [SCAL] (1) $SEV_16[$i1] = rectifier.andCondition_n[$i1].u1 and rectifier.andCondition_n[$i1].u2 ($RES_EVT_371) (23) [----] end for; (24) [FOR-] (3) ($RES_EVT_372) (24) [----] for $i1 in 1:3 loop (24) [----] [SCAL] (1) $SEV_17[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_373) (24) [----] end for; (25) [FOR-] (3) ($RES_EVT_374) (25) [----] for $i1 in 1:3 loop (25) [----] [SCAL] (1) $SEV_18[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_375) (25) [----] end for; (26) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_210) (27) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_211) (28) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_212) (29) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_213) (30) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_214) (31) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_215) (32) [FOR-] (3) ($RES_SIM_130) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].s * (if rectifier.thyristor_p.idealThyristor[$i1].off then 1.0 else rectifier.thyristor_p.idealThyristor[$i1].Ron) + rectifier.thyristor_p.idealThyristor[$i1].Vknee ($RES_SIM_131) (32) [----] end for; (33) [SCAL] (1) resistor.v = resistor.p.v - currentSensor.n.v ($RES_SIM_17) (34) [FOR-] (3) ($RES_SIM_216) (34) [----] for $i1 in 1:3 loop (34) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_217) (34) [----] end for; (35) [SCAL] (1) -(rectifier.star_p.plug_p.pin[2].i + rectifier.iDC + rectifier.star_p.plug_p.pin[3].i + rectifier.star_p.plug_p.pin[1].i) = 0.0 ($RES_SIM_290) (36) [FOR-] (3) ($RES_SIM_132) (36) [----] for $i1 in 1:3 loop (36) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_15[$i1] ($RES_SIM_133) (36) [----] end for; (37) [SCAL] (1) rectifier.star_p.plug_p.pin[3].v = rectifier.star_p.plug_p.pin[1].v ($RES_SIM_291) (38) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_218) (39) [SCAL] (1) rectifier.LossPower = $FUN_2 + $FUN_3 ($RES_SIM_93) (40) [SCAL] (1) rectifier.star_p.plug_p.pin[3].v = rectifier.star_p.plug_p.pin[2].v ($RES_SIM_292) (41) [FOR-] (3) ($RES_SIM_219) (41) [----] for $i1 in 1:3 loop (41) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_220) (41) [----] end for; (42) [FOR-] (3) ($RES_SIM_134) (42) [----] for $i1 in 1:3 loop (42) [----] [SCAL] (1) rectifier.andCondition_n[$i1].y = $SEV_16[$i1] ($RES_SIM_135) (42) [----] end for; (43) [FOR-] (3) ($RES_SIM_94) (43) [----] for $i1 in 1:3 loop (43) [----] [SCAL] (1) rectifier.pre_n[$i1].y = $TEV_2 ($RES_SIM_95) (43) [----] end for; (44) [SCAL] (1) rectifier.star_p.plug_p.pin[3].v = resistor.p.v ($RES_SIM_293) (45) [ARRY] (3) rectifier.thyristor_n.fire = rectifier.thyristor_n.idealThyristor.fire ($RES_SIM_294) (46) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_136) (47) [FOR-] (3) ($RES_SIM_96) (47) [----] for $i1 in 1:3 loop (47) [----] [SCAL] (1) rectifier.pre_p[$i1].y = $TEV_3 ($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.andCondition_p[$i1].y = $SEV_17[$i1] ($RES_SIM_139) (49) [----] end for; (50) [ARRY] (3) rectifier.thyristor_n.i = rectifier.thyristor_n.plug_p.pin.i ($RES_SIM_98) (51) [ARRY] (3) rectifier.thyristor_n.idealThyristor.n.v = rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_297) (52) [ARRY] (3) rectifier.thyristor_n.v = rectifier.thyristor_n.plug_p.pin.v - rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_99) (53) [FOR-] (3) ($RES_SIM_298) (53) [----] for $i1 in 1:3 loop (53) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].p.i - rectifier.thyristor_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_299) (53) [----] end for; (54) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.thyristor_n.idealThyristor.p.v ($RES_SIM_300) (55) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_301) (56) [FOR-] (3) ($RES_SIM_302) (56) [----] for $i1 in 1:3 loop (56) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_303) (56) [----] end for; (57) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_304) (58) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_21) (59) [FOR-] (3) ($RES_SIM_305) (59) [----] for $i1 in 1:3 loop (59) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_306) (59) [----] end for; (60) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_22) (61) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_221) (62) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_23) (63) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_307) (64) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_222) (65) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_223) (66) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_309) (67) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_224) (68) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_26) (69) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_225) (70) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_140) (71) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_27) (72) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_226) (73) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_141) (74) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_28) (75) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_227) (76) [FOR-] (3) ($RES_SIM_142) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_143) (76) [----] end for; (77) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_29) (78) [ARRY] (3) pulse2m.twomPulse.timerNegative.y = pulse2m.twomPulse.gainNegative.u ($RES_SIM_228) (79) [ARRY] (3) pulse2m.twomPulse.gainNegative.y = pulse2m.twomPulse.greaterNegative.u1 ($RES_SIM_229) (80) [FOR-] (3) ($RES_SIM_144) (80) [----] for $i1 in 1:3 loop (80) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_145) (80) [----] end for; (81) [FOR-] (3) ($RES_SIM_146) (81) [----] for $i1 in 1:3 loop (81) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_147) (81) [----] end for; (82) [FOR-] (3) ($RES_SIM_148) (82) [----] for $i1 in 1:3 loop (82) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_149) (82) [----] end for; (83) [FOR-] (3) ($RES_SIM_310) (83) [----] for $i1 in 1:3 loop (83) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_311) (83) [----] end for; (84) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_312) (85) [FOR-] (3) ($RES_SIM_313) (85) [----] for $i1 in 1:3 loop (85) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_314) (85) [----] end for; (86) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_30) (87) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_31) (88) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_315) (89) [ARRY] (3) pulse2m.twomPulse.gainPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_230) (90) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_32) (91) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.gainPositive.u ($RES_SIM_231) (92) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_33) (93) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_232) (94) [SCAL] (1) multiStarResistance.resistor.resistor[1].R_actual = multiStarResistance.resistor.resistor[1].R * (1.0 + multiStarResistance.resistor.resistor[1].alpha * (multiStarResistance.resistor.resistor[1].T_heatPort - multiStarResistance.resistor.resistor[1].T_ref)) ($RES_SIM_34) (95) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_233) (96) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_234) (97) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_235) (98) [FOR-] (3) ($RES_SIM_150) (98) [----] for $i1 in 1:3 loop (98) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].signalSource.y = sineVoltage.sineVoltage[$i1].signalSource.offset + (if $SEV_18[$i1] then 0.0 else sineVoltage.sineVoltage[$i1].signalSource.amplitude * $FUN_1[$i1]) ($RES_SIM_151) (98) [----] end for; (99) [FOR-] (3) ($RES_SIM_37) (99) [----] for $i1 in 1:3 loop (99) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_38) (99) [----] end for; (100) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_236) (101) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_237) (102) [SCAL] (1) currentSensor.p.i - resistor.i = 0.0 ($RES_SIM_152) (103) [FOR-] (3) ($RES_SIM_39) (103) [----] for $i1 in 1:3 loop (103) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_40) (103) [----] end for; (104) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_238) (105) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_153) (106) [FOR-] (3) ($RES_$AUX_330) (106) [----] for $i1 in 1:3 loop (106) [----] [SCAL] (1) $FUN_1[$i1] = sin(sineVoltage.sineVoltage[$i1].signalSource.f * 6.283185307179586 * (time - sineVoltage.sineVoltage[$i1].signalSource.startTime) + sineVoltage.sineVoltage[$i1].signalSource.phase) ($RES_$AUX_331) (106) [----] end for; (107) [FOR-] (3) ($RES_SIM_41) (107) [----] for $i1 in 1:3 loop (107) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_42) (107) [----] end for; (108) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_241) (109) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterNegative[3].u2 ($RES_SIM_242) (110) [FOR-] (3) ($RES_SIM_44) (110) [----] for $i1 in 1:3 loop (110) [----] [SCAL] (1) pulse2m.twomPulse.gainNegative[$i1].y = pulse2m.twomPulse.gainNegative[$i1].k * pulse2m.twomPulse.gainNegative[$i1].u ($RES_SIM_45) (110) [----] end for; (111) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_243) (112) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterNegative[2].u2 ($RES_SIM_244) (113) [FOR-] (3) ($RES_SIM_46) (113) [----] for $i1 in 1:3 loop (113) [----] [SCAL] (1) pulse2m.twomPulse.gainPositive[$i1].y = pulse2m.twomPulse.gainPositive[$i1].k * pulse2m.twomPulse.gainPositive[$i1].u ($RES_SIM_47) (113) [----] end for; (114) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_245) (115) [FOR-] (3) ($RES_SIM_160) (115) [----] for $i1 in 1:3 loop (115) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_161) (115) [----] end for; (116) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterNegative[1].u2 ($RES_SIM_246) (117) [FOR-] (3) ($RES_SIM_48) (117) [----] for $i1 in 1:3 loop (117) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_49) (117) [----] end for; (118) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_162) (119) [ARRY] (3) pulse2m.twomPulse.greaterNegative.y = pulse2m.twomPulse.fire_n ($RES_SIM_248) (120) [ARRY] (3) pulse2m.fire_n = rectifier.fire_n ($RES_SIM_163) (121) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_249) (122) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_164) (123) [SCAL] (1) pulse2m.ac.pin[3].i + sineVoltage.plug_p.pin[3].i + rectifier.ac.pin[3].i = 0.0 ($RES_SIM_166) (124) [SCAL] (1) pulse2m.ac.pin[2].i + sineVoltage.plug_p.pin[2].i + rectifier.ac.pin[2].i = 0.0 ($RES_SIM_167) (125) [SCAL] (1) $FUN_2 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_329) (126) [SCAL] (1) pulse2m.ac.pin[1].i + sineVoltage.plug_p.pin[1].i + rectifier.ac.pin[1].i = 0.0 ($RES_SIM_168) (127) [SCAL] (1) $FUN_3 = sum(rectifier.thyristor_n.idealThyristor.LossPower) ($RES_$AUX_328) (128) [SCAL] (1) pulse2m.ac.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_169) (129) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_327) (130) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_325) (131) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_332) (132) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_333) (133) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre_n[$i1].u ($RES_EVT_334) (134) [SCAL] (1) $TEV_3 = $PRE.rectifier.pre_p[$i1].u ($RES_EVT_335) (135) [SCAL] (1) pulse2m.twomPulse.limiter.y = homotopy(smooth(0, if $SEV_3 then pulse2m.twomPulse.limiter.uMax else if $SEV_4 then pulse2m.twomPulse.limiter.uMin else pulse2m.twomPulse.constantconstantFiringAngle.k), pulse2m.twomPulse.constantconstantFiringAngle.k) ($RES_SIM_50) (136) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_250) (137) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_251) (138) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_53) (139) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_252) (140) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_54) (141) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_253) (142) [FOR-] (3) ($RES_SIM_55) (142) [----] for $i1 in 1:3 loop (142) [----] [SCAL] (1) pulse2m.twomPulse.greaterNegative[$i1].y = $SEV_6[$i1] ($RES_SIM_56) (142) [----] end for; (143) [SCAL] (1) pulse2m.ac.pin[3].v = sineVoltage.plug_p.pin[3].v ($RES_SIM_170) (144) [FOR-] (3) ($RES_SIM_57) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_7[$i1] ($RES_SIM_58) (144) [----] end for; (145) [SCAL] (1) pulse2m.ac.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_171) (146) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_257) (147) [SCAL] (1) pulse2m.ac.pin[2].v = sineVoltage.plug_p.pin[2].v ($RES_SIM_172) (148) [FOR-] (3) ($RES_SIM_59) (148) [----] for $i1 in 1:3 loop (148) [----] [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_60) (148) [----] end for; (149) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_n[3].u2 ($RES_SIM_258) (150) [SCAL] (1) pulse2m.ac.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_173) (151) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_p[3].u2 ($RES_SIM_259) (152) [SCAL] (1) pulse2m.ac.pin[1].v = sineVoltage.plug_p.pin[1].v ($RES_SIM_174) (153) [SCAL] (1) $TEV_10 = $PRE.rectifier.thyristor_n.idealThyristor[$i1].off ($RES_EVT_342) (154) [SCAL] (1) $TEV_11 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_343) (155) [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_345) (156) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_347) (157) [SCAL] (1) $SEV_4 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_348) (158) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_316) (159) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_317) (160) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_318) (161) [FOR-] (3) ($RES_SIM_100) (161) [----] for $i1 in 1:3 loop (161) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].p.v - rectifier.thyristor_n.idealThyristor[$i1].n.v ($RES_SIM_101) (161) [----] end for; (162) [FOR-] (3) ($RES_SIM_61) (162) [----] for $i1 in 1:3 loop (162) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (162) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (162) [----] [----] end when; (162) [----] end for; (163) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_n[2].u2 ($RES_SIM_260) (164) [FOR-] (3) ($RES_SIM_102) (164) [----] for $i1 in 1:3 loop (164) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].p.i ($RES_SIM_103) (164) [----] end for; (165) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_p[2].u2 ($RES_SIM_261) (166) [FOR-] (3) ($RES_SIM_63) (166) [----] for $i1 in 1:3 loop (166) [----] [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_64) (166) [----] end for; (167) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_n[1].u2 ($RES_SIM_262) (168) [FOR-] (3) ($RES_SIM_104) (168) [----] for $i1 in 1:3 loop (168) [----] [SCAL] (1) 0.0 = rectifier.thyristor_n.idealThyristor[$i1].p.i + rectifier.thyristor_n.idealThyristor[$i1].n.i ($RES_SIM_105) (168) [----] end for; (169) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_p[1].u2 ($RES_SIM_263) (170) [FOR-] (3) ($RES_SIM_65) (170) [----] for $i1 in 1:3 loop (170) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (170) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (170) [----] [----] end when; (170) [----] end for; (171) [ARRY] (3) rectifier.fire_n = rectifier.andCondition_n.u1 ($RES_SIM_264) (172) [ARRY] (3) rectifier.andCondition_n.y = rectifier.pre_n.u ($RES_SIM_265) (173) [FOR-] (3) ($RES_SIM_67) (173) [----] for $i1 in 1:3 loop (173) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_68) (173) [----] end for; (174) [ARRY] (3) rectifier.pre_n.y = rectifier.thyristor_n.fire ($RES_SIM_266) (175) [FOR-] (3) ($RES_SIM_108) (175) [----] for $i1 in 1:3 loop (175) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].LossPower = rectifier.thyristor_n.idealThyristor[$i1].v * rectifier.thyristor_n.idealThyristor[$i1].i ($RES_SIM_109) (175) [----] end for; (176) [ARRY] (3) rectifier.pre_p.y = rectifier.thyristor_p.fire ($RES_SIM_267) (177) [FOR-] (3) ($RES_SIM_69) (177) [----] for $i1 in 1:3 loop (177) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_9[$i1] ($RES_SIM_70) (177) [----] end for; (178) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre_p.u ($RES_SIM_268) (179) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_183) (180) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_184) (181) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_185) (182) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_186) (183) [FOR-] (3) ($RES_SIM_187) (183) [----] for $i1 in 1:3 loop (183) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_188) (183) [----] end for; (184) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_189) (185) [FOR-] (3) ($RES_EVT_350) (185) [----] for $i1 in 1:3 loop (185) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.greaterNegative[$i1].u1 > pulse2m.twomPulse.greaterNegative[$i1].u2 ($RES_EVT_351) (185) [----] end for; (186) [FOR-] (3) ($RES_EVT_352) (186) [----] for $i1 in 1:3 loop (186) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_353) (186) [----] end for; (187) [FOR-] (3) ($RES_EVT_354) (187) [----] for $i1 in 1:3 loop (187) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_355) (187) [----] end for; (188) [SCAL] (1) rectifier.vDC = resistor.p.v - currentSensor.n.v ($RES_BND_320) (189) [FOR-] (3) ($RES_EVT_356) (189) [----] for $i1 in 1:3 loop (189) [----] [SCAL] (1) $SEV_9[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_357) (189) [----] end for; (190) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_322) (191) [FOR-] (3) ($RES_EVT_358) (191) [----] for $i1 in 1:3 loop (191) [----] [SCAL] (1) $SEV_10[$i1] = rectifier.thyristor_n.idealThyristor[$i1].s < 0.0 ($RES_EVT_359) (191) [----] end for; (192) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_323) (193) [ARRY] (3) rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off ($RES_BND_324) (194) [FOR-] (3) ($RES_SIM_110) (194) [----] for $i1 in 1:3 loop (194) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].s * (if rectifier.thyristor_n.idealThyristor[$i1].off then rectifier.thyristor_n.idealThyristor[$i1].Goff else 1.0) + rectifier.thyristor_n.idealThyristor[$i1].Goff * rectifier.thyristor_n.idealThyristor[$i1].Vknee ($RES_SIM_111) (194) [----] end for; (195) [FOR-] (3) ($RES_SIM_270) (195) [----] for $i1 in 1:3 loop (195) [----] [SCAL] (1) rectifier.thyristor_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_271) (195) [----] end for; (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].s * (if rectifier.thyristor_n.idealThyristor[$i1].off then 1.0 else rectifier.thyristor_n.idealThyristor[$i1].Ron) + rectifier.thyristor_n.idealThyristor[$i1].Vknee ($RES_SIM_113) (196) [----] end for; (197) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_272) (198) [FOR-] (3) ($RES_SIM_114) (198) [----] for $i1 in 1:3 loop (198) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].off = $SEV_12[$i1] ($RES_SIM_115) (198) [----] end for; (199) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_75) (200) [FOR-] (3) ($RES_SIM_274) (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_275) (200) [----] end for; (201) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_116) (202) [SCAL] (1) -(multiStarResistance.star.plug_p.pin[1].i - ground.p.i) = 0.0 ($RES_SIM_190) (203) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_117) (204) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_276) (205) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_191) (206) [FOR-] (3) ($RES_SIM_118) (206) [----] for $i1 in 1:3 loop (206) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_119) (206) [----] end for; (207) [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_277) (208) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_192) (209) [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_278) (210) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_193) (211) [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_279) (212) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_194) (213) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_195) (214) [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_196) (215) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_197) (216) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_198) (217) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_199) (218) [FOR-] (3) ($RES_EVT_360) (218) [----] for $i1 in 1:3 loop (218) [----] [SCAL] (1) $SEV_11[$i1] = $TEV_10 and not rectifier.thyristor_n.idealThyristor[$i1].fire ($RES_EVT_361) (218) [----] end for; (219) [FOR-] (3) ($RES_EVT_362) (219) [----] for $i1 in 1:3 loop (219) [----] [SCAL] (1) $SEV_12[$i1] = $SEV_10[$i1] or $SEV_11[$i1] ($RES_EVT_363) (219) [----] end for; (220) [FOR-] (3) ($RES_EVT_364) (220) [----] for $i1 in 1:3 loop (220) [----] [SCAL] (1) $SEV_13[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_365) (220) [----] end for; (221) [FOR-] (3) ($RES_EVT_366) (221) [----] for $i1 in 1:3 loop (221) [----] [SCAL] (1) $SEV_14[$i1] = $TEV_11 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_367) (221) [----] end for; (222) [FOR-] (3) ($RES_EVT_368) (222) [----] for $i1 in 1:3 loop (222) [----] [SCAL] (1) $SEV_15[$i1] = $SEV_13[$i1] or $SEV_14[$i1] ($RES_EVT_369) (222) [----] end for; (223) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_200) (224) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_201) (225) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_202) (226) [FOR-] (3) ($RES_SIM_203) (226) [----] for $i1 in 1:3 loop (226) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_204) (226) [----] end for;