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_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.867e-05/2.875e-05, allocations: 1.406 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.01562/0.1399, allocations: 3.169 MB / 348.2 MB, free: 5.738 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00314/0.1431, allocations: 0.8808 MB / 349 MB, free: 4.855 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004971/0.1436, allocations: 19.94 kB / 349.1 MB, free: 4.836 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002703/0.1439, allocations: 55.53 kB / 349.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.1445, allocations: 147.5 kB / 349.3 MB, free: 4.637 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009287/0.1538, allocations: 151.7 kB / 349.4 MB, free: 4.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001182/0.155, allocations: 351.7 kB / 349.8 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005011/0.1556, allocations: 145.5 kB / 349.9 MB, free: 4.008 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004161/0.156, allocations: 167.5 kB / 350.1 MB, free: 3.844 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004816/0.1565, allocations: 199.2 kB / 350.3 MB, free: 3.648 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004115/0.1606, allocations: 27.94 kB / 350.3 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000189/0.1609, allocations: 23.94 kB / 350.3 MB, free: 3.598 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002084/0.1611, allocations: 79.66 kB / 350.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002162/0.1613, allocations: 44 kB / 350.4 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1624, allocations: 0.4989 MB / 350.9 MB, free: 2.977 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1624, allocations: 4 kB / 350.9 MB, free: 2.973 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1624, allocations: 0 / 350.9 MB, free: 2.973 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.97e-05/0.1625, allocations: 0 / 350.9 MB, free: 2.973 MB / 282.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.005597/0.1681, allocations: 0.755 MB / 351.7 MB, free: 2.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.1682, allocations: 12.03 kB / 351.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002807/0.1685, allocations: 67.25 kB / 351.8 MB, free: 2.078 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.1696, allocations: 391.6 kB / 352.1 MB, free: 1.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001456/0.1698, allocations: 44.94 kB / 352.2 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.17, allocations: 51.91 kB / 352.2 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.1721, allocations: 0.5085 MB / 352.7 MB, free: 1.039 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.1722, allocations: 3.953 kB / 352.8 MB, free: 1.035 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.1723, allocations: 16 kB / 352.8 MB, free: 1.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.1723, allocations: 12 kB / 352.8 MB, free: 1.008 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.1743, allocations: 391.7 kB / 353.2 MB, free: 0.625 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00433/0.1786, allocations: 1.761 MB / 354.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001806/0.1805, allocations: 435.3 kB / 355.3 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.427e-05/0.1806, allocations: 4 kB / 355.4 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009186/0.1815, allocations: 292.7 kB / 355.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 2.935e-06/0.1815, allocations: 0 / 355.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.002981/0.1845, allocations: 0.7362 MB / 356.4 MB, free: 13.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.1846, allocations: 110.8 kB / 356.5 MB, free: 13.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.1853, allocations: 340.7 kB / 356.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.921e-05/0.1854, allocations: 37.7 kB / 356.9 MB, free: 12.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.1856, allocations: 282.7 kB / 357.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.1858, allocations: 126.2 kB / 357.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.649e-05/0.1858, allocations: 12 kB / 357.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.186, allocations: 326.8 kB / 357.6 MB, free: 12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005954/0.1866, allocations: 149 kB / 357.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007084/0.1873, allocations: 284.9 kB / 358 MB, free: 11.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006546/0.188, allocations: 189.7 kB / 358.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.188, allocations: 7.938 kB / 358.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001723/0.1898, allocations: 0.5355 MB / 358.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006273/0.1904, allocations: 1.424 MB / 360.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.1904, allocations: 7.984 kB / 360.2 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004322/0.1909, allocations: 76.75 kB / 360.2 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006577/0.1915, allocations: 95.77 kB / 360.3 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.1941, allocations: 1.714 MB / 362 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000664/0.1948, allocations: 75.56 kB / 362.1 MB, free: 7.133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.342e-05/0.1949, allocations: 16 kB / 362.1 MB, free: 7.117 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.1949, allocations: 4 kB / 362.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001486/0.1964, allocations: 490.4 kB / 362.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1964, allocations: 0 / 362.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003624/0.1968, allocations: 76.75 kB / 362.7 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005841/0.1974, allocations: 79.89 kB / 362.8 MB, free: 6.469 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/0.1998, allocations: 1.71 MB / 364.5 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005043/0.2004, allocations: 55.73 kB / 364.5 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.2004, allocations: 23.98 kB / 364.6 MB, free: 4.543 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,$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 (51): * Single equations (assignments): 49 * 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.0004328/0.2009, allocations: 180.2 kB / 364.7 MB, free: 4.359 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/0.201, allocations: 47.48 kB / 364.8 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/0.2028, allocations: 0.4987 MB / 365.3 MB, free: 3.801 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.2028, allocations: 7.953 kB / 365.3 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.2029, allocations: 0 / 365.3 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.2029, allocations: 3.984 kB / 365.3 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002679/0.2056, allocations: 1.038 MB / 366.3 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.2056, allocations: 0 / 366.3 MB, free: 2.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006144/0.2062, allocations: 71.89 kB / 366.4 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003545/0.2066, allocations: 77.11 kB / 366.5 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/0.2067, allocations: 4 kB / 366.5 MB, free: 2.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002537/0.2092, allocations: 1.714 MB / 368.2 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2093, allocations: 0 / 368.2 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.2116, allocations: 0.7481 MB / 368.9 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003283/0.212, allocations: 152.5 kB / 369.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.2121, allocations: 12 kB / 369.1 MB, free: 15.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005713/0.2127, allocations: 47.95 kB / 369.1 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.2129, allocations: 31.95 kB / 369.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.2129, allocations: 15.98 kB / 369.2 MB, free: 15.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004466/0.2134, allocations: 255.2 kB / 369.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2134, allocations: 4 kB / 369.4 MB, free: 15.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001247/0.2147, allocations: 239.4 kB / 369.7 MB, free: 15.16 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,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.0002289/0.2149, allocations: 118.3 kB / 369.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002814/0.2177, allocations: 0.9967 MB / 370.8 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.2178, allocations: 7.938 kB / 370.8 MB, free: 13.99 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009389/0.2187, allocations: 346.6 kB / 371.1 MB, free: 13.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007402/0.2195, allocations: 89.52 kB / 371.2 MB, free: 13.55 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.2226, allocations: 1.225 MB / 372.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.2231, allocations: 0.8557 MB / 373.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00019/0.2233, allocations: 35.44 kB / 373.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of SimCode: time 3.396e-06/0.2234, allocations: 4 kB / 373.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of Templates: time 0.01715/0.2405, allocations: 7.673 MB / 381 MB, free: 3.727 MB / 314.7 MB