Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 225.8 MB / 239.4 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.769e-05/2.775e-05, allocations: 8 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1284, allocations: 50.42 MB / 343.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3588/0.4872, allocations: 86 MB / 429.1 MB, free: 8.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.4875, allocations: 78.58 kB / 429.2 MB, free: 8.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03905/0.5266, allocations: 9.711 MB / 438.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.069e-06/0.5266, allocations: 0 / 438.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.276e-05/0.5267, allocations: 12 kB / 438.9 MB, free: 15.91 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001589/0.5283, allocations: 0.7657 MB / 439.7 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.5284, allocations: 12.03 kB / 439.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.5285, allocations: 63.25 kB / 439.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007635/0.5293, allocations: 396.4 kB / 440.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.106e-05/0.5294, allocations: 42.19 kB / 440.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.5295, allocations: 53.06 kB / 440.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.5305, allocations: 467.5 kB / 440.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.5306, allocations: 3.938 kB / 440.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.433e-05/0.5307, allocations: 18.94 kB / 440.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.5307, allocations: 12 kB / 440.7 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007811/0.5315, allocations: 296.2 kB / 441 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003479/0.535, allocations: 1.782 MB / 442.8 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.5361, allocations: 370.2 kB / 443.1 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.5367, allocations: 206.4 kB / 443.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.5367, allocations: 15.86 kB / 443.4 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005659/0.5373, allocations: 255.8 kB / 443.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.588e-06/0.5373, allocations: 0 / 443.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009308/0.5383, allocations: 365.1 kB / 444 MB, free: 11.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.5384, allocations: 114.6 kB / 444.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005278/0.5389, allocations: 328.2 kB / 444.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.847e-05/0.539, allocations: 36.52 kB / 444.4 MB, free: 11.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.5393, allocations: 247.9 kB / 444.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.5395, allocations: 126.6 kB / 444.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.682e-05/0.5395, allocations: 15.44 kB / 444.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.5397, allocations: 352.2 kB / 445.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/0.54, allocations: 111.8 kB / 445.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004161/0.5405, allocations: 232.3 kB / 445.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003696/0.5409, allocations: 159.2 kB / 445.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.581e-06/0.5409, allocations: 0 / 445.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001082/0.542, allocations: 470.4 kB / 446.1 MB, free: 9.832 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007706/0.5428, allocations: 1.342 MB / 447.5 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.5428, allocations: 4 kB / 447.5 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003473/0.5432, allocations: 69.52 kB / 447.5 MB, free: 8.352 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004796/0.5436, allocations: 95.19 kB / 447.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/0.546, allocations: 1.691 MB / 449.3 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005108/0.5465, allocations: 62.41 kB / 449.4 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.5466, allocations: 19.75 kB / 449.4 MB, free: 6.555 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.5466, allocations: 4 kB / 449.4 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001027/0.5476, allocations: 423.5 kB / 449.8 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.5477, allocations: 4 kB / 449.8 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002912/0.548, allocations: 71.86 kB / 449.9 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004271/0.5484, allocations: 86.83 kB / 450 MB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002198/0.5506, allocations: 1.707 MB / 451.7 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000463/0.5511, allocations: 49.17 kB / 451.7 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/0.5512, allocations: 23.44 kB / 451.7 MB, free: 4.379 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (50): * Single equations (assignments): 48 * 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.0002045/0.5514, allocations: 144.3 kB / 451.9 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.5515, allocations: 43.44 kB / 451.9 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009933/0.5525, allocations: 402.6 kB / 452.3 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.5526, allocations: 11.94 kB / 452.3 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.723e-06/0.5526, allocations: 0 / 452.3 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.231e-06/0.5526, allocations: 3.938 kB / 452.3 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.5546, allocations: 0.9913 MB / 453.3 MB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.038e-06/0.5546, allocations: 4 kB / 453.3 MB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004494/0.5551, allocations: 75.66 kB / 453.4 MB, free: 3.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002793/0.5554, allocations: 70.89 kB / 453.5 MB, free: 2.957 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.5555, allocations: 7.562 kB / 453.5 MB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002164/0.5576, allocations: 1.69 MB / 455.2 MB, free: 1.316 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.459e-06/0.5577, allocations: 4.031 kB / 455.2 MB, free: 1.312 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001316/0.559, allocations: 0.6617 MB / 455.8 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.5593, allocations: 157.2 kB / 456 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.001e-05/0.5594, allocations: 11.44 kB / 456 MB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.5598, allocations: 47.27 kB / 456.1 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.56, allocations: 47.64 kB / 456.1 MB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.56, allocations: 11.75 kB / 456.1 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003958/0.5604, allocations: 255.8 kB / 456.4 MB, free: 344 kB / 362.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.5605, allocations: 0 / 456.4 MB, free: 344 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001164/0.5616, allocations: 232.7 kB / 456.6 MB, free: 132 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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_last,meanVoltage.y_last) * 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 (37): * Single equations (assignments): 30 * 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.0002334/0.5619, allocations: 132.2 kB / 456.7 MB, free: 16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.5636, allocations: 0.8734 MB / 457.6 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.056e-06/0.5636, allocations: 0 / 457.6 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005961/0.5642, allocations: 309.7 kB / 457.9 MB, free: 14.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005793/0.5648, allocations: 78 kB / 458 MB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.5668, allocations: 0.7377 MB / 458.7 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.5675, allocations: 0.8563 MB / 459.6 MB, free: 13.17 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004233/0.5679, allocations: 79.41 kB / 459.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.568, allocations: 31.42 kB / 459.7 MB, free: 13.06 MB / 378.7 MB Notification: Performance of SimCode: time 1.451e-06/0.568, allocations: 0 / 459.7 MB, free: 13.06 MB / 378.7 MB Notification: Performance of Templates: time 0.01968/0.5877, allocations: 7.053 MB / 466.7 MB, free: 6.074 MB / 378.7 MB