Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.509e-05/3.513e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.5541, allocations: 86.06 MB / 428.7 MB, free: 8.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.5545, allocations: 79.89 kB / 428.8 MB, free: 8.094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04409/0.5986, allocations: 9.712 MB / 438.5 MB, free: 15.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.5987, allocations: 0 / 438.5 MB, free: 15.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.206e-05/0.5988, allocations: 12 kB / 438.5 MB, free: 15.8 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.002228/0.601, allocations: 0.7631 MB / 439.3 MB, free: 15.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.6011, allocations: 12.03 kB / 439.3 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.6013, allocations: 89.89 kB / 439.4 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.6015, allocations: 63.25 kB / 439.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009231/0.6024, allocations: 394.5 kB / 439.8 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/0.6025, allocations: 40.11 kB / 439.9 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.6026, allocations: 48.56 kB / 439.9 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.6039, allocations: 472.8 kB / 440.4 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.6039, allocations: 7.938 kB / 440.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.938e-05/0.604, allocations: 18.38 kB / 440.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.6041, allocations: 12 kB / 440.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000916/0.605, allocations: 296 kB / 440.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004214/0.6092, allocations: 1.789 MB / 442.5 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.6107, allocations: 370.5 kB / 442.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006468/0.6114, allocations: 204.6 kB / 443 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.637e-05/0.6114, allocations: 7.938 kB / 443 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006205/0.6121, allocations: 260.5 kB / 443.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 4.027e-06/0.6121, allocations: 0 / 443.3 MB, free: 11.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.00106/0.6131, allocations: 364 kB / 443.7 MB, free: 11.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/0.6133, allocations: 114.6 kB / 443.8 MB, free: 11.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006313/0.6139, allocations: 330.7 kB / 444.1 MB, free: 11.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/0.614, allocations: 36.58 kB / 444.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002417/0.6142, allocations: 291.4 kB / 444.4 MB, free: 10.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.6144, allocations: 125.6 kB / 444.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.6145, allocations: 10.69 kB / 444.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.6146, allocations: 329.4 kB / 444.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.615, allocations: 107.7 kB / 445 MB, free: 10.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004593/0.6155, allocations: 236.1 kB / 445.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/0.6159, allocations: 149.9 kB / 445.4 MB, free: 9.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.6159, allocations: 8 kB / 445.4 MB, free: 9.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001166/0.6171, allocations: 446.9 kB / 445.8 MB, free: 9.637 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006984/0.6178, allocations: 1.339 MB / 447.1 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.6178, allocations: 4 kB / 447.1 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.6183, allocations: 74.31 kB / 447.2 MB, free: 8.152 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007264/0.619, allocations: 95.81 kB / 447.3 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.6216, allocations: 1.687 MB / 449 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007897/0.6224, allocations: 70.31 kB / 449.1 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.6225, allocations: 23.06 kB / 449.1 MB, free: 6.352 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.6225, allocations: 4 kB / 449.1 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001178/0.6237, allocations: 418.1 kB / 449.5 MB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.6238, allocations: 8.047 kB / 449.5 MB, free: 6.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003328/0.6241, allocations: 75.58 kB / 449.6 MB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006381/0.6248, allocations: 87.39 kB / 449.7 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.6271, allocations: 1.671 MB / 451.3 MB, free: 4.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005738/0.6277, allocations: 65.78 kB / 451.4 MB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.553e-05/0.6278, allocations: 15.5 kB / 451.4 MB, free: 4.203 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (50): * Single equations (assignments): 48 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002491/0.628, allocations: 142.3 kB / 451.6 MB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.6282, allocations: 47.44 kB / 451.6 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.6293, allocations: 410.6 kB / 452 MB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.6294, allocations: 7.953 kB / 452 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.6294, allocations: 0 / 452 MB, free: 3.723 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.467e-06/0.6294, allocations: 7.922 kB / 452 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002221/0.6316, allocations: 0.9837 MB / 453 MB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.6317, allocations: 8.016 kB / 453 MB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006354/0.6323, allocations: 70.95 kB / 453.1 MB, free: 2.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003349/0.6327, allocations: 61.83 kB / 453.1 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.375e-05/0.6327, allocations: 15.86 kB / 453.2 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.635, allocations: 1.69 MB / 454.8 MB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.635, allocations: 0 / 454.8 MB, free: 1.137 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/0.6365, allocations: 0.6666 MB / 455.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002685/0.6368, allocations: 158.9 kB / 455.7 MB, free: 456 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.6369, allocations: 10.62 kB / 455.7 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006135/0.6375, allocations: 47.22 kB / 455.7 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.6377, allocations: 42.58 kB / 455.8 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.6378, allocations: 19.86 kB / 455.8 MB, free: 360 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004297/0.6382, allocations: 250.6 kB / 456 MB, free: 160 kB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6382, allocations: 4 kB / 456 MB, free: 156 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.001261/0.6395, allocations: 237.4 kB / 456.3 MB, free: 15.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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_last,meanVoltage.y_last) * 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 (37): * Single equations (assignments): 30 * 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.001932/0.6414, allocations: 1.369 MB / 457.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.6434, allocations: 0.8627 MB / 458.5 MB, free: 13.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.6435, allocations: 4.062 kB / 458.5 MB, free: 13.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006415/0.6441, allocations: 303 kB / 458.8 MB, free: 13.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007263/0.6449, allocations: 73.95 kB / 458.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.6477, allocations: 0.862 MB / 459.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.6483, allocations: 0.8518 MB / 460.6 MB, free: 11.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.6487, allocations: 175.4 kB / 460.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6487, allocations: 0 / 460.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.793/3.441, allocations: 9.783 MB / 470.5 MB, free: 1.945 MB / 378.7 MB