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_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 194.9 MB / 210.6 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.272e-05/2.236e-05, allocations: 0 / 258.8 MB, free: 8.027 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2955, allocations: 44.51 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004763/0.3003, allocations: 2.825 MB / 306.2 MB, free: 10.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.3025, allocations: 0.832 MB / 307 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002435/0.3028, allocations: 15.94 kB / 307 MB, free: 9.906 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.303, allocations: 55.53 kB / 307.1 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003497/0.3033, allocations: 123.6 kB / 307.2 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005182/0.3039, allocations: 123.8 kB / 307.3 MB, free: 9.609 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.3044, allocations: 283.2 kB / 307.6 MB, free: 9.332 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003219/0.3047, allocations: 123.9 kB / 307.7 MB, free: 9.203 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002158/0.305, allocations: 139.6 kB / 307.8 MB, free: 9.066 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002916/0.3053, allocations: 159.4 kB / 308 MB, free: 8.91 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.654e-05/0.3054, allocations: 16 kB / 308 MB, free: 8.895 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.356e-05/0.3055, allocations: 20 kB / 308 MB, free: 8.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.3056, allocations: 67.67 kB / 308.1 MB, free: 8.809 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.3057, allocations: 36 kB / 308.1 MB, free: 8.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000585/0.3063, allocations: 438.8 kB / 308.6 MB, free: 8.344 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3063, allocations: 0 / 308.6 MB, free: 8.344 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3063, allocations: 0 / 308.6 MB, free: 8.344 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.3064, allocations: 0 / 308.6 MB, free: 8.344 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.001682/0.3081, allocations: 0.6744 MB / 309.2 MB, free: 7.613 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.3081, allocations: 12.03 kB / 309.3 MB, free: 7.602 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.3083, allocations: 51.34 kB / 309.3 MB, free: 7.551 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007107/0.309, allocations: 359.1 kB / 309.7 MB, free: 7.164 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.703e-05/0.3091, allocations: 37 kB / 309.7 MB, free: 7.129 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.3092, allocations: 43.91 kB / 309.7 MB, free: 7.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.3104, allocations: 436.7 kB / 310.2 MB, free: 6.637 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.3104, allocations: 3.938 kB / 310.2 MB, free: 6.633 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.3105, allocations: 16 kB / 310.2 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.3105, allocations: 8 kB / 310.2 MB, free: 6.609 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3116, allocations: 299.8 kB / 310.5 MB, free: 6.316 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.3149, allocations: 1.585 MB / 312.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009699/0.3159, allocations: 286.8 kB / 312.3 MB, free: 4.344 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.316, allocations: 4 kB / 312.4 MB, free: 4.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006815/0.3167, allocations: 240.9 kB / 312.6 MB, free: 4.086 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 2.705e-06/0.3167, allocations: 0 / 312.6 MB, free: 4.086 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.00256/0.3193, allocations: 0.639 MB / 313.2 MB, free: 3.418 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/0.3194, allocations: 114.8 kB / 313.3 MB, free: 3.281 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004824/0.3198, allocations: 299.5 kB / 313.6 MB, free: 2.984 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.3199, allocations: 41.7 kB / 313.7 MB, free: 2.938 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/0.3201, allocations: 208.5 kB / 313.9 MB, free: 2.727 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001238/0.3203, allocations: 102.5 kB / 314 MB, free: 2.625 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.3203, allocations: 8 kB / 314 MB, free: 2.617 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3205, allocations: 346.8 kB / 314.3 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.3209, allocations: 116.8 kB / 314.4 MB, free: 2.156 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005158/0.3214, allocations: 247.7 kB / 314.7 MB, free: 1.855 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004644/0.3219, allocations: 153.7 kB / 314.8 MB, free: 1.699 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3219, allocations: 0 / 314.8 MB, free: 1.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001342/0.3233, allocations: 487.7 kB / 315.3 MB, free: 1.207 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006139/0.3239, allocations: 1.431 MB / 316.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3239, allocations: 4 kB / 316.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004593/0.3244, allocations: 76.81 kB / 316.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004184/0.3248, allocations: 59.91 kB / 316.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/0.3285, allocations: 1.784 MB / 318.7 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009003/0.3294, allocations: 55.61 kB / 318.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.802e-05/0.3295, allocations: 19.98 kB / 318.7 MB, free: 13.53 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3296, allocations: 4 kB / 318.7 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001897/0.3315, allocations: 398.2 kB / 319.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.3315, allocations: 4 kB / 319.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000624/0.3322, allocations: 89.36 kB / 319.2 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/0.3328, allocations: 55.84 kB / 319.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003999/0.3368, allocations: 1.777 MB / 321 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006889/0.3376, allocations: 47.67 kB / 321.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.883e-05/0.3376, allocations: 16 kB / 321.1 MB, free: 11 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.0004683/0.3381, allocations: 183.9 kB / 321.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.3383, allocations: 39.52 kB / 321.3 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002006/0.3385, allocations: 44.06 kB / 321.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.3385, allocations: 4 kB / 321.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.3385, allocations: 3.984 kB / 321.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.3386, allocations: 0 / 321.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002983/0.3416, allocations: 0.9048 MB / 322.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/0.3416, allocations: 4 kB / 322.3 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004457/0.3421, allocations: 35.95 kB / 322.3 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005851/0.3427, allocations: 76.8 kB / 322.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/0.3428, allocations: 8 kB / 322.4 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.3469, allocations: 1.784 MB / 324.2 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.347, allocations: 0 / 324.2 MB, free: 7.707 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.3487, allocations: 0.6232 MB / 324.8 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002437/0.349, allocations: 140.7 kB / 324.9 MB, free: 6.898 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.3491, allocations: 19.94 kB / 325 MB, free: 6.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.3496, allocations: 23.98 kB / 325 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.3497, allocations: 32.02 kB / 325 MB, free: 6.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.594e-05/0.3498, allocations: 19.98 kB / 325 MB, free: 6.805 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003677/0.3502, allocations: 223.1 kB / 325.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.3502, allocations: 0 / 325.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001752/0.352, allocations: 203.4 kB / 325.5 MB, free: 6.391 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.0002168/0.3522, allocations: 114.9 kB / 325.6 MB, free: 6.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002277/0.3545, allocations: 0.8876 MB / 326.5 MB, free: 5.332 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.3545, allocations: 0 / 326.5 MB, free: 5.332 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007647/0.3553, allocations: 307.4 kB / 326.8 MB, free: 5.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006119/0.3559, allocations: 61.33 kB / 326.8 MB, free: 4.961 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002572/0.3585, allocations: 0.9084 MB / 327.7 MB, free: 4.023 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.3591, allocations: 0.82 MB / 328.5 MB, free: 3.176 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004353/0.3595, allocations: 59.25 kB / 328.6 MB, free: 3.117 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.991e-05/0.3596, allocations: 27.44 kB / 328.6 MB, free: 3.09 MB / 266.7 MB Notification: Performance of SimCode: time 1.263e-06/0.3597, allocations: 96 / 328.6 MB, free: 3.09 MB / 266.7 MB Notification: Performance of Templates: time 0.0189/0.3786, allocations: 6.218 MB / 334.8 MB, free: 12.91 MB / 282.7 MB