Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/3.003e-05, allocations: 0 / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 50.41 MB / 342.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4624/0.5718, allocations: 86.27 MB / 428.9 MB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5722, allocations: 89.83 kB / 429 MB, free: 7.562 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0581/0.6303, allocations: 10.06 MB / 439.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6303, allocations: 0 / 439.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.857e-05/0.6304, allocations: 8 kB / 439.1 MB, free: 14.98 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.00279/0.6332, allocations: 0.7934 MB / 439.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.219e-05/0.6333, allocations: 8.031 kB / 439.9 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002044/0.6335, allocations: 86.7 kB / 440 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002376/0.6338, allocations: 63.25 kB / 440 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.6349, allocations: 404.1 kB / 440.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.176e-05/0.635, allocations: 37.12 kB / 440.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001706/0.6352, allocations: 56.91 kB / 440.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.6369, allocations: 490.5 kB / 441 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.491e-05/0.637, allocations: 3.938 kB / 441 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.6371, allocations: 20.12 kB / 441 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.646e-05/0.6371, allocations: 12 kB / 441 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.6385, allocations: 307.3 kB / 441.3 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005757/0.6443, allocations: 1.867 MB / 443.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001938/0.6462, allocations: 378.1 kB / 443.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009284/0.6472, allocations: 217.6 kB / 443.8 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.79e-05/0.6473, allocations: 12.27 kB / 443.8 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008417/0.6481, allocations: 257.7 kB / 444 MB, free: 10.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.757e-06/0.6482, allocations: 0 / 444 MB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.001505/0.6497, allocations: 380.5 kB / 444.4 MB, free: 10.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.6498, allocations: 114.8 kB / 444.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008014/0.6506, allocations: 332.1 kB / 444.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.29e-05/0.6507, allocations: 37.64 kB / 444.9 MB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003057/0.6511, allocations: 296.8 kB / 445.2 MB, free: 9.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.6513, allocations: 139.8 kB / 445.3 MB, free: 9.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.164e-05/0.6514, allocations: 10.69 kB / 445.3 MB, free: 9.719 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.6516, allocations: 329.7 kB / 445.6 MB, free: 9.395 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.6521, allocations: 115.4 kB / 445.7 MB, free: 9.328 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006612/0.6528, allocations: 238.5 kB / 446 MB, free: 9.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006013/0.6534, allocations: 162.5 kB / 446.1 MB, free: 8.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.6534, allocations: 0 / 446.1 MB, free: 8.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001737/0.6552, allocations: 470.6 kB / 446.6 MB, free: 8.617 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008183/0.656, allocations: 1.332 MB / 447.9 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.656, allocations: 8 kB / 447.9 MB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004624/0.6565, allocations: 73.47 kB / 448 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008088/0.6573, allocations: 99.38 kB / 448.1 MB, free: 7.043 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.6598, allocations: 1.69 MB / 449.8 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007685/0.6606, allocations: 62.28 kB / 449.9 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.957e-05/0.6607, allocations: 30.17 kB / 449.9 MB, free: 5.328 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.6607, allocations: 4 kB / 449.9 MB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001144/0.6619, allocations: 426.5 kB / 450.3 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6619, allocations: 7.938 kB / 450.3 MB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003173/0.6622, allocations: 67.64 kB / 450.4 MB, free: 4.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006499/0.6629, allocations: 91.52 kB / 450.5 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.6652, allocations: 1.691 MB / 452.2 MB, free: 3.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.6658, allocations: 54.67 kB / 452.2 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.468e-05/0.6659, allocations: 27.86 kB / 452.2 MB, free: 3.16 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 (53): * Single equations (assignments): 51 * 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.000244/0.6661, allocations: 142.5 kB / 452.4 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.6663, allocations: 47.39 kB / 452.4 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.6675, allocations: 425.7 kB / 452.8 MB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.6675, allocations: 4 kB / 452.8 MB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.6675, allocations: 0 / 452.8 MB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.6675, allocations: 3.984 kB / 452.9 MB, free: 2.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/0.6699, allocations: 1.022 MB / 453.9 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.6699, allocations: 4 kB / 453.9 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006951/0.6706, allocations: 74.89 kB / 454 MB, free: 1.758 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003356/0.671, allocations: 68 kB / 454 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.765e-05/0.671, allocations: 11.5 kB / 454 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002287/0.6733, allocations: 1.684 MB / 455.7 MB, free: 68 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.6734, allocations: 12.05 kB / 455.7 MB, free: 56 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.675, allocations: 0.6779 MB / 456.4 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000301/0.6754, allocations: 151.5 kB / 456.6 MB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.6755, allocations: 22.94 kB / 456.6 MB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006228/0.6761, allocations: 35.03 kB / 456.6 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.6763, allocations: 46 kB / 456.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.822e-05/0.6764, allocations: 15.92 kB / 456.7 MB, free: 15.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004751/0.6769, allocations: 260.4 kB / 456.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.6769, allocations: 0 / 456.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001324/0.6782, allocations: 256.1 kB / 457.2 MB, free: 14.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.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_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 (39): * Single equations (assignments): 32 * 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.002061/0.6803, allocations: 1.387 MB / 458.6 MB, free: 13.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.6823, allocations: 0.8722 MB / 459.4 MB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.6823, allocations: 0 / 459.4 MB, free: 12.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006701/0.683, allocations: 313.2 kB / 459.7 MB, free: 12.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007677/0.6838, allocations: 86.88 kB / 459.8 MB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003178/0.687, allocations: 0.9548 MB / 460.8 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005994/0.6876, allocations: 0.8674 MB / 461.6 MB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.6881, allocations: 180.4 kB / 461.8 MB, free: 10.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.282e-06/0.6881, allocations: 0 / 461.8 MB, free: 10.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.821/3.509, allocations: 10.1 MB / 471.9 MB, free: 0.5 MB / 378.7 MB