Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,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.1..u|rectifier.pre.2..u|rectifier.pre.3..u|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse") translateModel(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse,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.1..u|rectifier.pre.2..u|rectifier.pre.3..u|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009598/0.0009599, allocations: 110.3 kB / 18.41 MB, free: 4.797 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.0009469/0.0009469, allocations: 191.5 kB / 19.34 MB, free: 3.871 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.22/1.22, allocations: 222.9 MB / 243 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.191/0.191, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.598e-05/2.599e-05, allocations: 2.281 kB / 409.8 MB, free: 26.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse): time 0.006052/0.006098, allocations: 6.454 MB / 416.3 MB, free: 20.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003247/0.00937, allocations: 1.928 MB / 418.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006376/0.01002, allocations: 47.75 kB / 418.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000711/0.01074, allocations: 321.6 kB / 418.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008713/0.01162, allocations: 477.2 kB / 419 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006318/0.01227, allocations: 391.4 kB / 419.4 MB, free: 16.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002031/0.01431, allocations: 2.951 MB / 422.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.01547, allocations: 1.253 MB / 423.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009899/0.01647, allocations: 0.931 MB / 424.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008108/0.0173, allocations: 0.9149 MB / 425.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001851/0.0175, allocations: 168 kB / 425.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002423/0.01775, allocations: 176 kB / 425.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001225/0.01898, allocations: 2.302 MB / 428.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006103/0.0196, allocations: 1.498 MB / 429.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002454/0.01986, allocations: 227.3 kB / 429.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0002032/0.02007, allocations: 47.75 kB / 429.9 MB, free: 6.395 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 470 (250) * Number of variables: 470 (213) Notification: Performance of Bindings: time 0.005767/0.02584, allocations: 7.436 MB / 437.3 MB, free: 14.76 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0004277/0.02628, allocations: 358.5 kB / 437.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of Early Inline: time 0.003342/0.02964, allocations: 3.517 MB / 441.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simplify1: time 0.0002748/0.02992, allocations: 183.8 kB / 441.4 MB, free: 10.67 MB / 318.1 MB Notification: Performance of Alias: time 0.0043/0.03423, allocations: 3.555 MB / 444.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of simplify2: time 0.000216/0.03446, allocations: 167.7 kB / 445.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of Events: time 0.0008808/0.03535, allocations: 0.7918 MB / 445.9 MB, free: 5.922 MB / 318.1 MB Notification: Performance of Detect States: time 0.001093/0.03646, allocations: 1.157 MB / 447 MB, free: 4.738 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001726/0.03819, allocations: 1.567 MB / 448.6 MB, free: 3.066 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency pulse2m.twomPulse.gain.y could not be devided 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_69) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (187/464) **************************** (1) [ALGB] (3) protected Real[3] rectifier.diode_n.idealDiode.s (start = {0.0 for $i1 in 1:3}) (2) [ALGB] (3) Real[3] sineVoltage.sineVoltage.signalSource.y (3) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.v (4) [ALGB] (1) Real rootMeanSquareVoltage.product.y (5) [ALGB] (3) Real[3] sineVoltage.sineVoltage.p.v (6) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.p.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) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.R_actual (13) [DISC] (1) Boolean $TEV_9 (14) [ALGB] (1) Real resistor.LossPower (15) [ALGB] (3) Real[3] resistor1.plug_n.pin.v (16) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.p.i (17) [DISC] (1) Boolean $TEV_2 (18) [DISC] (1) Boolean $TEV_1 (19) [ALGB] (1) Real resistor.i (20) [DISC] (1) Boolean $TEV_0 (21) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.p.i (22) [ALGB] (3) flow Real[3] pulse2m.delta.plug_p.pin.i (23) [ALGB] (1) Real pulse2m.twomPulse.limiter.y (24) [ALGB] (1) Real rectifier.vDC = voltagesensor.p.v - currentSensor.n.v (25) [ALGB] (3) Real[3] pulse2m.voltageSensor.v (26) [ALGB] (3) Real[3] rectifier.diode_n.v (27) [ALGB] (3) Real[3] pulse2m.twomPulse.replicator.y (28) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (29) [ALGB] (3) Real[3] pulse2m.twomPulse.positiveThreshold.u (30) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.p.v (31) [ALGB] (3) Real[3] sineVoltage.plug_n.pin.v (32) [ALGB] (3) Real[3] resistor1.resistor.LossPower (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] pulse2m.twomPulse.negativeThreshold.u (38) [ALGB] (3) Real[3] rectifier.diode_n.i (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] (3) Real[3] resistor1.resistor.v (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) [ALGB] (3) Real[3] pulse2m.twomPulse.gainPositive.y (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) flow Real[3] rectifier.diode_n.plug_n.pin.i (54) [ALGB] (3) Real[3] multiStarResistance.multiStar.plug_p.pin.v (55) [DISC] (3) Boolean[3] rectifier.pre.y (56) [ALGB] (3) Real[3] pulse2m.ac.pin.v (57) [DISC] (3) Boolean[3] $SEV_0[$i1] (58) [ALGB] (3) Real[3] resistor1.resistor.i (59) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (60) [DISC] (3) Boolean[3] rectifier.pre.u (61) [ALGB] (3) Real[3] pulse2m.twomPulse.v (62) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_n.pin.i (63) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (64) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_n.pin.v (65) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (66) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (67) [DER-] (1) Real $DER.meanVoltage.x (68) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.n.i (69) [ALGB] (3) Real[3] rectifier.diode_n.plug_n.pin.v (70) [ALGB] (3) flow Real[3] multiStarResistance.multiStar.plug_p.pin.i (71) [ALGB] (1) Real rectifier.LossPower (72) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.LossPower (73) [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}) (74) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_p.pin.i (75) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_n.pin.i (76) [ALGB] (3) Real[3] rectifier.star_n.plug_p.pin.v (77) [ALGB] (3) Real[3] rectifier.star_p.plug_p.pin.v (78) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.n.v (79) [ALGB] (3) flow Real[3] resistor1.resistor.n.i (80) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_p (81) [ALGB] (1) flow Real currentSensor.p.i (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] resistor1.i (87) [ALGB] (3) Real[3] $FUN_1 (88) [DER-] (1) Real $DER.meanCurrent.x (89) [DISC] (3) Boolean[3] $SEV_13[$i1] (90) [ALGB] (3) Real[3] resistor1.resistor.n.v (91) [ALGB] (3) flow Real[3] resistor1.plug_p.pin.i (92) [DISC] (3) Boolean[3] $SEV_9[$i1] (93) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerPositive.u (94) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.p.v (95) [ALGB] (3) Real[3] resistor1.v (96) [ALGB] (3) Real[3] pulse2m.twomPulse.timerPositive.y (97) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.v (98) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.LossPower (99) [DISC] (3) Boolean[3] rectifier.fire_p (100) [ALGB] (3) Real[3] resistor1.plug_p.pin.v (101) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.p.i (102) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (103) [ALGB] (3) Real[3] sineVoltage.v (104) [ALGB] (3) Real[3] sineVoltage.sineVoltage.n.v (105) [ALGB] (3) flow Real[3] rectifier.diode_n.idealDiode.n.i (106) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac.pin[:].v (107) [ALGB] (3) Real[3] sineVoltage.i (108) [ALGB] (1) Real meanVoltage.u (109) [DISC] (1) Boolean $SEV_5 (110) [ALGB] (3) flow Real[3] sineVoltage.sineVoltage.n.i (111) [DISC] (1) Boolean $SEV_4 (112) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.n.v (113) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.v (114) [ALGB] (1) Real[1] multiStarResistance.resistor.v (115) [DISC] (3) Boolean[3] $SEV_12[$i1] (116) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac.pin[:].i (117) [DISC] (3) Boolean[3] $SEV_8[$i1] (118) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.i (119) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (120) [ALGB] (1) Real[1] multiStarResistance.resistor.i (121) [ALGB] (3) flow Real[3] rectifier.diode_n.plug_p.pin.i (122) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (123) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (124) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (125) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (126) [ALGB] (3) Real[3] pulse2m.twomPulse.gainNegative.u (127) [ALGB] (1) Real resistor.R_actual (128) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (129) [ALGB] (3) Real[3] pulse2m.twomPulse.gainNegative.y (130) [ALGB] (3) Real[3] rectifier.diode_n.plug_p.pin.v (131) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (132) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (133) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (134) [ALGB] (3) Real[3] rectifier.thyristor_p.v (135) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (136) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (137) [ALGB] (3) Real[3] rectifier.thyristor_p.i (138) [ALGB] (3) Real[3] sineVoltage.plug_p.pin.v (139) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.voltageSensor.p.i (140) [DISC] (3) Boolean[3] $SEV_16[$i1] (141) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (142) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (143) [ALGB] (1) Real currentSensor.n.v (144) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (145) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (146) [DISC] (3) Boolean[3] $SEV_11[$i1] (147) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (148) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterNegative.y (149) [ALGB] (3) flow Real[3] sineVoltage.plug_p.pin.i (150) [DISC] (3) Boolean[3] $SEV_7[$i1] (151) [ALGB] (3) Real[3] sineVoltage.sineVoltage.v (152) [ALGB] (3) Real[3] pulse2m.voltageSensor.voltageSensor.p.v (153) [ALGB] (3) flow Real[3] resistor1.resistor.p.i (154) [ALGB] (1) Real[1] multiStarResistance.resistor.plug_p.pin.v (155) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (156) [DISC] (1) Boolean[1] $SEV_2[$i1] (157) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (158) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (159) [ALGB] (3) Real[3] resistor1.resistor.R_actual (160) [ALGB] (3) Real[3] sineVoltage.sineVoltage.i (161) [ALGB] (3) Real[3] resistor1.resistor.p.v (162) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (163) [ALGB] (1) flow Real[1] multiStarResistance.resistor.plug_p.pin.i (164) [ALGB] (1) Real[1] multiStarResistance.resistor.resistor.n.v (165) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (166) [DISC] (3) Boolean[3] pulse2m.fire_p (167) [DISC] (3) Boolean[3] pulse2m.fire_n (168) [ALGB] (1) Real voltagesensor.p.v (169) [DISC] (3) Boolean[3] rectifier.diode_n.idealDiode.off (start = {true for $i1 in 1:3}) (170) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (171) [ALGB] (1) flow Real[1] multiStarResistance.resistor.resistor.n.i (172) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (173) [ALGB] (3) Real[3] resistor1.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}) (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) Boolean[3] $SEV_15[$i1] (178) [ALGB] (3) Real[3] rectifier.diode_n.idealDiode.i (179) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (180) [ALGB] (3) flow Real[3] rectifier.diode_n.idealDiode.p.i (181) [ALGB] (1) flow Real[1] multiStarResistance.star.plug_p.pin.i (182) [ALGB] (1) flow Real[1] multiStarResistance.multiStar.starpoints.pin.i (183) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (184) [ALGB] (1) Real pulse2m.twomPulse.gain.y (185) [ALGB] (3) flow Real[3] multiStarResistance.plug.pin.i (186) [DISC] (3) Boolean[3] $SEV_10[$i1] (187) [ALGB] (3) flow Real[3] resistor1.plug_n.pin.i System Equations (224/464) **************************** (1) [ARRY] (1) multiStarResistance.resistor.plug_n.pin.v = multiStarResistance.star.plug_p.pin.v ($RES_SIM_204) (2) [SCAL] (1) multiStarResistance.multiStar.starpoints.pin[1].i + multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_205) (3) [ARRY] (1) multiStarResistance.multiStar.starpoints.pin.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_206) (4) [FOR-] (3) ($RES_SIM_81) (4) [----] for $i1 in 1:3 loop (4) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (4) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (4) [----] [----] end when; (4) [----] end for; (5) [ARRY] (3) rectifier.andCondition_p.y = rectifier.pre.u ($RES_SIM_280) (6) [FOR-] (3) ($RES_SIM_207) (6) [----] for $i1 in 1:3 loop (6) [----] [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[$i1].i - multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_208) (6) [----] end for; (7) [FOR-] (3) ($RES_SIM_122) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].LossPower = rectifier.diode_n.idealDiode[$i1].v * rectifier.diode_n.idealDiode[$i1].i ($RES_SIM_123) (7) [----] end for; (8) [FOR-] (3) ($RES_SIM_83) (8) [----] for $i1 in 1:3 loop (8) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_9[$i1] ($RES_SIM_84) (8) [----] end for; (9) [FOR-] (3) ($RES_SIM_282) (9) [----] for $i1 in 1:3 loop (9) [----] [SCAL] (1) rectifier.diode_n.plug_p.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_283) (9) [----] end for; (10) [ARRY] (3) multiStarResistance.plug.pin.v = multiStarResistance.multiStar.plug_p.pin.v ($RES_SIM_209) (11) [FOR-] (3) ($RES_SIM_124) (11) [----] for $i1 in 1:3 loop (11) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].i = rectifier.diode_n.idealDiode[$i1].s * (if rectifier.diode_n.idealDiode[$i1].off then rectifier.diode_n.idealDiode[$i1].Goff else 1.0) + rectifier.diode_n.idealDiode[$i1].Goff * rectifier.diode_n.idealDiode[$i1].Vknee ($RES_SIM_125) (11) [----] end for; (12) [FOR-] (3) ($RES_SIM_85) (12) [----] for $i1 in 1:3 loop (12) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_10[$i1] ($RES_SIM_86) (12) [----] end for; (13) [ARRY] (3) rectifier.diode_n.plug_p.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_284) (14) [FOR-] (3) ($RES_SIM_126) (14) [----] for $i1 in 1:3 loop (14) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].v = rectifier.diode_n.idealDiode[$i1].s * (if rectifier.diode_n.idealDiode[$i1].off then 1.0 else rectifier.diode_n.idealDiode[$i1].Ron) + rectifier.diode_n.idealDiode[$i1].Vknee ($RES_SIM_127) (14) [----] end for; (15) [FOR-] (3) ($RES_SIM_286) (15) [----] for $i1 in 1:3 loop (15) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_287) (15) [----] end for; (16) [FOR-] (3) ($RES_SIM_128) (16) [----] for $i1 in 1:3 loop (16) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].off = $SEV_11[$i1] ($RES_SIM_129) (16) [----] end for; (17) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_288) (18) [SCAL] (1) (rectifier.diode_n.plug_n.pin[3].i + rectifier.thyristor_p.plug_p.pin[3].i) - rectifier.ac.pin[3].i = 0.0 ($RES_SIM_289) (19) [FOR-] (3) ($RES_EVT_370) (19) [----] for $i1 in 1:3 loop (19) [----] [SCAL] (1) $SEV_12[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_371) (19) [----] end for; (20) [FOR-] (3) ($RES_EVT_372) (20) [----] for $i1 in 1:3 loop (20) [----] [SCAL] (1) $SEV_13[$i1] = $TEV_9 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_373) (20) [----] end for; (21) [FOR-] (3) ($RES_EVT_374) (21) [----] for $i1 in 1:3 loop (21) [----] [SCAL] (1) $SEV_14[$i1] = $SEV_12[$i1] or $SEV_13[$i1] ($RES_EVT_375) (21) [----] end for; (22) [FOR-] (3) ($RES_EVT_376) (22) [----] for $i1 in 1:3 loop (22) [----] [SCAL] (1) $SEV_15[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_377) (22) [----] end for; (23) [FOR-] (3) ($RES_EVT_378) (23) [----] for $i1 in 1:3 loop (23) [----] [SCAL] (1) $SEV_16[$i1] = time < sineVoltage.sineVoltage[$i1].signalSource.startTime ($RES_EVT_379) (23) [----] end for; (24) [SCAL] (1) -(multiStarResistance.star.plug_p.pin[1].i - ground.p.i) = 0.0 ($RES_SIM_210) (25) [SCAL] (1) multiStarResistance.star.plug_p.pin[1].v = 0.0 ($RES_SIM_211) (26) [SCAL] (1) multiStarResistance.resistor.resistor[1].n.i - multiStarResistance.resistor.plug_n.pin[1].i = 0.0 ($RES_SIM_212) (27) [ARRY] (1) multiStarResistance.resistor.resistor.n.v = multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_213) (28) [ARRY] (3) resistor1.i = resistor1.plug_p.pin.i ($RES_SIM_15) (29) [SCAL] (1) multiStarResistance.resistor.resistor[1].p.i - multiStarResistance.resistor.plug_p.pin[1].i = 0.0 ($RES_SIM_214) (30) [ARRY] (3) resistor1.v = resistor1.plug_p.pin.v - resistor1.plug_n.pin.v ($RES_SIM_16) (31) [ARRY] (1) multiStarResistance.resistor.resistor.p.v = multiStarResistance.resistor.plug_p.pin.v ($RES_SIM_215) (32) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_130) (33) [FOR-] (3) ($RES_SIM_17) (33) [----] for $i1 in 1:3 loop (33) [----] [SCAL] (1) resistor1.resistor[$i1].v = resistor1.resistor[$i1].p.v - resistor1.resistor[$i1].n.v ($RES_SIM_18) (33) [----] end for; (34) [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_216) (35) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_131) (36) [SCAL] (1) $DER.meanCurrent.x = currentSensor.p.i ($RES_SIM_91) (37) [SCAL] (1) (rectifier.diode_n.plug_n.pin[2].i + rectifier.thyristor_p.plug_p.pin[2].i) - rectifier.ac.pin[2].i = 0.0 ($RES_SIM_290) (38) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[1].v ($RES_SIM_217) (39) [FOR-] (3) ($RES_SIM_132) (39) [----] for $i1 in 1:3 loop (39) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_133) (39) [----] end for; (40) [FOR-] (3) ($RES_SIM_19) (40) [----] for $i1 in 1:3 loop (40) [----] [SCAL] (1) resistor1.resistor[$i1].i = resistor1.resistor[$i1].p.i ($RES_SIM_20) (40) [----] end for; (41) [SCAL] (1) (rectifier.diode_n.plug_n.pin[1].i + rectifier.thyristor_p.plug_p.pin[1].i) - rectifier.ac.pin[1].i = 0.0 ($RES_SIM_291) (42) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.plug_p.pin[2].v ($RES_SIM_218) (43) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_292) (44) [SCAL] (1) multiStarResistance.multiStar.plug_p.pin[3].v = multiStarResistance.multiStar.starpoints.pin[1].v ($RES_SIM_219) (45) [FOR-] (3) ($RES_SIM_134) (45) [----] for $i1 in 1:3 loop (45) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_135) (45) [----] end for; (46) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[3].v = rectifier.diode_n.plug_n.pin[3].v ($RES_SIM_293) (47) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_294) (48) [FOR-] (3) ($RES_SIM_136) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_137) (48) [----] end for; (49) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[2].v = rectifier.diode_n.plug_n.pin[2].v ($RES_SIM_295) (50) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_296) (51) [SCAL] (1) rectifier.thyristor_p.plug_p.pin[1].v = rectifier.diode_n.plug_n.pin[1].v ($RES_SIM_297) (52) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_99) (53) [FOR-] (3) ($RES_SIM_298) (53) [----] for $i1 in 1:3 loop (53) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].n.i - rectifier.diode_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_299) (53) [----] end for; (54) [ARRY] (3) rectifier.diode_n.idealDiode.n.v = rectifier.diode_n.plug_n.pin.v ($RES_SIM_300) (55) [FOR-] (3) ($RES_SIM_301) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].p.i - rectifier.diode_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_302) (55) [----] end for; (56) [ARRY] (3) rectifier.diode_n.plug_p.pin.v = rectifier.diode_n.idealDiode.p.v ($RES_SIM_303) (57) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_304) (58) [FOR-] (3) ($RES_SIM_21) (58) [----] for $i1 in 1:3 loop (58) [----] [SCAL] (1) 0.0 = resistor1.resistor[$i1].p.i + resistor1.resistor[$i1].n.i ($RES_SIM_22) (58) [----] end for; (59) [FOR-] (3) ($RES_SIM_305) (59) [----] for $i1 in 1:3 loop (59) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_306) (59) [----] end for; (60) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_220) (61) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_221) (62) [FOR-] (3) ($RES_SIM_23) (62) [----] for $i1 in 1:3 loop (62) [----] [SCAL] (1) resistor1.resistor[$i1].T_heatPort = resistor1.resistor[$i1].T ($RES_SIM_24) (62) [----] end for; (63) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_307) (64) [ARRY] (3) pulse2m.voltageSensor.v = pulse2m.twomPulse.v ($RES_SIM_222) (65) [FOR-] (3) ($RES_SIM_308) (65) [----] for $i1 in 1:3 loop (65) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_309) (65) [----] end for; (66) [FOR-] (3) ($RES_SIM_223) (66) [----] for $i1 in 1:3 loop (66) [----] [SCAL] (1) pulse2m.delta.plug_p.pin[$i1].i + pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_224) (66) [----] end for; (67) [FOR-] (3) ($RES_SIM_25) (67) [----] for $i1 in 1:3 loop (67) [----] [SCAL] (1) resistor1.resistor[$i1].LossPower = resistor1.resistor[$i1].v * resistor1.resistor[$i1].i ($RES_SIM_26) (67) [----] end for; (68) [ARRY] (3) pulse2m.delta.plug_p.pin.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_225) (69) [FOR-] (3) ($RES_SIM_140) (69) [----] for $i1 in 1:3 loop (69) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_141) (69) [----] end for; (70) [FOR-] (3) ($RES_SIM_27) (70) [----] for $i1 in 1:3 loop (70) [----] [SCAL] (1) resistor1.resistor[$i1].v = resistor1.resistor[$i1].R_actual * resistor1.resistor[$i1].i ($RES_SIM_28) (70) [----] end for; (71) [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_226) (72) [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_227) (73) [FOR-] (3) ($RES_SIM_142) (73) [----] for $i1 in 1:3 loop (73) [----] [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_143) (73) [----] end for; (74) [FOR-] (3) ($RES_SIM_29) (74) [----] for $i1 in 1:3 loop (74) [----] [SCAL] (1) resistor1.resistor[$i1].R_actual = resistor1.resistor[$i1].R * (1.0 + resistor1.resistor[$i1].alpha * (resistor1.resistor[$i1].T_heatPort - resistor1.resistor[$i1].T_ref)) ($RES_SIM_30) (74) [----] end for; (75) [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_228) (76) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_229) (77) [FOR-] (3) ($RES_SIM_144) (77) [----] for $i1 in 1:3 loop (77) [----] [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_145) (77) [----] end for; (78) [FOR-] (3) ($RES_SIM_146) (78) [----] for $i1 in 1:3 loop (78) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_14[$i1] ($RES_SIM_147) (78) [----] end for; (79) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_148) (80) [FOR-] (3) ($RES_$AUX_340) (80) [----] for $i1 in 1:3 loop (80) [----] [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_341) (80) [----] end for; (81) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_310) (82) [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_311) (83) [SCAL] (1) rectifier.star_n.plug_p.pin[3].v = rectifier.star_n.plug_p.pin[1].v ($RES_SIM_312) (84) [SCAL] (1) rectifier.star_n.plug_p.pin[3].v = rectifier.star_n.plug_p.pin[2].v ($RES_SIM_313) (85) [SCAL] (1) rectifier.star_n.plug_p.pin[3].v = currentSensor.n.v ($RES_SIM_314) (86) [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_315) (87) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[3].v = pulse2m.delta.plug_n.pin[3].v ($RES_SIM_230) (88) [SCAL] (1) rectifier.star_p.plug_p.pin[3].v = rectifier.star_p.plug_p.pin[1].v ($RES_SIM_316) (89) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_231) (90) [SCAL] (1) resistor.v = voltagesensor.p.v - currentSensor.n.v ($RES_SIM_33) (91) [SCAL] (1) rectifier.star_p.plug_p.pin[3].v = rectifier.star_p.plug_p.pin[2].v ($RES_SIM_317) (92) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[2].v = pulse2m.delta.plug_n.pin[2].v ($RES_SIM_232) (93) [SCAL] (1) rectifier.star_p.plug_p.pin[3].v = voltagesensor.p.v ($RES_SIM_318) (94) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_233) (95) [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[1].v = pulse2m.delta.plug_n.pin[1].v ($RES_SIM_234) (96) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.v = pulse2m.voltageSensor.v ($RES_SIM_235) (97) [FOR-] (3) ($RES_SIM_150) (97) [----] for $i1 in 1:3 loop (97) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_15[$i1] ($RES_SIM_151) (97) [----] end for; (98) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_37) (99) [FOR-] (3) ($RES_SIM_236) (99) [----] for $i1 in 1:3 loop (99) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_237) (99) [----] end for; (100) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_38) (101) [ARRY] (3) sineVoltage.i = sineVoltage.plug_p.pin.i ($RES_SIM_152) (102) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_39) (103) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_238) (104) [ARRY] (3) sineVoltage.v = sineVoltage.plug_p.pin.v - sineVoltage.plug_n.pin.v ($RES_SIM_153) (105) [FOR-] (3) ($RES_SIM_239) (105) [----] for $i1 in 1:3 loop (105) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i - pulse2m.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_240) (105) [----] end for; (106) [FOR-] (3) ($RES_SIM_154) (106) [----] for $i1 in 1:3 loop (106) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].p.v - sineVoltage.sineVoltage[$i1].n.v ($RES_SIM_155) (106) [----] end for; (107) [FOR-] (3) ($RES_SIM_156) (107) [----] for $i1 in 1:3 loop (107) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].i = sineVoltage.sineVoltage[$i1].p.i ($RES_SIM_157) (107) [----] end for; (108) [SCAL] (1) $FUN_2 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_339) (109) [FOR-] (3) ($RES_SIM_158) (109) [----] for $i1 in 1:3 loop (109) [----] [SCAL] (1) 0.0 = sineVoltage.sineVoltage[$i1].p.i + sineVoltage.sineVoltage[$i1].n.i ($RES_SIM_159) (109) [----] end for; (110) [SCAL] (1) $FUN_3 = sum(rectifier.diode_n.idealDiode.LossPower) ($RES_$AUX_338) (111) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_337) (112) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_335) (113) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_320) (114) [FOR-] (3) ($RES_SIM_321) (114) [----] for $i1 in 1:3 loop (114) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].n.i - sineVoltage.plug_n.pin[$i1].i = 0.0 ($RES_SIM_322) (114) [----] end for; (115) [ARRY] (3) sineVoltage.sineVoltage.n.v = sineVoltage.plug_n.pin.v ($RES_SIM_323) (116) [FOR-] (3) ($RES_SIM_324) (116) [----] for $i1 in 1:3 loop (116) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].p.i - sineVoltage.plug_p.pin[$i1].i = 0.0 ($RES_SIM_325) (116) [----] end for; (117) [ARRY] (1) multiStarResistance.resistor.i = multiStarResistance.resistor.plug_p.pin.i ($RES_SIM_42) (118) [ARRY] (3) sineVoltage.sineVoltage.p.v = sineVoltage.plug_p.pin.v ($RES_SIM_326) (119) [ARRY] (3) pulse2m.voltageSensor.voltageSensor.n.v = pulse2m.voltageSensor.plug_n.pin.v ($RES_SIM_241) (120) [ARRY] (1) multiStarResistance.resistor.v = multiStarResistance.resistor.plug_p.pin.v - multiStarResistance.resistor.plug_n.pin.v ($RES_SIM_43) (121) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_242) (122) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].p.v - multiStarResistance.resistor.resistor[1].n.v ($RES_SIM_44) (123) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_243) (124) [ARRY] (1) multiStarResistance.resistor.resistor.i = multiStarResistance.resistor.resistor.p.i ($RES_SIM_45) (125) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_244) (126) [SCAL] (1) 0.0 = multiStarResistance.resistor.resistor[1].p.i + multiStarResistance.resistor.resistor[1].n.i ($RES_SIM_46) (127) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_245) (128) [FOR-] (3) ($RES_SIM_160) (128) [----] for $i1 in 1:3 loop (128) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].v = sineVoltage.sineVoltage[$i1].signalSource.y ($RES_SIM_161) (128) [----] end for; (129) [ARRY] (1) multiStarResistance.resistor.resistor.T_heatPort = multiStarResistance.resistor.resistor.T ($RES_SIM_47) (130) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_246) (131) [SCAL] (1) multiStarResistance.resistor.resistor[1].LossPower = multiStarResistance.resistor.resistor[1].v * multiStarResistance.resistor.resistor[1].i ($RES_SIM_48) (132) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_247) (133) [FOR-] (3) ($RES_SIM_162) (133) [----] for $i1 in 1:3 loop (133) [----] [SCAL] (1) sineVoltage.sineVoltage[$i1].signalSource.y = sineVoltage.sineVoltage[$i1].signalSource.offset + (if $SEV_16[$i1] then 0.0 else sineVoltage.sineVoltage[$i1].signalSource.amplitude * $FUN_1[$i1]) ($RES_SIM_163) (133) [----] end for; (134) [SCAL] (1) multiStarResistance.resistor.resistor[1].v = multiStarResistance.resistor.resistor[1].R_actual * multiStarResistance.resistor.resistor[1].i ($RES_SIM_49) (135) [ARRY] (3) pulse2m.twomPulse.timerNegative.y = pulse2m.twomPulse.gainNegative.u ($RES_SIM_248) (136) [ARRY] (3) pulse2m.twomPulse.gainNegative.y = pulse2m.twomPulse.greaterNegative.u1 ($RES_SIM_249) (137) [SCAL] (1) currentSensor.p.i - resistor.i = 0.0 ($RES_SIM_166) (138) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_167) (139) [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_50) (140) [ARRY] (3) pulse2m.twomPulse.gainPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_250) (141) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.gainPositive.u ($RES_SIM_251) (142) [FOR-] (3) ($RES_SIM_53) (142) [----] for $i1 in 1:3 loop (142) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].v = pulse2m.voltageSensor.voltageSensor[$i1].p.v - pulse2m.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_54) (142) [----] end for; (143) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_252) (144) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_253) (145) [FOR-] (3) ($RES_SIM_55) (145) [----] for $i1 in 1:3 loop (145) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_56) (145) [----] end for; (146) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_254) (147) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_255) (148) [FOR-] (3) ($RES_SIM_57) (148) [----] for $i1 in 1:3 loop (148) [----] [SCAL] (1) pulse2m.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_58) (148) [----] end for; (149) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_256) (150) [SCAL] (1) pulse2m.ac.pin[3].i + rectifier.ac.pin[3].i + resistor1.plug_p.pin[3].i = 0.0 ($RES_SIM_171) (151) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_257) (152) [SCAL] (1) pulse2m.ac.pin[2].i + rectifier.ac.pin[2].i + resistor1.plug_p.pin[2].i = 0.0 ($RES_SIM_172) (153) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_258) (154) [SCAL] (1) pulse2m.ac.pin[1].i + rectifier.ac.pin[1].i + resistor1.plug_p.pin[1].i = 0.0 ($RES_SIM_173) (155) [SCAL] (1) pulse2m.ac.pin[3].v = resistor1.plug_p.pin[3].v ($RES_SIM_174) (156) [SCAL] (1) pulse2m.ac.pin[3].v = rectifier.ac.pin[3].v ($RES_SIM_175) (157) [SCAL] (1) pulse2m.ac.pin[2].v = resistor1.plug_p.pin[2].v ($RES_SIM_176) (158) [SCAL] (1) pulse2m.ac.pin[2].v = rectifier.ac.pin[2].v ($RES_SIM_177) (159) [SCAL] (1) pulse2m.ac.pin[1].v = resistor1.plug_p.pin[1].v ($RES_SIM_178) (160) [SCAL] (1) pulse2m.ac.pin[1].v = rectifier.ac.pin[1].v ($RES_SIM_179) (161) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_342) (162) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_343) (163) [SCAL] (1) $TEV_2 = $PRE.rectifier.pre[$i1].u ($RES_EVT_344) (164) [FOR-] (3) ($RES_SIM_60) (164) [----] for $i1 in 1:3 loop (164) [----] [SCAL] (1) pulse2m.twomPulse.gainNegative[$i1].y = pulse2m.twomPulse.gainNegative[$i1].k * pulse2m.twomPulse.gainNegative[$i1].u ($RES_SIM_61) (164) [----] end for; (165) [FOR-] (3) ($RES_SIM_62) (165) [----] for $i1 in 1:3 loop (165) [----] [SCAL] (1) pulse2m.twomPulse.gainPositive[$i1].y = pulse2m.twomPulse.gainPositive[$i1].k * pulse2m.twomPulse.gainPositive[$i1].u ($RES_SIM_63) (165) [----] end for; (166) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_261) (167) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterNegative[3].u2 ($RES_SIM_262) (168) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_104) (169) [FOR-] (3) ($RES_SIM_64) (169) [----] for $i1 in 1:3 loop (169) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_65) (169) [----] end for; (170) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_263) (171) [SCAL] (1) meanVoltage.u = voltagesensor.p.v - currentSensor.n.v ($RES_SIM_105) (172) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterNegative[2].u2 ($RES_SIM_264) (173) [SCAL] (1) pulse2m.twomPulse.limiter.y = homotopy(smooth(0, if $SEV_4 then pulse2m.twomPulse.limiter.uMax else if $SEV_5 then pulse2m.twomPulse.limiter.uMin else pulse2m.twomPulse.constantconstantFiringAngle.k), pulse2m.twomPulse.constantconstantFiringAngle.k) ($RES_SIM_66) (174) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_265) (175) [FOR-] (3) ($RES_SIM_180) (175) [----] for $i1 in 1:3 loop (175) [----] [SCAL] (1) sineVoltage.plug_p.pin[$i1].i + resistor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_181) (175) [----] end for; (176) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterNegative[1].u2 ($RES_SIM_266) (177) [ARRY] (3) sineVoltage.plug_p.pin.v = resistor1.plug_n.pin.v ($RES_SIM_182) (178) [SCAL] (1) rectifier.LossPower = $FUN_2 + $FUN_3 ($RES_SIM_109) (179) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_69) (180) [ARRY] (3) pulse2m.twomPulse.greaterNegative.y = pulse2m.twomPulse.fire_n ($RES_SIM_268) (181) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_269) (182) [FOR-] (3) ($RES_SIM_184) (182) [----] for $i1 in 1:3 loop (182) [----] [SCAL] (1) sineVoltage.plug_n.pin[$i1].i + multiStarResistance.plug.pin[$i1].i = 0.0 ($RES_SIM_185) (182) [----] end for; (183) [ARRY] (3) sineVoltage.plug_n.pin.v = multiStarResistance.plug.pin.v ($RES_SIM_186) (184) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_187) (185) [SCAL] (1) $TEV_9 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_351) (186) [FOR-] (3) ($RES_EVT_352) (186) [----] for $i1 in 1:3 loop (186) [----] [SCAL] (1) $SEV_0[$i1] = 1.0 + resistor1.resistor[$i1].alpha * (resistor1.resistor[$i1].T_heatPort - resistor1.resistor[$i1].T_ref) >= 1e-15 ($RES_EVT_353) (186) [----] end for; (187) [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_355) (188) [SCAL] (1) $SEV_4 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_357) (189) [SCAL] (1) $SEV_5 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_358) (190) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_327) (191) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_328) (192) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_329) (193) [FOR-] (3) ($RES_SIM_110) (193) [----] for $i1 in 1:3 loop (193) [----] [SCAL] (1) rectifier.pre[$i1].y = $TEV_2 ($RES_SIM_111) (193) [----] end for; (194) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_70) (195) [FOR-] (3) ($RES_SIM_71) (195) [----] for $i1 in 1:3 loop (195) [----] [SCAL] (1) pulse2m.twomPulse.greaterNegative[$i1].y = $SEV_7[$i1] ($RES_SIM_72) (195) [----] end for; (196) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_270) (197) [ARRY] (3) rectifier.diode_n.i = rectifier.diode_n.plug_p.pin.i ($RES_SIM_112) (198) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_271) (199) [ARRY] (3) rectifier.diode_n.v = rectifier.diode_n.plug_p.pin.v - rectifier.diode_n.plug_n.pin.v ($RES_SIM_113) (200) [FOR-] (3) ($RES_SIM_73) (200) [----] for $i1 in 1:3 loop (200) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_8[$i1] ($RES_SIM_74) (200) [----] end for; (201) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_272) (202) [FOR-] (3) ($RES_SIM_114) (202) [----] for $i1 in 1:3 loop (202) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].v = rectifier.diode_n.idealDiode[$i1].p.v - rectifier.diode_n.idealDiode[$i1].n.v ($RES_SIM_115) (202) [----] end for; (203) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_273) (204) [FOR-] (3) ($RES_SIM_75) (204) [----] for $i1 in 1:3 loop (204) [----] [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_76) (204) [----] end for; (205) [FOR-] (3) ($RES_SIM_116) (205) [----] for $i1 in 1:3 loop (205) [----] [SCAL] (1) rectifier.diode_n.idealDiode[$i1].i = rectifier.diode_n.idealDiode[$i1].p.i ($RES_SIM_117) (205) [----] end for; (206) [FOR-] (3) ($RES_SIM_77) (206) [----] for $i1 in 1:3 loop (206) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (206) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (206) [----] [----] end when; (206) [----] end for; (207) [FOR-] (3) ($RES_SIM_118) (207) [----] for $i1 in 1:3 loop (207) [----] [SCAL] (1) 0.0 = rectifier.diode_n.idealDiode[$i1].p.i + rectifier.diode_n.idealDiode[$i1].n.i ($RES_SIM_119) (207) [----] end for; (208) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.andCondition_p.u2 ($RES_SIM_277) (209) [FOR-] (3) ($RES_SIM_79) (209) [----] for $i1 in 1:3 loop (209) [----] [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_80) (209) [----] end for; (210) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_278) (211) [ARRY] (3) rectifier.pre.y = rectifier.thyristor_p.fire ($RES_SIM_279) (212) [FOR-] (3) ($RES_SIM_196) (212) [----] for $i1 in 1:3 loop (212) [----] [SCAL] (1) resistor1.resistor[$i1].n.i - resistor1.plug_n.pin[$i1].i = 0.0 ($RES_SIM_197) (212) [----] end for; (213) [ARRY] (3) resistor1.resistor.n.v = resistor1.plug_n.pin.v ($RES_SIM_198) (214) [FOR-] (3) ($RES_SIM_199) (214) [----] for $i1 in 1:3 loop (214) [----] [SCAL] (1) resistor1.resistor[$i1].p.i - resistor1.plug_p.pin[$i1].i = 0.0 ($RES_SIM_200) (214) [----] end for; (215) [FOR-] (3) ($RES_EVT_360) (215) [----] for $i1 in 1:3 loop (215) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.greaterNegative[$i1].u1 > pulse2m.twomPulse.greaterNegative[$i1].u2 ($RES_EVT_361) (215) [----] end for; (216) [FOR-] (3) ($RES_EVT_362) (216) [----] for $i1 in 1:3 loop (216) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_363) (216) [----] end for; (217) [FOR-] (3) ($RES_EVT_364) (217) [----] for $i1 in 1:3 loop (217) [----] [SCAL] (1) $SEV_9[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_365) (217) [----] end for; (218) [FOR-] (3) ($RES_EVT_366) (218) [----] for $i1 in 1:3 loop (218) [----] [SCAL] (1) $SEV_10[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_367) (218) [----] end for; (219) [SCAL] (1) rectifier.vDC = voltagesensor.p.v - currentSensor.n.v ($RES_BND_331) (220) [FOR-] (3) ($RES_EVT_368) (220) [----] for $i1 in 1:3 loop (220) [----] [SCAL] (1) $SEV_11[$i1] = rectifier.diode_n.idealDiode[$i1].s < 0.0 ($RES_EVT_369) (220) [----] end for; (221) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_333) (222) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_334) (223) [ARRY] (3) resistor1.resistor.p.v = resistor1.plug_p.pin.v ($RES_SIM_201) (224) [SCAL] (1) multiStarResistance.resistor.plug_n.pin[1].i + multiStarResistance.star.plug_p.pin[1].i = 0.0 ($RES_SIM_203)