Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.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.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R") Notification: Performance of loadModel(Modelica): time 1.872/1.872, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.99e-05/2.999e-05, allocations: 4 kB / 255.4 MB, free: 3.156 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07605/0.0761, allocations: 44.5 MB / 299.9 MB, free: 6.598 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.4102, allocations: 86.03 MB / 385.9 MB, free: 20.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.4105, allocations: 87.95 kB / 386 MB, free: 20.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1216/0.532, allocations: 35.45 MB / 421.4 MB, free: 9.613 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.897e-06/0.5321, allocations: 0 / 421.4 MB, free: 9.613 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001383/0.5322, allocations: 51.09 kB / 421.5 MB, free: 9.602 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 434 * Number of variables: 434 Notification: Performance of Generate backend data structure: time 0.004611/0.5369, allocations: 1.964 MB / 423.5 MB, free: 8.379 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.5369, allocations: 7.812 kB / 423.5 MB, free: 8.379 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009007/0.5378, allocations: 226.8 kB / 423.7 MB, free: 8.266 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006236/0.5441, allocations: 1.953 MB / 425.6 MB, free: 7.426 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/0.5443, allocations: 132.7 kB / 425.8 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005223/0.5448, allocations: 174.4 kB / 425.9 MB, free: 7.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005197/0.55, allocations: 2.303 MB / 428.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.546e-05/0.5501, allocations: 0 / 428.2 MB, free: 6.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002501/0.5504, allocations: 72.14 kB / 428.3 MB, free: 6.809 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.513e-05/0.5505, allocations: 72.28 kB / 428.4 MB, free: 6.801 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004605/0.5551, allocations: 1.924 MB / 430.3 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/0.5702, allocations: 7.18 MB / 437.5 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002987/0.5732, allocations: 1.593 MB / 439.1 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/0.5748, allocations: 0.8925 MB / 440 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.476e-05/0.5749, allocations: 16.98 kB / 440 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001681/0.5766, allocations: 0.8149 MB / 440.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of pre-optimization done (n=111): time 4.873e-06/0.5766, allocations: 0 / 440.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=111): time 0.003498/0.5801, allocations: 1.481 MB / 442.3 MB, free: 14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/0.5803, allocations: 131.8 kB / 442.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002437/0.5827, allocations: 1.095 MB / 443.5 MB, free: 12.74 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002821/0.583, allocations: 69.69 kB / 443.6 MB, free: 12.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009048/0.5839, allocations: 0.7321 MB / 444.3 MB, free: 11.92 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005214/0.5845, allocations: 331.4 kB / 444.6 MB, free: 11.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.5846, allocations: 24 kB / 444.7 MB, free: 11.57 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002238/0.5848, allocations: 354.8 kB / 445 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.5862, allocations: 0.5882 MB / 445.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.5878, allocations: 0.781 MB / 446.4 MB, free: 9.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.5892, allocations: 0.5982 MB / 447 MB, free: 9.176 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.097e-05/0.5892, allocations: 7.938 kB / 447 MB, free: 9.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003768/0.593, allocations: 1.615 MB / 448.6 MB, free: 7.539 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001113/0.5942, allocations: 1.92 MB / 450.5 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.5942, allocations: 8 kB / 450.5 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.5958, allocations: 435.2 kB / 451 MB, free: 5.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.597, allocations: 175.6 kB / 451.1 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008316/0.6053, allocations: 4.366 MB / 455.5 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.6068, allocations: 183 kB / 455.7 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.6069, allocations: 36 kB / 455.7 MB, free: 160 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.607, allocations: 4 kB / 455.7 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003622/0.6106, allocations: 1.566 MB / 457.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.714e-05/0.6107, allocations: 8 kB / 457.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001292/0.612, allocations: 429.3 kB / 457.7 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009651/0.613, allocations: 163.7 kB / 457.9 MB, free: 13.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00806/0.621, allocations: 4.415 MB / 462.3 MB, free: 9.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009796/0.6221, allocations: 151.3 kB / 462.4 MB, free: 9.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001324/0.6222, allocations: 44 kB / 462.5 MB, free: 9.246 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($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,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$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,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 (117): * Single equations (assignments): 116 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.0004516/0.6227, allocations: 212.8 kB / 462.7 MB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004445/0.6231, allocations: 134.3 kB / 462.8 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004976/0.6237, allocations: 164.7 kB / 463 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.6237, allocations: 16 kB / 463 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.72e-06/0.6237, allocations: 0 / 463 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.6237, allocations: 7.969 kB / 463 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00856/0.6323, allocations: 3.535 MB / 466.5 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.461e-06/0.6324, allocations: 0 / 466.5 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007504/0.6331, allocations: 115.8 kB / 466.6 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.6345, allocations: 408.7 kB / 467 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.6346, allocations: 23.98 kB / 467.1 MB, free: 4.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007773/0.6424, allocations: 4.148 MB / 471.2 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.6424, allocations: 0 / 471.2 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005511/0.648, allocations: 2.451 MB / 473.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001103/0.6491, allocations: 367.2 kB / 474 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000359/0.6495, allocations: 28.11 kB / 474 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.6506, allocations: 119.8 kB / 474.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007297/0.6514, allocations: 228.6 kB / 474.4 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001297/0.6515, allocations: 31.98 kB / 474.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001814/0.6534, allocations: 0.8404 MB / 475.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-06/0.6534, allocations: 0 / 475.3 MB, free: 12.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002973/0.6564, allocations: 0.8213 MB / 476.1 MB, free: 11.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,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,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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 74 * 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 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.000401/0.6568, allocations: 173.8 kB / 476.2 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006091/0.6629, allocations: 2.682 MB / 478.9 MB, free: 8.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.697e-06/0.663, allocations: 4.906 kB / 478.9 MB, free: 8.488 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002187/0.6652, allocations: 0.9608 MB / 479.9 MB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001867/0.6671, allocations: 300.2 kB / 480.2 MB, free: 7.223 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009201/0.6763, allocations: 3.105 MB / 483.3 MB, free: 4.078 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002199/0.6786, allocations: 1.704 MB / 485 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005692/0.6792, allocations: 87.42 kB / 485.1 MB, free: 2.258 MB / 362.7 MB Notification: Performance of SimCode: time 1.882e-06/0.6792, allocations: 4 kB / 485.1 MB, free: 2.254 MB / 362.7 MB Notification: Performance of Templates: time 0.05513/0.7343, allocations: 30.61 MB / 0.5036 GB, free: 3.613 MB / 394.7 MB