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.927/1.927, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.075e-05, allocations: 6.797 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0766/0.07665, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3264/0.4031, allocations: 77.92 MB / 377.8 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.4034, allocations: 79.62 kB / 377.9 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02646/0.4299, allocations: 6.886 MB / 384.7 MB, free: 21.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.911e-06/0.43, allocations: 0 / 384.7 MB, free: 21.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.711e-05/0.43, allocations: 17.34 kB / 384.8 MB, free: 21.23 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.001308/0.4313, allocations: 0.6919 MB / 385.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4314, allocations: 8.5 kB / 385.5 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.4316, allocations: 59.02 kB / 385.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.4322, allocations: 356.7 kB / 385.9 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.052e-05/0.4322, allocations: 36.86 kB / 385.9 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-05/0.4323, allocations: 44.5 kB / 385.9 MB, free: 20.44 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009166/0.4333, allocations: 426.4 kB / 386.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.4333, allocations: 5.594 kB / 386.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.872e-05/0.4334, allocations: 16.5 kB / 386.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.4334, allocations: 11.44 kB / 386.4 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006984/0.4341, allocations: 274.3 kB / 386.7 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002991/0.4371, allocations: 1.675 MB / 388.3 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007335/0.4379, allocations: 281.9 kB / 388.6 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.4383, allocations: 160.5 kB / 388.8 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.4383, allocations: 3.906 kB / 388.8 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000468/0.4388, allocations: 223.4 kB / 389 MB, free: 19.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.45e-06/0.4388, allocations: 0 / 389 MB, free: 19.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007888/0.4396, allocations: 328.9 kB / 389.3 MB, free: 19.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.4397, allocations: 138.2 kB / 389.4 MB, free: 19.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004441/0.4402, allocations: 314.7 kB / 389.8 MB, free: 19.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.4402, allocations: 36.67 kB / 389.8 MB, free: 19.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.4404, allocations: 266.8 kB / 390.1 MB, free: 18.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.4405, allocations: 108.2 kB / 390.2 MB, free: 18.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.4405, allocations: 11.31 kB / 390.2 MB, free: 18.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.4406, allocations: 328 kB / 390.5 MB, free: 18.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.4409, allocations: 98.09 kB / 390.6 MB, free: 18.42 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.4412, allocations: 226.1 kB / 390.8 MB, free: 18.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.4414, allocations: 138.2 kB / 390.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.742e-06/0.4415, allocations: 0 / 390.9 MB, free: 18.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008437/0.4423, allocations: 423.4 kB / 391.4 MB, free: 18.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002879/0.4426, allocations: 1.426 MB / 392.8 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.4426, allocations: 3.938 kB / 392.8 MB, free: 16.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/0.443, allocations: 80.78 kB / 392.9 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.4433, allocations: 68.83 kB / 392.9 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.4452, allocations: 1.752 MB / 394.7 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.4458, allocations: 75.86 kB / 394.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.4459, allocations: 15.69 kB / 394.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.4459, allocations: 3.875 kB / 394.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008323/0.4467, allocations: 387.1 kB / 395.2 MB, free: 15.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.734e-06/0.4468, allocations: 7.969 kB / 395.2 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002889/0.4471, allocations: 72.84 kB / 395.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.4474, allocations: 64.73 kB / 395.3 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.4498, allocations: 1.745 MB / 397 MB, free: 29.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.4503, allocations: 49.53 kB / 397.1 MB, free: 29.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.4503, allocations: 23.16 kB / 397.1 MB, free: 29.73 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.0002221/0.4506, allocations: 140.1 kB / 397.2 MB, free: 29.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.4507, allocations: 39.09 kB / 397.3 MB, free: 29.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.4508, allocations: 44.66 kB / 397.3 MB, free: 29.58 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.448e-06/0.4509, allocations: 7 kB / 397.3 MB, free: 29.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.448e-06/0.4509, allocations: 11.92 kB / 397.3 MB, free: 29.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.4509, allocations: 0 / 397.3 MB, free: 29.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.4526, allocations: 0.9708 MB / 398.3 MB, free: 29.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.033e-06/0.4526, allocations: 0 / 398.3 MB, free: 29.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002708/0.4529, allocations: 34.42 kB / 398.4 MB, free: 29.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000293/0.4532, allocations: 69.31 kB / 398.4 MB, free: 29.14 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-05/0.4533, allocations: 10.78 kB / 398.4 MB, free: 29.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/0.4553, allocations: 1.686 MB / 400.1 MB, free: 27.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.19e-06/0.4554, allocations: 0 / 400.1 MB, free: 27.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.4564, allocations: 0.5636 MB / 400.7 MB, free: 27.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002581/0.4567, allocations: 151.5 kB / 400.8 MB, free: 27.44 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.101e-05/0.4568, allocations: 7.469 kB / 400.8 MB, free: 27.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.4572, allocations: 32.42 kB / 400.9 MB, free: 27.44 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.4574, allocations: 39.36 kB / 400.9 MB, free: 27.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.4574, allocations: 14.83 kB / 400.9 MB, free: 27.44 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003765/0.4578, allocations: 235.9 kB / 401.2 MB, free: 27.36 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.035e-06/0.4578, allocations: 3.938 kB / 401.2 MB, free: 27.36 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001143/0.459, allocations: 209.1 kB / 401.4 MB, free: 27.32 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.0002181/0.4592, allocations: 121.9 kB / 401.5 MB, free: 27.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4608, allocations: 0.8257 MB / 402.3 MB, free: 26.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.4608, allocations: 1.5 kB / 402.3 MB, free: 26.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.4613, allocations: 279.7 kB / 402.6 MB, free: 26.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005717/0.4619, allocations: 72.16 kB / 402.6 MB, free: 26.69 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001611/0.4636, allocations: 0.6149 MB / 403.3 MB, free: 26.39 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005433/0.4641, allocations: 0.8267 MB / 404.1 MB, free: 25.69 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.4643, allocations: 30.84 kB / 404.1 MB, free: 25.68 MB / 330.7 MB Notification: Performance of SimCode: time 2.234e-06/0.4643, allocations: 0 / 404.1 MB, free: 25.68 MB / 330.7 MB Notification: Performance of Templates: time 0.01032/0.4746, allocations: 6.684 MB / 410.8 MB, free: 25.29 MB / 330.7 MB