Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.052/2.052, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.77e-05/4.779e-05, allocations: 7.984 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09549/0.09558, allocations: 44.5 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4432/0.5389, allocations: 77.93 MB / 377.9 MB, free: 12.53 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003247/0.5393, allocations: 82.61 kB / 378 MB, free: 12.53 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03026/0.5695, allocations: 6.881 MB / 384.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5696, allocations: 0 / 384.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.846e-05/0.5697, allocations: 9.031 kB / 384.9 MB, free: 11.67 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001852/0.5715, allocations: 0.7033 MB / 385.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.604e-05/0.5716, allocations: 8.875 kB / 385.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001642/0.5718, allocations: 85.09 kB / 385.7 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001811/0.572, allocations: 57.31 kB / 385.7 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007606/0.5728, allocations: 353.7 kB / 386.1 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.5728, allocations: 32.97 kB / 386.1 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.573, allocations: 44.5 kB / 386.1 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.5741, allocations: 424.3 kB / 386.6 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.5742, allocations: 5.312 kB / 386.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.302e-05/0.5742, allocations: 18.12 kB / 386.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.5743, allocations: 10.38 kB / 386.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008215/0.5751, allocations: 270.7 kB / 386.9 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003708/0.5788, allocations: 1.67 MB / 388.5 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009146/0.5798, allocations: 290 kB / 388.8 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004394/0.5803, allocations: 148.2 kB / 389 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.36e-05/0.5803, allocations: 3.875 kB / 389 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005321/0.5809, allocations: 225.9 kB / 389.2 MB, free: 9.801 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.036e-06/0.5809, allocations: 3.938 kB / 389.2 MB, free: 9.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009312/0.5818, allocations: 329.5 kB / 389.5 MB, free: 9.723 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.5819, allocations: 135.8 kB / 389.6 MB, free: 9.566 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005076/0.5825, allocations: 308.3 kB / 389.9 MB, free: 9.461 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.772e-05/0.5825, allocations: 40.64 kB / 390 MB, free: 9.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.5827, allocations: 269.6 kB / 390.2 MB, free: 9.227 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.5829, allocations: 113.6 kB / 390.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.5829, allocations: 7.75 kB / 390.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.813e-05/0.583, allocations: 326.8 kB / 390.7 MB, free: 8.852 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.5833, allocations: 93 kB / 390.8 MB, free: 8.848 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003625/0.5837, allocations: 224.7 kB / 391 MB, free: 8.695 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/0.584, allocations: 143.5 kB / 391.1 MB, free: 8.652 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.584, allocations: 0 / 391.1 MB, free: 8.652 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009526/0.585, allocations: 411.2 kB / 391.5 MB, free: 8.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003335/0.5853, allocations: 1.426 MB / 393 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.5854, allocations: 1.156 kB / 393 MB, free: 7.055 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004685/0.5858, allocations: 81.55 kB / 393 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004831/0.5863, allocations: 63.75 kB / 393.1 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00268/0.589, allocations: 1.754 MB / 394.9 MB, free: 21.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007451/0.5898, allocations: 71.97 kB / 394.9 MB, free: 21.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.581e-05/0.5899, allocations: 19.47 kB / 394.9 MB, free: 21.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.5899, allocations: 3.875 kB / 394.9 MB, free: 21.64 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009039/0.5909, allocations: 379.3 kB / 395.3 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.5909, allocations: 3.875 kB / 395.3 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/0.5912, allocations: 75.88 kB / 395.4 MB, free: 21.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/0.5916, allocations: 66.06 kB / 395.5 MB, free: 21.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00228/0.5939, allocations: 1.74 MB / 397.2 MB, free: 20.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005129/0.5945, allocations: 55.7 kB / 397.3 MB, free: 20.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.5945, allocations: 14.84 kB / 397.3 MB, free: 20.17 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 (43): * Single equations (assignments): 41 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002434/0.5948, allocations: 147.2 kB / 397.4 MB, free: 20.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.5949, allocations: 46.09 kB / 397.5 MB, free: 20.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.5951, allocations: 41.64 kB / 397.5 MB, free: 20.01 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.5951, allocations: 3.875 kB / 397.5 MB, free: 20.01 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5951, allocations: 0 / 397.5 MB, free: 20.01 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.5951, allocations: 3.141 kB / 397.5 MB, free: 20.01 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/0.597, allocations: 0.9714 MB / 398.5 MB, free: 19.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.597, allocations: 0 / 398.5 MB, free: 19.6 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003419/0.5974, allocations: 36.89 kB / 398.5 MB, free: 19.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003183/0.5977, allocations: 64.92 kB / 398.6 MB, free: 19.59 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.5978, allocations: 7.406 kB / 398.6 MB, free: 19.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002195/0.6, allocations: 1.696 MB / 400.3 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6, allocations: 4.062 kB / 400.3 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.6013, allocations: 0.56 MB / 400.8 MB, free: 18.01 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002632/0.6015, allocations: 143.2 kB / 401 MB, free: 17.89 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.036e-05/0.6017, allocations: 14 kB / 401 MB, free: 17.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004994/0.6022, allocations: 33.8 kB / 401 MB, free: 17.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.6023, allocations: 38.36 kB / 401.1 MB, free: 17.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.6024, allocations: 12.97 kB / 401.1 MB, free: 17.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003805/0.6028, allocations: 236.7 kB / 401.3 MB, free: 17.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6028, allocations: 0 / 401.3 MB, free: 17.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001172/0.6039, allocations: 202.7 kB / 401.5 MB, free: 17.78 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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 (29): * Single equations (assignments): 22 * 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.001611/0.6056, allocations: 1.186 MB / 402.7 MB, free: 16.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.6073, allocations: 0.8109 MB / 403.5 MB, free: 16.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.6073, allocations: 1.875 kB / 403.5 MB, free: 16.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005221/0.6079, allocations: 265.7 kB / 403.8 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.0006711/0.6086, allocations: 63.09 kB / 403.8 MB, free: 16.48 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002254/0.6108, allocations: 0.6939 MB / 404.5 MB, free: 16.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.6114, allocations: 0.8309 MB / 405.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/0.6118, allocations: 136.1 kB / 405.5 MB, free: 15.44 MB / 330.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6118, allocations: 3.938 kB / 405.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.785/3.397, allocations: 8.513 MB / 414 MB, free: 13.38 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_RL_res.mat does not exist to compare? outputFormat=mat