Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|idealthyristor.off|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.Rectifier1Pulse.Thyristor1Pulse_R") Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.069e-05/2.082e-05, allocations: 0 / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2495, allocations: 44.51 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.3722, allocations: 78.68 MB / 372.8 MB, free: 3.301 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/0.3726, allocations: 83.95 kB / 372.9 MB, free: 3.219 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03624/0.4088, allocations: 9.019 MB / 381.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.551e-06/0.4089, allocations: 0 / 381.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.974e-05/0.4089, allocations: 8 kB / 381.9 MB, free: 10.17 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001445/0.4104, allocations: 0.6759 MB / 382.6 MB, free: 9.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.4104, allocations: 8.031 kB / 382.6 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.4106, allocations: 55.44 kB / 382.7 MB, free: 9.379 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007431/0.4114, allocations: 370.8 kB / 383 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.4114, allocations: 16 kB / 383 MB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.455e-05/0.4115, allocations: 24 kB / 383.1 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007219/0.4123, allocations: 265.5 kB / 383.3 MB, free: 8.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009046/0.4132, allocations: 382.1 kB / 383.7 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.4132, allocations: 7.906 kB / 383.7 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-05/0.4133, allocations: 3.938 kB / 383.7 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.4133, allocations: 8 kB / 383.7 MB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003415/0.4168, allocations: 1.47 MB / 385.2 MB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006159/0.4174, allocations: 221 kB / 385.4 MB, free: 6.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.4177, allocations: 84.84 kB / 385.5 MB, free: 6.414 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.4177, allocations: 7.984 kB / 385.5 MB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004696/0.4182, allocations: 210.4 kB / 385.7 MB, free: 6.184 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.755e-06/0.4182, allocations: 0 / 385.7 MB, free: 6.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.000826/0.419, allocations: 270 kB / 385.9 MB, free: 5.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.4192, allocations: 114.8 kB / 386.1 MB, free: 5.773 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004787/0.4197, allocations: 273.1 kB / 386.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.4197, allocations: 33.7 kB / 386.4 MB, free: 5.457 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.42, allocations: 294.4 kB / 386.6 MB, free: 5.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.4201, allocations: 82.89 kB / 386.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.07e-05/0.4202, allocations: 0 / 386.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.4203, allocations: 326.8 kB / 387 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.4206, allocations: 96.8 kB / 387.1 MB, free: 4.664 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003824/0.421, allocations: 238.3 kB / 387.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.4213, allocations: 122.1 kB / 387.5 MB, free: 4.238 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.154e-06/0.4213, allocations: 0 / 387.5 MB, free: 4.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008433/0.4222, allocations: 345 kB / 387.8 MB, free: 3.895 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009433/0.4231, allocations: 1.655 MB / 389.5 MB, free: 2.109 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.4232, allocations: 4 kB / 389.5 MB, free: 2.105 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002873/0.4235, allocations: 44.84 kB / 389.5 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003415/0.4238, allocations: 67.89 kB / 389.6 MB, free: 1.992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001805/0.4256, allocations: 1.439 MB / 391 MB, free: 444 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005374/0.4262, allocations: 63.89 kB / 391.1 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.4263, allocations: 27.95 kB / 391.1 MB, free: 352 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.4263, allocations: 4 kB / 391.1 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000722/0.427, allocations: 288.7 kB / 391.4 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.4271, allocations: 7.984 kB / 391.4 MB, free: 48 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.4273, allocations: 40.84 kB / 391.5 MB, free: 4 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.4276, allocations: 67.78 kB / 391.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001726/0.4293, allocations: 1.451 MB / 393 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.4298, allocations: 47.88 kB / 393 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.221e-05/0.4299, allocations: 16 kB / 393 MB, free: 14.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,$PRE.idealthyristor.off,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002434/0.4301, allocations: 131 kB / 393.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.4303, allocations: 31.62 kB / 393.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001243/0.4304, allocations: 44.23 kB / 393.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.81e-06/0.4304, allocations: 4 kB / 393.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.365e-06/0.4305, allocations: 0 / 393.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.611e-06/0.4305, allocations: 7.984 kB / 393.3 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00164/0.4321, allocations: 0.7337 MB / 394 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.246e-06/0.4322, allocations: 3.938 kB / 394 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.4324, allocations: 19.98 kB / 394 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/0.4326, allocations: 40.84 kB / 394.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.4326, allocations: 4 kB / 394.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001644/0.4343, allocations: 1.35 MB / 395.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.104e-06/0.4343, allocations: 12.05 kB / 395.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.4354, allocations: 484.3 kB / 395.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.4356, allocations: 128.6 kB / 396 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.551e-05/0.4357, allocations: 11.95 kB / 396 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003583/0.4361, allocations: 31.97 kB / 396.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.4363, allocations: 27.95 kB / 396.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.4363, allocations: 15.98 kB / 396.1 MB, free: 11.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003384/0.4367, allocations: 208.6 kB / 396.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.013e-06/0.4367, allocations: 0 / 396.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001114/0.4378, allocations: 167.4 kB / 396.5 MB, free: 10.67 MB / 346.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: 15 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_n,idealthyristor.off,idealthyristor.fire) * Number of discrete states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,idealthyristor.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002392/0.4381, allocations: 122.9 kB / 396.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.4394, allocations: 0.6348 MB / 397.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.447e-06/0.4395, allocations: 0 / 397.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004219/0.4399, allocations: 225.8 kB / 397.4 MB, free: 9.656 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004588/0.4404, allocations: 37.19 kB / 397.5 MB, free: 9.617 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.442, allocations: 0.5604 MB / 398 MB, free: 9.031 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006329/0.4427, allocations: 0.8425 MB / 398.9 MB, free: 8.16 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.4428, allocations: 27.44 kB / 398.9 MB, free: 8.133 MB / 346.7 MB Notification: Performance of SimCode: time 1.877e-06/0.4428, allocations: 0 / 398.9 MB, free: 8.133 MB / 346.7 MB Notification: Performance of Templates: time 0.01213/0.455, allocations: 6.394 MB / 405.3 MB, free: 1.746 MB / 346.7 MB