Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.135e-05/4.156e-05, allocations: 4 kB / 269.5 MB, free: 6.281 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1251, allocations: 47.57 MB / 317 MB, free: 6.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4197/0.5449, allocations: 83.26 MB / 400.3 MB, free: 4.406 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004319/0.5454, allocations: 87.12 kB / 400.4 MB, free: 4.355 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04485/0.5903, allocations: 6.943 MB / 407.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.5904, allocations: 0 / 407.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.728e-05/0.5905, allocations: 15.94 kB / 407.3 MB, free: 14.44 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.002861/0.5934, allocations: 0.6897 MB / 408 MB, free: 13.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.434e-05/0.5935, allocations: 8.031 kB / 408 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002779/0.5938, allocations: 73.91 kB / 408.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002792/0.5941, allocations: 55.42 kB / 408.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.5954, allocations: 363.3 kB / 408.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.539e-05/0.5956, allocations: 32.45 kB / 408.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/0.5958, allocations: 41.31 kB / 408.6 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/0.5977, allocations: 413 kB / 409 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.555e-05/0.5978, allocations: 0 / 409 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.5979, allocations: 23.72 kB / 409 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.598e-05/0.5979, allocations: 8 kB / 409 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.5995, allocations: 259.4 kB / 409.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005262/0.6049, allocations: 1.602 MB / 410.9 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008635/0.6058, allocations: 264.6 kB / 411.1 MB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000445/0.6063, allocations: 138.7 kB / 411.3 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.95e-05/0.6064, allocations: 7.984 kB / 411.3 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005683/0.6069, allocations: 229.8 kB / 411.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 3.617e-06/0.607, allocations: 0 / 411.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.00102/0.608, allocations: 312.1 kB / 411.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.6081, allocations: 144.4 kB / 412 MB, free: 10.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006047/0.6087, allocations: 313 kB / 412.3 MB, free: 10.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.848e-05/0.6088, allocations: 33.3 kB / 412.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/0.6091, allocations: 230.1 kB / 412.5 MB, free: 9.992 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.6092, allocations: 101.9 kB / 412.6 MB, free: 9.906 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.6092, allocations: 7.688 kB / 412.6 MB, free: 9.906 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001871/0.6094, allocations: 349.9 kB / 413 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.6097, allocations: 91.81 kB / 413.1 MB, free: 9.516 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004032/0.6102, allocations: 217 kB / 413.3 MB, free: 9.289 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003433/0.6105, allocations: 128.8 kB / 413.4 MB, free: 9.188 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.6105, allocations: 4 kB / 413.4 MB, free: 9.184 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001146/0.6117, allocations: 433 kB / 413.8 MB, free: 8.844 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007209/0.6124, allocations: 1.427 MB / 415.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.6125, allocations: 4 kB / 415.2 MB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/0.613, allocations: 76.14 kB / 415.3 MB, free: 7.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.6135, allocations: 59.34 kB / 415.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.6162, allocations: 1.801 MB / 417.2 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007174/0.617, allocations: 73.84 kB / 417.3 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.828e-05/0.6171, allocations: 15.25 kB / 417.3 MB, free: 5.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.6171, allocations: 4 kB / 417.3 MB, free: 5.414 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009687/0.6181, allocations: 374.5 kB / 417.6 MB, free: 5.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.6181, allocations: 7.938 kB / 417.6 MB, free: 5.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.6185, allocations: 79.98 kB / 417.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.6189, allocations: 51.91 kB / 417.8 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002719/0.6216, allocations: 1.82 MB / 419.6 MB, free: 3.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006094/0.6223, allocations: 54.16 kB / 419.6 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.6223, allocations: 19.44 kB / 419.7 MB, free: 3.25 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.0002329/0.6226, allocations: 144.4 kB / 419.8 MB, free: 3.117 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.6227, allocations: 35.53 kB / 419.8 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.6229, allocations: 45.42 kB / 419.9 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.6229, allocations: 4 kB / 419.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.6229, allocations: 0 / 419.9 MB, free: 3.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.6229, allocations: 3.984 kB / 419.9 MB, free: 3.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.6249, allocations: 0.9598 MB / 420.9 MB, free: 2.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.6249, allocations: 4.359 kB / 420.9 MB, free: 2.238 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.6252, allocations: 30.92 kB / 420.9 MB, free: 2.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003772/0.6256, allocations: 73.56 kB / 421 MB, free: 2.152 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.159e-05/0.6257, allocations: 13.67 kB / 421 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002545/0.6282, allocations: 1.749 MB / 422.7 MB, free: 476 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6283, allocations: 8.094 kB / 422.7 MB, free: 468 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.6296, allocations: 0.5492 MB / 423.3 MB, free: 16 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003394/0.63, allocations: 146.1 kB / 423.4 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001/0.6301, allocations: 11.8 kB / 423.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005405/0.6306, allocations: 27.36 kB / 423.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.6308, allocations: 38.56 kB / 423.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.18e-05/0.6309, allocations: 11.06 kB / 423.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004684/0.6314, allocations: 241.7 kB / 423.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6314, allocations: 0 / 423.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001362/0.6328, allocations: 208 kB / 423.9 MB, free: 15.44 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.001695/0.6345, allocations: 1.178 MB / 425.1 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.6365, allocations: 0.8187 MB / 425.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.6365, allocations: 0 / 425.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006142/0.6371, allocations: 270.5 kB / 426.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/0.6378, allocations: 76.53 kB / 426.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.6403, allocations: 0.6079 MB / 426.9 MB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/0.6411, allocations: 0.8357 MB / 427.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006109/0.6417, allocations: 59.23 kB / 427.8 MB, free: 11.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003147/0.642, allocations: 130.5 kB / 427.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of SimCode: time 1.302e-06/0.642, allocations: 0 / 427.9 MB, free: 11.85 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07894/0.721, allocations: 9.912 MB / 437.8 MB, free: 2.035 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002348/0.7213, allocations: 225.5 kB / 438 MB, free: 1.801 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.008/3.729, allocations: 4.062 kB / 438 MB, free: 1.797 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat