Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.169/2.169, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.638e-05/2.652e-05, allocations: 2.031 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4605/0.5616, allocations: 76.95 MB / 371.3 MB, free: 7.168 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/0.562, allocations: 87.34 kB / 371.3 MB, free: 7.168 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03884/0.6009, allocations: 6.477 MB / 377.8 MB, free: 22.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.6009, allocations: 7.781 kB / 377.8 MB, free: 22.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.893e-05/0.601, allocations: 11.78 kB / 377.8 MB, free: 22.08 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.00192/0.6029, allocations: 0.6737 MB / 378.5 MB, free: 21.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.603, allocations: 7.625 kB / 378.5 MB, free: 21.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.6032, allocations: 54.45 kB / 378.6 MB, free: 21.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006983/0.6039, allocations: 355.5 kB / 378.9 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.604, allocations: 11.62 kB / 378.9 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.533e-05/0.6041, allocations: 28.94 kB / 379 MB, free: 21.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007347/0.6048, allocations: 234.2 kB / 379.2 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008648/0.6057, allocations: 357.5 kB / 379.5 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.6057, allocations: 0 / 379.5 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.183e-05/0.6058, allocations: 0 / 379.5 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.6058, allocations: 11.84 kB / 379.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003307/0.6092, allocations: 1.502 MB / 381.1 MB, free: 20.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007585/0.61, allocations: 260.2 kB / 381.3 MB, free: 20.05 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000405/0.6104, allocations: 130.8 kB / 381.4 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.6105, allocations: 3.781 kB / 381.4 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005218/0.611, allocations: 217.4 kB / 381.7 MB, free: 19.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 4.138e-06/0.611, allocations: 0 / 381.7 MB, free: 19.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008523/0.6119, allocations: 282.2 kB / 381.9 MB, free: 19.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.612, allocations: 144.2 kB / 382.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.6124, allocations: 241.4 kB / 382.3 MB, free: 19.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.267e-05/0.6125, allocations: 33.55 kB / 382.3 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.6127, allocations: 224 kB / 382.6 MB, free: 19.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.6128, allocations: 91.84 kB / 382.6 MB, free: 19.31 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.06e-05/0.6129, allocations: 0 / 382.6 MB, free: 19.31 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.6131, allocations: 349.7 kB / 383 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.6133, allocations: 83.12 kB / 383.1 MB, free: 18.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003221/0.6137, allocations: 204.3 kB / 383.3 MB, free: 18.83 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.614, allocations: 107.4 kB / 383.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.614, allocations: 0 / 383.4 MB, free: 18.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009743/0.615, allocations: 358.6 kB / 383.7 MB, free: 18.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006347/0.6156, allocations: 1.428 MB / 385.2 MB, free: 17.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.6156, allocations: 7.781 kB / 385.2 MB, free: 17.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005178/0.6162, allocations: 79.94 kB / 385.2 MB, free: 17.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004742/0.6167, allocations: 58.56 kB / 385.3 MB, free: 17.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004227/0.6209, allocations: 1.736 MB / 387 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009653/0.6219, allocations: 58.84 kB / 387.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.857e-05/0.622, allocations: 15.19 kB / 387.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.6221, allocations: 9.922 kB / 387.1 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001984/0.6241, allocations: 305.9 kB / 387.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.6241, allocations: 3.875 kB / 387.4 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005454/0.6247, allocations: 76.61 kB / 387.5 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004696/0.6252, allocations: 50.81 kB / 387.5 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004761/0.63, allocations: 1.771 MB / 389.3 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007928/0.6308, allocations: 38.98 kB / 389.3 MB, free: 14.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001581/0.631, allocations: 17.09 kB / 389.4 MB, free: 14.26 MB / 314.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.0005439/0.6316, allocations: 137.5 kB / 389.5 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00155/0.6332, allocations: 288.9 kB / 389.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.6333, allocations: 31.12 kB / 389.8 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.6335, allocations: 38.09 kB / 389.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.6335, allocations: 3.969 kB / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.6336, allocations: 0 / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.6336, allocations: 0 / 389.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.6362, allocations: 0.858 MB / 390.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.6363, allocations: 0 / 390.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.6367, allocations: 32.55 kB / 390.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000827/0.6375, allocations: 71.94 kB / 390.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6377, allocations: 4.625 kB / 390.8 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003656/0.6414, allocations: 1.684 MB / 392.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.6414, allocations: 8.031 kB / 392.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.6438, allocations: 0.5137 MB / 393 MB, free: 11.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003815/0.6442, allocations: 138.9 kB / 393.2 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001393/0.6444, allocations: 11.86 kB / 393.2 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007321/0.6451, allocations: 31.23 kB / 393.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.6454, allocations: 35.22 kB / 393.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.138e-05/0.6455, allocations: 11.47 kB / 393.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004126/0.6459, allocations: 184.5 kB / 393.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.6459, allocations: 3.938 kB / 393.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002973/0.6489, allocations: 186.5 kB / 393.6 MB, free: 11.61 MB / 314.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.002229/0.6512, allocations: 1.134 MB / 394.7 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002897/0.6541, allocations: 0.7835 MB / 395.5 MB, free: 10.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/0.6541, allocations: 0 / 395.5 MB, free: 10.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00072/0.6549, allocations: 268.2 kB / 395.8 MB, free: 10.26 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007736/0.6557, allocations: 43.7 kB / 395.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.6594, allocations: 0.5678 MB / 396.4 MB, free: 9.938 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007894/0.6602, allocations: 0.8282 MB / 397.2 MB, free: 9.168 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005779/0.6608, allocations: 46.17 kB / 397.3 MB, free: 9.148 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.6611, allocations: 123.1 kB / 397.4 MB, free: 9.129 MB / 314.7 MB Notification: Performance of SimCode: time 1.203e-06/0.6612, allocations: 0 / 397.4 MB, free: 9.129 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06264/0.7238, allocations: 8.323 MB / 405.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003579/0.7242, allocations: 186.4 kB / 405.9 MB, free: 4.953 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.223/3.947, allocations: 0 / 405.9 MB, free: 4.953 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat