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.72/1.72, allocations: 194.9 MB / 208 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.936e-05/2.945e-05, allocations: 4 kB / 255.4 MB, free: 2.668 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07697/0.07702, allocations: 44.5 MB / 299.9 MB, free: 6.113 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.4051, allocations: 77.62 MB / 377.5 MB, free: 22.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.4054, allocations: 84.94 kB / 377.6 MB, free: 22.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02378/0.4292, allocations: 6.54 MB / 384.1 MB, free: 21.2 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.204e-06/0.4293, allocations: 0 / 384.1 MB, free: 21.2 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.507e-05/0.4293, allocations: 22.17 kB / 384.2 MB, free: 21.19 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.001164/0.4305, allocations: 0.6714 MB / 384.8 MB, free: 20.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.4306, allocations: 17.53 kB / 384.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.4307, allocations: 56.73 kB / 384.9 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005395/0.4313, allocations: 349.7 kB / 385.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.4313, allocations: 29.25 kB / 385.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.102e-05/0.4314, allocations: 39.12 kB / 385.3 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008439/0.4323, allocations: 404.9 kB / 385.7 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.4323, allocations: 4 kB / 385.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/0.4324, allocations: 16.12 kB / 385.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.4324, allocations: 9.406 kB / 385.7 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006482/0.4331, allocations: 252.6 kB / 386 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002657/0.4357, allocations: 1.604 MB / 387.6 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006338/0.4364, allocations: 255.3 kB / 387.8 MB, free: 19.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003528/0.4368, allocations: 144.9 kB / 388 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.4368, allocations: 3.188 kB / 388 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004487/0.4373, allocations: 230.3 kB / 388.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.744e-06/0.4373, allocations: 0 / 388.2 MB, free: 19.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0007448/0.4381, allocations: 308.6 kB / 388.5 MB, free: 19.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.4381, allocations: 144 kB / 388.7 MB, free: 19.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000404/0.4385, allocations: 300.4 kB / 389 MB, free: 19.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.4386, allocations: 37.39 kB / 389 MB, free: 19.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4388, allocations: 216.8 kB / 389.2 MB, free: 18.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.872e-05/0.4389, allocations: 103 kB / 389.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.4389, allocations: 15.5 kB / 389.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.168e-05/0.439, allocations: 350.8 kB / 389.7 MB, free: 18.51 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002192/0.4392, allocations: 85.53 kB / 389.7 MB, free: 18.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002843/0.4395, allocations: 220.8 kB / 390 MB, free: 18.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.4398, allocations: 130.6 kB / 390.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.967e-06/0.4398, allocations: 0 / 390.1 MB, free: 18.32 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009022/0.4407, allocations: 429.6 kB / 390.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002872/0.441, allocations: 1.429 MB / 391.9 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.4411, allocations: 0 / 391.9 MB, free: 16.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.4415, allocations: 94.28 kB / 392 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002792/0.4418, allocations: 57.83 kB / 392.1 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.4438, allocations: 1.797 MB / 393.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005031/0.4443, allocations: 74.55 kB / 394 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.4444, allocations: 15.28 kB / 394 MB, free: 15.28 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/0.4444, allocations: 3.906 kB / 394 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007648/0.4452, allocations: 370.8 kB / 394.3 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.132e-06/0.4452, allocations: 3.938 kB / 394.3 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002974/0.4455, allocations: 81.77 kB / 394.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.4457, allocations: 46.66 kB / 394.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002466/0.4482, allocations: 1.821 MB / 396.3 MB, free: 29.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/0.4487, allocations: 52.59 kB / 396.3 MB, free: 29.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-05/0.4488, allocations: 19.16 kB / 396.4 MB, free: 29.81 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.000196/0.449, allocations: 141.2 kB / 396.5 MB, free: 29.69 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.466e-05/0.4491, allocations: 42.64 kB / 396.5 MB, free: 29.67 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.4492, allocations: 49.12 kB / 396.6 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.085e-06/0.4492, allocations: 7.844 kB / 396.6 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.012e-06/0.4492, allocations: 0 / 396.6 MB, free: 29.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.612e-06/0.4493, allocations: 7.375 kB / 396.6 MB, free: 29.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.4508, allocations: 0.9408 MB / 397.5 MB, free: 29.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4509, allocations: 0 / 397.5 MB, free: 29.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001866/0.4511, allocations: 41.56 kB / 397.6 MB, free: 29.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002877/0.4514, allocations: 68.64 kB / 397.6 MB, free: 29.22 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.4514, allocations: 11.48 kB / 397.7 MB, free: 29.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/0.4535, allocations: 1.743 MB / 399.4 MB, free: 27.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.874e-06/0.4535, allocations: 4 kB / 399.4 MB, free: 27.84 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000975/0.4545, allocations: 0.5444 MB / 399.9 MB, free: 27.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.4548, allocations: 147.2 kB / 400.1 MB, free: 27.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.493e-05/0.4548, allocations: 7.594 kB / 400.1 MB, free: 27.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.4552, allocations: 33.34 kB / 400.1 MB, free: 27.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.4554, allocations: 39.41 kB / 400.2 MB, free: 27.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.4554, allocations: 11.31 kB / 400.2 MB, free: 27.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003369/0.4558, allocations: 231.4 kB / 400.4 MB, free: 27.44 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.65e-07/0.4558, allocations: 0 / 400.4 MB, free: 27.44 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001088/0.4569, allocations: 207.3 kB / 400.6 MB, free: 27.41 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.0001942/0.4571, allocations: 125 kB / 400.7 MB, free: 27.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.4586, allocations: 0.8051 MB / 401.5 MB, free: 26.94 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.262e-06/0.4586, allocations: 0 / 401.5 MB, free: 26.94 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004836/0.4591, allocations: 272 kB / 401.8 MB, free: 26.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.4596, allocations: 61.8 kB / 401.9 MB, free: 26.81 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.4611, allocations: 0.5335 MB / 402.4 MB, free: 26.59 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005128/0.4616, allocations: 0.8199 MB / 403.2 MB, free: 25.89 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003246/0.4619, allocations: 51.17 kB / 403.3 MB, free: 25.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.309e-05/0.462, allocations: 33.75 kB / 403.3 MB, free: 25.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.687e-06/0.462, allocations: 0 / 403.3 MB, free: 25.88 MB / 330.7 MB Notification: Performance of Templates: time 0.01528/0.4773, allocations: 6.301 MB / 409.6 MB, free: 25.39 MB / 330.7 MB