Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.pre_n.1..u|rectifier.pre_n.2..u|rectifier.pre_n.3..u|rectifier.pre_p.1..u|rectifier.pre_p.2..u|rectifier.pre_p.3..u|rectifier.thyristor_n.idealThyristor.1..off|rectifier.thyristor_n.idealThyristor.2..off|rectifier.thyristor_n.idealThyristor.3..off|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RL") Notification: Performance of loadModel(Modelica): time 1.846/1.846, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.247e-05, allocations: 7.938 kB / 249.6 MB, free: 15.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2461, allocations: 44.51 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.3794, allocations: 86.59 MB / 380.7 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/0.3797, allocations: 95.86 kB / 380.8 MB, free: 11.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.376/0.7558, allocations: 46.54 MB / 427.4 MB, free: 92.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.217e-06/0.7559, allocations: 0 / 427.4 MB, free: 92.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001809/0.756, allocations: 48.03 kB / 427.4 MB, free: 92.95 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 442 * Number of variables: 442 Notification: Performance of Generate backend data structure: time 0.005192/0.7613, allocations: 1.94 MB / 429.4 MB, free: 92.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.7613, allocations: 11.19 kB / 429.4 MB, free: 92.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008341/0.7622, allocations: 223.2 kB / 429.6 MB, free: 92.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006801/0.769, allocations: 2.055 MB / 431.6 MB, free: 91.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.7691, allocations: 60.91 kB / 431.7 MB, free: 91.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000335/0.7695, allocations: 104.6 kB / 431.8 MB, free: 91.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004311/0.7738, allocations: 1.807 MB / 433.6 MB, free: 91.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004816/0.7787, allocations: 2.099 MB / 435.7 MB, free: 91.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.849e-05/0.7788, allocations: 9.844 kB / 435.7 MB, free: 91.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002129/0.779, allocations: 3.906 kB / 435.7 MB, free: 91.41 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.571e-05/0.7791, allocations: 75.62 kB / 435.8 MB, free: 91.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01295/0.7921, allocations: 6.445 MB / 442.2 MB, free: 89.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003072/0.7952, allocations: 1.625 MB / 443.9 MB, free: 89.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001531/0.7967, allocations: 0.8703 MB / 444.7 MB, free: 88.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.893e-05/0.7968, allocations: 14.12 kB / 444.7 MB, free: 88.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001521/0.7984, allocations: 0.8328 MB / 445.6 MB, free: 88.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 7.548e-06/0.7984, allocations: 0 / 445.6 MB, free: 88.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.003141/0.8016, allocations: 1.543 MB / 447.1 MB, free: 88.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.8017, allocations: 156.3 kB / 447.3 MB, free: 87.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.8033, allocations: 0.9028 MB / 448.2 MB, free: 87.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002085/0.8035, allocations: 51.98 kB / 448.2 MB, free: 87.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005657/0.8041, allocations: 0.7447 MB / 449 MB, free: 86.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.8045, allocations: 348 kB / 449.3 MB, free: 86.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.083e-05/0.8046, allocations: 3.969 kB / 449.3 MB, free: 86.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.8047, allocations: 364.4 kB / 449.7 MB, free: 86.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.8059, allocations: 0.619 MB / 450.3 MB, free: 86.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.8071, allocations: 0.8701 MB / 451.2 MB, free: 85.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.8082, allocations: 0.6611 MB / 451.8 MB, free: 85.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/0.8083, allocations: 3.562 kB / 451.8 MB, free: 85.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.003219/0.8115, allocations: 1.736 MB / 453.6 MB, free: 84.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004782/0.812, allocations: 2.442 MB / 456 MB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/0.812, allocations: 10.91 kB / 456 MB, free: 81.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.8134, allocations: 491.9 kB / 456.5 MB, free: 81.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008744/0.8143, allocations: 173.1 kB / 456.7 MB, free: 81.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007893/0.8222, allocations: 5.115 MB / 461.8 MB, free: 78.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.8237, allocations: 157.8 kB / 461.9 MB, free: 78.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.8238, allocations: 48.94 kB / 462 MB, free: 78.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.8238, allocations: 7.859 kB / 462 MB, free: 78.8 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003089/0.8269, allocations: 1.643 MB / 463.6 MB, free: 78.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.87e-05/0.827, allocations: 7 kB / 463.6 MB, free: 78.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/0.8283, allocations: 482.5 kB / 464.1 MB, free: 78.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008526/0.8292, allocations: 167.8 kB / 464.3 MB, free: 78.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007846/0.837, allocations: 5.176 MB / 469.5 MB, free: 74.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009896/0.838, allocations: 127.6 kB / 469.6 MB, free: 74.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.8382, allocations: 47.44 kB / 469.6 MB, free: 74.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004082/0.8386, allocations: 204.6 kB / 469.8 MB, free: 74.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.839, allocations: 122.5 kB / 469.9 MB, free: 74.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.8394, allocations: 142.7 kB / 470.1 MB, free: 74.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.8394, allocations: 15.61 kB / 470.1 MB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.303e-06/0.8394, allocations: 0 / 470.1 MB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.8394, allocations: 10.89 kB / 470.1 MB, free: 74.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005888/0.8453, allocations: 3.217 MB / 473.3 MB, free: 71.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.009e-06/0.8454, allocations: 0 / 473.3 MB, free: 71.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005518/0.8459, allocations: 97.28 kB / 473.4 MB, free: 71.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.8472, allocations: 463.1 kB / 473.9 MB, free: 71.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.8473, allocations: 11.84 kB / 473.9 MB, free: 71.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00718/0.8545, allocations: 5.01 MB / 478.9 MB, free: 66.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.447e-06/0.8545, allocations: 0 / 478.9 MB, free: 66.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004035/0.8586, allocations: 2.472 MB / 481.4 MB, free: 64.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007662/0.8594, allocations: 352.4 kB / 481.7 MB, free: 64.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.8596, allocations: 27.45 kB / 481.7 MB, free: 64.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008544/0.8605, allocations: 93.86 kB / 481.8 MB, free: 64.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005503/0.8611, allocations: 222.9 kB / 482 MB, free: 63.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.8612, allocations: 42.75 kB / 482.1 MB, free: 63.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001045/0.8623, allocations: 0.6586 MB / 482.7 MB, free: 63.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.8623, allocations: 0 / 482.7 MB, free: 63.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002487/0.8648, allocations: 0.7707 MB / 483.5 MB, free: 62.51 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003005/0.8651, allocations: 179.1 kB / 483.7 MB, free: 62.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00474/0.8699, allocations: 2.855 MB / 486.5 MB, free: 59.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.8699, allocations: 4.812 kB / 486.5 MB, free: 59.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/0.8716, allocations: 0.9928 MB / 487.5 MB, free: 58.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001547/0.8732, allocations: 278.7 kB / 487.8 MB, free: 58.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005642/0.8788, allocations: 2.738 MB / 490.6 MB, free: 56.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/0.8803, allocations: 1.682 MB / 492.2 MB, free: 54.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004166/0.8807, allocations: 87.42 kB / 492.3 MB, free: 54.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.764e-06/0.8807, allocations: 0 / 492.3 MB, free: 54.75 MB / 362.7 MB Notification: Performance of Templates: time 0.04072/0.9215, allocations: 30.17 MB / 0.5102 GB, free: 24.85 MB / 362.7 MB