Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_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.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R") translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001202, allocations: 107 kB / 16.42 MB, free: 6.504 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.001059/0.001059, allocations: 187.2 kB / 17.35 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/1.907e-05, allocations: 3.547 kB / 327.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R): time 0.005578/0.005605, allocations: 4.835 MB / 332.1 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002518/0.008135, allocations: 1.579 MB / 333.6 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002883/0.008435, allocations: 23.88 kB / 333.7 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.008791, allocations: 186.4 kB / 333.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006982/0.009497, allocations: 298.2 kB / 334.1 MB, free: 12.35 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005273/0.01005, allocations: 287.5 kB / 334.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001695/0.01176, allocations: 1.692 MB / 336.1 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008568/0.01263, allocations: 0.7616 MB / 336.9 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004911/0.01313, allocations: 0.5336 MB / 337.4 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005655/0.0137, allocations: 0.545 MB / 338 MB, free: 8.504 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001283/0.01384, allocations: 108 kB / 338.1 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.01398, allocations: 104 kB / 338.2 MB, free: 8.297 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009905/0.01498, allocations: 1.423 MB / 339.6 MB, free: 6.859 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005272/0.01551, allocations: 0.9218 MB / 340.5 MB, free: 5.926 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.01565, allocations: 143.6 kB / 340.6 MB, free: 5.785 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.274e-05/0.01575, allocations: 27.81 kB / 340.7 MB, free: 5.758 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: 319 (169) * Number of variables: 319 (144) Notification: Performance of Bindings: time 0.003835/0.01959, allocations: 4.511 MB / 345.2 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0003526/0.01995, allocations: 371 kB / 345.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of Early Inline: time 0.002061/0.02202, allocations: 2.303 MB / 347.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simplify1: time 0.000128/0.02216, allocations: 127.8 kB / 348 MB, free: 14.25 MB / 302.1 MB Notification: Performance of Alias: time 0.002548/0.02472, allocations: 2.515 MB / 350.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simplify2: time 9.987e-05/0.02483, allocations: 99.86 kB / 350.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of Events: time 0.0004352/0.02527, allocations: 430.6 kB / 351 MB, free: 11.01 MB / 302.1 MB Notification: Performance of Detect States: time 0.000814/0.02609, allocations: 0.8959 MB / 351.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001012/0.02711, allocations: 1.023 MB / 352.9 MB, free: 8.969 MB / 302.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency pulsem.twomPulse.gain.y could not be divided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) pulsem.twomPulse.replicator.y = {pulsem.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_32) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (121/314) **************************** (1) [ALGB] (3) Real[3] pulsem.twomPulse.replicator.y (2) [ALGB] (1) Real resistor.i (3) [ALGB] (3) flow Real[3] rectifier.thyristor.idealThyristor.n.i (4) [ALGB] (3) Real[3] rectifier.star.plug_p.pin.v (5) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.v (6) [DISC] (3) Boolean[3] rectifier.andCondition_p.y (7) [ALGB] (3) Real[3] pulsem.voltageSensor.voltageSensor.v (8) [ALGB] (3) flow Real[3] pulsem.voltageSensor.voltageSensor.n.i (9) [ALGB] (3) Real[3] rectifier.vAC = rectifier.ac.pin[:].v (10) [ALGB] (3) flow Real[3] sineVoltage_p.sineVoltage.n.i (11) [DISC] (3) Boolean[3] pulsem.twomPulse.timerNegative.u (12) [ALGB] (3) flow Real[3] rectifier.star.plug_p.pin.i (13) [DISC] (3) Boolean[3] pulsem.twomPulse.positiveThreshold.y (14) [ALGB] (1) Real pulsem.twomPulse.limiter.y (15) [DISC] (3) Boolean[3] rectifier.enableLogic.internalEnable (16) [ALGB] (3) Real[3] pulsem.twomPulse.timerNegative.y (17) [ALGB] (3) Real[3] pulsem.twomPulse.positiveThreshold.u (18) [ALGB] (3) Real[3] pulsem.twomPulse.negativeEqual.u2 (19) [DISC] (3) Boolean[3] $SEV_11[$i1] (20) [ALGB] (3) flow Real[3] star.plug_p.pin.i (21) [ALGB] (3) Real[3] pulsem.twomPulse.negativeEqual.u1 (22) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.n.v (23) [ALGB] (1) Real rectifier.LossPower (24) [ALGB] (3) final Real[3] rectifier.thyristor.idealThyristor.v (25) [ALGB] (3) flow Real[3] sineVoltage_p.sineVoltage.p.i (26) [ALGB] (3) protected final Real[3] rectifier.thyristor.idealThyristor.s (start = {0.0 for $i1 in 1:3}) (27) [ALGB] (1) Real rootMeanSquareVoltage.product.y (28) [ALGB] (1) Real meanVoltage.u (29) [ALGB] (3) flow Real[3] rectifier.ac.pin.i (30) [ALGB] (2) Real[2] rootMeanSquareVoltage.product.u (31) [DISC] (3) Boolean[3] pulsem.fire_n (32) [ALGB] (3) flow Real[3] pulsem.ac.pin.i (33) [ALGB] (3) Real[3] star.plug_p.pin.v (34) [DISC] (3) Boolean[3] pulsem.fire_p (35) [DISC] (3) Boolean[3] pulsem.twomPulse.greaterPositive.y (36) [DISC] (3) Boolean[3] $SEV_6[$i1] (37) [ALGB] (1) Real rectifier.vDC = rectifier.vDC (38) [ALGB] (1) Real resistor.LossPower (39) [ALGB] (3) final Real[3] rectifier.thyristor.idealThyristor.i (40) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.p.v (41) [ALGB] (3) Real[3] rectifier.ac.pin.v (42) [DISC] (3) Boolean[3] pulsem.twomPulse.negativeThreshold.y (43) [DISC] (3) Boolean[3] rectifier.thyristor.fire (44) [ALGB] (3) Real[3] $FUN_2 (45) [ALGB] (3) Real[3] rectifier.thyristor.plug_p.pin.v (46) [ALGB] (3) Real[3] pulsem.ac.pin.v (47) [ALGB] (3) flow Real[3] pulsem.delta.plug_n.pin.i (48) [ALGB] (3) Real[3] pulsem.twomPulse.negativeThreshold.u (49) [ALGB] (3) Real[3] pulsem.twomPulse.greaterPositive.u2 (50) [DISC] (3) Boolean[3] $SEV_9[$i1] (51) [ALGB] (3) flow Real[3] sineVoltage_p.plug_n.pin.i (52) [ALGB] (3) Real[3] pulsem.twomPulse.greaterPositive.u1 (53) [DISC] (3) Boolean[3] rectifier.thyristor.off = rectifier.thyristor.idealThyristor.off (54) [DER-] (1) Real $DER.meanVoltage.x (55) [ALGB] (3) flow Real[3] rectifier.thyristor.plug_p.pin.i (56) [DISC] (3) Boolean[3] $SEV_10[$i1] (57) [ALGB] (3) Real[3] pulsem.delta.plug_n.pin.v (58) [ALGB] (3) final Real[3] rectifier.thyristor.idealThyristor.LossPower (59) [ALGB] (3) Real[3] sineVoltage_p.plug_n.pin.v (60) [ALGB] (1) Real rectifier.powerTotalAC = sum(rectifier.powerAC) (61) [DISC] (3) Boolean[3] pulsem.twomPulse.negativeEqual.y (62) [DISC] (3) Boolean[3] rectifier.fire_p (63) [ALGB] (3) Real[3] rectifier.iAC = rectifier.ac.pin[:].i (64) [ALGB] (3) Real[3] pulsem.twomPulse.v (65) [ALGB] (3) flow Real[3] pulsem.voltageSensor.plug_n.pin.i (66) [ALGB] (3) Real[3] pulsem.twomPulse.realPassThrough.u (67) [DISC] (3) Boolean[3] $SEV_5[$i1] (68) [DISC] (3) Boolean[3] rectifier.andCondition_p.u2 (69) [DISC] (3) Boolean[3] rectifier.andCondition_p.u1 (70) [ALGB] (3) Real[3] pulsem.twomPulse.realPassThrough.y (71) [ALGB] (1) flow Real star.pin_n.i (72) [ALGB] (3) Real[3] rectifier.thyristor.plug_n.pin.v (73) [ALGB] (3) flow Real[3] pulsem.delta.plug_p.pin.i (74) [DER-] (1) Real $DER.meanCurrent.x (75) [ALGB] (3) flow Real[3] sineVoltage_p.plug_p.pin.i (76) [DISS] (3) protected discrete Real[3] pulsem.twomPulse.timerNegative.entryTime (77) [ALGB] (3) Real[3] rectifier.thyristor.i (78) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.signalSource.y (79) [ALGB] (3) Real[3] pulsem.voltageSensor.plug_n.pin.v (80) [ALGB] (3) Real[3] sineVoltage_p.i (81) [ALGB] (1) flow Real currentSensor.n.i (82) [DISC] (3) Boolean[3] $SEV_8[$i1] (83) [DISC] (3) Boolean[3] rectifier.enableLogic.booleanReplicator.y (84) [ALGB] (3) flow Real[3] rectifier.thyristor.plug_n.pin.i (85) [ALGB] (3) Real[3] pulsem.delta.plug_p.pin.v (86) [ALGB] (1) Real rectifier.powerDC = rectifier.vDC * rectifier.iDC (87) [DISS] (3) protected discrete Real[3] pulsem.twomPulse.timerPositive.entryTime (88) [ALGB] (3) Real[3] sineVoltage_p.plug_p.pin.v (89) [ALGB] (3) Real[3] rectifier.thyristor.idealThyristor.p.v (90) [ALGB] (3) Real[3] rectifier.thyristor.v (91) [DISC] (3) Boolean[3] pulsem.twomPulse.fire_p (92) [DISC] (1) Boolean $TEV_8 (93) [ALGB] (1) Real rectifier.iDC = rectifier.iDC (94) [DISC] (1) Boolean $SEV_2 (95) [DISC] (3) Boolean[3] pulsem.twomPulse.fire_n (96) [DISC] (1) Boolean $SEV_1 (97) [ALGB] (3) Real[3] sineVoltage_p.v (98) [ALGB] (3) flow Real[3] pulsem.voltageSensor.plug_p.pin.i (99) [ALGB] (3) Real[3] pulsem.voltageSensor.v (100) [ALGB] (3) Real[3] pulsem.voltageSensor.voltageSensor.p.v (101) [DISC] (1) Boolean $TEV_1 (102) [DISC] (1) Boolean $TEV_0 (103) [ALGB] (1) Real resistor.R_actual (104) [DISC] (3) Boolean[3] rectifier.thyristor.idealThyristor.fire (105) [ALGB] (3) flow Real[3] rectifier.thyristor.idealThyristor.p.i (106) [DISC] (3) Boolean[3] $SEV_12[$i1] (107) [DISC] (3) Boolean[3] $SEV_4[$i1] (108) [DER-] (1) Real $DER.rootMeanSquareVoltage.mean.x (109) [ALGB] (1) Real resistor.v (110) [DISC] (3) final Boolean[3] rectifier.thyristor.idealThyristor.off (fixed = {true for $i1 in 1:3}, start = {rectifier.offStart[$idealThyristor1] for $idealThyristor1 in 1:3}) (111) [ALGB] (3) Real[3] rectifier.thyristor.idealThyristor.n.v (112) [ALGB] (3) Real[3] sineVoltage_p.sineVoltage.i (113) [ALGB] (3) Real[3] pulsem.voltageSensor.plug_p.pin.v (114) [ALGB] (3) flow Real[3] pulsem.voltageSensor.voltageSensor.p.i (115) [ALGB] (1) Real pulsem.twomPulse.gain.y (116) [DISC] (3) Boolean[3] pulsem.twomPulse.timerPositive.u (117) [ALGB] (3) Real[3] rectifier.powerAC = rectifier.vAC * rectifier.iAC (118) [ALGB] (3) Real[3] pulsem.voltageSensor.voltageSensor.n.v (119) [ALGB] (1) flow Real ground.p.i (120) [ALGB] (3) Real[3] pulsem.twomPulse.timerPositive.y (121) [DISC] (3) Boolean[3] $SEV_7[$i1] System Equations (146/314) **************************** (1) [ARRY] (3) rectifier.thyristor.idealThyristor.n.v = rectifier.thyristor.plug_n.pin.v ($RES_SIM_205) (2) [SCAL] (1) rectifier.ac.pin[1].i + sineVoltage_p.plug_p.pin[1].i + pulsem.ac.pin[1].i = 0.0 ($RES_SIM_120) (3) [FOR-] (3) ($RES_SIM_206) (3) [----] for $i1 in 1:3 loop (3) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].p.i - rectifier.thyristor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_207) (3) [----] end for; (4) [SCAL] (1) rectifier.ac.pin[3].v = pulsem.ac.pin[3].v ($RES_SIM_121) (5) [SCAL] (1) rectifier.ac.pin[3].v = sineVoltage_p.plug_p.pin[3].v ($RES_SIM_122) (6) [ARRY] (3) rectifier.thyristor.plug_p.pin.v = rectifier.thyristor.idealThyristor.p.v ($RES_SIM_208) (7) [FOR-] (3) ($RES_SIM_83) (7) [----] for $i1 in 1:3 loop (7) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].LossPower = rectifier.thyristor.idealThyristor[$i1].v * rectifier.thyristor.idealThyristor[$i1].i ($RES_SIM_84) (7) [----] end for; (8) [SCAL] (1) rectifier.ac.pin[2].v = pulsem.ac.pin[2].v ($RES_SIM_123) (9) [SCAL] (1) rectifier.ac.pin[2].v = sineVoltage_p.plug_p.pin[2].v ($RES_SIM_124) (10) [FOR-] (3) ($RES_SIM_85) (10) [----] for $i1 in 1:3 loop (10) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].i = rectifier.thyristor.idealThyristor[$i1].s * (if rectifier.thyristor.idealThyristor[$i1].off then rectifier.thyristor.idealThyristor[$i1].Goff else 1.0) + rectifier.thyristor.idealThyristor[$i1].Goff * rectifier.thyristor.idealThyristor[$i1].Vknee ($RES_SIM_86) (10) [----] end for; (11) [SCAL] (1) rectifier.ac.pin[1].v = pulsem.ac.pin[1].v ($RES_SIM_125) (12) [SCAL] (1) rectifier.ac.pin[1].v = sineVoltage_p.plug_p.pin[1].v ($RES_SIM_126) (13) [FOR-] (3) ($RES_SIM_87) (13) [----] for $i1 in 1:3 loop (13) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].v = rectifier.thyristor.idealThyristor[$i1].s * (if rectifier.thyristor.idealThyristor[$i1].off then 1.0 else rectifier.thyristor.idealThyristor[$i1].Ron) + rectifier.thyristor.idealThyristor[$i1].Vknee ($RES_SIM_88) (13) [----] end for; (14) [ARRY] (3) pulsem.fire_p = rectifier.fire_p ($RES_SIM_127) (15) [FOR-] (3) ($RES_SIM_89) (15) [----] for $i1 in 1:3 loop (15) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].off = $SEV_10[$i1] ($RES_SIM_90) (15) [----] end for; (16) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.enableLogic.booleanReplicator.y ($RES_SIM_210) (17) [FOR-] (3) ($RES_SIM_211) (17) [----] for $i1 in 1:3 loop (17) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].n.i - sineVoltage_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_212) (17) [----] end for; (18) [ARRY] (3) sineVoltage_p.sineVoltage.n.v = sineVoltage_p.plug_n.pin.v ($RES_SIM_213) (19) [SCAL] (1) resistor.v = rectifier.vDC ($RES_SIM_15) (20) [FOR-] (3) ($RES_SIM_214) (20) [----] for $i1 in 1:3 loop (20) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].p.i - sineVoltage_p.plug_p.pin[$i1].i = 0.0 ($RES_SIM_215) (20) [----] end for; (21) [SCAL] (1) resistor.LossPower = resistor.v * resistor.i ($RES_SIM_17) (22) [ARRY] (3) sineVoltage_p.sineVoltage.p.v = sineVoltage_p.plug_p.pin.v ($RES_SIM_216) (23) [ARRY] (3) rectifier.enableLogic.booleanReplicator.y = {rectifier.enableLogic.enableConstantSource.k for $i1 in 1:3} ($RES_SIM_91) (24) [SCAL] (1) resistor.v = resistor.R_actual * resistor.i ($RES_SIM_18) (25) [SCAL] (1) resistor.R_actual = resistor.R * (1.0 + resistor.alpha * (resistor.T - resistor.T_ref)) ($RES_SIM_19) (26) [FOR-] (3) ($RES_SIM_93) (26) [----] for $i1 in 1:3 loop (26) [----] [SCAL] (1) rectifier.andCondition_p[$i1].y = $SEV_11[$i1] ($RES_SIM_94) (26) [----] end for; (27) [ARRY] (3) sineVoltage_p.i = sineVoltage_p.plug_p.pin.i ($RES_SIM_95) (28) [ARRY] (3) sineVoltage_p.v = sineVoltage_p.plug_p.pin.v - sineVoltage_p.plug_n.pin.v ($RES_SIM_96) (29) [FOR-] (3) ($RES_SIM_97) (29) [----] for $i1 in 1:3 loop (29) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].i = sineVoltage_p.sineVoltage[$i1].p.i ($RES_SIM_98) (29) [----] end for; (30) [ARRY] (3) pulsem.twomPulse.fire_p = pulsem.fire_p ($RES_SIM_137) (31) [ARRY] (3) pulsem.twomPulse.fire_n = pulsem.fire_n ($RES_SIM_138) (32) [FOR-] (3) ($RES_SIM_99) (32) [----] for $i1 in 1:3 loop (32) [----] [SCAL] (1) 0.0 = sineVoltage_p.sineVoltage[$i1].p.i + sineVoltage_p.sineVoltage[$i1].n.i ($RES_SIM_100) (32) [----] end for; (33) [ARRY] (3) pulsem.voltageSensor.v = pulsem.twomPulse.v ($RES_SIM_139) (34) [FOR-] (3) ($RES_SIM_21) (34) [----] for $i1 in 1:3 loop (34) [----] [SCAL] (1) pulsem.voltageSensor.voltageSensor[$i1].v = pulsem.voltageSensor.voltageSensor[$i1].p.v - pulsem.voltageSensor.voltageSensor[$i1].n.v ($RES_SIM_22) (34) [----] end for; (35) [FOR-] (3) ($RES_SIM_23) (35) [----] for $i1 in 1:3 loop (35) [----] [SCAL] (1) pulsem.voltageSensor.voltageSensor[$i1].n.i = 0.0 ($RES_SIM_24) (35) [----] end for; (36) [FOR-] (3) ($RES_SIM_25) (36) [----] for $i1 in 1:3 loop (36) [----] [SCAL] (1) pulsem.voltageSensor.voltageSensor[$i1].p.i = 0.0 ($RES_SIM_26) (36) [----] end for; (37) [FOR-] (3) ($RES_SIM_27) (37) [----] for $i1 in 1:3 loop (37) [----] [SCAL] (1) pulsem.twomPulse.realPassThrough[$i1].y = pulsem.twomPulse.realPassThrough[$i1].u ($RES_SIM_28) (37) [----] end for; (38) [FOR-] (3) ($RES_SIM_140) (38) [----] for $i1 in 1:3 loop (38) [----] [SCAL] (1) pulsem.delta.plug_p.pin[$i1].i + pulsem.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_141) (38) [----] end for; (39) [SCAL] (1) pulsem.twomPulse.limiter.y = homotopy(smooth(0, if $SEV_1 then pulsem.twomPulse.limiter.uMax else if $SEV_2 then pulsem.twomPulse.limiter.uMin else pulsem.twomPulse.constantconstantFiringAngle.k), pulsem.twomPulse.constantconstantFiringAngle.k) ($RES_SIM_29) (40) [ARRY] (3) pulsem.delta.plug_p.pin.v = pulsem.voltageSensor.plug_n.pin.v ($RES_SIM_142) (41) [SCAL] (1) (pulsem.delta.plug_n.pin[3].i + pulsem.voltageSensor.plug_p.pin[3].i) - pulsem.ac.pin[3].i = 0.0 ($RES_SIM_143) (42) [SCAL] (1) (pulsem.delta.plug_n.pin[2].i + pulsem.voltageSensor.plug_p.pin[2].i) - pulsem.ac.pin[2].i = 0.0 ($RES_SIM_144) (43) [SCAL] (1) (pulsem.delta.plug_n.pin[1].i + pulsem.voltageSensor.plug_p.pin[1].i) - pulsem.ac.pin[1].i = 0.0 ($RES_SIM_145) (44) [SCAL] (1) pulsem.voltageSensor.plug_p.pin[3].v = pulsem.ac.pin[3].v ($RES_SIM_146) (45) [SCAL] (1) pulsem.voltageSensor.plug_p.pin[3].v = pulsem.delta.plug_n.pin[3].v ($RES_SIM_147) (46) [SCAL] (1) pulsem.voltageSensor.plug_p.pin[2].v = pulsem.ac.pin[2].v ($RES_SIM_148) (47) [SCAL] (1) pulsem.voltageSensor.plug_p.pin[2].v = pulsem.delta.plug_n.pin[2].v ($RES_SIM_149) (48) [SCAL] (1) $TEV_0 = $PRE.pulsem.twomPulse.timerNegative.entryTime ($RES_EVT_233) (49) [SCAL] (1) $TEV_1 = $PRE.pulsem.twomPulse.timerPositive.entryTime ($RES_EVT_234) (50) [ARRY] (3) pulsem.twomPulse.replicator.y = {pulsem.twomPulse.gain.y for $i1 in 1:3} ($RES_SIM_32) (51) [SCAL] (1) pulsem.twomPulse.gain.y = pulsem.twomPulse.gain.k * pulsem.twomPulse.limiter.y ($RES_SIM_33) (52) [FOR-] (3) ($RES_SIM_34) (52) [----] for $i1 in 1:3 loop (52) [----] [SCAL] (1) pulsem.twomPulse.negativeEqual[$i1].y = $SEV_4[$i1] ($RES_SIM_35) (52) [----] end for; (53) [FOR-] (3) ($RES_SIM_36) (53) [----] for $i1 in 1:3 loop (53) [----] [SCAL] (1) pulsem.twomPulse.greaterPositive[$i1].y = $SEV_5[$i1] ($RES_SIM_37) (53) [----] end for; (54) [SCAL] (1) pulsem.voltageSensor.plug_p.pin[1].v = pulsem.ac.pin[1].v ($RES_SIM_150) (55) [FOR-] (3) ($RES_SIM_38) (55) [----] for $i1 in 1:3 loop (55) [----] [SCAL] (1) pulsem.twomPulse.timerNegative[$i1].y = if pulsem.twomPulse.timerNegative[$i1].u then time - pulsem.twomPulse.timerNegative[$i1].entryTime else 0.0 ($RES_SIM_39) (55) [----] end for; (56) [SCAL] (1) pulsem.voltageSensor.plug_p.pin[1].v = pulsem.delta.plug_n.pin[1].v ($RES_SIM_151) (57) [ARRY] (3) pulsem.voltageSensor.voltageSensor.v = pulsem.voltageSensor.v ($RES_SIM_152) (58) [FOR-] (3) ($RES_SIM_153) (58) [----] for $i1 in 1:3 loop (58) [----] [SCAL] (1) pulsem.voltageSensor.voltageSensor[$i1].p.i - pulsem.voltageSensor.plug_p.pin[$i1].i = 0.0 ($RES_SIM_154) (58) [----] end for; (59) [ARRY] (3) pulsem.voltageSensor.voltageSensor.p.v = pulsem.voltageSensor.plug_p.pin.v ($RES_SIM_155) (60) [FOR-] (3) ($RES_SIM_156) (60) [----] for $i1 in 1:3 loop (60) [----] [SCAL] (1) pulsem.voltageSensor.voltageSensor[$i1].n.i - pulsem.voltageSensor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_157) (60) [----] end for; (61) [ARRY] (3) pulsem.voltageSensor.voltageSensor.n.v = pulsem.voltageSensor.plug_n.pin.v ($RES_SIM_158) (62) [SCAL] (1) -(pulsem.delta.plug_n.pin[3].i + pulsem.delta.plug_p.pin[1].i) = 0.0 ($RES_SIM_159) (63) [SCAL] (1) $TEV_8 = $PRE.rectifier.thyristor.idealThyristor[$i1].off ($RES_EVT_241) (64) [SCAL] (1) $SEV_1 = pulsem.twomPulse.constantconstantFiringAngle.k > pulsem.twomPulse.limiter.uMax ($RES_EVT_243) (65) [SCAL] (1) $SEV_2 = pulsem.twomPulse.constantconstantFiringAngle.k < pulsem.twomPulse.limiter.uMin ($RES_EVT_244) (66) [FOR-] (3) ($RES_EVT_246) (66) [----] for $i1 in 1:3 loop (66) [----] [SCAL] (1) $SEV_4[$i1] = pulsem.twomPulse.negativeEqual[$i1].u1 > pulsem.twomPulse.negativeEqual[$i1].u2 ($RES_EVT_247) (66) [----] end for; (67) [FOR-] (3) ($RES_EVT_248) (67) [----] for $i1 in 1:3 loop (67) [----] [SCAL] (1) $SEV_5[$i1] = pulsem.twomPulse.greaterPositive[$i1].u1 > pulsem.twomPulse.greaterPositive[$i1].u2 ($RES_EVT_249) (67) [----] end for; (68) [FOR-] (3) ($RES_SIM_40) (68) [----] for $i1 in 1:3 loop (68) [----] [WHEN] (1)when pulsem.twomPulse.timerNegative[$i1].u then (68) [----] [----] pulsem.twomPulse.timerNegative[$i1].entryTime := time (68) [----] [----] end when; (68) [----] end for; (69) [ARRY] (3) rectifier.vAC = rectifier.ac.pin[:].v ($RES_BND_217) (70) [ARRY] (3) rectifier.iAC = rectifier.ac.pin[:].i ($RES_BND_218) (71) [FOR-] (3) ($RES_SIM_42) (71) [----] for $i1 in 1:3 loop (71) [----] [SCAL] (1) pulsem.twomPulse.timerPositive[$i1].y = if pulsem.twomPulse.timerPositive[$i1].u then time - pulsem.twomPulse.timerPositive[$i1].entryTime else 0.0 ($RES_SIM_43) (71) [----] end for; (72) [ARRY] (3) rectifier.powerAC = rectifier.vAC * rectifier.iAC ($RES_BND_219) (73) [FOR-] (3) ($RES_SIM_44) (73) [----] for $i1 in 1:3 loop (73) [----] [WHEN] (1)when pulsem.twomPulse.timerPositive[$i1].u then (73) [----] [----] pulsem.twomPulse.timerPositive[$i1].entryTime := time (73) [----] [----] end when; (73) [----] end for; (74) [FOR-] (3) ($RES_SIM_46) (74) [----] for $i1 in 1:3 loop (74) [----] [SCAL] (1) pulsem.twomPulse.negativeThreshold[$i1].y = $SEV_6[$i1] ($RES_SIM_47) (74) [----] end for; (75) [SCAL] (1) pulsem.delta.plug_n.pin[3].v = pulsem.delta.plug_p.pin[1].v ($RES_SIM_160) (76) [FOR-] (3) ($RES_SIM_48) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) pulsem.twomPulse.positiveThreshold[$i1].y = $SEV_7[$i1] ($RES_SIM_49) (76) [----] end for; (77) [SCAL] (1) -(pulsem.delta.plug_n.pin[2].i + pulsem.delta.plug_p.pin[3].i) = 0.0 ($RES_SIM_161) (78) [SCAL] (1) pulsem.delta.plug_n.pin[2].v = pulsem.delta.plug_p.pin[3].v ($RES_SIM_162) (79) [SCAL] (1) -(pulsem.delta.plug_n.pin[1].i + pulsem.delta.plug_p.pin[2].i) = 0.0 ($RES_SIM_163) (80) [SCAL] (1) pulsem.delta.plug_n.pin[1].v = pulsem.delta.plug_p.pin[2].v ($RES_SIM_164) (81) [SCAL] (1) pulsem.twomPulse.realPassThrough[3].y = pulsem.twomPulse.positiveThreshold[3].u ($RES_SIM_165) (82) [SCAL] (1) pulsem.twomPulse.realPassThrough[3].y = pulsem.twomPulse.negativeThreshold[3].u ($RES_SIM_166) (83) [SCAL] (1) pulsem.twomPulse.realPassThrough[2].y = pulsem.twomPulse.positiveThreshold[2].u ($RES_SIM_167) (84) [SCAL] (1) pulsem.twomPulse.realPassThrough[2].y = pulsem.twomPulse.negativeThreshold[2].u ($RES_SIM_168) (85) [SCAL] (1) pulsem.twomPulse.realPassThrough[1].y = pulsem.twomPulse.positiveThreshold[1].u ($RES_SIM_169) (86) [FOR-] (3) ($RES_EVT_250) (86) [----] for $i1 in 1:3 loop (86) [----] [SCAL] (1) $SEV_6[$i1] = pulsem.twomPulse.negativeThreshold[$i1].u < pulsem.twomPulse.negativeThreshold[$i1].threshold ($RES_EVT_251) (86) [----] end for; (87) [FOR-] (3) ($RES_EVT_252) (87) [----] for $i1 in 1:3 loop (87) [----] [SCAL] (1) $SEV_7[$i1] = pulsem.twomPulse.positiveThreshold[$i1].u > pulsem.twomPulse.positiveThreshold[$i1].threshold ($RES_EVT_253) (87) [----] end for; (88) [FOR-] (3) ($RES_EVT_254) (88) [----] for $i1 in 1:3 loop (88) [----] [SCAL] (1) $SEV_8[$i1] = rectifier.thyristor.idealThyristor[$i1].s < 0.0 ($RES_EVT_255) (88) [----] end for; (89) [FOR-] (3) ($RES_EVT_256) (89) [----] for $i1 in 1:3 loop (89) [----] [SCAL] (1) $SEV_9[$i1] = $TEV_8 and not rectifier.thyristor.idealThyristor[$i1].fire ($RES_EVT_257) (89) [----] end for; (90) [FOR-] (3) ($RES_EVT_258) (90) [----] for $i1 in 1:3 loop (90) [----] [SCAL] (1) $SEV_10[$i1] = $SEV_8[$i1] or $SEV_9[$i1] ($RES_EVT_259) (90) [----] end for; (91) [SCAL] (1) rectifier.powerDC = rectifier.vDC * rectifier.iDC ($RES_BND_223) (92) [ARRY] (3) rectifier.thyristor.off = rectifier.thyristor.idealThyristor.off ($RES_BND_224) (93) [SCAL] (1) $DER.meanCurrent.x = -currentSensor.n.i ($RES_SIM_53) (94) [SCAL] (1) pulsem.twomPulse.realPassThrough[1].y = pulsem.twomPulse.negativeThreshold[1].u ($RES_SIM_170) (95) [ARRY] (3) pulsem.twomPulse.realPassThrough.u = pulsem.twomPulse.v ($RES_SIM_171) (96) [SCAL] (1) pulsem.twomPulse.replicator.y[3] = pulsem.twomPulse.greaterPositive[3].u2 ($RES_SIM_174) (97) [SCAL] (1) pulsem.twomPulse.replicator.y[3] = pulsem.twomPulse.negativeEqual[3].u2 ($RES_SIM_175) (98) [SCAL] (1) pulsem.twomPulse.replicator.y[2] = pulsem.twomPulse.greaterPositive[2].u2 ($RES_SIM_176) (99) [SCAL] (1) pulsem.twomPulse.replicator.y[2] = pulsem.twomPulse.negativeEqual[2].u2 ($RES_SIM_177) (100) [SCAL] (1) pulsem.twomPulse.replicator.y[1] = pulsem.twomPulse.greaterPositive[1].u2 ($RES_SIM_178) (101) [SCAL] (1) -star.pin_n.i = sum(star.plug_p.pin.i) ($RES_$AUX_232) (102) [SCAL] (1) pulsem.twomPulse.replicator.y[1] = pulsem.twomPulse.negativeEqual[1].u2 ($RES_SIM_179) (103) [FOR-] (3) ($RES_$AUX_230) (103) [----] for $i1 in 1:3 loop (103) [----] [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_231) (103) [----] end for; (104) [FOR-] (3) ($RES_EVT_260) (104) [----] for $i1 in 1:3 loop (104) [----] [SCAL] (1) $SEV_11[$i1] = rectifier.andCondition_p[$i1].u1 and rectifier.andCondition_p[$i1].u2 ($RES_EVT_261) (104) [----] end for; (105) [FOR-] (3) ($RES_EVT_262) (105) [----] for $i1 in 1:3 loop (105) [----] [SCAL] (1) $SEV_12[$i1] = time < sineVoltage_p.sineVoltage[$i1].signalSource.startTime ($RES_EVT_263) (105) [----] end for; (106) [SCAL] (1) $DER.rootMeanSquareVoltage.mean.x = rootMeanSquareVoltage.product.y ($RES_SIM_60) (107) [FOR-] (3) ($RES_SIM_101) (107) [----] for $i1 in 1:3 loop (107) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].v = sineVoltage_p.sineVoltage[$i1].p.v - sineVoltage_p.sineVoltage[$i1].n.v ($RES_SIM_102) (107) [----] end for; (108) [FOR-] (3) ($RES_SIM_103) (108) [----] for $i1 in 1:3 loop (108) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].v = sineVoltage_p.sineVoltage[$i1].signalSource.y ($RES_SIM_104) (108) [----] end for; (109) [SCAL] (1) $DER.meanVoltage.x = meanVoltage.u ($RES_SIM_64) (110) [SCAL] (1) meanVoltage.u = rectifier.vDC ($RES_SIM_65) (111) [FOR-] (3) ($RES_SIM_105) (111) [----] for $i1 in 1:3 loop (111) [----] [SCAL] (1) sineVoltage_p.sineVoltage[$i1].signalSource.y = sineVoltage_p.sineVoltage[$i1].signalSource.offset + (if $SEV_12[$i1] then 0.0 else sineVoltage_p.sineVoltage[$i1].signalSource.amplitude * $FUN_2[$i1]) ($RES_SIM_106) (111) [----] end for; (112) [ARRY] (3) pulsem.twomPulse.negativeEqual.y = pulsem.twomPulse.fire_n ($RES_SIM_181) (113) [FOR-] (3) ($RES_SIM_108) (113) [----] for $i1 in 1:3 loop (113) [----] [SCAL] (1) star.plug_p.pin[$i1].v = 0.0 ($RES_SIM_109) (113) [----] end for; (114) [ARRY] (3) pulsem.twomPulse.greaterPositive.y = pulsem.twomPulse.fire_p ($RES_SIM_182) (115) [SCAL] (1) -rectifier.iDC = sum(rectifier.star.plug_p.pin.i) ($RES_$AUX_229) (116) [ARRY] (3) pulsem.twomPulse.negativeEqual.u1 = pulsem.twomPulse.timerNegative.y ($RES_SIM_183) (117) [SCAL] (1) rectifier.LossPower = sum(rectifier.thyristor.idealThyristor.LossPower) ($RES_$AUX_228) (118) [ARRY] (3) pulsem.twomPulse.timerPositive.y = pulsem.twomPulse.greaterPositive.u1 ($RES_SIM_184) (119) [SCAL] (1) rootMeanSquareVoltage.product.y = product(rootMeanSquareVoltage.product.u) ($RES_$AUX_227) (120) [ARRY] (3) pulsem.twomPulse.negativeThreshold.y = pulsem.twomPulse.timerNegative.u ($RES_SIM_185) (121) [ARRY] (3) pulsem.twomPulse.positiveThreshold.y = pulsem.twomPulse.timerPositive.u ($RES_SIM_186) (122) [SCAL] (1) rectifier.powerTotalAC = sum(rectifier.powerAC) ($RES_$AUX_225) (123) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[1] ($RES_SIM_187) (124) [SCAL] (1) meanVoltage.u = rootMeanSquareVoltage.product.u[2] ($RES_SIM_188) (125) [FOR-] (3) ($RES_SIM_71) (125) [----] for $i1 in 1:3 loop (125) [----] [SCAL] (1) rectifier.star.plug_p.pin[$i1].v = rectifier.vDC ($RES_SIM_72) (125) [----] end for; (126) [SCAL] (1) -(currentSensor.n.i + resistor.i) = 0.0 ($RES_SIM_111) (127) [SCAL] (1) resistor.i + rectifier.iDC = 0.0 ($RES_SIM_112) (128) [ARRY] (3) rectifier.thyristor.i = rectifier.thyristor.plug_p.pin.i ($RES_SIM_73) (129) [ARRY] (3) rectifier.thyristor.v = rectifier.thyristor.plug_p.pin.v - rectifier.thyristor.plug_n.pin.v ($RES_SIM_74) (130) [SCAL] (1) star.pin_n.i + currentSensor.n.i + ground.p.i = 0.0 ($RES_SIM_114) (131) [FOR-] (3) ($RES_SIM_75) (131) [----] for $i1 in 1:3 loop (131) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].i = rectifier.thyristor.idealThyristor[$i1].p.i ($RES_SIM_76) (131) [----] end for; (132) [FOR-] (3) ($RES_SIM_115) (132) [----] for $i1 in 1:3 loop (132) [----] [SCAL] (1) star.plug_p.pin[$i1].i + sineVoltage_p.plug_n.pin[$i1].i = 0.0 ($RES_SIM_116) (132) [----] end for; (133) [FOR-] (3) ($RES_SIM_77) (133) [----] for $i1 in 1:3 loop (133) [----] [SCAL] (1) 0.0 = rectifier.thyristor.idealThyristor[$i1].p.i + rectifier.thyristor.idealThyristor[$i1].n.i ($RES_SIM_78) (133) [----] end for; (134) [ARRY] (3) star.plug_p.pin.v = sineVoltage_p.plug_n.pin.v ($RES_SIM_117) (135) [SCAL] (1) rectifier.ac.pin[3].i + sineVoltage_p.plug_p.pin[3].i + pulsem.ac.pin[3].i = 0.0 ($RES_SIM_118) (136) [FOR-] (3) ($RES_SIM_79) (136) [----] for $i1 in 1:3 loop (136) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].v = rectifier.thyristor.idealThyristor[$i1].p.v - rectifier.thyristor.idealThyristor[$i1].n.v ($RES_SIM_80) (136) [----] end for; (137) [ARRY] (3) rectifier.enableLogic.internalEnable = rectifier.andCondition_p.u2 ($RES_SIM_192) (138) [SCAL] (1) rectifier.ac.pin[2].i + sineVoltage_p.plug_p.pin[2].i + pulsem.ac.pin[2].i = 0.0 ($RES_SIM_119) (139) [ARRY] (3) rectifier.andCondition_p.u1 = rectifier.fire_p ($RES_SIM_193) (140) [ARRY] (3) rectifier.andCondition_p.y = rectifier.thyristor.fire ($RES_SIM_194) (141) [FOR-] (3) ($RES_SIM_195) (141) [----] for $i1 in 1:3 loop (141) [----] [SCAL] (1) rectifier.thyristor.plug_p.pin[$i1].i - rectifier.ac.pin[$i1].i = 0.0 ($RES_SIM_196) (141) [----] end for; (142) [ARRY] (3) rectifier.ac.pin.v = rectifier.thyristor.plug_p.pin.v ($RES_SIM_197) (143) [FOR-] (3) ($RES_SIM_199) (143) [----] for $i1 in 1:3 loop (143) [----] [SCAL] (1) rectifier.thyristor.plug_n.pin[$i1].i + rectifier.star.plug_p.pin[$i1].i = 0.0 ($RES_SIM_200) (143) [----] end for; (144) [ARRY] (3) rectifier.thyristor.plug_n.pin.v = rectifier.star.plug_p.pin.v ($RES_SIM_201) (145) [ARRY] (3) rectifier.thyristor.fire = rectifier.thyristor.idealThyristor.fire ($RES_SIM_202) (146) [FOR-] (3) ($RES_SIM_203) (146) [----] for $i1 in 1:3 loop (146) [----] [SCAL] (1) rectifier.thyristor.idealThyristor[$i1].n.i - rectifier.thyristor.plug_n.pin[$i1].i = 0.0 ($RES_SIM_204) (146) [----] end for;