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.863/1.863, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.888e-05/1.865e-05, allocations: 4 kB / 249.6 MB, free: 15.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.247/0.2471, allocations: 44.51 MB / 294.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.3679, allocations: 77.27 MB / 371.4 MB, free: 4.684 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.3683, allocations: 83.94 kB / 371.5 MB, free: 4.602 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02667/0.395, allocations: 6.794 MB / 378.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.509e-06/0.395, allocations: 8 kB / 378.3 MB, free: 13.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.919e-05/0.3951, allocations: 12 kB / 378.3 MB, free: 13.75 MB / 330.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.001477/0.3966, allocations: 0.6885 MB / 379 MB, free: 13.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3966, allocations: 8.031 kB / 379 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.3968, allocations: 55.39 kB / 379 MB, free: 12.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006959/0.3975, allocations: 367.3 kB / 379.4 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.3975, allocations: 12 kB / 379.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.981e-05/0.3976, allocations: 35.94 kB / 379.5 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006995/0.3984, allocations: 250.5 kB / 379.7 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009/0.3993, allocations: 374.9 kB / 380.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.3993, allocations: 0 / 380.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.3994, allocations: 0 / 380.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.3994, allocations: 15.95 kB / 380.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003233/0.4026, allocations: 1.58 MB / 381.7 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007803/0.4035, allocations: 267.4 kB / 381.9 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003834/0.4039, allocations: 140.8 kB / 382.1 MB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.4039, allocations: 8 kB / 382.1 MB, free: 9.77 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004934/0.4044, allocations: 213.6 kB / 382.3 MB, free: 9.539 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 3.557e-06/0.4044, allocations: 0 / 382.3 MB, free: 9.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008101/0.4053, allocations: 297.9 kB / 382.6 MB, free: 9.238 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.645e-05/0.4054, allocations: 136.5 kB / 382.7 MB, free: 9.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.4058, allocations: 250.2 kB / 382.9 MB, free: 8.824 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.4059, allocations: 29.69 kB / 383 MB, free: 8.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.4061, allocations: 286.6 kB / 383.3 MB, free: 8.508 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.4062, allocations: 98.56 kB / 383.3 MB, free: 8.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-05/0.4063, allocations: 0 / 383.3 MB, free: 8.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.4064, allocations: 322.8 kB / 383.7 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.4067, allocations: 96.86 kB / 383.8 MB, free: 7.988 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.4071, allocations: 207 kB / 384 MB, free: 7.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002717/0.4074, allocations: 111.9 kB / 384.1 MB, free: 7.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.131e-06/0.4074, allocations: 0 / 384.1 MB, free: 7.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008884/0.4083, allocations: 351 kB / 384.4 MB, free: 7.27 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008306/0.4091, allocations: 1.423 MB / 385.8 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.4092, allocations: 4 kB / 385.8 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004041/0.4096, allocations: 76.81 kB / 385.9 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.41, allocations: 71.78 kB / 386 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.4124, allocations: 1.697 MB / 387.7 MB, free: 3.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004972/0.4129, allocations: 59.64 kB / 387.7 MB, free: 3.711 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-05/0.413, allocations: 12 kB / 387.8 MB, free: 3.699 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.413, allocations: 4 kB / 387.8 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008093/0.4139, allocations: 316.8 kB / 388.1 MB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.4139, allocations: 4 kB / 388.1 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002979/0.4142, allocations: 77.42 kB / 388.1 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.4145, allocations: 63.91 kB / 388.2 MB, free: 3.238 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002295/0.4168, allocations: 1.67 MB / 389.9 MB, free: 1.457 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003609/0.4172, allocations: 47.7 kB / 389.9 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.225e-05/0.4172, allocations: 16 kB / 389.9 MB, free: 1.395 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.0002129/0.4175, allocations: 127 kB / 390.1 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.4176, allocations: 39.53 kB / 390.1 MB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.4177, allocations: 39.52 kB / 390.1 MB, free: 1.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.961e-06/0.4177, allocations: 4 kB / 390.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.172e-06/0.4178, allocations: 0 / 390.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.4178, allocations: 11.92 kB / 390.2 MB, free: 1.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.4195, allocations: 0.8791 MB / 391 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.683e-06/0.4196, allocations: 0 / 391 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.4198, allocations: 35.92 kB / 391.1 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/0.4201, allocations: 64.83 kB / 391.1 MB, free: 128 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.013e-05/0.4202, allocations: 3.984 kB / 391.1 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.4224, allocations: 1.642 MB / 392.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.097e-06/0.4224, allocations: 0 / 392.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.4236, allocations: 0.5224 MB / 393.3 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.4238, allocations: 140.6 kB / 393.4 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.849e-05/0.4239, allocations: 4 kB / 393.4 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003677/0.4243, allocations: 32.03 kB / 393.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.4244, allocations: 39.89 kB / 393.5 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.4245, allocations: 11.98 kB / 393.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002775/0.4248, allocations: 182 kB / 393.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.43e-07/0.4248, allocations: 0 / 393.7 MB, free: 13.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001136/0.4259, allocations: 199.4 kB / 393.9 MB, free: 13.19 MB / 346.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.0002031/0.4262, allocations: 111.8 kB / 394 MB, free: 13.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.4277, allocations: 0.7846 MB / 394.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4277, allocations: 3.938 kB / 394.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.4282, allocations: 257.5 kB / 395 MB, free: 11.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.4287, allocations: 45.34 kB / 395.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.4303, allocations: 0.6066 MB / 395.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.4309, allocations: 0.8313 MB / 396.5 MB, free: 10.44 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.431, allocations: 27.44 kB / 396.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of SimCode: time 1.78e-06/0.431, allocations: 0 / 396.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of Templates: time 0.01223/0.4432, allocations: 6.404 MB / 403 MB, free: 4.016 MB / 346.7 MB