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 1.878/1.878, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.866e-05/2.876e-05, allocations: 5.031 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07652/0.07657, allocations: 44.5 MB / 299.9 MB, free: 6.609 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3365/0.4131, allocations: 77.62 MB / 377.5 MB, free: 22.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4133, allocations: 85.69 kB / 377.6 MB, free: 22.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02401/0.4374, allocations: 6.541 MB / 384.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.139e-06/0.4374, allocations: 1.375 kB / 384.1 MB, free: 21.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.607e-05/0.4375, allocations: 16.91 kB / 384.1 MB, free: 21.33 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001176/0.4387, allocations: 0.6805 MB / 384.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.4387, allocations: 8.25 kB / 384.8 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001286/0.4388, allocations: 57.8 kB / 384.9 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.4394, allocations: 358.5 kB / 385.2 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.4395, allocations: 26.44 kB / 385.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.4396, allocations: 43.75 kB / 385.3 MB, free: 20.55 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008381/0.4404, allocations: 402.9 kB / 385.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.4405, allocations: 0 / 385.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.631e-05/0.4405, allocations: 18.27 kB / 385.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.4406, allocations: 9.594 kB / 385.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006218/0.4412, allocations: 258 kB / 386 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002698/0.4439, allocations: 1.587 MB / 387.6 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000675/0.4446, allocations: 259.9 kB / 387.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003648/0.445, allocations: 145.6 kB / 388 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.4451, allocations: 4.25 kB / 388 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.4455, allocations: 230.3 kB / 388.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.682e-06/0.4456, allocations: 0 / 388.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007589/0.4463, allocations: 315.9 kB / 388.5 MB, free: 19.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/0.4464, allocations: 135.8 kB / 388.6 MB, free: 19.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/0.4468, allocations: 303.2 kB / 388.9 MB, free: 19.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.791e-05/0.4469, allocations: 36.17 kB / 389 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.4471, allocations: 267.1 kB / 389.2 MB, free: 18.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.526e-05/0.4472, allocations: 107.1 kB / 389.3 MB, free: 18.9 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.401e-05/0.4472, allocations: 7.719 kB / 389.3 MB, free: 18.9 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.403e-05/0.4473, allocations: 325.9 kB / 389.7 MB, free: 18.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.4475, allocations: 93.44 kB / 389.7 MB, free: 18.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.4478, allocations: 215.6 kB / 390 MB, free: 18.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.4481, allocations: 138.6 kB / 390.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.926e-06/0.4481, allocations: 0 / 390.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000849/0.449, allocations: 404.4 kB / 390.5 MB, free: 18.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003011/0.4493, allocations: 1.426 MB / 391.9 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4494, allocations: 3.906 kB / 391.9 MB, free: 16.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003877/0.4498, allocations: 82.92 kB / 392 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.4501, allocations: 61.73 kB / 392.1 MB, free: 16.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00202/0.4521, allocations: 1.802 MB / 393.9 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005634/0.4527, allocations: 70.58 kB / 393.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.8e-05/0.4527, allocations: 16.09 kB / 393.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.4528, allocations: 4.781 kB / 393.9 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008046/0.4536, allocations: 373.9 kB / 394.3 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.706e-06/0.4536, allocations: 7.906 kB / 394.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003064/0.4539, allocations: 77.72 kB / 394.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002403/0.4542, allocations: 52.91 kB / 394.4 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002508/0.4567, allocations: 1.806 MB / 396.3 MB, free: 29.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000356/0.4571, allocations: 49.89 kB / 396.3 MB, free: 29.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.873e-05/0.4572, allocations: 19.22 kB / 396.3 MB, free: 29.89 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 (39): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002087/0.4574, allocations: 137.2 kB / 396.5 MB, free: 29.78 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.4575, allocations: 38.84 kB / 396.5 MB, free: 29.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.4576, allocations: 44.59 kB / 396.5 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.001e-06/0.4576, allocations: 11.84 kB / 396.5 MB, free: 29.74 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.834e-06/0.4577, allocations: 0 / 396.5 MB, free: 29.74 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.056e-06/0.4577, allocations: 7.469 kB / 396.6 MB, free: 29.73 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001589/0.4593, allocations: 0.9478 MB / 397.5 MB, free: 29.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.504e-06/0.4593, allocations: 0 / 397.5 MB, free: 29.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.4595, allocations: 31.05 kB / 397.5 MB, free: 29.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003116/0.4598, allocations: 75.31 kB / 397.6 MB, free: 29.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.328e-05/0.4599, allocations: 7.703 kB / 397.6 MB, free: 29.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.462, allocations: 1.747 MB / 399.4 MB, free: 27.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.933e-06/0.462, allocations: 0 / 399.4 MB, free: 27.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.4631, allocations: 0.5517 MB / 399.9 MB, free: 27.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/0.4633, allocations: 142.4 kB / 400.1 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-05/0.4634, allocations: 11.47 kB / 400.1 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.4638, allocations: 29.27 kB / 400.1 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.4639, allocations: 34.16 kB / 400.1 MB, free: 27.61 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.5e-05/0.464, allocations: 14.81 kB / 400.1 MB, free: 27.61 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003308/0.4643, allocations: 238 kB / 400.4 MB, free: 27.53 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.4643, allocations: 0 / 400.4 MB, free: 27.53 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001088/0.4654, allocations: 200.6 kB / 400.6 MB, free: 27.5 MB / 330.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.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 (26): * Single equations (assignments): 19 * 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.0001985/0.4656, allocations: 125.7 kB / 400.7 MB, free: 27.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001462/0.4671, allocations: 0.7941 MB / 401.5 MB, free: 27.03 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.901e-06/0.4671, allocations: 5.656 kB / 401.5 MB, free: 27.03 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00047/0.4676, allocations: 269.9 kB / 401.8 MB, free: 26.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005166/0.4682, allocations: 63.66 kB / 401.8 MB, free: 26.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.4696, allocations: 0.5481 MB / 402.4 MB, free: 26.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005201/0.4702, allocations: 0.8243 MB / 403.2 MB, free: 25.96 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.4703, allocations: 27.06 kB / 403.2 MB, free: 25.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.833e-06/0.4703, allocations: 0 / 403.2 MB, free: 25.95 MB / 330.7 MB Notification: Performance of Templates: time 0.009902/0.4802, allocations: 6.447 MB / 409.7 MB, free: 25.56 MB / 330.7 MB