Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulsem.twomPulse.timerNegative.1..entryTime|pulsem.twomPulse.timerNegative.2..entryTime|pulsem.twomPulse.timerNegative.3..entryTime|pulsem.twomPulse.timerPositive.1..entryTime|pulsem.twomPulse.timerPositive.2..entryTime|pulsem.twomPulse.timerPositive.3..entryTime|rectifier.thyristor.idealThyristor.1..off|rectifier.thyristor.idealThyristor.2..off|rectifier.thyristor.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTapmPulse.ThyristorCenterTapmPulse_R") Notification: Performance of loadModel(Modelica): time 1.875/1.875, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.564e-05, allocations: 4 kB / 269.4 MB, free: 6.387 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08248/0.08252, allocations: 47.58 MB / 317 MB, free: 6.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3408/0.4234, allocations: 90.26 MB / 407.2 MB, free: 13.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.4237, allocations: 85.38 kB / 407.3 MB, free: 13.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1059/0.5297, allocations: 28.3 MB / 435.6 MB, free: 5.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.387e-06/0.5297, allocations: 0 / 435.6 MB, free: 5.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001004/0.5299, allocations: 31.94 kB / 435.6 MB, free: 5.949 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 319 * Number of variables: 319 Notification: Performance of Generate backend data structure: time 0.003458/0.5333, allocations: 1.503 MB / 437.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.5334, allocations: 12.03 kB / 437.1 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00037/0.5338, allocations: 154.2 kB / 437.3 MB, free: 4.293 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005111/0.5389, allocations: 1.618 MB / 438.9 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.539, allocations: 103.4 kB / 439 MB, free: 2.918 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000264/0.5393, allocations: 126.5 kB / 439.1 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003451/0.5428, allocations: 1.645 MB / 440.8 MB, free: 1.684 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.824e-05/0.5428, allocations: 4 kB / 440.8 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/0.543, allocations: 51.88 kB / 440.8 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-05/0.5431, allocations: 54.47 kB / 440.9 MB, free: 1.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002848/0.546, allocations: 1.293 MB / 442.2 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009941/0.5559, allocations: 4.883 MB / 447.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.5583, allocations: 1.02 MB / 448.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.5596, allocations: 0.5496 MB / 448.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.272e-05/0.5596, allocations: 4.562 kB / 448.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.5609, allocations: 0.5783 MB / 449.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=79): time 4.389e-06/0.5609, allocations: 0 / 449.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=79): time 0.002407/0.5633, allocations: 0.9917 MB / 450.2 MB, free: 9.848 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.5634, allocations: 149.3 kB / 450.3 MB, free: 9.672 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.565, allocations: 0.7654 MB / 451.1 MB, free: 8.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/0.5651, allocations: 53.69 kB / 451.2 MB, free: 8.836 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006742/0.5658, allocations: 0.5771 MB / 451.7 MB, free: 8.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002893/0.5661, allocations: 228.9 kB / 452 MB, free: 8.023 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-05/0.5662, allocations: 20 kB / 452 MB, free: 8.004 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.5664, allocations: 353.8 kB / 452.3 MB, free: 7.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008609/0.5673, allocations: 397.8 kB / 452.7 MB, free: 7.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.5684, allocations: 0.6163 MB / 453.3 MB, free: 6.551 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000906/0.5693, allocations: 433.8 kB / 453.8 MB, free: 6.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.5693, allocations: 0 / 453.8 MB, free: 6.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002664/0.572, allocations: 1.175 MB / 454.9 MB, free: 4.941 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001431/0.5735, allocations: 2.536 MB / 457.5 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/0.5735, allocations: 4 kB / 457.5 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008431/0.5744, allocations: 237.3 kB / 457.7 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007745/0.5752, allocations: 139.8 kB / 457.8 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004798/0.58, allocations: 2.905 MB / 460.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.5811, allocations: 151.3 kB / 460.9 MB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.5812, allocations: 36 kB / 460.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.5813, allocations: 7.938 kB / 460.9 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002348/0.5836, allocations: 1.069 MB / 462 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.147e-05/0.5837, allocations: 8 kB / 462 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007154/0.5844, allocations: 225.5 kB / 462.2 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006336/0.585, allocations: 131.8 kB / 462.4 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004685/0.5897, allocations: 2.903 MB / 465.3 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009474/0.5907, allocations: 131.4 kB / 465.4 MB, free: 10 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.776e-05/0.5908, allocations: 39.94 kB / 465.4 MB, free: 9.965 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 48 ($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,$PRE.rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[1].off,$PRE.rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[2].off,$PRE.rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[3].off,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.positiveThreshold[3].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.negativeThreshold[3].y,$PRE.pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[1].entryTime,$PRE.pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,$PRE.pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,$PRE.pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,$PRE.pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,$PRE.pulsem.twomPulse.timerNegative[3].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * 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 {3 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003519/0.5912, allocations: 196.9 kB / 465.6 MB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002125/0.5914, allocations: 98.95 kB / 465.7 MB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000306/0.5917, allocations: 108.9 kB / 465.8 MB, free: 9.566 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.5918, allocations: 12 kB / 465.8 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.5918, allocations: 0 / 465.8 MB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.5918, allocations: 7.922 kB / 465.9 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005816/0.5976, allocations: 2.641 MB / 468.5 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.366e-06/0.5977, allocations: 0 / 468.5 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.5981, allocations: 71.89 kB / 468.6 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006523/0.5988, allocations: 200.7 kB / 468.8 MB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.469e-05/0.5989, allocations: 15.98 kB / 468.8 MB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004177/0.6031, allocations: 2.644 MB / 471.4 MB, free: 3.773 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.6031, allocations: 4 kB / 471.4 MB, free: 3.77 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00346/0.6066, allocations: 1.653 MB / 473.1 MB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005779/0.6072, allocations: 267.8 kB / 473.3 MB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.6074, allocations: 16 kB / 473.4 MB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007343/0.6081, allocations: 87.91 kB / 473.4 MB, free: 1.707 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003947/0.6086, allocations: 140.6 kB / 473.6 MB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.474e-05/0.6087, allocations: 23.98 kB / 473.6 MB, free: 1.547 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001137/0.6098, allocations: 0.5811 MB / 474.2 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.38e-07/0.6098, allocations: 0 / 474.2 MB, free: 0.9648 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001982/0.6118, allocations: 0.5762 MB / 474.8 MB, free: 396 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 36 (pulsem.twomPulse.negativeThreshold[2].y,pulsem.twomPulse.positiveThreshold[2].y,pulsem.twomPulse.negativeThreshold[1].y,pulsem.twomPulse.positiveThreshold[1].y,pulsem.twomPulse.negativeThreshold[3].y,pulsem.twomPulse.positiveThreshold[3].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.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off,rectifier.thyristor.idealThyristor[3].off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulsem.twomPulse.timerPositive[1].entryTime,pulsem.twomPulse.timerPositive[2].entryTime,pulsem.twomPulse.timerPositive[3].entryTime,pulsem.twomPulse.timerNegative[1].entryTime,pulsem.twomPulse.timerNegative[2].entryTime,pulsem.twomPulse.timerNegative[3].entryTime,pulsem.fire_p[1],pulsem.fire_p[2],pulsem.fire_p[3],pulsem.fire_n[1],pulsem.fire_n[2],pulsem.fire_n[3]) * Number of discrete states: 6 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor.idealThyristor[3].off,rectifier.thyristor.idealThyristor[1].off,rectifier.thyristor.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 56 * 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 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002964/0.6121, allocations: 161.1 kB / 474.9 MB, free: 224 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003805/0.6159, allocations: 1.849 MB / 476.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.494e-06/0.616, allocations: 0.5625 kB / 476.8 MB, free: 14.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.6173, allocations: 0.6564 MB / 477.4 MB, free: 13.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.6184, allocations: 199.4 kB / 477.6 MB, free: 13.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004449/0.6229, allocations: 1.873 MB / 479.5 MB, free: 11.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/0.6244, allocations: 1.398 MB / 480.9 MB, free: 10.14 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001556/0.626, allocations: 422.8 kB / 481.3 MB, free: 9.727 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.6262, allocations: 55.42 kB / 481.4 MB, free: 9.672 MB / 394.7 MB Notification: Performance of SimCode: time 2.438e-06/0.6262, allocations: 0 / 481.4 MB, free: 9.672 MB / 394.7 MB Notification: Performance of Templates: time 0.04358/0.6698, allocations: 16.75 MB / 498.1 MB, free: 8.984 MB / 410.7 MB