Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.429e-05/3.438e-05, allocations: 4 kB / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.5326, allocations: 79.79 MB / 379.8 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.533, allocations: 89.77 kB / 379.8 MB, free: 12.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0555/0.5885, allocations: 14.72 MB / 394.6 MB, free: 10.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5886, allocations: 0 / 394.6 MB, free: 10.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.469e-05/0.5887, allocations: 27.2 kB / 394.6 MB, free: 10.9 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: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002772/0.5915, allocations: 1.053 MB / 395.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.5915, allocations: 7.875 kB / 395.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000309/0.5918, allocations: 135.2 kB / 395.8 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002988/0.5922, allocations: 116.9 kB / 395.9 MB, free: 10.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.5935, allocations: 0.6297 MB / 396.5 MB, free: 9.863 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.503e-05/0.5936, allocations: 68.38 kB / 396.6 MB, free: 9.855 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.5938, allocations: 87.5 kB / 396.7 MB, free: 9.855 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.596, allocations: 0.8912 MB / 397.6 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.103e-05/0.5961, allocations: 0 / 397.6 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001256/0.5962, allocations: 37.48 kB / 397.6 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.5962, allocations: 27.23 kB / 397.6 MB, free: 9.688 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001808/0.598, allocations: 0.6548 MB / 398.3 MB, free: 9.676 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007347/0.6054, allocations: 3.715 MB / 402 MB, free: 7.988 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001986/0.6075, allocations: 0.7475 MB / 402.7 MB, free: 7.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.6086, allocations: 434.6 kB / 403.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.733e-05/0.6087, allocations: 8.375 kB / 403.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.6097, allocations: 447 kB / 403.6 MB, free: 7.762 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 4.018e-06/0.6098, allocations: 4 kB / 403.6 MB, free: 7.758 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.002462/0.6122, allocations: 0.8379 MB / 404.5 MB, free: 7.598 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.6124, allocations: 126.4 kB / 404.6 MB, free: 7.465 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.6135, allocations: 0.5816 MB / 405.2 MB, free: 7.293 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002114/0.6137, allocations: 46.64 kB / 405.2 MB, free: 7.258 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.6141, allocations: 373.8 kB / 405.6 MB, free: 7.016 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002981/0.6144, allocations: 236.5 kB / 405.8 MB, free: 6.852 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.6144, allocations: 18.78 kB / 405.8 MB, free: 6.852 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.713e-05/0.6145, allocations: 340.8 kB / 406.2 MB, free: 6.527 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000685/0.6152, allocations: 239.2 kB / 406.4 MB, free: 6.527 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007274/0.616, allocations: 383.2 kB / 406.8 MB, free: 6.367 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006528/0.6167, allocations: 271.9 kB / 407 MB, free: 6.309 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.6167, allocations: 11.81 kB / 407 MB, free: 6.301 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002026/0.6187, allocations: 0.8561 MB / 407.9 MB, free: 6.141 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003386/0.6191, allocations: 1.344 MB / 409.2 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.6191, allocations: 7.844 kB / 409.3 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001476/0.6206, allocations: 318.6 kB / 409.6 MB, free: 4.664 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000747/0.6214, allocations: 93.42 kB / 409.7 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007554/0.629, allocations: 3.625 MB / 413.3 MB, free: 18.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.6302, allocations: 92.94 kB / 413.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.6304, allocations: 27.06 kB / 413.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.6304, allocations: 3.844 kB / 413.4 MB, free: 18.9 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00216/0.6326, allocations: 0.8173 MB / 414.2 MB, free: 18.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.851e-05/0.6327, allocations: 7.781 kB / 414.2 MB, free: 18.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/0.6339, allocations: 320.3 kB / 414.5 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/0.6347, allocations: 85.84 kB / 414.6 MB, free: 18.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00737/0.6421, allocations: 3.592 MB / 418.2 MB, free: 17.03 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007866/0.6429, allocations: 66.22 kB / 418.3 MB, free: 17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/0.643, allocations: 25.31 kB / 418.3 MB, free: 17 MB / 330.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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 (62): * Single equations (assignments): 60 * 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 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0004105/0.6434, allocations: 170.7 kB / 418.5 MB, free: 16.87 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002915/0.6437, allocations: 85.61 kB / 418.6 MB, free: 16.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003455/0.6441, allocations: 96.08 kB / 418.6 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.6441, allocations: 7.781 kB / 418.7 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.6441, allocations: 3.984 kB / 418.7 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.272e-05/0.6441, allocations: 7.922 kB / 418.7 MB, free: 16.79 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004537/0.6487, allocations: 1.913 MB / 420.6 MB, free: 16.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.6488, allocations: 0 / 420.6 MB, free: 16.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006057/0.6494, allocations: 66.28 kB / 420.6 MB, free: 16.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/0.6508, allocations: 311.8 kB / 420.9 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.651, allocations: 15.86 kB / 421 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00756/0.6586, allocations: 3.629 MB / 424.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.6587, allocations: 3.969 kB / 424.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003261/0.662, allocations: 1.3 MB / 425.9 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006812/0.6627, allocations: 254.3 kB / 426.1 MB, free: 12.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.6629, allocations: 19.7 kB / 426.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008281/0.6637, allocations: 39.12 kB / 426.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.6641, allocations: 83.38 kB / 426.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.965e-05/0.6642, allocations: 27.61 kB / 426.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009058/0.6651, allocations: 451.8 kB / 426.8 MB, free: 11.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6651, allocations: 3.75 kB / 426.8 MB, free: 11.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001965/0.6671, allocations: 431.2 kB / 427.2 MB, free: 11.79 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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,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 (48): * Single equations (assignments): 41 * 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 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.003791/0.6709, allocations: 1.88 MB / 429.1 MB, free: 10.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006779/0.6777, allocations: 1.702 MB / 430.8 MB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/0.6778, allocations: 0 / 430.8 MB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002482/0.6803, allocations: 0.6304 MB / 431.4 MB, free: 9.074 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.6823, allocations: 162.5 kB / 431.5 MB, free: 8.984 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007943/0.6903, allocations: 1.357 MB / 432.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.6917, allocations: 1.015 MB / 433.9 MB, free: 7.355 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.6928, allocations: 297.1 kB / 434.2 MB, free: 7.105 MB / 330.7 MB Notification: Performance of SimCode: time 5.28e-06/0.6929, allocations: 0 / 434.2 MB, free: 7.105 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.039/3.732, allocations: 18.41 MB / 452.6 MB, free: 8.812 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.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat