Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.662e-05/2.678e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3503/0.3504, allocations: 44.49 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.5021, allocations: 76.96 MB / 371.2 MB, free: 4.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003375/0.5025, allocations: 79.95 kB / 371.3 MB, free: 4.852 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03001/0.5326, allocations: 6.486 MB / 377.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.5326, allocations: 0 / 377.7 MB, free: 14.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.483e-05/0.5327, allocations: 16 kB / 377.8 MB, free: 14.31 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.002302/0.535, allocations: 0.6783 MB / 378.4 MB, free: 13.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.318e-05/0.5351, allocations: 8.031 kB / 378.4 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.5354, allocations: 55.39 kB / 378.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.5366, allocations: 350.9 kB / 378.8 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.5368, allocations: 15.98 kB / 378.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.5369, allocations: 24 kB / 378.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001187/0.5381, allocations: 233.5 kB / 379.1 MB, free: 12.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001113/0.5393, allocations: 355.9 kB / 379.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.5394, allocations: 0 / 379.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.299e-05/0.5395, allocations: 4 kB / 379.5 MB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.5396, allocations: 8 kB / 379.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005176/0.5448, allocations: 1.505 MB / 381 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.546, allocations: 250.9 kB / 381.2 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006091/0.5466, allocations: 140.8 kB / 381.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.847e-05/0.5467, allocations: 0 / 381.4 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006807/0.5474, allocations: 223.2 kB / 381.6 MB, free: 10.26 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 2.776e-06/0.5474, allocations: 0 / 381.6 MB, free: 10.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001144/0.5486, allocations: 283.7 kB / 381.8 MB, free: 9.977 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.5487, allocations: 136.5 kB / 382 MB, free: 9.812 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006026/0.5494, allocations: 242.2 kB / 382.2 MB, free: 9.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.542e-05/0.5495, allocations: 37.73 kB / 382.3 MB, free: 9.527 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003139/0.5498, allocations: 274.6 kB / 382.5 MB, free: 9.258 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001726/0.55, allocations: 94.64 kB / 382.6 MB, free: 9.164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.5501, allocations: 0 / 382.6 MB, free: 9.164 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.5503, allocations: 330.8 kB / 382.9 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.5507, allocations: 84.88 kB / 383 MB, free: 8.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.5512, allocations: 203.2 kB / 383.2 MB, free: 8.488 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.5517, allocations: 101.2 kB / 383.3 MB, free: 8.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.5517, allocations: 0 / 383.3 MB, free: 8.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001216/0.5529, allocations: 351.2 kB / 383.7 MB, free: 8.039 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009517/0.5539, allocations: 1.425 MB / 385.1 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.608e-05/0.554, allocations: 8 kB / 385.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006956/0.5547, allocations: 76.81 kB / 385.2 MB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000607/0.5554, allocations: 59.84 kB / 385.2 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002944/0.5583, allocations: 1.745 MB / 387 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006375/0.559, allocations: 55.72 kB / 387 MB, free: 4.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.5591, allocations: 20 kB / 387 MB, free: 4.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.5591, allocations: 7.953 kB / 387.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009054/0.56, allocations: 301.7 kB / 387.3 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.56, allocations: 0 / 387.3 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003582/0.5604, allocations: 80.83 kB / 387.4 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.5608, allocations: 47.91 kB / 387.5 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00262/0.5634, allocations: 1.736 MB / 389.2 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000484/0.5639, allocations: 43.72 kB / 389.3 MB, free: 2.094 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.564, allocations: 16 kB / 389.3 MB, free: 2.078 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.0002316/0.5642, allocations: 130.8 kB / 389.4 MB, free: 1.945 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007899/0.5651, allocations: 294 kB / 389.7 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-05/0.5652, allocations: 39.59 kB / 389.7 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.5653, allocations: 31.48 kB / 389.8 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5653, allocations: 7.922 kB / 389.8 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.5653, allocations: 4 kB / 389.8 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.5653, allocations: 0 / 389.8 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.5672, allocations: 0.8589 MB / 390.6 MB, free: 0.6562 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.5673, allocations: 4 kB / 390.6 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003047/0.5676, allocations: 31.92 kB / 390.7 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003861/0.568, allocations: 69.11 kB / 390.7 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/0.568, allocations: 3.984 kB / 390.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/0.5706, allocations: 1.689 MB / 392.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.5707, allocations: 0 / 392.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.572, allocations: 0.5149 MB / 392.9 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.5723, allocations: 140.6 kB / 393.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.983e-05/0.5724, allocations: 4 kB / 393.1 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004869/0.5729, allocations: 32.03 kB / 393.1 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.5731, allocations: 39.94 kB / 393.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.374e-05/0.5731, allocations: 8 kB / 393.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003043/0.5734, allocations: 182 kB / 393.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5735, allocations: 0 / 393.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001343/0.5748, allocations: 187.4 kB / 393.5 MB, free: 13.59 MB / 346.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.003106/0.578, allocations: 1.132 MB / 394.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00333/0.5814, allocations: 0.7709 MB / 395.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.08e-05/0.5814, allocations: 4 kB / 395.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008687/0.5823, allocations: 269.3 kB / 395.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008764/0.5832, allocations: 52.97 kB / 395.7 MB, free: 11.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004924/0.5882, allocations: 0.5919 MB / 396.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.5893, allocations: 0.8235 MB / 397.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/0.5898, allocations: 131.4 kB / 397.3 MB, free: 9.66 MB / 346.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5898, allocations: 0 / 397.3 MB, free: 9.66 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.821/3.411, allocations: 7.922 MB / 405.2 MB, free: 1.742 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat