Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_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) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 106.2 kB / 16.42 MB, free: 6.457 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.001266/0.001266, allocations: 190 kB / 17.36 MB, free: 5.707 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.432/1.432, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.95e-05/2.951e-05, allocations: 2.281 kB / 327.2 MB, free: 3.273 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R): time 0.007188/0.007228, allocations: 5.737 MB / 333 MB, free: 13.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003412/0.01066, allocations: 1.808 MB / 334.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004012/0.01107, allocations: 31.81 kB / 334.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004629/0.01154, allocations: 242.1 kB / 335 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009817/0.01258, allocations: 425.5 kB / 335.5 MB, free: 11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005876/0.01317, allocations: 351.4 kB / 335.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002219/0.0154, allocations: 2.402 MB / 338.2 MB, free: 8.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.0165, allocations: 0.9279 MB / 339.1 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008248/0.01733, allocations: 0.7634 MB / 339.9 MB, free: 6.531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008957/0.01824, allocations: 0.7942 MB / 340.7 MB, free: 5.734 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.01842, allocations: 140 kB / 340.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002134/0.01864, allocations: 148 kB / 341 MB, free: 5.453 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.00152/0.02017, allocations: 1.942 MB / 342.9 MB, free: 3.492 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0008762/0.02105, allocations: 1.266 MB / 344.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.02126, allocations: 191.4 kB / 344.4 MB, free: 2.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001534/0.02142, allocations: 39.75 kB / 344.4 MB, free: 1.984 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 435 (213) * Number of variables: 435 (184) Notification: Performance of Bindings: time 0.005743/0.02717, allocations: 6.26 MB / 350.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0004154/0.02759, allocations: 358.3 kB / 351 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Early Inline: time 0.003137/0.03074, allocations: 3.026 MB / 354 MB, free: 8.133 MB / 302.1 MB Notification: Performance of simplify1: time 0.000197/0.03095, allocations: 151.8 kB / 354.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of Alias: time 0.003602/0.03455, allocations: 3.064 MB / 357.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001408/0.03471, allocations: 127.8 kB / 357.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of Events: time 0.0007308/0.03545, allocations: 0.6732 MB / 358.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of Detect States: time 0.0009994/0.03646, allocations: 1.024 MB / 359.1 MB, free: 2.84 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001533/0.038, allocations: 1.364 MB / 360.4 MB, free: 1.379 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency pulse2m.twomPulse.gain.y could not be divided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_44) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (169/448) **************************** (1) [DISC] (3) Boolean[3] $SEV_6[$i1] (2) [ALGB] (1) Real rootMeanSquareVoltage.product.y (3) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.p.i (4) [ALGB] (3) Real[3] rectifier.ac_p.pin.v (5) [ALGB] (2) Real[2] rootMeanSquareVoltage.product.u (6) [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}) (7) [ALGB] (1) Real resistor.v (8) [DISC] (3) Boolean[3] $SEV_1[$i1] (9) [DISC] (1) Boolean $TEV_9 (10) [ALGB] (1) Real resistor.LossPower (11) [DISC] (1) Boolean $TEV_8 (12) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.p.v (13) [DISC] (1) Boolean $TEV_1 (14) [ALGB] (3) flow Real[3] rectifier.ac_p.pin.i (15) [ALGB] (1) Real resistor.i (16) [DISC] (1) Boolean $TEV_0 (17) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.p.i (18) [ALGB] (3) flow Real[3] pulse2m.delta.plug_p.pin.i (19) [ALGB] (3) flow Real[3] sineVoltage_p.plug_n.pin.i (20) [ALGB] (1) Real pulse2m.twomPulse.limiter.y (21) [ALGB] (3) flow Real[3] sineVoltage_n.plug_n.pin.i (22) [ALGB] (1) Real rectifier.vDC = rectifier.vDC (23) [ALGB] (3) Real[3] pulse2m.twomPulse.replicator.y (24) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (25) [ALGB] (3) Real[3] pulse2m.twomPulse.positiveThreshold.u (26) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.p.v (27) [ALGB] (3) Real[3] pulse2m.delta.plug_p.pin.v (28) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerNegative.entryTime (29) [DISC] (3) Boolean[3] pulse2m.twomPulse.positiveThreshold.y (30) [ALGB] (3) Real[3] sineVoltage_p.plug_n.pin.v (31) [ALGB] (3) Real[3] sineVoltage_n.plug_n.pin.v (32) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.potentialSensor.p.i (33) [DISC] (3) Boolean[3] $SEV_14[$i1] (34) [ALGB] (3) Real[3] rectifier.thyristor_n.v (35) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeThreshold.u (36) [DISC] (3) Boolean[3] rectifier.enableLogic.booleanReplicator.y (37) [ALGB] (3) flow Real[3] pulse2m.ac.pin.i (38) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeThreshold.y (39) [ALGB] (1) Real rectifier.iDC = rectifier.iDC (40) [ALGB] (3) flow Real[3] sineVoltage_p.sineVoltage.n.i (41) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u1 (42) [ALGB] (3) Real[3] pulse2m.twomPulse.greaterPositive.u2 (43) [DISC] (3) Boolean[3] $SEV_5[$i1] (44) [DISC] (3) Boolean[3] pulse2m.twomPulse.negativeEqual.y (45) [ALGB] (3) Real[3] pulse2m.voltageSensor.potentialSensor.p.v (46) [ALGB] (3) Real[3] rectifier.thyristor_n.i (47) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (48) [ALGB] (3) Real[3] pulse2m.ac.pin.v (49) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_p.pin.v (50) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_p.pin.v (51) [ALGB] (3) Real[3] pulse2m.twomPulse.v (52) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.n.v (53) [DISC] (3) Boolean[3] pulse2m.twomPulse.greaterPositive.y (54) [ALGB] (3) flow Real[3] rectifier.star_p.plug_p.pin.i (55) [ALGB] (3) flow Real[3] rectifier.star_n.plug_p.pin.i (56) [DER-] (1) Real $DER.meanVoltage.x (57) [ALGB] (1) flow Real rectifier.star_p.pin_n.i (58) [ALGB] (1) Real rectifier.LossPower (59) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_p.pin.i (60) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_p.pin.i (61) [DISC] (3) Boolean[3] rectifier.andCondition_n.y (62) [ALGB] (3) Real[3] sineVoltage_n.i (63) [DISC] (3) Boolean[3] rectifier.andCondition_n.u2 (64) [DISC] (3) Boolean[3] rectifier.andCondition_n.u1 (65) [ALGB] (3) Real[3] rectifier.star_n.plug_p.pin.v (66) [ALGB] (3) Real[3] rectifier.star_p.plug_p.pin.v (67) [ALGB] (3) Real[3] sineVoltage_n.sineVoltage.p.v (68) [ALGB] (3) Real[3] $FUN_9 (69) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.signalSource.y (70) [ALGB] (1) Real $FUN_6 (71) [ALGB] (1) Real $FUN_5 (72) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_p (73) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.LossPower (74) [ALGB] (1) flow Real ground.p.i (75) [DISC] (3) Boolean[3] pulse2m.twomPulse.fire_n (76) [ALGB] (3) Real[3] $FUN_2 (77) [ALGB] (3) Real[3] sineVoltage_n.v (78) [DISC] (3) Boolean[3] rectifier.thyristor_n.idealThyristor.fire (79) [DER-] (1) Real $DER.meanCurrent.x (80) [DISC] (3) Boolean[3] rectifier.thyristor_n.fire (81) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.i (82) [ALGB] (3) flow Real[3] sineVoltage_n.sineVoltage.p.i (83) [DISC] (3) Boolean[3] $SEV_13[$i1] (84) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.i (85) [DISC] (3) Boolean[3] $SEV_9[$i1] (86) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerPositive.u (87) [ALGB] (3) Real[3] pulse2m.twomPulse.timerPositive.y (88) [DISC] (3) Boolean[3] rectifier.fire_n (89) [ALGB] (3) Real[3] rectifier.ac_n.pin.v (90) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.v (91) [ALGB] (3) protected final Real[3] rectifier.thyristor_n.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (92) [DISC] (3) Boolean[3] rectifier.fire_p (93) [ALGB] (3) final Real[3] rectifier.thyristor_n.idealThyristor.v (94) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (95) [ALGB] (3) flow Real[3] rectifier.ac_n.pin.i (96) [ALGB] (3) flow Real[3] sineVoltage_n.plug_p.pin.i (97) [ALGB] (3) flow Real[3] sineVoltage_p.plug_p.pin.i (98) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac_p.pin[:].v - rectifier.ac_n.pin[:].v (99) [ALGB] (1) Real meanVoltage.u (100) [ALGB] (3) Real[3] sineVoltage_p.plug_p.pin.v (101) [ALGB] (3) flow Real[3] rectifier.thyristor_n.idealThyristor.n.i (102) [ALGB] (3) Real[3] pulse2m.gain.y (103) [ALGB] (1) flow Real rectifier.star_n.pin_n.i (104) [ALGB] (3) Real[3] sineVoltage_n.plug_p.pin.v (105) [DISC] (3) Boolean[3] $SEV_17[$i1] (106) [DISC] (1) Boolean $SEV_3 (107) [DISC] (1) Boolean $SEV_2 (108) [ALGB] (3) Real[3] pulse2m.gain.u (109) [DISC] (3) Boolean[3] $SEV_12[$i1] (110) [ALGB] (3) Real[3] sineVoltage_n.sineVoltage.v (111) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac_p.pin[:].i (112) [ALGB] (3) Real[3] rectifier.thyristor_n.idealThyristor.n.v (113) [ALGB] (3) Real[3] pulse2m.voltageSensor.phi (114) [DISC] (3) Boolean[3] $SEV_8[$i1] (115) [DISC] (3) Boolean[3] rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off (116) [ALGB] (3) flow Real[3] rectifier.thyristor_p.idealThyristor.n.i (117) [ALGB] (3) Real[3] pulse2m.voltageSensor.potentialSensor.phi (118) [ALGB] (1) flow Real star.pin_n.i (119) [ALGB] (3) Real[3] sineVoltage_n.sineVoltage.i (120) [ALGB] (3) Real[3] rectifier.thyristor_p.plug_n.pin.v (121) [ALGB] (3) Real[3] rectifier.thyristor_n.plug_n.pin.v (122) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (123) [DISC] (3) Boolean[3] rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off (124) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (125) [ALGB] (3) Real[3] sineVoltage_n.sineVoltage.signalSource.y (126) [ALGB] (1) Real resistor.R_actual (127) [ALGB] (3) Real[3] rectifier.thyristor_p.idealThyristor.n.v (128) [ALGB] (3) flow Real[3] sineVoltage_p.sineVoltage.p.i (129) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (130) [DISC] (3) Boolean[3] rectifier.thyristor_p.idealThyristor.fire (131) [ALGB] (3) flow Real[3] rectifier.thyristor_p.plug_n.pin.i (132) [ALGB] (3) flow Real[3] rectifier.thyristor_n.plug_n.pin.i (133) [ALGB] (3) Real[3] rectifier.thyristor_p.v (134) [ALGB] (3) flow Real[3] pulse2m.delta.plug_n.pin.i (135) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.p.v (136) [DISS] (3) protected discrete Real[3] pulse2m.twomPulse.timerPositive.entryTime (137) [ALGB] (3) Real[3] rectifier.thyristor_p.i (138) [DISC] (3) Boolean[3] $SEV_16[$i1] (139) [ALGB] (3) Real[3] pulse2m.delta.plug_n.pin.v (140) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.y (141) [DISC] (3) Boolean[3] rectifier.thyristor_p.fire (142) [ALGB] (3) Real[3] pulse2m.twomPulse.realPassThrough.u (143) [ALGB] (3) Real[3] sineVoltage_p.i (144) [DISC] (3) Boolean[3] $SEV_11[$i1] (145) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.LossPower (146) [ALGB] (3) Real[3] sineVoltage_n.sineVoltage.n.v (147) [DISC] (3) Boolean[3] $SEV_7[$i1] (148) [ALGB] (1) flow Real currentSensor.n.i (149) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (150) [ALGB] (3) Real[3] sineVoltage_p.v (151) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u1 (152) [ALGB] (3) Real[3] pulse2m.twomPulse.negativeEqual.u2 (153) [ALGB] (3) flow Real[3] sineVoltage_n.sineVoltage.n.i (154) [DISC] (3) Boolean[3] pulse2m.twomPulse.timerNegative.u (155) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (156) [ALGB] (3) Real[3] pulse2m.twomPulse.timerNegative.y (157) [ALGB] (3) Real[3] pulse2m.voltageSensor.plug_p.pin.v (158) [ALGB] (3) flow Real[3] star.plug_p.pin.i (159) [DISC] (3) Boolean[3] pulse2m.fire_p (160) [DISC] (3) Boolean[3] pulse2m.fire_n (161) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.i (162) [ALGB] (3) flow Real[3] pulse2m.voltageSensor.plug_p.pin.i (163) [ALGB] (3) Real[3] star.plug_p.pin.v (164) [ALGB] (3) protected final Real[3] rectifier.thyristor_p.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (165) [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}) (166) [DISC] (3) Boolean[3] $SEV_15[$i1] (167) [ALGB] (3) final Real[3] rectifier.thyristor_p.idealThyristor.v (168) [ALGB] (1) Real pulse2m.twomPulse.gain.y (169) [DISC] (3) Boolean[3] $SEV_10[$i1] System Equations (198/448) **************************** (1) [SCAL] (1) -(pulse2m.delta.plug_n.pin[2].i + pulse2m.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_204) (2) [SCAL] (1) pulse2m.delta.plug_n.pin[2].v = pulse2m.delta.plug_p.pin[3].v ($RES_SIM_205) (3) [FOR-] (3) ($RES_SIM_120) (3) [----] for $i1 in 1:3 loop (3) [----] [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_121) (3) [----] end for; (4) [SCAL] (1) -(pulse2m.delta.plug_n.pin[1].i + pulse2m.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_206) (5) [SCAL] (1) rectifier.LossPower = $FUN_5 + $FUN_6 ($RES_SIM_81) (6) [ARRY] (3) sineVoltage_p.sineVoltage.p.v = sineVoltage_p.plug_p.pin.v ($RES_SIM_280) (7) [SCAL] (1) pulse2m.delta.plug_n.pin[1].v = pulse2m.delta.plug_p.pin[2].v ($RES_SIM_207) (8) [FOR-] (3) ($RES_SIM_122) (8) [----] for $i1 in 1:3 loop (8) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].off = $SEV_14[$i1] ($RES_SIM_123) (8) [----] end for; (9) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.positiveThreshold[3].u ($RES_SIM_208) (10) [FOR-] (3) ($RES_SIM_83) (10) [----] for $i1 in 1:3 loop (10) [----] [SCAL] (1) rectifier.star_n.plug_p.pin[$i1].v = rectifier.vDC ($RES_SIM_84) (10) [----] end for; (11) [SCAL] (1) pulse2m.twomPulse.realPassThrough[3].y = pulse2m.twomPulse.negativeThreshold[3].u ($RES_SIM_209) (12) [FOR-] (3) ($RES_SIM_124) (12) [----] for $i1 in 1:3 loop (12) [----] [SCAL] (1) rectifier.andCondition_n[$i1].y = $SEV_15[$i1] ($RES_SIM_125) (12) [----] end for; (13) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_126) (14) [FOR-] (3) ($RES_SIM_86) (14) [----] for $i1 in 1:3 loop (14) [----] [SCAL] (1) rectifier.star_p.plug_p.pin[$i1].v = rectifier.vDC ($RES_SIM_87) (14) [----] end for; (15) [FOR-] (3) ($RES_SIM_128) (15) [----] for $i1 in 1:3 loop (15) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_16[$i1] ($RES_SIM_129) (15) [----] end for; (16) [ARRY] (3) rectifier.thyristor_n.i = rectifier.thyristor_n.plug_p.pin.i ($RES_SIM_88) (17) [ARRY] (3) rectifier.thyristor_n.v = rectifier.thyristor_n.plug_p.pin.v - rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_89) (18) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.positiveThreshold[2].u ($RES_SIM_210) (19) [SCAL] (1) pulse2m.twomPulse.realPassThrough[2].y = pulse2m.twomPulse.negativeThreshold[2].u ($RES_SIM_211) (20) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.positiveThreshold[1].u ($RES_SIM_212) (21) [SCAL] (1) pulse2m.twomPulse.realPassThrough[1].y = pulse2m.twomPulse.negativeThreshold[1].u ($RES_SIM_213) (22) [SCAL] (1) resistor.v = rectifier.vDC ($RES_SIM_15) (23) [ARRY] (3) pulse2m.twomPulse.realPassThrough.u = pulse2m.twomPulse.v ($RES_SIM_214) (24) [ARRY] (3) sineVoltage_p.i = sineVoltage_p.plug_p.pin.i ($RES_SIM_130) (25) [FOR-] (3) ($RES_SIM_90) (25) [----] for $i1 in 1:3 loop (25) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].i = rectifier.thyristor_n.idealThyristor[$i1].p.i ($RES_SIM_91) (25) [----] end for; (26) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_17) (27) [ARRY] (3) sineVoltage_p.v = sineVoltage_p.plug_p.pin.v - sineVoltage_p.plug_n.pin.v ($RES_SIM_131) (28) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_18) (29) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.greaterPositive[3].u2 ($RES_SIM_217) (30) [FOR-] (3) ($RES_SIM_92) (30) [----] for $i1 in 1:3 loop (30) [----] [SCAL] (1) 0.0 = rectifier.thyristor_n.idealThyristor[$i1].p.i + rectifier.thyristor_n.idealThyristor[$i1].n.i ($RES_SIM_93) (30) [----] end for; (31) [FOR-] (3) ($RES_SIM_132) (31) [----] for $i1 in 1:3 loop (31) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].i = sineVoltage_p.sineVoltage[$i1].p.i ($RES_SIM_133) (31) [----] end for; (32) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_19) (33) [SCAL] (1) pulse2m.twomPulse.replicator.y[3] = pulse2m.twomPulse.negativeEqual[3].u2 ($RES_SIM_218) (34) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.greaterPositive[2].u2 ($RES_SIM_219) (35) [FOR-] (3) ($RES_SIM_94) (35) [----] for $i1 in 1:3 loop (35) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].v = rectifier.thyristor_n.idealThyristor[$i1].p.v - rectifier.thyristor_n.idealThyristor[$i1].n.v ($RES_SIM_95) (35) [----] end for; (36) [FOR-] (3) ($RES_SIM_134) (36) [----] for $i1 in 1:3 loop (36) [----] [SCAL] (1) 0.0 = sineVoltage_p.sineVoltage[$i1].p.i + sineVoltage_p.sineVoltage[$i1].n.i ($RES_SIM_135) (36) [----] end for; (37) [FOR-] (3) ($RES_SIM_136) (37) [----] for $i1 in 1:3 loop (37) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].v = sineVoltage_p.sineVoltage[$i1].p.v - sineVoltage_p.sineVoltage[$i1].n.v ($RES_SIM_137) (37) [----] end for; (38) [FOR-] (3) ($RES_SIM_98) (38) [----] for $i1 in 1:3 loop (38) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].LossPower = rectifier.thyristor_n.idealThyristor[$i1].v * rectifier.thyristor_n.idealThyristor[$i1].i ($RES_SIM_99) (38) [----] end for; (39) [FOR-] (3) ($RES_SIM_138) (39) [----] for $i1 in 1:3 loop (39) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].v = sineVoltage_p.sineVoltage[$i1].signalSource.y ($RES_SIM_139) (39) [----] end for; (40) [SCAL] (1) $TEV_0 = $PRE.pulse2m.twomPulse.timerNegative.entryTime ($RES_EVT_302) (41) [SCAL] (1) $TEV_1 = $PRE.pulse2m.twomPulse.timerPositive.entryTime ($RES_EVT_303) (42) [ARRY] (3) sineVoltage_n.i = sineVoltage_n.plug_p.pin.i ($RES_SIM_21) (43) [SCAL] (1) pulse2m.twomPulse.replicator.y[2] = pulse2m.twomPulse.negativeEqual[2].u2 ($RES_SIM_220) (44) [ARRY] (3) sineVoltage_n.v = sineVoltage_n.plug_p.pin.v - sineVoltage_n.plug_n.pin.v ($RES_SIM_22) (45) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.greaterPositive[1].u2 ($RES_SIM_221) (46) [FOR-] (3) ($RES_SIM_23) (46) [----] for $i1 in 1:3 loop (46) [----] [SCAL] (1) sineVoltage_n.sineVoltage[$i1].i = sineVoltage_n.sineVoltage[$i1].p.i ($RES_SIM_24) (46) [----] end for; (47) [SCAL] (1) pulse2m.twomPulse.replicator.y[1] = pulse2m.twomPulse.negativeEqual[1].u2 ($RES_SIM_222) (48) [FOR-] (3) ($RES_SIM_25) (48) [----] for $i1 in 1:3 loop (48) [----] [SCAL] (1) 0.0 = sineVoltage_n.sineVoltage[$i1].p.i + sineVoltage_n.sineVoltage[$i1].n.i ($RES_SIM_26) (48) [----] end for; (49) [ARRY] (3) pulse2m.twomPulse.negativeEqual.y = pulse2m.twomPulse.fire_n ($RES_SIM_224) (50) [ARRY] (3) pulse2m.twomPulse.greaterPositive.y = pulse2m.twomPulse.fire_p ($RES_SIM_225) (51) [FOR-] (3) ($RES_SIM_140) (51) [----] for $i1 in 1:3 loop (51) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].signalSource.y = sineVoltage_p.sineVoltage[$i1].signalSource.offset + (if $SEV_17[$i1] then 0.0 else sineVoltage_p.sineVoltage[$i1].signalSource.amplitude * $FUN_2[$i1]) ($RES_SIM_141) (51) [----] end for; (52) [FOR-] (3) ($RES_SIM_27) (52) [----] for $i1 in 1:3 loop (52) [----] [SCAL] (1) sineVoltage_n.sineVoltage[$i1].v = sineVoltage_n.sineVoltage[$i1].p.v - sineVoltage_n.sineVoltage[$i1].n.v ($RES_SIM_28) (52) [----] end for; (53) [ARRY] (3) pulse2m.twomPulse.negativeEqual.u1 = pulse2m.twomPulse.timerNegative.y ($RES_SIM_226) (54) [ARRY] (3) pulse2m.twomPulse.timerPositive.y = pulse2m.twomPulse.greaterPositive.u1 ($RES_SIM_227) (55) [FOR-] (3) ($RES_SIM_29) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) sineVoltage_n.sineVoltage[$i1].v = sineVoltage_n.sineVoltage[$i1].signalSource.y ($RES_SIM_30) (55) [----] end for; (56) [ARRY] (3) pulse2m.twomPulse.negativeThreshold.y = pulse2m.twomPulse.timerNegative.u ($RES_SIM_228) (57) [FOR-] (3) ($RES_SIM_143) (57) [----] for $i1 in 1:3 loop (57) [----] [SCAL] (1) star.plug_p.pin[$i1].v = 0.0 ($RES_SIM_144) (57) [----] end for; (58) [ARRY] (3) pulse2m.twomPulse.positiveThreshold.y = pulse2m.twomPulse.timerPositive.u ($RES_SIM_229) (59) [SCAL] (1) -(currentSensor.n.i + resistor.i) = 0.0 ($RES_SIM_146) (60) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_147) (61) [SCAL] (1) (rectifier.star_p.pin_n.i + rectifier.star_n.pin_n.i) - rectifier.iDC = 0.0 ($RES_SIM_148) (62) [SCAL] (1) star.pin_n.i + currentSensor.n.i + ground.p.i = 0.0 ($RES_SIM_149) (63) [SCAL] (1) $TEV_8 = $PRE.rectifier.thyristor_n.idealThyristor[$i1].off ($RES_EVT_310) (64) [SCAL] (1) $TEV_9 = $PRE.rectifier.thyristor_p.idealThyristor[$i1].off ($RES_EVT_311) (65) [FOR-] (3) ($RES_EVT_313) (65) [----] for $i1 in 1:3 loop (65) [----] [SCAL] (1) $SEV_1[$i1] = time < sineVoltage_n.sineVoltage[$i1].signalSource.startTime ($RES_EVT_314) (65) [----] end for; (66) [SCAL] (1) $SEV_2 = pulse2m.twomPulse.constantconstantFiringAngle.k > pulse2m.twomPulse.limiter.uMax ($RES_EVT_315) (67) [SCAL] (1) $SEV_3 = pulse2m.twomPulse.constantconstantFiringAngle.k < pulse2m.twomPulse.limiter.uMin ($RES_EVT_316) (68) [FOR-] (3) ($RES_EVT_318) (68) [----] for $i1 in 1:3 loop (68) [----] [SCAL] (1) $SEV_5[$i1] = pulse2m.twomPulse.negativeEqual[$i1].u1 > pulse2m.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_319) (68) [----] end for; (69) [FOR-] (3) ($RES_SIM_31) (69) [----] for $i1 in 1:3 loop (69) [----] [SCAL] (1) sineVoltage_n.sineVoltage[$i1].signalSource.y = sineVoltage_n.sineVoltage[$i1].signalSource.offset + (if $SEV_1[$i1] then 0.0 else sineVoltage_n.sineVoltage[$i1].signalSource.amplitude * $FUN_9[$i1]) ($RES_SIM_32) (69) [----] end for; (70) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_230) (71) [ARRY] (3) rectifier.vAC = rectifier.ac_p.pin[:].v - rectifier.ac_n.pin[:].v ($RES_BND_281) (72) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_231) (73) [FOR-] (3) ($RES_SIM_33) (73) [----] for $i1 in 1:3 loop (73) [----] [SCAL] (1) pulse2m.gain[$i1].y = pulse2m.gain[$i1].k * pulse2m.gain[$i1].u ($RES_SIM_34) (73) [----] end for; (74) [ARRY] (3) rectifier.iAC = rectifier.ac_p.pin[:].i ($RES_BND_282) (75) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_283) (76) [FOR-] (3) ($RES_SIM_35) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) pulse2m.voltageSensor.potentialSensor[$i1].phi = pulse2m.voltageSensor.potentialSensor[$i1].p.v ($RES_SIM_36) (76) [----] end for; (77) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_235) (78) [ARRY] (3) pulse2m.fire_n = rectifier.fire_n ($RES_SIM_150) (79) [FOR-] (3) ($RES_SIM_37) (79) [----] for $i1 in 1:3 loop (79) [----] [SCAL] (1) pulse2m.voltageSensor.potentialSensor[$i1].p.i = 0.0 ($RES_SIM_38) (79) [----] end for; (80) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_n[3].u2 ($RES_SIM_236) (81) [FOR-] (3) ($RES_SIM_151) (81) [----] for $i1 in 1:3 loop (81) [----] [SCAL] (1) sineVoltage_n.plug_n.pin[$i1].i + rectifier.ac_n.pin[$i1].i = 0.0 ($RES_SIM_152) (81) [----] end for; (82) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_287) (83) [SCAL] (1) rectifier.enableLogic.internalEnable[3] = rectifier.andCondition_p[3].u2 ($RES_SIM_237) (84) [FOR-] (3) ($RES_SIM_39) (84) [----] for $i1 in 1:3 loop (84) [----] [SCAL] (1) pulse2m.twomPulse.realPassThrough[$i1].y = pulse2m.twomPulse.realPassThrough[$i1].u ($RES_SIM_40) (84) [----] end for; (85) [ARRY] (3) rectifier.thyristor_p.off = rectifier.thyristor_p.idealThyristor.off ($RES_BND_288) (86) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_n[2].u2 ($RES_SIM_238) (87) [ARRY] (3) sineVoltage_n.plug_n.pin.v = rectifier.ac_n.pin.v ($RES_SIM_153) (88) [ARRY] (3) rectifier.thyristor_n.off = rectifier.thyristor_n.idealThyristor.off ($RES_BND_289) (89) [SCAL] (1) rectifier.enableLogic.internalEnable[2] = rectifier.andCondition_p[2].u2 ($RES_SIM_239) (90) [SCAL] (1) star.plug_p.pin[3].i + sineVoltage_p.plug_n.pin[3].i + sineVoltage_n.plug_p.pin[3].i = 0.0 ($RES_SIM_154) (91) [SCAL] (1) star.plug_p.pin[2].i + sineVoltage_p.plug_n.pin[2].i + sineVoltage_n.plug_p.pin[2].i = 0.0 ($RES_SIM_155) (92) [SCAL] (1) star.plug_p.pin[1].i + sineVoltage_p.plug_n.pin[1].i + sineVoltage_n.plug_p.pin[1].i = 0.0 ($RES_SIM_156) (93) [SCAL] (1) star.plug_p.pin[3].v = sineVoltage_n.plug_p.pin[3].v ($RES_SIM_157) (94) [SCAL] (1) star.plug_p.pin[3].v = sineVoltage_p.plug_n.pin[3].v ($RES_SIM_158) (95) [SCAL] (1) star.plug_p.pin[2].v = sineVoltage_n.plug_p.pin[2].v ($RES_SIM_159) (96) [FOR-] (3) ($RES_EVT_320) (96) [----] for $i1 in 1:3 loop (96) [----] [SCAL] (1) $SEV_6[$i1] = pulse2m.twomPulse.greaterPositive[$i1].u1 > pulse2m.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_321) (96) [----] end for; (97) [FOR-] (3) ($RES_EVT_322) (97) [----] for $i1 in 1:3 loop (97) [----] [SCAL] (1) $SEV_7[$i1] = pulse2m.twomPulse.negativeThreshold[$i1].u < pulse2m.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_323) (97) [----] end for; (98) [FOR-] (3) ($RES_EVT_324) (98) [----] for $i1 in 1:3 loop (98) [----] [SCAL] (1) $SEV_8[$i1] = pulse2m.twomPulse.positiveThreshold[$i1].u > pulse2m.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_325) (98) [----] end for; (99) [FOR-] (3) ($RES_EVT_326) (99) [----] for $i1 in 1:3 loop (99) [----] [SCAL] (1) $SEV_9[$i1] = rectifier.thyristor_n.idealThyristor[$i1].s < 0.0 ($RES_EVT_327) (99) [----] end for; (100) [FOR-] (3) ($RES_EVT_328) (100) [----] for $i1 in 1:3 loop (100) [----] [SCAL] (1) $SEV_10[$i1] = $TEV_8 and not rectifier.thyristor_n.idealThyristor[$i1].fire ($RES_EVT_329) (100) [----] end for; (101) [SCAL] (1) pulse2m.twomPulse.limiter.y = homotopy(smooth(0, if $SEV_2 then pulse2m.twomPulse.limiter.uMax else if $SEV_3 then pulse2m.twomPulse.limiter.uMin else pulse2m.twomPulse.constantconstantFiringAngle.k), pulse2m.twomPulse.constantconstantFiringAngle.k) ($RES_SIM_41) (102) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_n[1].u2 ($RES_SIM_240) (103) [SCAL] (1) rectifier.enableLogic.internalEnable[1] = rectifier.andCondition_p[1].u2 ($RES_SIM_241) (104) [ARRY] (3) rectifier.fire_n = rectifier.andCondition_n.u1 ($RES_SIM_242) (105) [ARRY] (3) pulse2m.twomPulse.replicator.y = {pulse2m.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_44) (106) [ARRY] (3) rectifier.andCondition_n.y = rectifier.thyristor_n.fire ($RES_SIM_243) (107) [SCAL] (1) pulse2m.twomPulse.gain.y = pulse2m.twomPulse.gain.k * pulse2m.twomPulse.limiter.y ($RES_SIM_45) (108) [ARRY] (3) rectifier.andCondition_p.y = rectifier.thyristor_p.fire ($RES_SIM_244) (109) [FOR-] (3) ($RES_SIM_46) (109) [----] for $i1 in 1:3 loop (109) [----] [SCAL] (1) pulse2m.twomPulse.negativeEqual[$i1].y = $SEV_5[$i1] ($RES_SIM_47) (109) [----] end for; (110) [FOR-] (3) ($RES_SIM_245) (110) [----] for $i1 in 1:3 loop (110) [----] [SCAL] (1) rectifier.thyristor_n.plug_n.pin[$i1].i + rectifier.star_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_246) (110) [----] end for; (111) [SCAL] (1) star.plug_p.pin[2].v = sineVoltage_p.plug_n.pin[2].v ($RES_SIM_160) (112) [SCAL] (1) star.plug_p.pin[1].v = sineVoltage_n.plug_p.pin[1].v ($RES_SIM_161) (113) [FOR-] (3) ($RES_SIM_48) (113) [----] for $i1 in 1:3 loop (113) [----] [SCAL] (1) pulse2m.twomPulse.greaterPositive[$i1].y = $SEV_6[$i1] ($RES_SIM_49) (113) [----] end for; (114) [ARRY] (3) rectifier.thyristor_n.plug_n.pin.v = rectifier.star_n.plug_p.pin.v ($RES_SIM_247) (115) [SCAL] (1) star.plug_p.pin[1].v = sineVoltage_p.plug_n.pin[1].v ($RES_SIM_162) (116) [FOR-] (3) ($RES_SIM_248) (116) [----] for $i1 in 1:3 loop (116) [----] [SCAL] (1) rectifier.thyristor_n.plug_p.pin[$i1].i - rectifier.ac_n.pin[$i1].i = 0.0 ($RES_SIM_249) (116) [----] end for; (117) [SCAL] (1) rectifier.ac_p.pin[3].i + sineVoltage_p.plug_p.pin[3].i + pulse2m.ac.pin[3].i = 0.0 ($RES_SIM_163) (118) [SCAL] (1) rectifier.ac_p.pin[2].i + sineVoltage_p.plug_p.pin[2].i + pulse2m.ac.pin[2].i = 0.0 ($RES_SIM_164) (119) [SCAL] (1) rectifier.ac_p.pin[1].i + sineVoltage_p.plug_p.pin[1].i + pulse2m.ac.pin[1].i = 0.0 ($RES_SIM_165) (120) [SCAL] (1) sineVoltage_p.plug_p.pin[3].v = pulse2m.ac.pin[3].v ($RES_SIM_166) (121) [SCAL] (1) sineVoltage_p.plug_p.pin[3].v = rectifier.ac_p.pin[3].v ($RES_SIM_167) (122) [SCAL] (1) sineVoltage_p.plug_p.pin[2].v = pulse2m.ac.pin[2].v ($RES_SIM_168) (123) [SCAL] (1) sineVoltage_p.plug_p.pin[2].v = rectifier.ac_p.pin[2].v ($RES_SIM_169) (124) [FOR-] (3) ($RES_EVT_330) (124) [----] for $i1 in 1:3 loop (124) [----] [SCAL] (1) $SEV_11[$i1] = $SEV_9[$i1] or $SEV_10[$i1] ($RES_EVT_331) (124) [----] end for; (125) [FOR-] (3) ($RES_EVT_332) (125) [----] for $i1 in 1:3 loop (125) [----] [SCAL] (1) $SEV_12[$i1] = rectifier.thyristor_p.idealThyristor[$i1].s < 0.0 ($RES_EVT_333) (125) [----] end for; (126) [FOR-] (3) ($RES_EVT_334) (126) [----] for $i1 in 1:3 loop (126) [----] [SCAL] (1) $SEV_13[$i1] = $TEV_9 and not rectifier.thyristor_p.idealThyristor[$i1].fire ($RES_EVT_335) (126) [----] end for; (127) [FOR-] (3) ($RES_EVT_336) (127) [----] for $i1 in 1:3 loop (127) [----] [SCAL] (1) $SEV_14[$i1] = $SEV_12[$i1] or $SEV_13[$i1] ($RES_EVT_337) (127) [----] end for; (128) [FOR-] (3) ($RES_EVT_338) (128) [----] for $i1 in 1:3 loop (128) [----] [SCAL] (1) $SEV_15[$i1] = rectifier.andCondition_n[$i1].u1 and rectifier.andCondition_n[$i1].u2 ($RES_EVT_339) (128) [----] end for; (129) [FOR-] (3) ($RES_SIM_50) (129) [----] for $i1 in 1:3 loop (129) [----] [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_51) (129) [----] end for; (130) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.ac_n.pin.v ($RES_SIM_250) (131) [FOR-] (3) ($RES_SIM_52) (131) [----] for $i1 in 1:3 loop (131) [----] [WHEN] (1)when pulse2m.twomPulse.timerNegative[$i1].u then (131) [----] [----] pulse2m.twomPulse.timerNegative[$i1].entryTime := time (131) [----] [----] end when; (131) [----] end for; (132) [FOR-] (3) ($RES_SIM_251) (132) [----] for $i1 in 1:3 loop (132) [----] [SCAL] (1) rectifier.thyristor_p.plug_p.pin[$i1].i - rectifier.ac_p.pin[$i1].i = 0.0 ($RES_SIM_252) (132) [----] end for; (133) [FOR-] (3) ($RES_SIM_54) (133) [----] for $i1 in 1:3 loop (133) [----] [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_55) (133) [----] end for; (134) [ARRY] (3) rectifier.ac_p.pin.v = rectifier.thyristor_p.plug_p.pin.v ($RES_SIM_253) (135) [FOR-] (3) ($RES_SIM_56) (135) [----] for $i1 in 1:3 loop (135) [----] [WHEN] (1)when pulse2m.twomPulse.timerPositive[$i1].u then (135) [----] [----] pulse2m.twomPulse.timerPositive[$i1].entryTime := time (135) [----] [----] end when; (135) [----] end for; (136) [SCAL] (1) sineVoltage_p.plug_p.pin[1].v = pulse2m.ac.pin[1].v ($RES_SIM_170) (137) [FOR-] (3) ($RES_SIM_256) (137) [----] for $i1 in 1:3 loop (137) [----] [SCAL] (1) rectifier.thyristor_p.plug_n.pin[$i1].i + rectifier.star_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_257) (137) [----] end for; (138) [SCAL] (1) sineVoltage_p.plug_p.pin[1].v = rectifier.ac_p.pin[1].v ($RES_SIM_171) (139) [FOR-] (3) ($RES_SIM_58) (139) [----] for $i1 in 1:3 loop (139) [----] [SCAL] (1) pulse2m.twomPulse.negativeThreshold[$i1].y = $SEV_7[$i1] ($RES_SIM_59) (139) [----] end for; (140) [ARRY] (3) pulse2m.fire_p = rectifier.fire_p ($RES_SIM_172) (141) [ARRY] (3) rectifier.thyristor_p.plug_n.pin.v = rectifier.star_p.plug_p.pin.v ($RES_SIM_258) (142) [ARRY] (3) rectifier.thyristor_n.fire = rectifier.thyristor_n.idealThyristor.fire ($RES_SIM_259) (143) [FOR-] (3) ($RES_EVT_340) (143) [----] for $i1 in 1:3 loop (143) [----] [SCAL] (1) $SEV_16[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_341) (143) [----] end for; (144) [FOR-] (3) ($RES_EVT_342) (144) [----] for $i1 in 1:3 loop (144) [----] [SCAL] (1) $SEV_17[$i1] = time < sineVoltage_p.sineVoltage[$i1].signalSource.startTime ($RES_EVT_343) (144) [----] end for; (145) [FOR-] (3) ($RES_SIM_100) (145) [----] for $i1 in 1:3 loop (145) [----] [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_101) (145) [----] end for; (146) [FOR-] (3) ($RES_SIM_60) (146) [----] for $i1 in 1:3 loop (146) [----] [SCAL] (1) pulse2m.twomPulse.positiveThreshold[$i1].y = $SEV_8[$i1] ($RES_SIM_61) (146) [----] end for; (147) [FOR-] (3) ($RES_SIM_260) (147) [----] for $i1 in 1:3 loop (147) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].n.i - rectifier.thyristor_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_261) (147) [----] end for; (148) [FOR-] (3) ($RES_SIM_102) (148) [----] for $i1 in 1:3 loop (148) [----] [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_103) (148) [----] end for; (149) [ARRY] (3) rectifier.thyristor_n.idealThyristor.n.v = rectifier.thyristor_n.plug_n.pin.v ($RES_SIM_262) (150) [FOR-] (3) ($RES_SIM_104) (150) [----] for $i1 in 1:3 loop (150) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].off = $SEV_11[$i1] ($RES_SIM_105) (150) [----] end for; (151) [FOR-] (3) ($RES_SIM_263) (151) [----] for $i1 in 1:3 loop (151) [----] [SCAL] (1) rectifier.thyristor_n.idealThyristor[$i1].p.i - rectifier.thyristor_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_264) (151) [----] end for; (152) [SCAL] (1) $DER.meanCurrent.x = -currentSensor.n.i ($RES_SIM_65) (153) [ARRY] (3) rectifier.thyristor_p.i = rectifier.thyristor_p.plug_p.pin.i ($RES_SIM_106) (154) [ARRY] (3) rectifier.thyristor_n.plug_p.pin.v = rectifier.thyristor_n.idealThyristor.p.v ($RES_SIM_265) (155) [ARRY] (3) rectifier.thyristor_p.v = rectifier.thyristor_p.plug_p.pin.v - rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_107) (156) [ARRY] (3) rectifier.thyristor_p.fire = rectifier.thyristor_p.idealThyristor.fire ($RES_SIM_266) (157) [FOR-] (3) ($RES_SIM_108) (157) [----] for $i1 in 1:3 loop (157) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].i = rectifier.thyristor_p.idealThyristor[$i1].p.i ($RES_SIM_109) (157) [----] end for; (158) [FOR-] (3) ($RES_SIM_267) (158) [----] for $i1 in 1:3 loop (158) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].n.i - rectifier.thyristor_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_268) (158) [----] end for; (159) [FOR-] (3) ($RES_SIM_182) (159) [----] for $i1 in 1:3 loop (159) [----] [SCAL] (1) sineVoltage_n.sineVoltage[$i1].n.i - sineVoltage_n.plug_n.pin[$i1].i = 0.0 ($RES_SIM_183) (159) [----] end for; (160) [ARRY] (3) rectifier.thyristor_p.idealThyristor.n.v = rectifier.thyristor_p.plug_n.pin.v ($RES_SIM_269) (161) [ARRY] (3) sineVoltage_n.sineVoltage.n.v = sineVoltage_n.plug_n.pin.v ($RES_SIM_184) (162) [FOR-] (3) ($RES_SIM_185) (162) [----] for $i1 in 1:3 loop (162) [----] [SCAL] (1) sineVoltage_n.sineVoltage[$i1].p.i - sineVoltage_n.plug_p.pin[$i1].i = 0.0 ($RES_SIM_186) (162) [----] end for; (163) [ARRY] (3) sineVoltage_n.sineVoltage.p.v = sineVoltage_n.plug_p.pin.v ($RES_SIM_187) (164) [ARRY] (3) pulse2m.twomPulse.fire_p = pulse2m.fire_p ($RES_SIM_188) (165) [ARRY] (3) pulse2m.twomPulse.fire_n = pulse2m.fire_n ($RES_SIM_189) (166) [SCAL] (1) -star.pin_n.i = sum(star.plug_p.pin.i) ($RES_$AUX_301) (167) [FOR-] (3) ($RES_SIM_110) (167) [----] for $i1 in 1:3 loop (167) [----] [SCAL] (1) 0.0 = rectifier.thyristor_p.idealThyristor[$i1].p.i + rectifier.thyristor_p.idealThyristor[$i1].n.i ($RES_SIM_111) (167) [----] end for; (168) [FOR-] (3) ($RES_SIM_270) (168) [----] for $i1 in 1:3 loop (168) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].p.i - rectifier.thyristor_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_271) (168) [----] end for; (169) [FOR-] (3) ($RES_SIM_112) (169) [----] for $i1 in 1:3 loop (169) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].v = rectifier.thyristor_p.idealThyristor[$i1].p.v - rectifier.thyristor_p.idealThyristor[$i1].n.v ($RES_SIM_113) (169) [----] end for; (170) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_72) (171) [FOR-] (3) ($RES_$AUX_299) (171) [----] for $i1 in 1:3 loop (171) [----] [SCAL] (1) $FUN_2[$i1] = sin(sineVoltage_p.sineVoltage[$i1].signalSource.freqHz * 6.283185307179586 * (time - sineVoltage_p.sineVoltage[$i1].signalSource.startTime) + sineVoltage_p.sineVoltage[$i1].signalSource.phase) ($RES_$AUX_300) (171) [----] end for; (172) [SCAL] (1) -rectifier.star_p.pin_n.i = sum(rectifier.star_p.plug_p.pin.i) ($RES_$AUX_298) (173) [ARRY] (3) rectifier.thyristor_p.plug_p.pin.v = rectifier.thyristor_p.idealThyristor.p.v ($RES_SIM_272) (174) [SCAL] (1) -rectifier.star_n.pin_n.i = sum(rectifier.star_n.plug_p.pin.i) ($RES_$AUX_297) (175) [SCAL] (1) $FUN_5 = sum(rectifier.thyristor_p.idealThyristor.LossPower) ($RES_$AUX_296) (176) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_274) (177) [FOR-] (3) ($RES_SIM_116) (177) [----] for $i1 in 1:3 loop (177) [----] [SCAL] (1) rectifier.thyristor_p.idealThyristor[$i1].LossPower = rectifier.thyristor_p.idealThyristor[$i1].v * rectifier.thyristor_p.idealThyristor[$i1].i ($RES_SIM_117) (177) [----] end for; (178) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_76) (179) [SCAL] (1) $FUN_6 = sum(rectifier.thyristor_n.idealThyristor.LossPower) ($RES_$AUX_295) (180) [FOR-] (3) ($RES_SIM_275) (180) [----] for $i1 in 1:3 loop (180) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].n.i - sineVoltage_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_276) (180) [----] end for; (181) [ARRY] (3) pulse2m.voltageSensor.phi = pulse2m.gain.u ($RES_SIM_190) (182) [SCAL] (1) meanVoltage.u = rectifier.vDC ($RES_SIM_77) (183) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_294) (184) [ARRY] (3) pulse2m.gain.y = pulse2m.twomPulse.v ($RES_SIM_191) (185) [FOR-] (3) ($RES_SIM_118) (185) [----] for $i1 in 1:3 loop (185) [----] [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_119) (185) [----] end for; (186) [ARRY] (3) sineVoltage_p.sineVoltage.n.v = sineVoltage_p.plug_n.pin.v ($RES_SIM_277) (187) [FOR-] (3) ($RES_SIM_192) (187) [----] for $i1 in 1:3 loop (187) [----] [SCAL] (1) pulse2m.delta.plug_n.pin[$i1].i - pulse2m.ac.pin[$i1].i = 0.0 ($RES_SIM_193) (187) [----] end for; (188) [FOR-] (3) ($RES_SIM_278) (188) [----] for $i1 in 1:3 loop (188) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].p.i - sineVoltage_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_279) (188) [----] end for; (189) [FOR-] (3) ($RES_$AUX_291) (189) [----] for $i1 in 1:3 loop (189) [----] [SCAL] (1) $FUN_9[$i1] = sin(sineVoltage_n.sineVoltage[$i1].signalSource.freqHz * 6.283185307179586 * (time - sineVoltage_n.sineVoltage[$i1].signalSource.startTime) + sineVoltage_n.sineVoltage[$i1].signalSource.phase) ($RES_$AUX_292) (189) [----] end for; (190) [ARRY] (3) pulse2m.ac.pin.v = pulse2m.delta.plug_n.pin.v ($RES_SIM_194) (191) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_290) (192) [FOR-] (3) ($RES_SIM_195) (192) [----] for $i1 in 1:3 loop (192) [----] [SCAL] (1) pulse2m.voltageSensor.plug_p.pin[$i1].i + pulse2m.delta.plug_p.pin[$i1].i = 0.0 ($RES_SIM_196) (192) [----] end for; (193) [ARRY] (3) pulse2m.voltageSensor.plug_p.pin.v = pulse2m.delta.plug_p.pin.v ($RES_SIM_197) (194) [ARRY] (3) pulse2m.voltageSensor.potentialSensor.phi = pulse2m.voltageSensor.phi ($RES_SIM_198) (195) [FOR-] (3) ($RES_SIM_199) (195) [----] for $i1 in 1:3 loop (195) [----] [SCAL] (1) pulse2m.voltageSensor.potentialSensor[$i1].p.i - pulse2m.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_200) (195) [----] end for; (196) [ARRY] (3) pulse2m.voltageSensor.potentialSensor.p.v = pulse2m.voltageSensor.plug_p.pin.v ($RES_SIM_201) (197) [SCAL] (1) -(pulse2m.delta.plug_n.pin[3].i + pulse2m.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_202) (198) [SCAL] (1) pulse2m.delta.plug_n.pin[3].v = pulse2m.delta.plug_p.pin[1].v ($RES_SIM_203)