Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.67e-05/2.68e-05, allocations: 0 / 292.2 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08944/0.08949, allocations: 50.41 MB / 342.6 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4473, allocations: 86 MB / 428.6 MB, free: 8.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.4476, allocations: 89 kB / 428.7 MB, free: 8.234 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03813/0.4857, allocations: 9.71 MB / 438.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.398e-06/0.4858, allocations: 0 / 438.4 MB, free: 15.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.106e-05/0.4858, allocations: 12 kB / 438.4 MB, free: 15.94 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001606/0.4874, allocations: 0.7624 MB / 439.1 MB, free: 15.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4875, allocations: 8.031 kB / 439.2 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001632/0.4877, allocations: 67.25 kB / 439.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007597/0.4884, allocations: 397.7 kB / 439.6 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.4885, allocations: 39.08 kB / 439.6 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.996e-05/0.4886, allocations: 49.75 kB / 439.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.4897, allocations: 463 kB / 440.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.4897, allocations: 0 / 440.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.611e-05/0.4898, allocations: 22.19 kB / 440.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.4898, allocations: 19.94 kB / 440.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000784/0.4906, allocations: 297.4 kB / 440.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.4941, allocations: 1.786 MB / 442.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.4953, allocations: 367.8 kB / 442.6 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005433/0.4958, allocations: 207.8 kB / 442.8 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.4959, allocations: 11.88 kB / 442.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005713/0.4965, allocations: 263.9 kB / 443.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 5.283e-06/0.4965, allocations: 3.984 kB / 443.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009261/0.4974, allocations: 360.8 kB / 443.5 MB, free: 11.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.4975, allocations: 114.6 kB / 443.6 MB, free: 11.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005088/0.4981, allocations: 325.2 kB / 443.9 MB, free: 11.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.4981, allocations: 40.02 kB / 443.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002163/0.4984, allocations: 255.8 kB / 444.2 MB, free: 11.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/0.4985, allocations: 120.8 kB / 444.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.4986, allocations: 10.62 kB / 444.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.4988, allocations: 354 kB / 444.6 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002944/0.4991, allocations: 108.3 kB / 444.8 MB, free: 10.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.4995, allocations: 232.7 kB / 445 MB, free: 10.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.4999, allocations: 155.3 kB / 445.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.525e-06/0.4999, allocations: 0 / 445.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001068/0.501, allocations: 475.5 kB / 445.6 MB, free: 9.867 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007213/0.5017, allocations: 1.34 MB / 446.9 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.5017, allocations: 3.984 kB / 446.9 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000335/0.5021, allocations: 72.95 kB / 447 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004538/0.5026, allocations: 87.89 kB / 447.1 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002219/0.5048, allocations: 1.692 MB / 448.8 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.5053, allocations: 70.84 kB / 448.9 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.224e-05/0.5054, allocations: 15.56 kB / 448.9 MB, free: 6.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.5054, allocations: 4 kB / 448.9 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009528/0.5063, allocations: 421.1 kB / 449.3 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.864e-06/0.5064, allocations: 4.406 kB / 449.3 MB, free: 6.273 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/0.5067, allocations: 81.14 kB / 449.4 MB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004152/0.5071, allocations: 83.58 kB / 449.5 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002144/0.5092, allocations: 1.696 MB / 451.1 MB, free: 4.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004199/0.5097, allocations: 63.41 kB / 451.2 MB, free: 4.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.814e-05/0.5098, allocations: 19.69 kB / 451.2 MB, free: 4.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.5099, allocations: 134.2 kB / 451.4 MB, free: 4.285 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.568e-05/0.5101, allocations: 47.44 kB / 451.4 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009683/0.511, allocations: 406.1 kB / 451.8 MB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.126e-06/0.5111, allocations: 11.95 kB / 451.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.671e-06/0.5111, allocations: 0 / 451.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.5111, allocations: 7.922 kB / 451.8 MB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.5131, allocations: 0.9845 MB / 452.8 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.5131, allocations: 0 / 452.8 MB, free: 3.117 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004431/0.5135, allocations: 75.91 kB / 452.9 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/0.5138, allocations: 69.33 kB / 453 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.426e-05/0.5139, allocations: 15.98 kB / 453 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002119/0.516, allocations: 1.688 MB / 454.7 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.431e-06/0.516, allocations: 0 / 454.7 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.5174, allocations: 0.6699 MB / 455.3 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.5176, allocations: 153.5 kB / 455.5 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.577e-05/0.5177, allocations: 10.69 kB / 455.5 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004337/0.5182, allocations: 41.09 kB / 455.5 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.5183, allocations: 52.33 kB / 455.6 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.461e-05/0.5184, allocations: 14.55 kB / 455.6 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00038/0.5188, allocations: 252 kB / 455.8 MB, free: 376 kB / 362.7 MB Notification: Performance of sort global known variables: time 7.2e-07/0.5188, allocations: 0 / 455.8 MB, free: 376 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001139/0.5199, allocations: 235.4 kB / 456.1 MB, free: 160 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y_last,meanVoltage.y_last) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002183/0.5202, allocations: 138.8 kB / 456.2 MB, free: 20 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.5219, allocations: 0.865 MB / 457.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.643e-06/0.5219, allocations: 0 / 457.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005919/0.5225, allocations: 309.2 kB / 457.4 MB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005466/0.5231, allocations: 77.7 kB / 457.4 MB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.525, allocations: 0.7338 MB / 458.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.5256, allocations: 0.8602 MB / 459 MB, free: 13.15 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004105/0.526, allocations: 75.41 kB / 459.1 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.5262, allocations: 31.44 kB / 459.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of SimCode: time 1.468e-06/0.5262, allocations: 0 / 459.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of Templates: time 0.01956/0.5458, allocations: 7.068 MB / 466.2 MB, free: 6.047 MB / 378.7 MB