Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.174/2.174, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.545e-05/3.55e-05, allocations: 0 / 292.8 MB, free: 8.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 50.41 MB / 343.2 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.5843, allocations: 86.02 MB / 429.2 MB, free: 7.891 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.5847, allocations: 82.83 kB / 429.3 MB, free: 7.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04869/0.6334, allocations: 9.72 MB / 439 MB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.6335, allocations: 0 / 439 MB, free: 15.55 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.148e-05/0.6335, allocations: 12 kB / 439 MB, free: 15.54 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.002559/0.6361, allocations: 0.7582 MB / 439.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.6362, allocations: 8.031 kB / 439.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/0.6364, allocations: 87.89 kB / 439.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.6367, allocations: 63.25 kB / 439.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.6377, allocations: 398.4 kB / 440.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.944e-05/0.6378, allocations: 39.55 kB / 440.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.638, allocations: 52.19 kB / 440.4 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.6393, allocations: 471.3 kB / 440.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.6393, allocations: 0 / 440.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.279e-05/0.6394, allocations: 25.06 kB / 440.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.6395, allocations: 8 kB / 440.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.6405, allocations: 293 kB / 441.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005/0.6455, allocations: 1.788 MB / 443 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.6472, allocations: 374.9 kB / 443.3 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007762/0.648, allocations: 207.2 kB / 443.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.983e-05/0.6481, allocations: 8 kB / 443.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000732/0.6489, allocations: 260.4 kB / 443.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.967e-06/0.6489, allocations: 0 / 443.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001187/0.6501, allocations: 358.5 kB / 444.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.171e-05/0.6502, allocations: 122.6 kB / 444.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006761/0.6509, allocations: 323.2 kB / 444.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.6511, allocations: 37.14 kB / 444.6 MB, free: 10.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002608/0.6514, allocations: 250.9 kB / 444.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.6516, allocations: 125.4 kB / 445 MB, free: 10.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.813e-05/0.6516, allocations: 8.5 kB / 445 MB, free: 10.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.6518, allocations: 353.8 kB / 445.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004041/0.6522, allocations: 112.4 kB / 445.4 MB, free: 10.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004779/0.6527, allocations: 233.1 kB / 445.7 MB, free: 9.891 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004354/0.6532, allocations: 160.5 kB / 445.8 MB, free: 9.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.6532, allocations: 0 / 445.8 MB, free: 9.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001354/0.6546, allocations: 472.2 kB / 446.3 MB, free: 9.398 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006341/0.6553, allocations: 1.334 MB / 447.6 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.6554, allocations: 8 kB / 447.6 MB, free: 7.973 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005122/0.6559, allocations: 71.08 kB / 447.7 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007739/0.6567, allocations: 95.06 kB / 447.8 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/0.6593, allocations: 1.687 MB / 449.5 MB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000839/0.6602, allocations: 66.72 kB / 449.5 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.573e-05/0.6603, allocations: 16.14 kB / 449.6 MB, free: 6.125 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.6603, allocations: 4 kB / 449.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00122/0.6616, allocations: 428.5 kB / 450 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.6616, allocations: 7.984 kB / 450 MB, free: 5.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004015/0.662, allocations: 70.64 kB / 450.1 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007084/0.6628, allocations: 87.52 kB / 450.1 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002515/0.6653, allocations: 1.702 MB / 451.9 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007449/0.6661, allocations: 62.23 kB / 451.9 MB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.963e-05/0.6663, allocations: 15.38 kB / 451.9 MB, free: 3.945 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.0002802/0.6665, allocations: 137.7 kB / 452.1 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.6667, allocations: 47.44 kB / 452.1 MB, free: 3.773 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.668, allocations: 407 kB / 452.5 MB, free: 3.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.668, allocations: 7.953 kB / 452.5 MB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.668, allocations: 3.984 kB / 452.5 MB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.6681, allocations: 0 / 452.5 MB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.6707, allocations: 0.9922 MB / 453.5 MB, free: 2.652 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/0.6708, allocations: 7.938 kB / 453.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006907/0.6715, allocations: 71.33 kB / 453.6 MB, free: 2.578 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003924/0.6719, allocations: 65.64 kB / 453.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.67e-05/0.672, allocations: 7 kB / 453.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.6745, allocations: 1.694 MB / 455.4 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.6746, allocations: 0 / 455.4 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.6763, allocations: 0.6623 MB / 456 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.6768, allocations: 152.6 kB / 456.2 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.6769, allocations: 13.94 kB / 456.2 MB, free: 200 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006959/0.6776, allocations: 50.58 kB / 456.2 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.6779, allocations: 42.89 kB / 456.3 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.268e-05/0.6779, allocations: 14.94 kB / 456.3 MB, free: 108 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004974/0.6784, allocations: 258.3 kB / 456.5 MB, free: 15.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.6785, allocations: 0 / 456.5 MB, free: 15.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001457/0.6799, allocations: 243.5 kB / 456.8 MB, free: 15.69 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.002205/0.6822, allocations: 1.373 MB / 458.1 MB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.6846, allocations: 0.8687 MB / 459 MB, free: 13.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/0.6846, allocations: 0 / 459 MB, free: 13.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008217/0.6855, allocations: 305.4 kB / 459.3 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009036/0.6864, allocations: 82.7 kB / 459.4 MB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003469/0.6899, allocations: 0.8387 MB / 460.2 MB, free: 12.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.6906, allocations: 0.8602 MB / 461.1 MB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006188/0.6912, allocations: 67.72 kB / 461.2 MB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003838/0.6917, allocations: 163.4 kB / 461.3 MB, free: 11.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.834e-06/0.6917, allocations: 0 / 461.3 MB, free: 11.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05691/0.7486, allocations: 11.06 MB / 472.4 MB, free: 376 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003218/0.749, allocations: 219.3 kB / 472.6 MB, free: 144 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.937/3.686, allocations: 0 / 472.6 MB, free: 144 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat