Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|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_RL") Notification: Performance of loadModel(Modelica): time 2.088/2.088, allocations: 224.7 MB / 241.1 MB, free: 1.703 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.747e-05/2.751e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1495, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.005812/0.1554, allocations: 3.251 MB / 348.2 MB, free: 5.684 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.158, allocations: 0.9079 MB / 349.2 MB, free: 4.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000374/0.1584, allocations: 19.94 kB / 349.2 MB, free: 4.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.1586, allocations: 59.53 kB / 349.2 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000449/0.1591, allocations: 155.4 kB / 349.4 MB, free: 4.539 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006702/0.1598, allocations: 159.7 kB / 349.5 MB, free: 4.383 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008162/0.1606, allocations: 359.7 kB / 349.9 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003727/0.161, allocations: 149.5 kB / 350 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.1613, allocations: 179.5 kB / 350.2 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003705/0.1617, allocations: 199.2 kB / 350.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.1618, allocations: 24 kB / 350.4 MB, free: 3.496 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.234e-05/0.1619, allocations: 23.94 kB / 350.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001446/0.1621, allocations: 95.58 kB / 350.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.1622, allocations: 44 kB / 350.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007533/0.163, allocations: 0.5106 MB / 351.1 MB, free: 2.824 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.163, allocations: 3.938 kB / 351.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.163, allocations: 0 / 351.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.1631, allocations: 4 kB / 351.1 MB, free: 2.816 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002128/0.1652, allocations: 0.7894 MB / 351.9 MB, free: 1.973 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.1653, allocations: 8.031 kB / 351.9 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001772/0.1654, allocations: 63.25 kB / 352 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008378/0.1663, allocations: 399.6 kB / 352.4 MB, free: 1.473 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.1664, allocations: 48.97 kB / 352.4 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.1666, allocations: 52 kB / 352.5 MB, free: 1.375 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.1681, allocations: 0.5202 MB / 353 MB, free: 0.832 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.49e-05/0.1682, allocations: 7.891 kB / 353 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.741e-05/0.1682, allocations: 24 kB / 353 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.1683, allocations: 12 kB / 353 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.1697, allocations: 387.8 kB / 353.4 MB, free: 424 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.1739, allocations: 1.865 MB / 355.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.1757, allocations: 423.5 kB / 355.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.287e-05/0.1758, allocations: 4.328 kB / 355.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009493/0.1767, allocations: 305 kB / 356 MB, free: 13.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.407e-06/0.1767, allocations: 0 / 356 MB, free: 13.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.003073/0.1798, allocations: 0.7408 MB / 356.7 MB, free: 12.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.1799, allocations: 114.8 kB / 356.8 MB, free: 12.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006648/0.1806, allocations: 340.8 kB / 357.2 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.611e-05/0.1807, allocations: 37.7 kB / 357.2 MB, free: 12.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.181, allocations: 287.3 kB / 357.5 MB, free: 12.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.1812, allocations: 138.1 kB / 357.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.1812, allocations: 8 kB / 357.6 MB, free: 11.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1814, allocations: 334.8 kB / 357.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006317/0.182, allocations: 157 kB / 358.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007334/0.1828, allocations: 285.2 kB / 358.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.1835, allocations: 207.9 kB / 358.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.351e-06/0.1835, allocations: 0 / 358.6 MB, free: 10.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001807/0.1853, allocations: 0.5543 MB / 359.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006562/0.186, allocations: 1.424 MB / 360.6 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.186, allocations: 4 kB / 360.6 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004472/0.1865, allocations: 76.8 kB / 360.6 MB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007195/0.1872, allocations: 95.83 kB / 360.7 MB, free: 8.672 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/0.1898, allocations: 1.711 MB / 362.4 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007205/0.1906, allocations: 83.45 kB / 362.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.321e-05/0.1907, allocations: 19.94 kB / 362.5 MB, free: 6.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.1907, allocations: 4 kB / 362.5 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00156/0.1923, allocations: 494 kB / 363 MB, free: 6.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1923, allocations: 4 kB / 363 MB, free: 6.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003348/0.1926, allocations: 73.23 kB / 363.1 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.1933, allocations: 95.77 kB / 363.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002446/0.1957, allocations: 1.706 MB / 364.9 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005701/0.1964, allocations: 55.66 kB / 365 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.316e-05/0.1964, allocations: 20.06 kB / 365 MB, free: 4.141 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 (54): * Single equations (assignments): 52 * 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.0004312/0.1969, allocations: 192.1 kB / 365.2 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.197, allocations: 51.42 kB / 365.2 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.1989, allocations: 0.506 MB / 365.7 MB, free: 3.379 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.1989, allocations: 4 kB / 365.7 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1989, allocations: 4 kB / 365.7 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.1989, allocations: 3.984 kB / 365.7 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/0.2016, allocations: 1.072 MB / 366.8 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.2017, allocations: 0 / 366.8 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006621/0.2024, allocations: 75.89 kB / 366.9 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003509/0.2027, allocations: 68.81 kB / 367 MB, free: 2.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.996e-05/0.2028, allocations: 12 kB / 367 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002487/0.2053, allocations: 1.702 MB / 368.7 MB, free: 248 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.2053, allocations: 7.891 kB / 368.7 MB, free: 240 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/0.2078, allocations: 0.7632 MB / 369.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.2082, allocations: 160.5 kB / 369.6 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/0.2084, allocations: 12 kB / 369.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/0.209, allocations: 39.97 kB / 369.6 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.2092, allocations: 43.89 kB / 369.7 MB, free: 15.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/0.2092, allocations: 16 kB / 369.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004599/0.2097, allocations: 259.2 kB / 370 MB, free: 14.92 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.2097, allocations: 0 / 370 MB, free: 14.92 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001272/0.211, allocations: 251.2 kB / 370.2 MB, free: 14.67 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.i) * 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 (39): * Single equations (assignments): 32 * 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.000232/0.2112, allocations: 128.9 kB / 370.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002875/0.2141, allocations: 1.009 MB / 371.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.2142, allocations: 0 / 371.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009605/0.2152, allocations: 355.1 kB / 371.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007405/0.2159, allocations: 73.52 kB / 371.8 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.2193, allocations: 1.334 MB / 373.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.2199, allocations: 0.8597 MB / 373.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.2202, allocations: 43.42 kB / 374 MB, free: 10.75 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.2202, allocations: 0 / 374 MB, free: 10.75 MB / 314.7 MB Notification: Performance of Templates: time 0.01831/0.2385, allocations: 7.918 MB / 381.9 MB, free: 2.855 MB / 314.7 MB