Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.279e-05, allocations: 7.984 kB / 258.8 MB, free: 8.676 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3454, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004778/0.3503, allocations: 2.826 MB / 306.1 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002245/0.3526, allocations: 0.8383 MB / 307 MB, free: 9.828 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002538/0.3528, allocations: 18.5 kB / 307 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001907/0.3531, allocations: 51.75 kB / 307 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.3535, allocations: 119.8 kB / 307.2 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005621/0.354, allocations: 119.8 kB / 307.3 MB, free: 9.57 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005452/0.3546, allocations: 292.1 kB / 307.6 MB, free: 9.355 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003221/0.3549, allocations: 114.5 kB / 307.7 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002374/0.3552, allocations: 140.9 kB / 307.8 MB, free: 9.172 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002963/0.3555, allocations: 159.4 kB / 308 MB, free: 9.016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.3556, allocations: 16 kB / 308 MB, free: 9 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.3557, allocations: 16 kB / 308 MB, free: 8.984 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.3558, allocations: 71.69 kB / 308.1 MB, free: 8.914 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.3559, allocations: 36 kB / 308.1 MB, free: 8.879 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000593/0.3565, allocations: 440.6 kB / 308.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3566, allocations: 0 / 308.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.634e-06/0.3566, allocations: 0 / 308.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.3566, allocations: 4 kB / 308.5 MB, free: 8.445 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0017/0.3583, allocations: 0.6705 MB / 309.2 MB, free: 7.719 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3584, allocations: 8.031 kB / 309.2 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.3585, allocations: 55.34 kB / 309.3 MB, free: 7.656 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007102/0.3593, allocations: 355.1 kB / 309.6 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.3594, allocations: 44.98 kB / 309.7 MB, free: 7.23 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.3595, allocations: 43.84 kB / 309.7 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3607, allocations: 436.7 kB / 310.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.3607, allocations: 0 / 310.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.548e-05/0.3608, allocations: 19.94 kB / 310.2 MB, free: 6.719 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.3608, allocations: 12 kB / 310.2 MB, free: 6.707 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009923/0.3618, allocations: 295.9 kB / 310.5 MB, free: 6.418 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003319/0.3652, allocations: 1.585 MB / 312 MB, free: 4.734 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009852/0.3662, allocations: 295.6 kB / 312.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.3662, allocations: 0 / 312.3 MB, free: 4.438 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006915/0.3669, allocations: 244.9 kB / 312.6 MB, free: 4.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 2.284e-06/0.367, allocations: 0 / 312.6 MB, free: 4.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.002572/0.3695, allocations: 0.6351 MB / 313.2 MB, free: 3.516 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.254e-05/0.3696, allocations: 110.8 kB / 313.3 MB, free: 3.383 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005126/0.3702, allocations: 295.6 kB / 313.6 MB, free: 3.09 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.484e-05/0.3702, allocations: 41.69 kB / 313.6 MB, free: 3.043 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.3705, allocations: 255 kB / 313.9 MB, free: 2.789 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.3706, allocations: 102.5 kB / 314 MB, free: 2.688 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.3706, allocations: 12 kB / 314 MB, free: 2.676 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3708, allocations: 326.8 kB / 314.3 MB, free: 2.348 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.3712, allocations: 112.8 kB / 314.4 MB, free: 2.238 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005482/0.3718, allocations: 247.6 kB / 314.7 MB, free: 1.938 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004764/0.3723, allocations: 161.6 kB / 314.8 MB, free: 1.773 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3723, allocations: 0 / 314.8 MB, free: 1.773 MB / 250.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0013/0.3736, allocations: 459.8 kB / 315.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006208/0.3742, allocations: 1.427 MB / 316.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3743, allocations: 4 kB / 316.7 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004525/0.3747, allocations: 80.81 kB / 316.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000401/0.3751, allocations: 59.91 kB / 316.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/0.3778, allocations: 1.784 MB / 318.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.3784, allocations: 59.67 kB / 318.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.3784, allocations: 20 kB / 318.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.3785, allocations: 5.406 kB / 318.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00113/0.3796, allocations: 402.5 kB / 319.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3796, allocations: 4 kB / 319.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.38, allocations: 84.75 kB / 319.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003443/0.3804, allocations: 51.86 kB / 319.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002565/0.3829, allocations: 1.761 MB / 321 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004128/0.3834, allocations: 47.83 kB / 321.1 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.3834, allocations: 16 kB / 321.1 MB, free: 11.12 MB / 266.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.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 (41): * Single equations (assignments): 39 * 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.0003759/0.3838, allocations: 175.9 kB / 321.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.3839, allocations: 39.53 kB / 321.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3841, allocations: 44.44 kB / 321.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.3841, allocations: 8 kB / 321.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3841, allocations: 0 / 321.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.3841, allocations: 0 / 321.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.3862, allocations: 0.9164 MB / 322.2 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.3862, allocations: 0 / 322.2 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/0.3865, allocations: 35.97 kB / 322.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003717/0.3869, allocations: 72.75 kB / 322.4 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.762e-05/0.387, allocations: 8 kB / 322.4 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002635/0.3896, allocations: 1.792 MB / 324.2 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3897, allocations: 0 / 324.2 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.3914, allocations: 0.6153 MB / 324.8 MB, free: 7.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000265/0.3917, allocations: 144.6 kB / 324.9 MB, free: 7.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.3918, allocations: 15.95 kB / 324.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.3923, allocations: 32.05 kB / 325 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3925, allocations: 31.94 kB / 325 MB, free: 6.941 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/0.3925, allocations: 12 kB / 325 MB, free: 6.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003553/0.3929, allocations: 227.1 kB / 325.2 MB, free: 6.707 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3929, allocations: 0 / 325.2 MB, free: 6.707 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00105/0.3939, allocations: 199.5 kB / 325.4 MB, free: 6.512 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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,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 (27): * Single equations (assignments): 20 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001984/0.3942, allocations: 114.9 kB / 325.5 MB, free: 6.391 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.3964, allocations: 0.8784 MB / 326.4 MB, free: 5.465 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.832e-06/0.3965, allocations: 4.25 kB / 326.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007646/0.3973, allocations: 306.5 kB / 326.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005983/0.3979, allocations: 65.47 kB / 326.8 MB, free: 5.082 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.4004, allocations: 0.9335 MB / 327.7 MB, free: 4.109 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.401, allocations: 0.8313 MB / 328.5 MB, free: 3.254 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.4011, allocations: 27.44 kB / 328.6 MB, free: 3.227 MB / 266.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4011, allocations: 0 / 328.6 MB, free: 3.227 MB / 266.7 MB Notification: Performance of Templates: time 0.01448/0.4156, allocations: 6.452 MB / 335 MB, free: 12.78 MB / 282.7 MB