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 2.019/2.019, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.908e-05/3.921e-05, allocations: 8 kB / 255.5 MB, free: 2.609 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.116, allocations: 44.52 MB / 300 MB, free: 6.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4567/0.5727, allocations: 77.61 MB / 377.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/0.5731, allocations: 85.64 kB / 377.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02672/0.5999, allocations: 6.542 MB / 384.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5999, allocations: 0 / 384.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.887e-05/0.6, allocations: 13 kB / 384.2 MB, free: 11.6 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.001601/0.6016, allocations: 0.6891 MB / 384.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.6016, allocations: 9.281 kB / 384.9 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.6018, allocations: 77.44 kB / 385 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.6019, allocations: 53.7 kB / 385.1 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006606/0.6026, allocations: 353.5 kB / 385.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.6026, allocations: 31.3 kB / 385.4 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.6028, allocations: 41.45 kB / 385.5 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009921/0.6038, allocations: 412.8 kB / 385.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.6038, allocations: 1.375 kB / 385.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.42e-05/0.6039, allocations: 16.84 kB / 385.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.6039, allocations: 13.56 kB / 385.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007161/0.6046, allocations: 259.2 kB / 386.2 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/0.6078, allocations: 1.591 MB / 387.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007948/0.6087, allocations: 257.3 kB / 388 MB, free: 9.875 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004115/0.6091, allocations: 151.8 kB / 388.2 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.6091, allocations: 4.406 kB / 388.2 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004657/0.6096, allocations: 223.1 kB / 388.4 MB, free: 9.781 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.985e-06/0.6096, allocations: 4 kB / 388.4 MB, free: 9.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008472/0.6105, allocations: 314.3 kB / 388.7 MB, free: 9.711 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.6106, allocations: 135.6 kB / 388.8 MB, free: 9.555 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004917/0.6111, allocations: 306.8 kB / 389.1 MB, free: 9.445 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.378e-05/0.6112, allocations: 36.33 kB / 389.2 MB, free: 9.414 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.6113, allocations: 214.8 kB / 389.4 MB, free: 9.285 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.544e-05/0.6114, allocations: 107 kB / 389.5 MB, free: 9.227 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.6115, allocations: 3.375 kB / 389.5 MB, free: 9.227 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/0.6116, allocations: 350.4 kB / 389.8 MB, free: 8.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.6119, allocations: 91.12 kB / 389.9 MB, free: 8.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003301/0.6122, allocations: 224.6 kB / 390.1 MB, free: 8.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.6125, allocations: 135.5 kB / 390.3 MB, free: 8.707 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.6125, allocations: 3.938 kB / 390.3 MB, free: 8.707 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009415/0.6135, allocations: 434.8 kB / 390.7 MB, free: 8.586 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003178/0.6138, allocations: 1.428 MB / 392.1 MB, free: 7.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.6138, allocations: 7.828 kB / 392.1 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000461/0.6143, allocations: 82.69 kB / 392.2 MB, free: 7.074 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.6147, allocations: 56.59 kB / 392.3 MB, free: 7.07 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002527/0.6172, allocations: 1.797 MB / 394.1 MB, free: 21.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006901/0.618, allocations: 73.92 kB / 394.1 MB, free: 21.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/0.618, allocations: 11.72 kB / 394.1 MB, free: 21.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.6181, allocations: 3.906 kB / 394.1 MB, free: 21.68 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008588/0.6189, allocations: 384.4 kB / 394.5 MB, free: 21.61 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.619, allocations: 3.969 kB / 394.5 MB, free: 21.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003556/0.6193, allocations: 81.75 kB / 394.6 MB, free: 21.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.6197, allocations: 56.48 kB / 394.7 MB, free: 21.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/0.6222, allocations: 1.828 MB / 396.5 MB, free: 20.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005981/0.6228, allocations: 46.23 kB / 396.5 MB, free: 20.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.6229, allocations: 19.48 kB / 396.5 MB, free: 20.2 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.0002371/0.6231, allocations: 142.2 kB / 396.7 MB, free: 20.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.315e-05/0.6233, allocations: 40.95 kB / 396.7 MB, free: 20.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.6234, allocations: 50.36 kB / 396.8 MB, free: 20.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.6234, allocations: 3.875 kB / 396.8 MB, free: 20.04 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6234, allocations: 0 / 396.8 MB, free: 20.04 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.6234, allocations: 9.891 kB / 396.8 MB, free: 20.03 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.6252, allocations: 0.9464 MB / 397.7 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.6252, allocations: 3.875 kB / 397.7 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002502/0.6255, allocations: 33.89 kB / 397.8 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003255/0.6258, allocations: 68.97 kB / 397.8 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.725e-05/0.6259, allocations: 14.33 kB / 397.9 MB, free: 19.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/0.6281, allocations: 1.74 MB / 399.6 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6282, allocations: 0 / 399.6 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.6293, allocations: 0.5462 MB / 400.1 MB, free: 18.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.6296, allocations: 144.1 kB / 400.3 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.471e-05/0.6297, allocations: 10.25 kB / 400.3 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.6302, allocations: 32.92 kB / 400.3 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.6303, allocations: 42.92 kB / 400.4 MB, free: 17.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.6304, allocations: 11 kB / 400.4 MB, free: 17.93 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003637/0.6308, allocations: 233.6 kB / 400.6 MB, free: 17.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6308, allocations: 0 / 400.6 MB, free: 17.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001107/0.6319, allocations: 204.3 kB / 400.8 MB, free: 17.81 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.001542/0.6335, allocations: 1.179 MB / 402 MB, free: 17.01 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.6352, allocations: 0.8395 MB / 402.8 MB, free: 16.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.6353, allocations: 0 / 402.8 MB, free: 16.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005308/0.6358, allocations: 272.9 kB / 403.1 MB, free: 16.49 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.6364, allocations: 72 kB / 403.2 MB, free: 16.47 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.6386, allocations: 0.6134 MB / 403.8 MB, free: 16.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.6391, allocations: 0.8234 MB / 404.6 MB, free: 15.51 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003873/0.6395, allocations: 54.42 kB / 404.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002113/0.6397, allocations: 126.4 kB / 404.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of SimCode: time 9.31e-07/0.6398, allocations: 0 / 404.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03767/0.6774, allocations: 9.721 MB / 414.5 MB, free: 13 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002642/0.6778, allocations: 214.7 kB / 414.7 MB, free: 12.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.986/3.664, allocations: 4 kB / 414.7 MB, free: 12.78 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