Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.206/2.206, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.905e-05/3.921e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1384, allocations: 50.41 MB / 342.7 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4741/0.6126, allocations: 86.02 MB / 428.7 MB, free: 7.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003995/0.613, allocations: 88.69 kB / 428.8 MB, free: 7.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04867/0.6617, allocations: 9.711 MB / 438.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.6618, allocations: 0 / 438.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.719e-05/0.6619, allocations: 15.92 kB / 438.5 MB, free: 15.52 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002401/0.6643, allocations: 0.7598 MB / 439.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.6644, allocations: 12.03 kB / 439.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002414/0.6646, allocations: 86.95 kB / 439.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.6648, allocations: 67.23 kB / 439.4 MB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.6659, allocations: 400.1 kB / 439.8 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.833e-05/0.666, allocations: 31.06 kB / 439.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.6661, allocations: 50.19 kB / 439.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.6674, allocations: 473.7 kB / 440.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.6675, allocations: 3.984 kB / 440.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/0.6676, allocations: 18.25 kB / 440.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.6676, allocations: 12 kB / 440.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009556/0.6686, allocations: 295.7 kB / 440.7 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/0.6733, allocations: 1.789 MB / 442.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.6748, allocations: 373.2 kB / 442.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006869/0.6755, allocations: 205.7 kB / 443 MB, free: 11.72 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.574e-05/0.6756, allocations: 11.97 kB / 443 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006901/0.6763, allocations: 252.1 kB / 443.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.627e-06/0.6764, allocations: 0 / 443.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001123/0.6775, allocations: 364 kB / 443.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.937e-05/0.6776, allocations: 118.6 kB / 443.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006238/0.6783, allocations: 329.2 kB / 444.1 MB, free: 10.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.794e-05/0.6784, allocations: 36.45 kB / 444.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.6786, allocations: 247.4 kB / 444.3 MB, free: 10.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.6788, allocations: 128.6 kB / 444.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.6789, allocations: 7.312 kB / 444.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.679, allocations: 357 kB / 444.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.6794, allocations: 110.2 kB / 444.9 MB, free: 10.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004885/0.6799, allocations: 237.5 kB / 445.2 MB, free: 9.875 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004031/0.6803, allocations: 149.6 kB / 445.3 MB, free: 9.762 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.6803, allocations: 4 kB / 445.3 MB, free: 9.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001273/0.6816, allocations: 469 kB / 445.8 MB, free: 9.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006044/0.6823, allocations: 1.34 MB / 447.1 MB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.6823, allocations: 4 kB / 447.1 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004733/0.6828, allocations: 74.92 kB / 447.2 MB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007186/0.6835, allocations: 95.81 kB / 447.3 MB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00249/0.686, allocations: 1.698 MB / 449 MB, free: 6.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007875/0.6869, allocations: 67.34 kB / 449.1 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.752e-05/0.687, allocations: 19.8 kB / 449.1 MB, free: 6.098 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.687, allocations: 5.406 kB / 449.1 MB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001186/0.6882, allocations: 418.5 kB / 449.5 MB, free: 5.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.6882, allocations: 4 kB / 449.5 MB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003663/0.6886, allocations: 67.08 kB / 449.6 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006372/0.6893, allocations: 87.02 kB / 449.6 MB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002502/0.6918, allocations: 1.693 MB / 451.3 MB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007505/0.6926, allocations: 62.92 kB / 451.4 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.164e-05/0.6927, allocations: 15.75 kB / 451.4 MB, free: 3.941 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (50): * Single equations (assignments): 48 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002617/0.6929, allocations: 142.9 kB / 451.5 MB, free: 3.809 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.6931, allocations: 47.56 kB / 451.6 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.6943, allocations: 414 kB / 452 MB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.6944, allocations: 11.95 kB / 452 MB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.6944, allocations: 0 / 452 MB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.6944, allocations: 0 / 452 MB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.6968, allocations: 0.991 MB / 453 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.6968, allocations: 8.016 kB / 453 MB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006554/0.6975, allocations: 71.27 kB / 453.1 MB, free: 2.559 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003526/0.6979, allocations: 62.14 kB / 453.1 MB, free: 2.512 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.472e-05/0.698, allocations: 11.12 kB / 453.2 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002391/0.7004, allocations: 1.686 MB / 454.8 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.7004, allocations: 4.062 kB / 454.8 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.7021, allocations: 0.6628 MB / 455.5 MB, free: 344 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.7024, allocations: 154 kB / 455.7 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.7026, allocations: 10 kB / 455.7 MB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000639/0.7032, allocations: 47.83 kB / 455.7 MB, free: 144 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.7034, allocations: 46.33 kB / 455.8 MB, free: 108 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.812e-05/0.7035, allocations: 12.09 kB / 455.8 MB, free: 96 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005184/0.704, allocations: 254.6 kB / 456 MB, free: 15.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.704, allocations: 4 kB / 456 MB, free: 15.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001377/0.7054, allocations: 243.5 kB / 456.3 MB, free: 15.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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_last,meanVoltage.y_last) * 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 (37): * Single equations (assignments): 30 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002101/0.7075, allocations: 1.383 MB / 457.6 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002125/0.7097, allocations: 0.8677 MB / 458.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.7098, allocations: 0 / 458.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007353/0.7105, allocations: 305.4 kB / 458.8 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008369/0.7114, allocations: 78.09 kB / 458.9 MB, free: 13.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.7146, allocations: 0.839 MB / 459.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005787/0.7152, allocations: 0.8563 MB / 460.6 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005976/0.7158, allocations: 79.33 kB / 460.7 MB, free: 11.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.7162, allocations: 163.4 kB / 460.8 MB, free: 11.24 MB / 378.7 MB Notification: Performance of SimCode: time 1.443e-06/0.7162, allocations: 0 / 460.8 MB, free: 11.24 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04974/0.7659, allocations: 11.05 MB / 471.9 MB, free: 416 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003572/0.7664, allocations: 227.1 kB / 472.1 MB, free: 176 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.025/3.791, allocations: 0 / 472.1 MB, free: 176 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat