Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadModel(Modelica): time 1.772/1.772, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.695e-05, allocations: 2.875 kB / 255.4 MB, free: 3.16 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07664/0.07668, allocations: 44.5 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3349/0.4116, allocations: 77.94 MB / 377.8 MB, free: 22.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002602/0.4119, allocations: 89.33 kB / 377.9 MB, free: 22.61 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02566/0.4376, allocations: 6.874 MB / 384.8 MB, free: 21.41 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.179e-06/0.4376, allocations: 0 / 384.8 MB, free: 21.41 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.5e-05/0.4376, allocations: 14.64 kB / 384.8 MB, free: 21.4 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001264/0.4389, allocations: 0.6911 MB / 385.5 MB, free: 20.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.439, allocations: 13.72 kB / 385.5 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.4392, allocations: 55.42 kB / 385.5 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.4398, allocations: 358.7 kB / 385.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.424e-05/0.4398, allocations: 36.69 kB / 385.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.353e-05/0.4399, allocations: 46.33 kB / 386 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008943/0.4409, allocations: 423 kB / 386.4 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.4409, allocations: 5.719 kB / 386.4 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.994e-05/0.441, allocations: 17.69 kB / 386.4 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.441, allocations: 9.875 kB / 386.4 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006689/0.4417, allocations: 271.5 kB / 386.7 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002928/0.4446, allocations: 1.669 MB / 388.4 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000732/0.4454, allocations: 276.3 kB / 388.6 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.4458, allocations: 150.6 kB / 388.8 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.4458, allocations: 3.906 kB / 388.8 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.4463, allocations: 233 kB / 389 MB, free: 19.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.76e-06/0.4463, allocations: 0 / 389 MB, free: 19.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007685/0.4471, allocations: 320.6 kB / 389.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.4472, allocations: 147.5 kB / 389.5 MB, free: 19.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.4476, allocations: 307.8 kB / 389.8 MB, free: 19.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.409e-05/0.4476, allocations: 40.39 kB / 389.8 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.4478, allocations: 266.9 kB / 390.1 MB, free: 18.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.922e-05/0.4479, allocations: 113.7 kB / 390.2 MB, free: 18.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.4479, allocations: 6.938 kB / 390.2 MB, free: 18.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.342e-05/0.448, allocations: 328.4 kB / 390.5 MB, free: 18.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002541/0.4483, allocations: 94.88 kB / 390.6 MB, free: 18.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.4486, allocations: 225.9 kB / 390.8 MB, free: 18.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002812/0.4489, allocations: 134.3 kB / 390.9 MB, free: 18.4 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.684e-06/0.4489, allocations: 0 / 390.9 MB, free: 18.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008539/0.4498, allocations: 411.3 kB / 391.3 MB, free: 18.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002876/0.4501, allocations: 1.433 MB / 392.8 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.4501, allocations: 3.906 kB / 392.8 MB, free: 16.8 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000357/0.4505, allocations: 80.59 kB / 392.9 MB, free: 16.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000339/0.4508, allocations: 63.52 kB / 392.9 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.4528, allocations: 1.753 MB / 394.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005718/0.4534, allocations: 64.66 kB / 394.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.423e-05/0.4535, allocations: 19.38 kB / 394.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.4535, allocations: 3.906 kB / 394.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008045/0.4543, allocations: 387.7 kB / 395.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.638e-06/0.4543, allocations: 3.875 kB / 395.1 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002855/0.4546, allocations: 73.91 kB / 395.2 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002862/0.4549, allocations: 61.38 kB / 395.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002376/0.4573, allocations: 1.741 MB / 397 MB, free: 29.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.4577, allocations: 52.88 kB / 397.1 MB, free: 29.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.4578, allocations: 23.5 kB / 397.1 MB, free: 29.91 MB / 330.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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 (43): * Single equations (assignments): 41 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.458, allocations: 149.5 kB / 397.2 MB, free: 29.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.4581, allocations: 39 kB / 397.3 MB, free: 29.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.4583, allocations: 46.08 kB / 397.3 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.4583, allocations: 3.906 kB / 397.3 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4583, allocations: 0 / 397.3 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.234e-06/0.4583, allocations: 7.609 kB / 397.3 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001612/0.4599, allocations: 0.9678 MB / 398.3 MB, free: 29.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.856e-06/0.46, allocations: 0 / 398.3 MB, free: 29.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.4602, allocations: 30.48 kB / 398.3 MB, free: 29.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002833/0.4605, allocations: 71.78 kB / 398.4 MB, free: 29.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.564e-05/0.4606, allocations: 10.27 kB / 398.4 MB, free: 29.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.4626, allocations: 1.686 MB / 400.1 MB, free: 27.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.323e-06/0.4626, allocations: 3.969 kB / 400.1 MB, free: 27.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.4637, allocations: 0.5605 MB / 400.7 MB, free: 27.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002194/0.4639, allocations: 146.7 kB / 400.8 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.775e-05/0.464, allocations: 10.97 kB / 400.8 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.4644, allocations: 34.09 kB / 400.8 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.4646, allocations: 39.25 kB / 400.9 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.678e-05/0.4646, allocations: 14.41 kB / 400.9 MB, free: 27.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000331/0.465, allocations: 235.5 kB / 401.1 MB, free: 27.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.04e-07/0.465, allocations: 0 / 401.1 MB, free: 27.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001072/0.4661, allocations: 209.2 kB / 401.3 MB, free: 27.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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,meanVoltage.y) * 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 (29): * Single equations (assignments): 22 * 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.0001986/0.4663, allocations: 125.5 kB / 401.5 MB, free: 27.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001414/0.4677, allocations: 0.7988 MB / 402.3 MB, free: 27.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.4677, allocations: 4.219 kB / 402.3 MB, free: 27.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.4682, allocations: 271.8 kB / 402.5 MB, free: 26.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.4687, allocations: 56.97 kB / 402.6 MB, free: 26.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.4701, allocations: 0.6225 MB / 403.2 MB, free: 26.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/0.4707, allocations: 0.8266 MB / 404 MB, free: 25.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.4708, allocations: 37.86 kB / 404.1 MB, free: 25.89 MB / 330.7 MB Notification: Performance of SimCode: time 1.786e-06/0.4708, allocations: 0 / 404.1 MB, free: 25.89 MB / 330.7 MB Notification: Performance of Templates: time 0.01021/0.4811, allocations: 6.658 MB / 410.7 MB, free: 25.5 MB / 330.7 MB