Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.915/1.915, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.631e-05/3.636e-05, allocations: 1.406 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 44.51 MB / 300 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4254/0.535, allocations: 77.62 MB / 377.6 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/0.5354, allocations: 85.19 kB / 377.7 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02869/0.5641, allocations: 6.535 MB / 384.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5642, allocations: 1.312 kB / 384.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.497e-05/0.5643, allocations: 15.25 kB / 384.3 MB, free: 12.03 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.001806/0.5661, allocations: 0.6851 MB / 384.9 MB, free: 11.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.5662, allocations: 13.03 kB / 385 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001729/0.5664, allocations: 74.72 kB / 385 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.5666, allocations: 56.17 kB / 385.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007573/0.5673, allocations: 352.7 kB / 385.4 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.5674, allocations: 27.88 kB / 385.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.5675, allocations: 39.94 kB / 385.5 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.5686, allocations: 411.7 kB / 385.9 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/0.5687, allocations: 3.812 kB / 385.9 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.5687, allocations: 14.31 kB / 385.9 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.5688, allocations: 10.16 kB / 385.9 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007607/0.5695, allocations: 251.6 kB / 386.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003586/0.5731, allocations: 1.6 MB / 387.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008632/0.5741, allocations: 249.8 kB / 388 MB, free: 10.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004664/0.5746, allocations: 151.7 kB / 388.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.075e-05/0.5746, allocations: 3.844 kB / 388.2 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000512/0.5752, allocations: 223.7 kB / 388.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.056e-06/0.5752, allocations: 0 / 388.4 MB, free: 10.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.000919/0.5761, allocations: 313.8 kB / 388.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.5762, allocations: 141.2 kB / 388.8 MB, free: 9.992 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005266/0.5768, allocations: 303.4 kB / 389.1 MB, free: 9.879 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.496e-05/0.5768, allocations: 37.05 kB / 389.2 MB, free: 9.848 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.577, allocations: 221 kB / 389.4 MB, free: 9.719 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.5771, allocations: 100.5 kB / 389.5 MB, free: 9.656 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.022e-05/0.5772, allocations: 11.75 kB / 389.5 MB, free: 9.656 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.676e-05/0.5773, allocations: 345.8 kB / 389.8 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.5776, allocations: 85.59 kB / 389.9 MB, free: 9.344 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.5779, allocations: 219.6 kB / 390.1 MB, free: 9.188 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003023/0.5782, allocations: 132.4 kB / 390.3 MB, free: 9.148 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.5782, allocations: 3.938 kB / 390.3 MB, free: 9.148 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009789/0.5792, allocations: 429 kB / 390.7 MB, free: 9.027 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002984/0.5795, allocations: 1.421 MB / 392.1 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.5796, allocations: 7.875 kB / 392.1 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004942/0.5801, allocations: 85.61 kB / 392.2 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004505/0.5805, allocations: 62.42 kB / 392.2 MB, free: 7.508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.583, allocations: 1.806 MB / 394.1 MB, free: 22.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007217/0.5838, allocations: 67.52 kB / 394.1 MB, free: 22.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.5839, allocations: 15.31 kB / 394.1 MB, free: 22.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.5839, allocations: 3.875 kB / 394.1 MB, free: 22.11 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009167/0.5848, allocations: 375.3 kB / 394.5 MB, free: 22.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.5849, allocations: 3.938 kB / 394.5 MB, free: 22.05 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003827/0.5853, allocations: 83.11 kB / 394.6 MB, free: 22.04 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003332/0.5856, allocations: 50.16 kB / 394.6 MB, free: 22.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002569/0.5882, allocations: 1.824 MB / 396.5 MB, free: 20.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006593/0.5889, allocations: 50.52 kB / 396.5 MB, free: 20.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.589, allocations: 14.75 kB / 396.5 MB, free: 20.64 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.0002394/0.5892, allocations: 146.8 kB / 396.7 MB, free: 20.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.5894, allocations: 38.88 kB / 396.7 MB, free: 20.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001434/0.5895, allocations: 43.92 kB / 396.8 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.5895, allocations: 3.781 kB / 396.8 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.5895, allocations: 4 kB / 396.8 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.5896, allocations: 3.953 kB / 396.8 MB, free: 20.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.5915, allocations: 0.9529 MB / 397.7 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.5915, allocations: 4.031 kB / 397.7 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002823/0.5918, allocations: 33.5 kB / 397.8 MB, free: 20.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000366/0.5922, allocations: 72.95 kB / 397.8 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/0.5923, allocations: 14.16 kB / 397.8 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002316/0.5946, allocations: 1.741 MB / 399.6 MB, free: 18.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.5946, allocations: 0 / 399.6 MB, free: 18.69 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001201/0.5959, allocations: 0.5472 MB / 400.1 MB, free: 18.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002957/0.5962, allocations: 142.4 kB / 400.3 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.094e-05/0.5963, allocations: 9.688 kB / 400.3 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005265/0.5968, allocations: 29.81 kB / 400.3 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.597, allocations: 35.52 kB / 400.3 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.5971, allocations: 11.5 kB / 400.3 MB, free: 18.37 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003999/0.5975, allocations: 237.6 kB / 400.6 MB, free: 18.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5975, allocations: 0 / 400.6 MB, free: 18.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001268/0.5988, allocations: 202.1 kB / 400.8 MB, free: 18.26 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.00165/0.6005, allocations: 1.183 MB / 402 MB, free: 17.46 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.6023, allocations: 0.8092 MB / 402.8 MB, free: 17.08 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.6024, allocations: 0 / 402.8 MB, free: 17.08 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005565/0.6029, allocations: 266.4 kB / 403 MB, free: 16.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006699/0.6036, allocations: 67.25 kB / 403.1 MB, free: 16.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.606, allocations: 0.6133 MB / 403.7 MB, free: 16.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004596/0.6065, allocations: 0.8245 MB / 404.5 MB, free: 16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000489/0.607, allocations: 58.7 kB / 404.6 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.6073, allocations: 128.8 kB / 404.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.422e-06/0.6073, allocations: 0 / 404.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08463/0.692, allocations: 9.674 MB / 414.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002529/0.6923, allocations: 209.6 kB / 414.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.022/3.714, allocations: 3.906 kB / 414.6 MB, free: 13.27 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat