Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 2.296/2.296, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.858e-05/2.875e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 50.42 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.007992/0.1209, allocations: 4.573 MB / 349.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003775/0.1247, allocations: 1.337 MB / 350.9 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008826/0.1256, allocations: 43.88 kB / 351 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004647/0.1261, allocations: 115 kB / 351.1 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.1274, allocations: 295 kB / 351.4 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.1285, allocations: 227.7 kB / 351.6 MB, free: 2.32 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001852/0.1303, allocations: 0.6679 MB / 352.2 MB, free: 1.652 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000728/0.1311, allocations: 282.2 kB / 352.5 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005934/0.1317, allocations: 295.1 kB / 352.8 MB, free: 1.09 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006839/0.1324, allocations: 354.6 kB / 353.2 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.1326, allocations: 36 kB / 353.2 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.1328, allocations: 36 kB / 353.2 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/0.133, allocations: 151.3 kB / 353.4 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.1333, allocations: 91.88 kB / 353.5 MB, free: 444 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001758/0.1351, allocations: 1.18 MB / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1351, allocations: 0 / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.1351, allocations: 0 / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.403e-05/0.1352, allocations: 0 / 354.6 MB, free: 15.25 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.003052/0.1382, allocations: 1.067 MB / 355.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1383, allocations: 8.031 kB / 355.7 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003827/0.1387, allocations: 110.7 kB / 355.8 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.1403, allocations: 0.6214 MB / 356.4 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.1405, allocations: 74 kB / 356.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002282/0.1407, allocations: 88 kB / 356.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.1436, allocations: 0.9514 MB / 357.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.683e-05/0.1436, allocations: 0 / 357.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.1438, allocations: 43.95 kB / 357.6 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.1438, allocations: 20 kB / 357.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002561/0.1464, allocations: 0.7339 MB / 358.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008699/0.1551, allocations: 3.732 MB / 362.1 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/0.1577, allocations: 0.8162 MB / 362.9 MB, free: 6.719 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.273e-05/0.1579, allocations: 8.656 kB / 362.9 MB, free: 6.711 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001419/0.1593, allocations: 475.2 kB / 363.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=82): time 3.767e-06/0.1593, allocations: 0 / 363.4 MB, free: 6.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=82): time 0.009426/0.1688, allocations: 1.779 MB / 365.2 MB, free: 4.422 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.966e-05/0.1689, allocations: 119.5 kB / 365.3 MB, free: 4.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.1702, allocations: 0.5854 MB / 365.9 MB, free: 3.688 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001779/0.1704, allocations: 45.7 kB / 365.9 MB, free: 3.637 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004329/0.1708, allocations: 379.1 kB / 366.3 MB, free: 3.262 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.1712, allocations: 248.5 kB / 366.5 MB, free: 3.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.718e-05/0.1713, allocations: 16 kB / 366.5 MB, free: 3 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.1715, allocations: 346.8 kB / 366.9 MB, free: 2.652 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009132/0.1724, allocations: 261.9 kB / 367.1 MB, free: 2.398 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.1735, allocations: 423.7 kB / 367.5 MB, free: 1.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009495/0.1745, allocations: 312.9 kB / 367.8 MB, free: 1.613 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.1745, allocations: 0 / 367.8 MB, free: 1.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002771/0.1773, allocations: 0.9209 MB / 368.8 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007843/0.1781, allocations: 1.596 MB / 370.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.1781, allocations: 4 kB / 370.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/0.1797, allocations: 312.6 kB / 370.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007665/0.1805, allocations: 107.8 kB / 370.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/0.1889, allocations: 3.568 MB / 374.3 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009535/0.1899, allocations: 91.16 kB / 374.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.584e-05/0.19, allocations: 35.94 kB / 374.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1901, allocations: 7.953 kB / 374.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00257/0.1926, allocations: 0.8535 MB / 375.3 MB, free: 9.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.1927, allocations: 4.531 kB / 375.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.194, allocations: 293.2 kB / 375.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007086/0.1947, allocations: 91.84 kB / 375.7 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00809/0.2028, allocations: 3.551 MB / 379.3 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000685/0.2036, allocations: 71.47 kB / 379.3 MB, free: 5.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.407e-05/0.2037, allocations: 24 kB / 379.3 MB, free: 5.668 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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.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.notFire,$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 (67): * Single equations (assignments): 65 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006669/0.2043, allocations: 269.7 kB / 379.6 MB, free: 5.395 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002394/0.2046, allocations: 82.97 kB / 379.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.2049, allocations: 96.27 kB / 379.8 MB, free: 5.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.2049, allocations: 15.97 kB / 379.8 MB, free: 5.199 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2049, allocations: 0 / 379.8 MB, free: 5.199 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.66e-05/0.2049, allocations: 7.938 kB / 379.8 MB, free: 5.191 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004966/0.2099, allocations: 1.959 MB / 381.8 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-05/0.21, allocations: 7.984 kB / 381.8 MB, free: 3.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006152/0.2106, allocations: 71.94 kB / 381.8 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00137/0.212, allocations: 293.5 kB / 382.1 MB, free: 2.801 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.887e-05/0.2121, allocations: 19.98 kB / 382.2 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008174/0.2203, allocations: 3.585 MB / 385.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2203, allocations: 0 / 385.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003894/0.2242, allocations: 1.374 MB / 387.1 MB, free: 13.66 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005789/0.2249, allocations: 255.9 kB / 387.4 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001959/0.2251, allocations: 20 kB / 387.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007173/0.2258, allocations: 39.97 kB / 387.4 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000281/0.2261, allocations: 80.48 kB / 387.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.67e-05/0.2262, allocations: 27.94 kB / 387.5 MB, free: 13.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009054/0.2271, allocations: 455.1 kB / 388 MB, free: 12.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2271, allocations: 4 kB / 388 MB, free: 12.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001877/0.229, allocations: 443 kB / 388.4 MB, free: 12.35 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.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.notFire,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 (51): * Single equations (assignments): 44 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002839/0.2293, allocations: 135.2 kB / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005072/0.2344, allocations: 1.818 MB / 390.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.528e-06/0.2345, allocations: 0 / 390.4 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001965/0.2365, allocations: 0.679 MB / 391 MB, free: 9.652 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.2378, allocations: 154.7 kB / 391.2 MB, free: 9.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005579/0.2434, allocations: 1.944 MB / 393.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000902/0.2443, allocations: 1.015 MB / 394.1 MB, free: 6.488 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002918/0.2446, allocations: 51.44 kB / 394.2 MB, free: 6.438 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.2446, allocations: 0 / 394.2 MB, free: 6.438 MB / 330.7 MB Notification: Performance of Templates: time 0.3076/0.5523, allocations: 14.66 MB / 408.9 MB, free: 46.75 MB / 330.7 MB