Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.451e-05/4.458e-05, allocations: 4 kB / 292.2 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1085, allocations: 50.4 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4916/0.6002, allocations: 87.26 MB / 429.9 MB, free: 6.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003241/0.6006, allocations: 85.31 kB / 430 MB, free: 6.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06431/0.6649, allocations: 15.67 MB / 445.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.665, allocations: 4 kB / 445.7 MB, free: 9.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.897e-05/0.6651, allocations: 20 kB / 445.7 MB, free: 9.312 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00342/0.6685, allocations: 1.078 MB / 446.8 MB, free: 8.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.6686, allocations: 8.031 kB / 446.8 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003763/0.669, allocations: 143.1 kB / 446.9 MB, free: 8.137 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003583/0.6693, allocations: 118.6 kB / 447 MB, free: 8.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/0.671, allocations: 0.6342 MB / 447.7 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.041e-05/0.6711, allocations: 79.88 kB / 447.7 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002869/0.6714, allocations: 84.56 kB / 447.8 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/0.6741, allocations: 0.9267 MB / 448.7 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.465e-05/0.6742, allocations: 3.938 kB / 448.7 MB, free: 6.738 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.6743, allocations: 36.62 kB / 448.8 MB, free: 6.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.03e-05/0.6744, allocations: 28 kB / 448.8 MB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002124/0.6765, allocations: 0.6714 MB / 449.5 MB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008457/0.685, allocations: 3.778 MB / 453.3 MB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002053/0.6871, allocations: 0.7666 MB / 454 MB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.6884, allocations: 472 kB / 454.5 MB, free: 2.645 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.537e-05/0.6886, allocations: 8.781 kB / 454.5 MB, free: 2.637 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.6897, allocations: 450.8 kB / 454.9 MB, free: 2.246 MB / 362.7 MB Notification: Performance of pre-optimization done (n=83): time 8.336e-06/0.6898, allocations: 4 kB / 454.9 MB, free: 2.242 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.002438/0.6922, allocations: 0.8017 MB / 455.7 MB, free: 1.426 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.804e-05/0.6924, allocations: 115.6 kB / 455.9 MB, free: 1.289 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.6937, allocations: 0.5894 MB / 456.4 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000193/0.6939, allocations: 49.7 kB / 456.5 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000394/0.6943, allocations: 375.2 kB / 456.9 MB, free: 276 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003602/0.6947, allocations: 248.5 kB / 457.1 MB, free: 24 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.576e-05/0.6948, allocations: 16 kB / 457.1 MB, free: 8 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.695, allocations: 342.8 kB / 457.4 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007901/0.6958, allocations: 249.7 kB / 457.7 MB, free: 15.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008955/0.6967, allocations: 390.8 kB / 458.1 MB, free: 14.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007895/0.6975, allocations: 283.8 kB / 458.4 MB, free: 14.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.6976, allocations: 0 / 458.4 MB, free: 14.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002385/0.7, allocations: 0.8587 MB / 459.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005774/0.7006, allocations: 1.345 MB / 460.6 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.7006, allocations: 0 / 460.6 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.7021, allocations: 289.5 kB / 460.8 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008801/0.703, allocations: 111.8 kB / 460.9 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008021/0.711, allocations: 4.572 MB / 465.5 MB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.7123, allocations: 99.39 kB / 465.6 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001354/0.7124, allocations: 27.98 kB / 465.6 MB, free: 7.012 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.7125, allocations: 4 kB / 465.6 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002332/0.7148, allocations: 0.8185 MB / 466.5 MB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.7149, allocations: 8 kB / 466.5 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.7161, allocations: 281.5 kB / 466.7 MB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008072/0.7169, allocations: 99.83 kB / 466.8 MB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008197/0.7251, allocations: 4.533 MB / 471.4 MB, free: 0.9922 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008145/0.726, allocations: 75.59 kB / 471.5 MB, free: 0.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-05/0.7261, allocations: 28 kB / 471.5 MB, free: 0.8906 MB / 378.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: 32 ($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,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.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 (70): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003476/0.7265, allocations: 161 kB / 471.6 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003068/0.7268, allocations: 94.84 kB / 471.7 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003358/0.7272, allocations: 100.4 kB / 471.8 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.7272, allocations: 12 kB / 471.8 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.7272, allocations: 0 / 471.8 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.7272, allocations: 3.984 kB / 471.8 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004684/0.7319, allocations: 1.942 MB / 473.8 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.732, allocations: 0 / 473.8 MB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.7327, allocations: 75.83 kB / 473.9 MB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001322/0.7341, allocations: 285.6 kB / 474.1 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001468/0.7343, allocations: 12 kB / 474.1 MB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008041/0.7423, allocations: 4.553 MB / 478.7 MB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7424, allocations: 0 / 478.7 MB, free: 9.309 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003492/0.7459, allocations: 1.316 MB / 480 MB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006656/0.7466, allocations: 251.9 kB / 480.3 MB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.7468, allocations: 19.98 kB / 480.3 MB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008634/0.7477, allocations: 31.98 kB / 480.3 MB, free: 7.652 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000331/0.748, allocations: 88.59 kB / 480.4 MB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.831e-05/0.7481, allocations: 31.98 kB / 480.4 MB, free: 7.535 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009647/0.7491, allocations: 455.2 kB / 480.9 MB, free: 7.094 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7491, allocations: 4 kB / 480.9 MB, free: 7.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002272/0.7514, allocations: 443.1 kB / 481.3 MB, free: 6.656 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.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 (55): * Single equations (assignments): 47 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.003856/0.7553, allocations: 1.909 MB / 483.2 MB, free: 4.715 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004651/0.76, allocations: 1.857 MB / 485.1 MB, free: 2.793 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.7601, allocations: 0 / 485.1 MB, free: 2.793 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.7619, allocations: 0.7139 MB / 485.8 MB, free: 2.059 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.7633, allocations: 164.3 kB / 486 MB, free: 1.906 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005587/0.7689, allocations: 1.407 MB / 487.4 MB, free: 468 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009152/0.7699, allocations: 1.019 MB / 488.4 MB, free: 15.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007236/0.7706, allocations: 307.3 kB / 488.7 MB, free: 15.11 MB / 410.7 MB Notification: Performance of SimCode: time 1.173e-06/0.7707, allocations: 0 / 488.7 MB, free: 15.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.162/3.933, allocations: 22.65 MB / 0.4993 GB, free: 8.504 MB / 426.7 MB