Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R") translateModel(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 106 kB / 16.42 MB, free: 6.516 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.001061/0.001061, allocations: 187.2 kB / 17.35 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.223/1.223, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1764/0.1764, allocations: 39.96 MB / 310.5 MB, free: 4.027 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.534e-05/1.535e-05, allocations: 6.219 kB / 436.4 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R): time 0.005105/0.005128, allocations: 6.352 MB / 442.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002442/0.007583, allocations: 1.972 MB / 444.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003731/0.007967, allocations: 39.75 kB / 444.8 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006378/0.008612, allocations: 329.5 kB / 445.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006821/0.009303, allocations: 453.3 kB / 445.6 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004646/0.009778, allocations: 407.4 kB / 446 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001867/0.01165, allocations: 2.908 MB / 448.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001368/0.01303, allocations: 1.233 MB / 450.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009041/0.01395, allocations: 0.9115 MB / 451 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000941/0.0149, allocations: 0.9149 MB / 451.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002033/0.01511, allocations: 168 kB / 452.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.01537, allocations: 168 kB / 452.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.001875/0.01726, allocations: 2.295 MB / 454.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0009584/0.01822, allocations: 1.482 MB / 456 MB, free: 8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002446/0.01847, allocations: 223.3 kB / 456.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 0.0002039/0.01868, allocations: 43.75 kB / 456.3 MB, free: 7.738 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 482 (252) * Number of variables: 482 (215) Notification: Performance of Bindings: time 0.006745/0.02544, allocations: 7.361 MB / 463.7 MB, free: 180 kB / 334.1 MB Notification: Performance of FunctionAlias: time 0.0005392/0.02598, allocations: 406.4 kB / 464.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Early Inline: time 0.003259/0.02925, allocations: 3.553 MB / 467.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simplify1: time 0.0002009/0.02946, allocations: 183.7 kB / 467.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Alias: time 0.003753/0.03322, allocations: 3.564 MB / 471.4 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simplify2: time 0.0001584/0.03339, allocations: 155.8 kB / 471.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of Events: time 0.0008717/0.03427, allocations: 0.8362 MB / 472.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of Detect States: time 0.001377/0.03566, allocations: 1.192 MB / 473.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of Partitioning: time 0.001918/0.03759, allocations: 1.594 MB / 475.1 MB, free: 4.293 MB / 350.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_68) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (197/490) **************************** (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] (3) Real[3] innerResistor.plug_p.pin.v (7) [ALGB] (2) Real[2] rootMeanSquareVoltage.product.u (8) [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}) (9) [ALGB] (1) Real[1] multiStarResistance.star.plug_p.pin.v (10) [ALGB] (1) Real resistor.v (11) [ALGB] (3) Real[3] rectifier.ac.pin.v (12) [DISC] (3) Boolean[3] $SEV_1[$i1] (13) [DISC] (3) Boolean[3] rectifier.pre_n.u (14) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.R_actual (15) [ALGB] (3) Real[3] innerResistor.resistor.R_actual (16) [ALGB] (1) Real resistor.LossPower (17) [DISC] (3) Boolean[3] rectifier.pre_n.y (18) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.p.v (19) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (20) [DISC] (1) Boolean $TEV_3 (21) [DISC] (1) Boolean $TEV_2 (22) [DISC] (1) Boolean $TEV_1 (23) [ALGB] (1) Real resistor.i (24) [DISC] (1) Boolean $TEV_0 (25) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.p.i (26) [ALGB] (3) flow Real[3] pulse2m.delta.plug_p.pin.i (27) [ALGB] (1) Real pulse2m.twomPulse.limiter.y (28) [ALGB] (1) Real rectifier.vDC = resistor.p.v - currentSensor.n.v (29) [ALGB] (3) Real[3] pulse2m.voltageSensor.v (30) [ALGB] (3) Real[3] pulse2m.twomPulse.replicator.y (31) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (32) [ALGB] (3) Real[3] pulse2m.twomPulse.positiveThreshold.u (33) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.p.v (34) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (35) [ALGB] (3) Real[3] pulse2m.delta.plug_p.pin.v (36) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerNegative.entryTime (37) [DISC] (3) Boolean[3] pulse2m.twomPulse.positiveThreshold.y (38) [DISC] (3) Boolean[3] $SEV_14[$i1] (39) [ALGB] (3) Real[3] rectifier.thyristor_n.v (40) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeThreshold.u (41) [DISC] (3) Boolean[3] rectifier.enableLogic.booleanReplicator.y (42) [ALGB] (3) flow Real[3] pulse2m.ac.pin.i (43) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeThreshold.y (44) [ALGB] (3) flow Real[3] sineVoltage.plug_n.pin.i (45) [ALGB] (1) Real rectifier.iDC = rectifier.iDC (46) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_n.pin.v (47) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u1 (48) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u2 (49) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeEqual.y (50) [ALGB] (3) Real[3] rectifier.thyristor_n.i (51) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (52) [ALGB] (3) Real[3] multiStarResistance.multiStar.plug_p.pin.v (53) [ALGB] (3) Real[3] pulse2m.ac.pin.v (54) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (55) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_p.pin.v (56) [ALGB] (3) Real[3] pulse2m.twomPulse.v (57) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_n.pin.i (58) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (59) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_n.pin.v (60) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (61) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (62) [DER-] (1) Real $DER.meanVoltage.x (63) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.n.i (64) [ALGB] (3) flow Real[3] multiStarResistance.multiStar.plug_p.pin.i (65) [ALGB] (1) Real rectifier.LossPower (66) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.LossPower (67) [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}) (68) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_p.pin.i (69) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_p.pin.i (70) [DISC] (3) Boolean[3] rectifier.andCondition_n.y (71) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_n.pin.i (72) [DISC] (3) Boolean[3] rectifier.andCondition_n.u2 (73) [DISC] (3) Boolean[3] rectifier.andCondition_n.u1 (74) [ALGB] (3) Real[3] rectifier.star_n.plug_p.pin.v (75) [ALGB] (3) Real[3] rectifier.star_p.plug_p.pin.v (76) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.n.v (77) [ALGB] (1) Real $FUN_5 (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) [ALGB] (1) Real $FUN_4 (82) [DISC] (3) Boolean[3] $SEV_18[$i1] (83) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_n (84) [ALGB] (1) flow Real ground.p.i (85) [ALGB] (3) Real[3] $FUN_1 (86) [DISC] (3) Boolean[3] rectifier.thyristor_n.idealThyristor.fire (87) [DER-] (1) Real $DER.meanCurrent.x (88) [DISC] (3) Boolean[3] rectifier.thyristor_n.fire (89) [DISC] (3) Boolean[3] $SEV_13[$i1] (90) [DISC] (1) Boolean $TEV_11 (91) [DISC] (1) Boolean $TEV_10 (92) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.i (93) [DISC] (3) Boolean[3] $SEV_9[$i1] (94) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerPositive.u (95) [ALGB] (3) flow Real[3] innerResistor.resistor.p.i (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] (3) Real[3] innerResistor.resistor.p.v (104) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.p.i (105) [ALGB] (3) Real[3] innerResistor.resistor.i (106) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (107) [ALGB] (3) Real[3] sineVoltage.v (108) [ALGB] (3) Real[3] innerResistor.i (109) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (110) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac.pin[:].v (111) [ALGB] (3) Real[3] innerResistor.resistor.v (112) [ALGB] (3) Real[3] sineVoltage.i (113) [DISC] (3) Boolean[3] rectifier.pre_p.u (114) [ALGB] (3) Real[3] innerResistor.v (115) [ALGB] (1) Real meanVoltage.u (116) [DISC] (3) Boolean[3] rectifier.pre_p.y (117) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.n.i (118) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (119) [DISC] (1) Boolean $SEV_4 (120) [DISC] (3) Boolean[3] $SEV_17[$i1] (121) [DISC] (1) Boolean $SEV_3 (122) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.v (123) [ALGB] (1) Real[1] multiStarResistance.resistor.v (124) [DISC] (3) Boolean[3] $SEV_12[$i1] (125) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac.pin[:].i (126) [ALGB] (3) flow Real[3] innerResistor.plug_n.pin.i (127) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.n.v (128) [DISC] (3) Boolean[3] $SEV_8[$i1] (129) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.i (130) [DISC] (3) Boolean[3] rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off (131) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (132) [ALGB] (1) Real[1] multiStarResistance.resistor.i (133) [ALGB] (3) Real[3] innerResistor.plug_n.pin.v (134) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (135) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_n.pin.v (136) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (137) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (138) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (139) [ALGB] (1) Real resistor.R_actual (140) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (141) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (142) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (143) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (144) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_n.pin.i (145) [ALGB] (3) Real[3] rectifier.thyristor_p.v (146) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (147) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (148) [ALGB] (3) Real[3] rectifier.thyristor_p.i (149) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (150) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (151) [DISC] (3) Boolean[3] $SEV_16[$i1] (152) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (153) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (154) [ALGB] (1) Real currentSensor.n.v (155) [ALGB] (1) Real resistor.p.v (156) [ALGB] (3) Real[3] innerResistor.resistor.T_heatPort (start = {288.15 for $i1 in 1:3}, min = {0.0 for $i1 in 1:3}, nominal = {300.0 for $i1 in 1:3}) (157) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (158) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (159) [DISC] (3) Boolean[3] $SEV_11[$i1] (160) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (161) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (162) [DISC] (3) Boolean[3] $SEV_7[$i1] (163) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (164) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (165) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (166) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (167) [DISC] (1) Boolean[1] $SEV_2[$i1] (168) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u1 (169) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u2 (170) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (171) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (172) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (173) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (174) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (175) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (176) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (177) [DISC] (3) Boolean[3] pulse2m.fire_p (178) [DISC] (3) Boolean[3] pulse2m.fire_n (179) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (180) [ALGB] (3) flow Real[3] innerResistor.resistor.n.i (181) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (182) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (183) [ALGB] (3) Real[3] innerResistor.resistor.LossPower (184) [ALGB] (1) Real[1] multiStarResistance.multiStar.starpoints.pin.v (185) [ALGB] (3) Real[3] multiStarResistance.plug.pin.v (186) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (187) [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}) (188) [DISC] (3) Boolean[3] $SEV_15[$i1] (189) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (190) [ALGB] (3) Real[3] innerResistor.resistor.n.v (191) [ALGB] (3) flow Real[3] innerResistor.plug_p.pin.i (192) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (193) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (194) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (195) [ALGB] (1) Real pulse2m.twomPulse.gain.y (196) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (197) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (234/490) **************************** (1) [ARRY] (3) innerResistor.resistor.n.v = innerResistor.plug_n.pin.v ($RES_SIM_205) (2) [FOR-] (3) ($RES_SIM_120) (2) [----] for $i1 in 1:3 loop (2) [----] [SCAL] (1) 0.0 = rectifier.thyristor_n.idealThyristor[$i1].p.i + rectifier.thyristor_n.idealThyristor[$i1].n.i ($RES_SIM_121) (2) [----] end for; (3) [FOR-] (3) ($RES_SIM_80) (3) [----] for $i1 in 1:3 loop (3) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (3) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (3) [----] [----] end when; (3) [----] end for; (4) [FOR-] (3) ($RES_SIM_206) (4) [----] for $i1 in 1:3 loop (4) [----] [SCAL] (1) innerResistor.resistor[$i1].p.i - innerResistor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_207) (4) [----] end for; (5) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_280) (6) [FOR-] (3) ($RES_SIM_122) (6) [----] for $i1 in 1:3 loop (6) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].p.v - rectifier.thyristor_n.idealThyristor[$i1].n.v ($RES_SIM_123) (6) [----] end for; (7) [FOR-] (3) ($RES_SIM_82) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_83) (7) [----] end for; (8) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_n[3].u2 ($RES_SIM_281) (9) [ARRY] (3) innerResistor.resistor.p.v = innerResistor.plug_p.pin.v ($RES_SIM_208) (10) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_p[3].u2 ($RES_SIM_282) (11) [FOR-] (3) ($RES_SIM_84) (11) [----] for $i1 in 1:3 loop (11) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_9[$i1] ($RES_SIM_85) (11) [----] end for; (12) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_n[2].u2 ($RES_SIM_283) (13) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_p[2].u2 ($RES_SIM_284) (14) [FOR-] (3) ($RES_SIM_126) (14) [----] for $i1 in 1:3 loop (14) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].LossPower = rectifier.thyristor_n.idealThyristor[$i1].v * rectifier.thyristor_n.idealThyristor[$i1].i ($RES_SIM_127) (14) [----] end for; (15) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_n[1].u2 ($RES_SIM_285) (16) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_p[1].u2 ($RES_SIM_286) (17) [FOR-] (3) ($RES_SIM_128) (17) [----] for $i1 in 1:3 loop (17) [----] [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_129) (17) [----] end for; (18) [ARRY] (3) rectifier.fire_n = rectifier.andCondition_n.u1 ($RES_SIM_287) (19) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_89) (20) [ARRY] (3) rectifier.andCondition_n.y = rectifier.pre_n.u ($RES_SIM_288) (21) [ARRY] (3) rectifier.pre_n.y = rectifier.thyristor_n.fire ($RES_SIM_289) (22) [FOR-] (3) ($RES_EVT_371) (22) [----] for $i1 in 1:3 loop (22) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_372) (22) [----] end for; (23) [FOR-] (3) ($RES_EVT_373) (23) [----] for $i1 in 1:3 loop (23) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_374) (23) [----] end for; (24) [FOR-] (3) ($RES_EVT_375) (24) [----] for $i1 in 1:3 loop (24) [----] [SCAL] (1) $SEV_9[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_376) (24) [----] end for; (25) [FOR-] (3) ($RES_EVT_377) (25) [----] for $i1 in 1:3 loop (25) [----] [SCAL] (1) $SEV_10[$i1] = rectifier.thyristor_n.idealThyristor[$i1].s < 0.0 ($RES_EVT_378) (25) [----] end for; (26) [FOR-] (3) ($RES_EVT_379) (26) [----] for $i1 in 1:3 loop (26) [----] [SCAL] (1) $SEV_11[$i1] = $TEV_10 and not rectifier.thyristor_n.idealThyristor[$i1].fire ($RES_EVT_380) (26) [----] end for; (27) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_210) (28) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_211) (29) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_212) (30) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_213) (31) [FOR-] (3) ($RES_SIM_214) (31) [----] for $i1 in 1:3 loop (31) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_215) (31) [----] end for; (32) [FOR-] (3) ($RES_SIM_130) (32) [----] for $i1 in 1:3 loop (32) [----] [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_131) (32) [----] end for; (33) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_216) (34) [ARRY] (3) rectifier.pre_p.y = rectifier.thyristor_p.fire ($RES_SIM_290) (35) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_217) (36) [FOR-] (3) ($RES_SIM_132) (36) [----] for $i1 in 1:3 loop (36) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].off = $SEV_12[$i1] ($RES_SIM_133) (36) [----] end for; (37) [SCAL] (1) resistor.v = resistor.p.v - currentSensor.n.v ($RES_SIM_19) (38) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre_p.u ($RES_SIM_291) (39) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_218) (40) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_219) (41) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_134) (42) [FOR-] (3) ($RES_SIM_293) (42) [----] for $i1 in 1:3 loop (42) [----] [SCAL] (1) rectifier.thyristor_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_294) (42) [----] end for; (43) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_135) (44) [FOR-] (3) ($RES_SIM_136) (44) [----] for $i1 in 1:3 loop (44) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_137) (44) [----] end for; (45) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_96) (46) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_295) (47) [FOR-] (3) ($RES_SIM_138) (47) [----] for $i1 in 1:3 loop (47) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_139) (47) [----] end for; (48) [FOR-] (3) ($RES_SIM_297) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_298) (48) [----] end for; (49) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_299) (50) [FOR-] (3) ($RES_EVT_381) (50) [----] for $i1 in 1:3 loop (50) [----] [SCAL] (1) $SEV_12[$i1] = $SEV_10[$i1] or $SEV_11[$i1] ($RES_EVT_382) (50) [----] end for; (51) [FOR-] (3) ($RES_EVT_383) (51) [----] for $i1 in 1:3 loop (51) [----] [SCAL] (1) $SEV_13[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_384) (51) [----] end for; (52) [FOR-] (3) ($RES_EVT_385) (52) [----] for $i1 in 1:3 loop (52) [----] [SCAL] (1) $SEV_14[$i1] = $TEV_11 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_386) (52) [----] end for; (53) [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_300) (54) [FOR-] (3) ($RES_EVT_387) (54) [----] for $i1 in 1:3 loop (54) [----] [SCAL] (1) $SEV_15[$i1] = $SEV_13[$i1] or $SEV_14[$i1] ($RES_EVT_388) (54) [----] end for; (55) [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_301) (56) [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_302) (57) [FOR-] (3) ($RES_EVT_389) (57) [----] for $i1 in 1:3 loop (57) [----] [SCAL] (1) $SEV_16[$i1] = rectifier.andCondition_n[$i1].u1 and rectifier.andCondition_n[$i1].u2 ($RES_EVT_390) (57) [----] end for; (58) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_303) (59) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.thyristor_n.plug_n.pin[3].v ($RES_SIM_304) (60) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_21) (61) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_305) (62) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_220) (63) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_22) (64) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.thyristor_n.plug_n.pin[2].v ($RES_SIM_306) (65) [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_221) (66) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_23) (67) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_307) (68) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_222) (69) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.thyristor_n.plug_n.pin[1].v ($RES_SIM_308) (70) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_223) (71) [ARRY] (3) innerResistor.i = innerResistor.plug_p.pin.i ($RES_SIM_25) (72) [ARRY] (3) rectifier.thyristor_n.fire = rectifier.thyristor_n.idealThyristor.fire ($RES_SIM_309) (73) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_224) (74) [ARRY] (3) innerResistor.v = innerResistor.plug_p.pin.v - innerResistor.plug_n.pin.v ($RES_SIM_26) (75) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_225) (76) [FOR-] (3) ($RES_SIM_140) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_141) (76) [----] end for; (77) [FOR-] (3) ($RES_SIM_27) (77) [----] for $i1 in 1:3 loop (77) [----] [SCAL] (1) innerResistor.resistor[$i1].i = innerResistor.resistor[$i1].p.i ($RES_SIM_28) (77) [----] end for; (78) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_226) (79) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_227) (80) [FOR-] (3) ($RES_SIM_29) (80) [----] for $i1 in 1:3 loop (80) [----] [SCAL] (1) 0.0 = innerResistor.resistor[$i1].p.i + innerResistor.resistor[$i1].n.i ($RES_SIM_30) (80) [----] end for; (81) [FOR-] (3) ($RES_SIM_228) (81) [----] for $i1 in 1:3 loop (81) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_229) (81) [----] end for; (82) [FOR-] (3) ($RES_SIM_144) (82) [----] for $i1 in 1:3 loop (82) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_145) (82) [----] end for; (83) [FOR-] (3) ($RES_SIM_146) (83) [----] for $i1 in 1:3 loop (83) [----] [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_147) (83) [----] end for; (84) [FOR-] (3) ($RES_SIM_148) (84) [----] for $i1 in 1:3 loop (84) [----] [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_149) (84) [----] end for; (85) [FOR-] (3) ($RES_$AUX_348) (85) [----] for $i1 in 1:3 loop (85) [----] [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_349) (85) [----] end for; (86) [SCAL] (1) -rectifier.iDC = sum(rectifier.star_p.plug_p.pin.i) ($RES_$AUX_347) (87) [SCAL] (1) -currentSensor.p.i = sum(rectifier.star_n.plug_p.pin.i) ($RES_$AUX_346) (88) [SCAL] (1) $FUN_4 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_345) (89) [SCAL] (1) $FUN_5 = sum(rectifier.thyristor_n.idealThyristor.LossPower) ($RES_$AUX_344) (90) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_343) (91) [SCAL] (1) ground.p.i = sum(multiStarResistance.star.plug_p.pin.i) ($RES_$AUX_341) (92) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_340) (93) [FOR-] (3) ($RES_EVT_391) (93) [----] for $i1 in 1:3 loop (93) [----] [SCAL] (1) $SEV_17[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_392) (93) [----] end for; (94) [FOR-] (3) ($RES_EVT_393) (94) [----] for $i1 in 1:3 loop (94) [----] [SCAL] (1) $SEV_18[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_394) (94) [----] end for; (95) [FOR-] (3) ($RES_SIM_310) (95) [----] for $i1 in 1:3 loop (95) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].n.i - rectifier.thyristor_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_311) (95) [----] end for; (96) [ARRY] (3) rectifier.thyristor_n.idealThyristor.n.v = rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_312) (97) [FOR-] (3) ($RES_SIM_313) (97) [----] for $i1 in 1:3 loop (97) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].p.i - rectifier.thyristor_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_314) (97) [----] end for; (98) [FOR-] (3) ($RES_SIM_31) (98) [----] for $i1 in 1:3 loop (98) [----] [SCAL] (1) innerResistor.resistor[$i1].v = innerResistor.resistor[$i1].p.v - innerResistor.resistor[$i1].n.v ($RES_SIM_32) (98) [----] end for; (99) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.thyristor_n.idealThyristor.p.v ($RES_SIM_315) (100) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_230) (101) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_316) (102) [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_231) (103) [FOR-] (3) ($RES_SIM_33) (103) [----] for $i1 in 1:3 loop (103) [----] [SCAL] (1) innerResistor.resistor[$i1].T_heatPort = innerResistor.resistor[$i1].T ($RES_SIM_34) (103) [----] end for; (104) [FOR-] (3) ($RES_SIM_317) (104) [----] for $i1 in 1:3 loop (104) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_318) (104) [----] end for; (105) [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_232) (106) [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_233) (107) [FOR-] (3) ($RES_SIM_35) (107) [----] for $i1 in 1:3 loop (107) [----] [SCAL] (1) innerResistor.resistor[$i1].LossPower = innerResistor.resistor[$i1].v * innerResistor.resistor[$i1].i ($RES_SIM_36) (107) [----] end for; (108) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_319) (109) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_234) (110) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_235) (111) [FOR-] (3) ($RES_SIM_150) (111) [----] for $i1 in 1:3 loop (111) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_15[$i1] ($RES_SIM_151) (111) [----] end for; (112) [FOR-] (3) ($RES_SIM_37) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) innerResistor.resistor[$i1].v = innerResistor.resistor[$i1].R_actual * innerResistor.resistor[$i1].i ($RES_SIM_38) (112) [----] end for; (113) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_236) (114) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_237) (115) [FOR-] (3) ($RES_SIM_152) (115) [----] for $i1 in 1:3 loop (115) [----] [SCAL] (1) rectifier.andCondition_n[$i1].y = $SEV_16[$i1] ($RES_SIM_153) (115) [----] end for; (116) [FOR-] (3) ($RES_SIM_39) (116) [----] for $i1 in 1:3 loop (116) [----] [SCAL] (1) innerResistor.resistor[$i1].R_actual = innerResistor.resistor[$i1].R * (1.0 + innerResistor.resistor[$i1].alpha * (innerResistor.resistor[$i1].T_heatPort - innerResistor.resistor[$i1].T_ref)) ($RES_SIM_40) (116) [----] end for; (117) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_238) (118) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_239) (119) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_154) (120) [FOR-] (3) ($RES_SIM_156) (120) [----] for $i1 in 1:3 loop (120) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_17[$i1] ($RES_SIM_157) (120) [----] end for; (121) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_158) (122) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_159) (123) [FOR-] (3) ($RES_SIM_320) (123) [----] for $i1 in 1:3 loop (123) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_321) (123) [----] end for; (124) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_322) (125) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_324) (126) [FOR-] (3) ($RES_SIM_325) (126) [----] for $i1 in 1:3 loop (126) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_326) (126) [----] end for; (127) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_240) (128) [FOR-] (3) ($RES_SIM_241) (128) [----] for $i1 in 1:3 loop (128) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_242) (128) [----] end for; (129) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_327) (130) [FOR-] (3) ($RES_SIM_328) (130) [----] for $i1 in 1:3 loop (130) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_329) (130) [----] end for; (131) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_243) (132) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_45) (133) [FOR-] (3) ($RES_SIM_244) (133) [----] for $i1 in 1:3 loop (133) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_245) (133) [----] end for; (134) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_46) (135) [FOR-] (3) ($RES_SIM_160) (135) [----] for $i1 in 1:3 loop (135) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_161) (135) [----] end for; (136) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_47) (137) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_246) (138) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_48) (139) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_247) (140) [FOR-] (3) ($RES_SIM_162) (140) [----] for $i1 in 1:3 loop (140) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_163) (140) [----] end for; (141) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_49) (142) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_248) (143) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_249) (144) [FOR-] (3) ($RES_SIM_164) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_165) (144) [----] end for; (145) [FOR-] (3) ($RES_SIM_166) (145) [----] for $i1 in 1:3 loop (145) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_167) (145) [----] end for; (146) [FOR-] (3) ($RES_SIM_168) (146) [----] for $i1 in 1:3 loop (146) [----] [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_169) (146) [----] end for; (147) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_330) (148) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_50) (149) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_51) (150) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_250) (151) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_52) (152) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_251) (153) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_53) (154) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_252) (155) [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_54) (156) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_253) (157) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_254) (158) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_255) (159) [SCAL] (1) currentSensor.p.i - resistor.i = 0.0 ($RES_SIM_170) (160) [FOR-] (3) ($RES_SIM_57) (160) [----] for $i1 in 1:3 loop (160) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_58) (160) [----] end for; (161) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_256) (162) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_171) (163) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_257) (164) [FOR-] (3) ($RES_SIM_59) (164) [----] for $i1 in 1:3 loop (164) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_60) (164) [----] end for; (165) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_258) (166) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_259) (167) [FOR-] (3) ($RES_SIM_177) (167) [----] for $i1 in 1:3 loop (167) [----] [SCAL] (1) sineVoltage.plug_p.pin[$i1].i + innerResistor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_178) (167) [----] end for; (168) [ARRY] (3) sineVoltage.plug_p.pin.v = innerResistor.plug_n.pin.v ($RES_SIM_179) (169) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_100) (170) [SCAL] (1) meanVoltage.u = resistor.p.v - currentSensor.n.v ($RES_SIM_101) (171) [FOR-] (3) ($RES_SIM_61) (171) [----] for $i1 in 1:3 loop (171) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_62) (171) [----] end for; (172) [FOR-] (3) ($RES_SIM_63) (172) [----] for $i1 in 1:3 loop (172) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_64) (172) [----] end for; (173) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_262) (174) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.negativeEqual[3].u2 ($RES_SIM_263) (175) [SCAL] (1) rectifier.LossPower = $FUN_4 + $FUN_5 ($RES_SIM_105) (176) [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_65) (177) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_264) (178) [FOR-] (3) ($RES_SIM_106) (178) [----] for $i1 in 1:3 loop (178) [----] [SCAL] (1) rectifier.pre_n[$i1].y = $TEV_2 ($RES_SIM_107) (178) [----] end for; (179) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.negativeEqual[2].u2 ($RES_SIM_265) (180) [SCAL] (1) innerResistor.plug_p.pin[3].i + rectifier.ac.pin[3].i + pulse2m.ac.pin[3].i = 0.0 ($RES_SIM_180) (181) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_266) (182) [SCAL] (1) innerResistor.plug_p.pin[2].i + rectifier.ac.pin[2].i + pulse2m.ac.pin[2].i = 0.0 ($RES_SIM_181) (183) [FOR-] (3) ($RES_SIM_108) (183) [----] for $i1 in 1:3 loop (183) [----] [SCAL] (1) rectifier.pre_p[$i1].y = $TEV_3 ($RES_SIM_109) (183) [----] end for; (184) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_68) (185) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.negativeEqual[1].u2 ($RES_SIM_267) (186) [SCAL] (1) innerResistor.plug_p.pin[1].i + rectifier.ac.pin[1].i + pulse2m.ac.pin[1].i = 0.0 ($RES_SIM_182) (187) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_69) (188) [SCAL] (1) innerResistor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_183) (189) [ARRY] (3) pulse2m.twomPulse.negativeEqual.y = pulse2m.twomPulse.fire_n ($RES_SIM_269) (190) [SCAL] (1) innerResistor.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_184) (191) [SCAL] (1) innerResistor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_185) (192) [SCAL] (1) innerResistor.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_186) (193) [SCAL] (1) innerResistor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_187) (194) [SCAL] (1) innerResistor.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_188) (195) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_350) (196) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_351) (197) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre_n[$i1].u ($RES_EVT_352) (198) [SCAL] (1) $TEV_3 = $PRE.rectifier.pre_p[$i1].u ($RES_EVT_353) (199) [FOR-] (3) ($RES_SIM_70) (199) [----] for $i1 in 1:3 loop (199) [----] [SCAL] (1) pulse2m.twomPulse.negativeEqual[$i1].y = $SEV_6[$i1] ($RES_SIM_71) (199) [----] end for; (200) [FOR-] (3) ($RES_SIM_111) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) rectifier.star_n.plug_p.pin[$i1].v = currentSensor.n.v ($RES_SIM_112) (200) [----] end for; (201) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_270) (202) [FOR-] (3) ($RES_SIM_72) (202) [----] for $i1 in 1:3 loop (202) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_7[$i1] ($RES_SIM_73) (202) [----] end for; (203) [ARRY] (3) pulse2m.twomPulse.negativeEqual.u1 = pulse2m.twomPulse.timerNegative.y ($RES_SIM_271) (204) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_272) (205) [FOR-] (3) ($RES_SIM_114) (205) [----] for $i1 in 1:3 loop (205) [----] [SCAL] (1) rectifier.star_p.plug_p.pin[$i1].v = resistor.p.v ($RES_SIM_115) (205) [----] end for; (206) [FOR-] (3) ($RES_SIM_74) (206) [----] for $i1 in 1:3 loop (206) [----] [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_75) (206) [----] end for; (207) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_273) (208) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_274) (209) [ARRY] (3) rectifier.thyristor_n.i = rectifier.thyristor_n.plug_p.pin.i ($RES_SIM_116) (210) [FOR-] (3) ($RES_SIM_76) (210) [----] for $i1 in 1:3 loop (210) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (210) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (210) [----] [----] end when; (210) [----] end for; (211) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_275) (212) [FOR-] (3) ($RES_SIM_190) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_191) (212) [----] end for; (213) [ARRY] (3) rectifier.thyristor_n.v = rectifier.thyristor_n.plug_p.pin.v - rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_117) (214) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_276) (215) [FOR-] (3) ($RES_SIM_118) (215) [----] for $i1 in 1:3 loop (215) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].p.i ($RES_SIM_119) (215) [----] end for; (216) [FOR-] (3) ($RES_SIM_78) (216) [----] for $i1 in 1:3 loop (216) [----] [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_79) (216) [----] end for; (217) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_192) (218) [ARRY] (3) pulse2m.fire_n = rectifier.fire_n ($RES_SIM_193) (219) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_194) (220) [SCAL] (1) $TEV_10 = $PRE.rectifier.thyristor_n.idealThyristor[$i1].off ($RES_EVT_360) (221) [SCAL] (1) $TEV_11 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_361) (222) [FOR-] (3) ($RES_EVT_363) (222) [----] for $i1 in 1:3 loop (222) [----] [SCAL] (1) $SEV_1[$i1] = 1.0 + innerResistor.resistor[$i1].alpha * (innerResistor.resistor[$i1].T_heatPort - innerResistor.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_364) (222) [----] end for; (223) [SCAL] (1) $SEV_2[1] = 1.0 + multiStarResistance.resistor.resistor[1].alpha * (multiStarResistance.resistor.resistor[1].T_heatPort - multiStarResistance.resistor.resistor[1].T_ref) >= 1e-15 ($RES_EVT_365) (224) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_366) (225) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_331) (226) [SCAL] (1) $SEV_4 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_367) (227) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_332) (228) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_333) (229) [FOR-] (3) ($RES_EVT_369) (229) [----] for $i1 in 1:3 loop (229) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.negativeEqual[$i1].u1 > pulse2m.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_370) (229) [----] end for; (230) [SCAL] (1) rectifier.vDC = resistor.p.v - currentSensor.n.v ($RES_BND_335) (231) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_337) (232) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_338) (233) [FOR-] (3) ($RES_SIM_203) (233) [----] for $i1 in 1:3 loop (233) [----] [SCAL] (1) innerResistor.resistor[$i1].n.i - innerResistor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_204) (233) [----] end for; (234) [ARRY] (3) rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off ($RES_BND_339)