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.078/2.078, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.314e-05/2.333e-05, allocations: 0 / 249.7 MB, free: 14.79 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3492, allocations: 44.49 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1537/0.503, allocations: 76.96 MB / 371.2 MB, free: 4.875 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003217/0.5034, allocations: 83.94 kB / 371.3 MB, free: 4.793 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02992/0.5333, allocations: 6.483 MB / 377.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.5334, allocations: 0 / 377.8 MB, free: 14.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.533e-05/0.5334, allocations: 16 kB / 377.8 MB, free: 14.26 MB / 330.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.00213/0.5356, allocations: 0.6783 MB / 378.5 MB, free: 13.53 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.562e-05/0.5357, allocations: 12.03 kB / 378.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000266/0.5359, allocations: 51.39 kB / 378.5 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008326/0.5368, allocations: 354.9 kB / 378.9 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.5368, allocations: 16 kB / 378.9 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.982e-05/0.5369, allocations: 27.98 kB / 378.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007759/0.5377, allocations: 233.5 kB / 379.1 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009306/0.5387, allocations: 351.9 kB / 379.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.5387, allocations: 0 / 379.5 MB, free: 12.44 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.594e-05/0.5388, allocations: 3.984 kB / 379.5 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.5388, allocations: 12 kB / 379.5 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003454/0.5423, allocations: 1.497 MB / 381 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007902/0.5431, allocations: 254.9 kB / 381.2 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004179/0.5435, allocations: 132.8 kB / 381.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.5436, allocations: 4 kB / 381.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005324/0.5441, allocations: 228 kB / 381.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 3.115e-06/0.5442, allocations: 4 kB / 381.6 MB, free: 10.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008315/0.545, allocations: 279.7 kB / 381.9 MB, free: 9.914 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.5451, allocations: 140.5 kB / 382 MB, free: 9.746 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.5455, allocations: 242.2 kB / 382.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.691e-05/0.5456, allocations: 29.73 kB / 382.3 MB, free: 9.469 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.5459, allocations: 224.2 kB / 382.5 MB, free: 9.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.546, allocations: 98.64 kB / 382.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.546, allocations: 0 / 382.6 MB, free: 9.148 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.5462, allocations: 342.8 kB / 382.9 MB, free: 8.805 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.5465, allocations: 84.88 kB / 383 MB, free: 8.723 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00037/0.5469, allocations: 207.2 kB / 383.2 MB, free: 8.457 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.5472, allocations: 101.1 kB / 383.3 MB, free: 8.363 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.5472, allocations: 0 / 383.3 MB, free: 8.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000965/0.5482, allocations: 363 kB / 383.7 MB, free: 8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007058/0.5489, allocations: 1.432 MB / 385.1 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.5489, allocations: 8 kB / 385.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004889/0.5494, allocations: 72.83 kB / 385.2 MB, free: 6.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004344/0.5499, allocations: 63.84 kB / 385.2 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/0.5525, allocations: 1.725 MB / 387 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006372/0.5532, allocations: 63.81 kB / 387 MB, free: 4.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.5533, allocations: 19.94 kB / 387 MB, free: 4.383 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.5533, allocations: 7.953 kB / 387.1 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008718/0.5542, allocations: 305.7 kB / 387.4 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.5542, allocations: 0 / 387.4 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003676/0.5546, allocations: 80.81 kB / 387.4 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003334/0.5549, allocations: 43.92 kB / 387.5 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002581/0.5575, allocations: 1.763 MB / 389.2 MB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.5581, allocations: 39.73 kB / 389.3 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.5581, allocations: 19.98 kB / 389.3 MB, free: 2.016 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.0002171/0.5584, allocations: 130.9 kB / 389.4 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007415/0.5591, allocations: 293.9 kB / 389.7 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.5592, allocations: 31.62 kB / 389.7 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.5593, allocations: 35.47 kB / 389.8 MB, free: 1.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.5594, allocations: 7.938 kB / 389.8 MB, free: 1.512 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.5594, allocations: 4 kB / 389.8 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.006e-06/0.5594, allocations: 3.984 kB / 389.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.5611, allocations: 0.855 MB / 390.6 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5612, allocations: 0 / 390.6 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002508/0.5614, allocations: 27.92 kB / 390.7 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000348/0.5618, allocations: 76.81 kB / 390.7 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.5618, allocations: 0 / 390.7 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002302/0.5641, allocations: 1.697 MB / 392.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.5642, allocations: 0 / 392.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.5653, allocations: 0.511 MB / 393 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002268/0.5656, allocations: 148.5 kB / 393.1 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.247e-05/0.5657, allocations: 0 / 393.1 MB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005035/0.5662, allocations: 32.03 kB / 393.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.5664, allocations: 35.95 kB / 393.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.5664, allocations: 11.98 kB / 393.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002711/0.5667, allocations: 182 kB / 393.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5667, allocations: 0 / 393.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001225/0.5679, allocations: 191.4 kB / 393.5 MB, free: 13.53 MB / 346.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.001511/0.5695, allocations: 1.136 MB / 394.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.5713, allocations: 0.7789 MB / 395.5 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5713, allocations: 1.875 kB / 395.5 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005407/0.5718, allocations: 269.4 kB / 395.7 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.5724, allocations: 44.92 kB / 395.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.5746, allocations: 0.5667 MB / 396.3 MB, free: 10.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004961/0.5752, allocations: 0.8236 MB / 397.2 MB, free: 9.754 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003437/0.5755, allocations: 43.27 kB / 397.2 MB, free: 9.711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.5758, allocations: 127.4 kB / 397.3 MB, free: 9.586 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5758, allocations: 0 / 397.3 MB, free: 9.586 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05215/0.628, allocations: 8.322 MB / 405.6 MB, free: 1.289 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003489/0.6284, allocations: 178.1 kB / 405.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.904/3.532, allocations: 4.031 kB / 405.8 MB, free: 1.094 MB / 346.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