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.02/2.02, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.115e-05/3.136e-05, allocations: 8 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3602, allocations: 44.49 MB / 294.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1736/0.5339, allocations: 77.26 MB / 371.5 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/0.5343, allocations: 83.95 kB / 371.6 MB, free: 4.621 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02917/0.5634, allocations: 6.806 MB / 378.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5635, allocations: 0 / 378.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.296e-05/0.5636, allocations: 16 kB / 378.4 MB, free: 13.77 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001708/0.5653, allocations: 0.6924 MB / 379.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.5654, allocations: 8.031 kB / 379.1 MB, free: 13.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.5656, allocations: 59.38 kB / 379.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007468/0.5663, allocations: 363.3 kB / 379.5 MB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.5664, allocations: 12 kB / 379.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.5665, allocations: 27.98 kB / 379.5 MB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007513/0.5672, allocations: 246.6 kB / 379.8 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009166/0.5682, allocations: 378.8 kB / 380.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.5682, allocations: 0 / 380.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.5683, allocations: 7.984 kB / 380.2 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.5683, allocations: 15.95 kB / 380.2 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003555/0.5719, allocations: 1.572 MB / 381.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000857/0.5728, allocations: 266.9 kB / 382 MB, free: 9.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/0.5732, allocations: 144.8 kB / 382.1 MB, free: 9.785 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.103e-05/0.5733, allocations: 3.938 kB / 382.2 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005408/0.5738, allocations: 217.7 kB / 382.4 MB, free: 9.547 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.965e-06/0.5739, allocations: 0 / 382.4 MB, free: 9.547 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008818/0.5748, allocations: 297.8 kB / 382.7 MB, free: 9.246 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.767e-05/0.5749, allocations: 140.5 kB / 382.8 MB, free: 9.078 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004288/0.5753, allocations: 250.2 kB / 383 MB, free: 8.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.088e-05/0.5754, allocations: 29.64 kB / 383.1 MB, free: 8.793 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.5756, allocations: 286.6 kB / 383.3 MB, free: 8.512 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.5757, allocations: 94.61 kB / 383.4 MB, free: 8.418 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.5758, allocations: 0 / 383.4 MB, free: 8.418 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5759, allocations: 326.8 kB / 383.8 MB, free: 8.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.5762, allocations: 84.88 kB / 383.8 MB, free: 8.004 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003683/0.5766, allocations: 222.9 kB / 384.1 MB, free: 7.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.5769, allocations: 104.5 kB / 384.2 MB, free: 7.629 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.5769, allocations: 0 / 384.2 MB, free: 7.629 MB / 330.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009755/0.5779, allocations: 350.5 kB / 384.5 MB, free: 7.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005984/0.5785, allocations: 1.425 MB / 385.9 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.5785, allocations: 4 kB / 385.9 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004373/0.579, allocations: 76.77 kB / 386 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004771/0.5795, allocations: 59.91 kB / 386.1 MB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.5819, allocations: 1.705 MB / 387.8 MB, free: 3.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006362/0.5826, allocations: 55.59 kB / 387.8 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.978e-05/0.5826, allocations: 20 kB / 387.8 MB, free: 3.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.5826, allocations: 4.188 kB / 387.8 MB, free: 3.699 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008616/0.5835, allocations: 312.8 kB / 388.2 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.5835, allocations: 7.938 kB / 388.2 MB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003341/0.5839, allocations: 81.2 kB / 388.2 MB, free: 3.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.5843, allocations: 55.92 kB / 388.3 MB, free: 3.246 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002244/0.5866, allocations: 1.674 MB / 390 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004834/0.5871, allocations: 47.62 kB / 390 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.092e-05/0.5871, allocations: 16 kB / 390 MB, free: 1.398 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.000218/0.5874, allocations: 134.9 kB / 390.2 MB, free: 1.262 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007755/0.5881, allocations: 298 kB / 390.5 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.231e-05/0.5882, allocations: 31.62 kB / 390.5 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.5884, allocations: 35.52 kB / 390.5 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.5884, allocations: 7.953 kB / 390.5 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.5884, allocations: 0 / 390.5 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.5884, allocations: 4.047 kB / 390.5 MB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.5903, allocations: 0.8869 MB / 391.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.5903, allocations: 0 / 391.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/0.5906, allocations: 27.98 kB / 391.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003216/0.591, allocations: 72.7 kB / 391.5 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.029e-05/0.591, allocations: 11.98 kB / 391.5 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.5931, allocations: 1.626 MB / 393.2 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5932, allocations: 0 / 393.2 MB, free: 14.08 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001183/0.5943, allocations: 0.5266 MB / 393.7 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.5946, allocations: 140.7 kB / 393.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.596e-05/0.5947, allocations: 4 kB / 393.8 MB, free: 13.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004787/0.5952, allocations: 28.22 kB / 393.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.5954, allocations: 35.95 kB / 393.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.202e-05/0.5954, allocations: 19.92 kB / 393.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002807/0.5957, allocations: 186 kB / 394.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5957, allocations: 0 / 394.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001236/0.597, allocations: 183.4 kB / 394.3 MB, free: 12.91 MB / 346.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.001588/0.5986, allocations: 1.16 MB / 395.4 MB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.6003, allocations: 0.7809 MB / 396.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.6003, allocations: 0 / 396.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005163/0.6008, allocations: 265.6 kB / 396.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005711/0.6014, allocations: 48.75 kB / 396.5 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.6037, allocations: 0.6632 MB / 397.2 MB, free: 9.863 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.6042, allocations: 0.8273 MB / 398 MB, free: 9.008 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003003/0.6045, allocations: 135.4 kB / 398.1 MB, free: 8.875 MB / 346.7 MB Notification: Performance of SimCode: time 9.41e-07/0.6045, allocations: 0 / 398.1 MB, free: 8.875 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.758/3.362, allocations: 8.203 MB / 406.3 MB, free: 0.6797 MB / 346.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