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 2.098/2.098, allocations: 194.9 MB / 211.2 MB, free: 8.066 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.137e-05/3.127e-05, allocations: 7.984 kB / 258.8 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3073, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.005096/0.3124, allocations: 2.915 MB / 306.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.3149, allocations: 0.8462 MB / 307.1 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003426/0.3153, allocations: 18.16 kB / 307.1 MB, free: 9.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002147/0.3156, allocations: 55.91 kB / 307.1 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004335/0.316, allocations: 125.1 kB / 307.3 MB, free: 9.555 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006412/0.3167, allocations: 128.1 kB / 307.4 MB, free: 9.453 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000796/0.3175, allocations: 299.6 kB / 307.7 MB, free: 9.234 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000363/0.3179, allocations: 132.2 kB / 307.8 MB, free: 9.121 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.3182, allocations: 147.6 kB / 308 MB, free: 8.977 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003257/0.3185, allocations: 167.3 kB / 308.1 MB, free: 8.812 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3186, allocations: 20 kB / 308.1 MB, free: 8.793 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.016e-05/0.3187, allocations: 16 kB / 308.2 MB, free: 8.777 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.3188, allocations: 75.67 kB / 308.2 MB, free: 8.703 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.319, allocations: 40 kB / 308.3 MB, free: 8.664 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006967/0.3197, allocations: 448.6 kB / 308.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3197, allocations: 0 / 308.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3197, allocations: 0 / 308.7 MB, free: 8.227 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.797e-05/0.3198, allocations: 4 kB / 308.7 MB, free: 8.223 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001873/0.3216, allocations: 0.6952 MB / 309.4 MB, free: 7.473 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.3217, allocations: 11.97 kB / 309.4 MB, free: 7.461 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.3219, allocations: 51.44 kB / 309.5 MB, free: 7.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007965/0.3227, allocations: 371 kB / 309.8 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.3228, allocations: 40.98 kB / 309.9 MB, free: 6.969 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.323, allocations: 40 kB / 309.9 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.3242, allocations: 448.7 kB / 310.4 MB, free: 6.473 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.3243, allocations: 4 kB / 310.4 MB, free: 6.469 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.447e-05/0.3244, allocations: 24 kB / 310.4 MB, free: 6.445 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.3244, allocations: 8 kB / 310.4 MB, free: 6.438 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.3255, allocations: 311.8 kB / 310.7 MB, free: 6.129 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00373/0.3293, allocations: 1.67 MB / 312.4 MB, free: 4.359 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001109/0.3304, allocations: 311.6 kB / 312.7 MB, free: 4.047 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.3305, allocations: 4.281 kB / 312.7 MB, free: 4.043 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007347/0.3312, allocations: 253.1 kB / 312.9 MB, free: 3.777 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 2.916e-06/0.3313, allocations: 0 / 312.9 MB, free: 3.777 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.002611/0.3339, allocations: 0.631 MB / 313.5 MB, free: 3.117 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/0.334, allocations: 114.7 kB / 313.7 MB, free: 2.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005646/0.3346, allocations: 304.8 kB / 314 MB, free: 2.676 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.858e-05/0.3347, allocations: 33.7 kB / 314 MB, free: 2.637 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.3349, allocations: 274.8 kB / 314.3 MB, free: 2.367 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.3351, allocations: 110.5 kB / 314.4 MB, free: 2.258 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.3351, allocations: 12 kB / 314.4 MB, free: 2.246 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3353, allocations: 322.8 kB / 314.7 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000452/0.3357, allocations: 120.8 kB / 314.8 MB, free: 1.805 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.3363, allocations: 243.8 kB / 315.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.3369, allocations: 174.6 kB / 315.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.3369, allocations: 11.89 kB / 315.2 MB, free: 1.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001407/0.3383, allocations: 476.5 kB / 315.7 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006454/0.339, allocations: 1.42 MB / 317.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.339, allocations: 4 kB / 317.1 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004512/0.3395, allocations: 72.83 kB / 317.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005043/0.34, allocations: 75.83 kB / 317.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.3426, allocations: 1.71 MB / 319 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.3433, allocations: 47.67 kB / 319 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-05/0.3433, allocations: 16.06 kB / 319 MB, free: 13.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.3434, allocations: 8 kB / 319 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001204/0.3446, allocations: 418.4 kB / 319.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.3446, allocations: 7.953 kB / 319.5 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003308/0.3449, allocations: 68.97 kB / 319.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004068/0.3454, allocations: 67.84 kB / 319.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/0.3478, allocations: 1.699 MB / 321.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.3484, allocations: 47.67 kB / 321.3 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.513e-05/0.3484, allocations: 24.06 kB / 321.4 MB, free: 10.77 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 (45): * Single equations (assignments): 43 * 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.0003871/0.3488, allocations: 179.9 kB / 321.5 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.349, allocations: 39.53 kB / 321.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.3491, allocations: 40.06 kB / 321.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.3491, allocations: 4 kB / 321.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3491, allocations: 0 / 321.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.3491, allocations: 7.984 kB / 321.6 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.3515, allocations: 0.9214 MB / 322.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.3515, allocations: 4.031 kB / 322.6 MB, free: 9.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003929/0.3519, allocations: 39.97 kB / 322.6 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003749/0.3523, allocations: 72.8 kB / 322.7 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.3524, allocations: 8 kB / 322.7 MB, free: 9.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002439/0.3548, allocations: 1.71 MB / 324.4 MB, free: 7.539 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3549, allocations: 4.031 kB / 324.4 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.3567, allocations: 0.6402 MB / 325 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000269/0.357, allocations: 140.7 kB / 325.2 MB, free: 6.707 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.3572, allocations: 12.2 kB / 325.2 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.3577, allocations: 35.97 kB / 325.2 MB, free: 6.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.3578, allocations: 35.95 kB / 325.2 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.95e-05/0.3579, allocations: 15.92 kB / 325.3 MB, free: 6.609 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003936/0.3583, allocations: 243.1 kB / 325.5 MB, free: 6.379 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-07/0.3583, allocations: 0 / 325.5 MB, free: 6.379 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00116/0.3595, allocations: 203.4 kB / 325.7 MB, free: 6.18 MB / 266.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.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 (30): * Single equations (assignments): 23 * 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.0002247/0.3597, allocations: 126.9 kB / 325.8 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002249/0.362, allocations: 0.8831 MB / 326.7 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.362, allocations: 0 / 326.7 MB, free: 5.109 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007776/0.3628, allocations: 307.7 kB / 327 MB, free: 4.797 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006507/0.3635, allocations: 57.5 kB / 327.1 MB, free: 4.738 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.3664, allocations: 1.048 MB / 328.1 MB, free: 3.656 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005388/0.367, allocations: 0.8274 MB / 328.9 MB, free: 2.805 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.3672, allocations: 31.44 kB / 329 MB, free: 2.773 MB / 266.7 MB Notification: Performance of SimCode: time 1.453e-06/0.3672, allocations: 0 / 329 MB, free: 2.773 MB / 266.7 MB Notification: Performance of Templates: time 0.01561/0.3828, allocations: 6.707 MB / 335.7 MB, free: 12.07 MB / 282.7 MB