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 1.968/1.968, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.829e-05/3.845e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 44.52 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4633/0.5655, allocations: 77.92 MB / 377.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/0.5659, allocations: 86.16 kB / 378 MB, free: 12.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02911/0.595, allocations: 6.874 MB / 384.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5951, allocations: 1.281 kB / 384.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.993e-05/0.5952, allocations: 10.09 kB / 384.8 MB, free: 11.91 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.001707/0.5969, allocations: 0.7026 MB / 385.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.5969, allocations: 10.34 kB / 385.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001386/0.5971, allocations: 83.88 kB / 385.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001666/0.5973, allocations: 54.8 kB / 385.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000738/0.598, allocations: 355.3 kB / 386 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.008e-05/0.5981, allocations: 34.47 kB / 386.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.5982, allocations: 43.98 kB / 386.1 MB, free: 11.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.5993, allocations: 433.2 kB / 386.5 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.449e-05/0.5993, allocations: 1.312 kB / 386.5 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.833e-05/0.5994, allocations: 14.78 kB / 386.6 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.5994, allocations: 10.31 kB / 386.6 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007746/0.6002, allocations: 278.3 kB / 386.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003426/0.6037, allocations: 1.663 MB / 388.5 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008968/0.6046, allocations: 288.1 kB / 388.8 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004689/0.6051, allocations: 149.9 kB / 388.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.599e-05/0.6052, allocations: 8.703 kB / 388.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005289/0.6057, allocations: 232.2 kB / 389.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 5.31e-06/0.6057, allocations: 0 / 389.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009085/0.6067, allocations: 326 kB / 389.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/0.6067, allocations: 142.7 kB / 389.6 MB, free: 9.809 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004857/0.6072, allocations: 308.8 kB / 389.9 MB, free: 9.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.151e-05/0.6073, allocations: 41.14 kB / 390 MB, free: 9.668 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.6075, allocations: 269.2 kB / 390.2 MB, free: 9.469 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.787e-05/0.6076, allocations: 113.7 kB / 390.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.6076, allocations: 3.75 kB / 390.3 MB, free: 9.406 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.002e-05/0.6077, allocations: 325.7 kB / 390.7 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002615/0.608, allocations: 96.88 kB / 390.8 MB, free: 9.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.6083, allocations: 224.8 kB / 391 MB, free: 8.938 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.6087, allocations: 147.5 kB / 391.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.6087, allocations: 0 / 391.1 MB, free: 8.895 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009496/0.6096, allocations: 427.4 kB / 391.5 MB, free: 8.781 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003143/0.61, allocations: 1.424 MB / 393 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.61, allocations: 3.844 kB / 393 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004415/0.6105, allocations: 75.39 kB / 393 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.6109, allocations: 72.38 kB / 393.1 MB, free: 7.262 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.6131, allocations: 1.751 MB / 394.9 MB, free: 5.895 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006979/0.6138, allocations: 63.69 kB / 394.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.6139, allocations: 15.31 kB / 394.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.6139, allocations: 7.938 kB / 394.9 MB, free: 5.875 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009306/0.6149, allocations: 389.4 kB / 395.3 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.6149, allocations: 4.344 kB / 395.3 MB, free: 5.809 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.6153, allocations: 79.61 kB / 395.4 MB, free: 5.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003799/0.6157, allocations: 60.08 kB / 395.5 MB, free: 5.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002522/0.6182, allocations: 1.744 MB / 397.2 MB, free: 20.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.6188, allocations: 55.81 kB / 397.3 MB, free: 20.4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.6188, allocations: 23.19 kB / 397.3 MB, free: 20.4 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.0002368/0.6191, allocations: 139.9 kB / 397.4 MB, free: 20.28 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.6192, allocations: 43.11 kB / 397.5 MB, free: 20.26 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.6194, allocations: 40.08 kB / 397.5 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.6194, allocations: 3.875 kB / 397.5 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.6194, allocations: 0 / 397.5 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.6195, allocations: 3.094 kB / 397.5 MB, free: 20.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.6214, allocations: 0.9773 MB / 398.5 MB, free: 19.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.6214, allocations: 0 / 398.5 MB, free: 19.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003403/0.6218, allocations: 36.7 kB / 398.5 MB, free: 19.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003233/0.6221, allocations: 68.02 kB / 398.6 MB, free: 19.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.437e-05/0.6222, allocations: 6.625 kB / 398.6 MB, free: 19.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.6244, allocations: 1.692 MB / 400.3 MB, free: 18.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.6245, allocations: 0 / 400.3 MB, free: 18.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/0.6257, allocations: 0.5572 MB / 400.8 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/0.626, allocations: 143.6 kB / 401 MB, free: 18.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.126e-05/0.6261, allocations: 13.22 kB / 401 MB, free: 18.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004989/0.6266, allocations: 33.39 kB / 401 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.6268, allocations: 39.56 kB / 401.1 MB, free: 18.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.833e-05/0.6269, allocations: 18.34 kB / 401.1 MB, free: 18.12 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003893/0.6273, allocations: 239.4 kB / 401.3 MB, free: 18.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6273, allocations: 0 / 401.3 MB, free: 18.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001122/0.6284, allocations: 209 kB / 401.5 MB, free: 18.02 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.001728/0.6302, allocations: 1.186 MB / 402.7 MB, free: 17.23 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.6321, allocations: 0.837 MB / 403.6 MB, free: 16.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.6321, allocations: 8.062 kB / 403.6 MB, free: 16.82 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005622/0.6327, allocations: 269.7 kB / 403.8 MB, free: 16.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000678/0.6334, allocations: 65.83 kB / 403.9 MB, free: 16.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002477/0.6359, allocations: 0.6962 MB / 404.6 MB, free: 16.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005155/0.6365, allocations: 0.836 MB / 405.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.6368, allocations: 137.3 kB / 405.6 MB, free: 15.63 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6368, allocations: 0 / 405.6 MB, free: 15.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.829/3.466, allocations: 8.518 MB / 414.1 MB, free: 13.6 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