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.309/2.309, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.542e-05/3.551e-05, allocations: 0 / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09617, allocations: 44.49 MB / 300 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4213/0.5175, allocations: 77.62 MB / 377.6 MB, free: 12.51 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.5179, allocations: 93.95 kB / 377.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02754/0.5455, allocations: 6.549 MB / 384.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.5455, allocations: 1.312 kB / 384.2 MB, free: 11.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.632e-05/0.5456, allocations: 11.75 kB / 384.2 MB, free: 11.67 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.001952/0.5476, allocations: 0.6854 MB / 384.9 MB, free: 11.17 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.273e-05/0.5476, allocations: 10.06 kB / 384.9 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002006/0.5479, allocations: 77.36 kB / 385 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002016/0.5481, allocations: 53.95 kB / 385.1 MB, free: 11.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000813/0.5489, allocations: 350.6 kB / 385.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.047e-05/0.549, allocations: 31.66 kB / 385.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.5491, allocations: 44.09 kB / 385.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.5502, allocations: 398 kB / 385.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.139e-05/0.5503, allocations: 6.203 kB / 385.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.031e-05/0.5504, allocations: 18.28 kB / 385.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.5504, allocations: 9.375 kB / 385.9 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007951/0.5512, allocations: 251.7 kB / 386.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003851/0.5551, allocations: 1.597 MB / 387.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008322/0.556, allocations: 253.3 kB / 388 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004443/0.5565, allocations: 142 kB / 388.1 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.401e-05/0.5565, allocations: 7.625 kB / 388.1 MB, free: 9.938 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005187/0.5571, allocations: 228.6 kB / 388.4 MB, free: 9.855 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.795e-06/0.5571, allocations: 0 / 388.4 MB, free: 9.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009621/0.5581, allocations: 314.5 kB / 388.7 MB, free: 9.785 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.5582, allocations: 138.8 kB / 388.8 MB, free: 9.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005844/0.5588, allocations: 308.1 kB / 389.1 MB, free: 9.516 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.5589, allocations: 36.61 kB / 389.1 MB, free: 9.484 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.5591, allocations: 265.6 kB / 389.4 MB, free: 9.289 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.5592, allocations: 100.1 kB / 389.5 MB, free: 9.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.5592, allocations: 10.16 kB / 389.5 MB, free: 9.227 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.548e-05/0.5593, allocations: 325.4 kB / 389.8 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.5596, allocations: 91.78 kB / 389.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003736/0.56, allocations: 219.2 kB / 390.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.5603, allocations: 131 kB / 390.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.5604, allocations: 3.938 kB / 390.3 MB, free: 8.719 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00102/0.5614, allocations: 406.2 kB / 390.7 MB, free: 8.609 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000334/0.5618, allocations: 1.428 MB / 392.1 MB, free: 7.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.5618, allocations: 3.844 kB / 392.1 MB, free: 7.113 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005208/0.5623, allocations: 86.33 kB / 392.2 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.5628, allocations: 55.75 kB / 392.2 MB, free: 7.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/0.5657, allocations: 1.806 MB / 394 MB, free: 21.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007672/0.5665, allocations: 68.77 kB / 394.1 MB, free: 21.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.455e-05/0.5666, allocations: 19.31 kB / 394.1 MB, free: 21.7 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.5666, allocations: 5.719 kB / 394.1 MB, free: 21.7 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009836/0.5676, allocations: 369.1 kB / 394.5 MB, free: 21.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.5677, allocations: 3.938 kB / 394.5 MB, free: 21.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003682/0.568, allocations: 78.47 kB / 394.6 MB, free: 21.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003524/0.5684, allocations: 52.45 kB / 394.6 MB, free: 21.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002778/0.5712, allocations: 1.819 MB / 396.4 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005167/0.5718, allocations: 44.66 kB / 396.5 MB, free: 20.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.5718, allocations: 15.53 kB / 396.5 MB, free: 20.23 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.0002491/0.5721, allocations: 134.1 kB / 396.6 MB, free: 20.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.5723, allocations: 42.22 kB / 396.7 MB, free: 20.1 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001507/0.5724, allocations: 45.17 kB / 396.7 MB, free: 20.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.5724, allocations: 3.938 kB / 396.7 MB, free: 20.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.5725, allocations: 0 / 396.7 MB, free: 20.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.5725, allocations: 11.02 kB / 396.7 MB, free: 20.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002415/0.5749, allocations: 0.9545 MB / 397.7 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.575, allocations: 0 / 397.7 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003613/0.5754, allocations: 32.97 kB / 397.7 MB, free: 19.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000489/0.5759, allocations: 77.83 kB / 397.8 MB, free: 19.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.576, allocations: 11.27 kB / 397.8 MB, free: 19.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003314/0.5793, allocations: 1.737 MB / 399.5 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.5794, allocations: 96 / 399.5 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.5811, allocations: 0.5465 MB / 400.1 MB, free: 18.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004411/0.5816, allocations: 140 kB / 400.2 MB, free: 17.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.5817, allocations: 11.75 kB / 400.2 MB, free: 17.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006905/0.5824, allocations: 29.58 kB / 400.3 MB, free: 17.97 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.5826, allocations: 41.92 kB / 400.3 MB, free: 17.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.5827, allocations: 11.02 kB / 400.3 MB, free: 17.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005388/0.5833, allocations: 232.5 kB / 400.5 MB, free: 17.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5833, allocations: 0 / 400.5 MB, free: 17.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001946/0.5852, allocations: 205 kB / 400.7 MB, free: 17.86 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.002382/0.5877, allocations: 1.181 MB / 401.9 MB, free: 17.06 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002683/0.5904, allocations: 0.7966 MB / 402.7 MB, free: 16.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/0.5905, allocations: 7.906 kB / 402.7 MB, free: 16.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008684/0.5914, allocations: 264.5 kB / 403 MB, free: 16.56 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.5924, allocations: 66.53 kB / 403.1 MB, free: 16.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003474/0.5959, allocations: 0.6273 MB / 403.7 MB, free: 16.28 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006779/0.5967, allocations: 0.8245 MB / 404.5 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003953/0.5971, allocations: 130 kB / 404.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.392e-06/0.5971, allocations: 0 / 404.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.839/3.436, allocations: 8.223 MB / 412.9 MB, free: 13.88 MB / 330.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