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 1.963/1.963, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.046e-05, allocations: 4 kB / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09539, allocations: 44.5 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4411/0.5366, allocations: 77.62 MB / 377.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.5369, allocations: 85.61 kB / 377.6 MB, free: 12.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02707/0.564, allocations: 6.53 MB / 384.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5641, allocations: 4 kB / 384.2 MB, free: 12.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.028e-05/0.5641, allocations: 14.39 kB / 384.2 MB, free: 12.04 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.001604/0.5657, allocations: 0.6888 MB / 384.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.5658, allocations: 17.19 kB / 384.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001728/0.566, allocations: 79.08 kB / 385 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.5662, allocations: 54.55 kB / 385 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.5669, allocations: 349.8 kB / 385.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.5669, allocations: 28.09 kB / 385.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.5671, allocations: 40.75 kB / 385.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.5681, allocations: 411.9 kB / 385.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.375e-05/0.5682, allocations: 1.406 kB / 385.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.418e-05/0.5683, allocations: 17.16 kB / 385.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.5683, allocations: 9.469 kB / 385.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007302/0.569, allocations: 257.9 kB / 386.1 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.5724, allocations: 1.593 MB / 387.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008079/0.5733, allocations: 266 kB / 388 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003991/0.5737, allocations: 146.6 kB / 388.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.748e-05/0.5738, allocations: 10.84 kB / 388.1 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004851/0.5743, allocations: 217.8 kB / 388.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.806e-06/0.5743, allocations: 0 / 388.3 MB, free: 10.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008996/0.5752, allocations: 319.2 kB / 388.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.5753, allocations: 138.7 kB / 388.8 MB, free: 9.988 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004805/0.5758, allocations: 305.9 kB / 389.1 MB, free: 9.879 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.402e-05/0.5758, allocations: 36.48 kB / 389.1 MB, free: 9.848 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.576, allocations: 264.7 kB / 389.4 MB, free: 9.656 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.876e-05/0.5761, allocations: 106.6 kB / 389.5 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.5762, allocations: 6.25 kB / 389.5 MB, free: 9.594 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.105e-05/0.5762, allocations: 324 kB / 389.8 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.5765, allocations: 94.39 kB / 389.9 MB, free: 9.281 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.5768, allocations: 221.6 kB / 390.1 MB, free: 9.121 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.5772, allocations: 140.9 kB / 390.3 MB, free: 9.074 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.5772, allocations: 0 / 390.3 MB, free: 9.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009003/0.5781, allocations: 412.7 kB / 390.7 MB, free: 8.969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003007/0.5784, allocations: 1.426 MB / 392.1 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.5784, allocations: 3.719 kB / 392.1 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005084/0.5789, allocations: 79.55 kB / 392.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/0.5794, allocations: 63.69 kB / 392.2 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.5815, allocations: 1.807 MB / 394 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006546/0.5822, allocations: 67.14 kB / 394.1 MB, free: 6.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.042e-05/0.5823, allocations: 23.25 kB / 394.1 MB, free: 6.055 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.678e-06/0.5823, allocations: 7.844 kB / 394.1 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008631/0.5832, allocations: 373.4 kB / 394.5 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-06/0.5832, allocations: 3.938 kB / 394.5 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003169/0.5835, allocations: 83.22 kB / 394.6 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.5838, allocations: 51.42 kB / 394.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002631/0.5865, allocations: 1.81 MB / 396.4 MB, free: 20.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004974/0.587, allocations: 46.12 kB / 396.5 MB, free: 20.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.916e-05/0.5871, allocations: 22.44 kB / 396.5 MB, free: 20.59 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.0002284/0.5873, allocations: 134.5 kB / 396.6 MB, free: 20.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.5875, allocations: 38.5 kB / 396.7 MB, free: 20.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001406/0.5876, allocations: 49.42 kB / 396.7 MB, free: 20.44 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.5876, allocations: 7.844 kB / 396.7 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5876, allocations: 0 / 396.7 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.934e-06/0.5877, allocations: 3.953 kB / 396.7 MB, free: 20.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.5894, allocations: 0.9593 MB / 397.7 MB, free: 20.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.5894, allocations: 0 / 397.7 MB, free: 20.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.5897, allocations: 26.05 kB / 397.7 MB, free: 20.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003311/0.59, allocations: 72.06 kB / 397.8 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.5901, allocations: 15.95 kB / 397.8 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/0.5923, allocations: 1.749 MB / 399.6 MB, free: 18.63 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.5923, allocations: 0 / 399.6 MB, free: 18.63 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.5935, allocations: 0.5453 MB / 400.1 MB, free: 18.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.5937, allocations: 142.8 kB / 400.2 MB, free: 18.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.327e-05/0.5938, allocations: 17.61 kB / 400.3 MB, free: 18.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004701/0.5943, allocations: 28.06 kB / 400.3 MB, free: 18.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.5944, allocations: 37.7 kB / 400.3 MB, free: 18.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.5945, allocations: 11.69 kB / 400.3 MB, free: 18.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003549/0.5949, allocations: 230.2 kB / 400.6 MB, free: 18.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5949, allocations: 0 / 400.6 MB, free: 18.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001131/0.596, allocations: 207.5 kB / 400.8 MB, free: 18.2 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.001531/0.5976, allocations: 1.174 MB / 401.9 MB, free: 17.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.5993, allocations: 0.8312 MB / 402.8 MB, free: 17 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5994, allocations: 0 / 402.8 MB, free: 17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005336/0.5999, allocations: 272.9 kB / 403 MB, free: 16.88 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006081/0.6005, allocations: 72.09 kB / 403.1 MB, free: 16.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.6026, allocations: 0.6331 MB / 403.7 MB, free: 16.59 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.6031, allocations: 0.8261 MB / 404.6 MB, free: 15.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.6034, allocations: 128.6 kB / 404.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6034, allocations: 0 / 404.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.866/3.469, allocations: 8.241 MB / 412.9 MB, free: 14.12 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