Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_RL") Notification: Performance of loadModel(Modelica): time 2.098/2.098, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.924e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 50.42 MB / 345 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.007961/0.1201, allocations: 4.655 MB / 349.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003838/0.124, allocations: 1.364 MB / 351 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009139/0.125, allocations: 39.88 kB / 351.1 MB, free: 2.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004079/0.1254, allocations: 115 kB / 351.2 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.1267, allocations: 299 kB / 351.5 MB, free: 2.414 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.128, allocations: 227.7 kB / 351.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.00207/0.1301, allocations: 0.6836 MB / 352.4 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00081/0.131, allocations: 282.9 kB / 352.6 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006531/0.1317, allocations: 307 kB / 352.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006337/0.1323, allocations: 354.6 kB / 353.3 MB, free: 0.582 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002057/0.1325, allocations: 36 kB / 353.3 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.1327, allocations: 44 kB / 353.4 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.1329, allocations: 155.3 kB / 353.5 MB, free: 360 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.1332, allocations: 84 kB / 353.6 MB, free: 276 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001857/0.1351, allocations: 1.212 MB / 354.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1351, allocations: 3.938 kB / 354.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.416e-06/0.1351, allocations: 0 / 354.8 MB, free: 15.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.644e-05/0.1352, allocations: 0 / 354.8 MB, free: 15.05 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003385/0.1386, allocations: 1.072 MB / 355.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.1387, allocations: 11.97 kB / 355.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000458/0.1392, allocations: 118.6 kB / 356 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001689/0.1409, allocations: 0.6291 MB / 356.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.1411, allocations: 73.98 kB / 356.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002733/0.1413, allocations: 92 kB / 356.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002794/0.1442, allocations: 0.967 MB / 357.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.76e-05/0.1442, allocations: 0 / 357.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/0.1444, allocations: 39.95 kB / 357.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.994e-05/0.1445, allocations: 28 kB / 357.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002583/0.1471, allocations: 0.7417 MB / 358.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008086/0.1552, allocations: 3.79 MB / 362.4 MB, free: 7.227 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002315/0.1576, allocations: 0.8217 MB / 363.2 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.648e-05/0.1577, allocations: 8.656 kB / 363.2 MB, free: 6.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.159, allocations: 480.4 kB / 363.7 MB, free: 5.902 MB / 298.7 MB Notification: Performance of pre-optimization done (n=84): time 3.948e-06/0.159, allocations: 0 / 363.7 MB, free: 5.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=84): time 0.007292/0.1663, allocations: 1.645 MB / 365.3 MB, free: 4.211 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.1665, allocations: 131.7 kB / 365.4 MB, free: 4.055 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.1677, allocations: 0.5854 MB / 366 MB, free: 3.469 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.1679, allocations: 41.7 kB / 366.1 MB, free: 3.422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003912/0.1683, allocations: 395 kB / 366.5 MB, free: 3.031 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/0.1686, allocations: 248.5 kB / 366.7 MB, free: 2.785 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.744e-05/0.1687, allocations: 16 kB / 366.7 MB, free: 2.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1689, allocations: 338.8 kB / 367 MB, free: 2.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009139/0.1698, allocations: 273.9 kB / 367.3 MB, free: 2.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.1709, allocations: 439.6 kB / 367.7 MB, free: 1.672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009464/0.1718, allocations: 316.9 kB / 368.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.1719, allocations: 0 / 368.1 MB, free: 1.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002816/0.1747, allocations: 0.9295 MB / 369 MB, free: 416 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006767/0.1754, allocations: 1.596 MB / 370.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.1754, allocations: 7.953 kB / 370.6 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.1769, allocations: 293.5 kB / 370.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008309/0.1777, allocations: 107.8 kB / 371 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008539/0.1863, allocations: 4.661 MB / 375.6 MB, free: 9.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009965/0.1873, allocations: 99.09 kB / 375.7 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.316e-05/0.1874, allocations: 35.98 kB / 375.8 MB, free: 9.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.1875, allocations: 6.969 kB / 375.8 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002524/0.19, allocations: 0.8623 MB / 376.6 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.1901, allocations: 4 kB / 376.6 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.1913, allocations: 285.9 kB / 376.9 MB, free: 8.047 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000746/0.192, allocations: 104 kB / 377 MB, free: 7.945 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008326/0.2004, allocations: 4.635 MB / 381.7 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000768/0.2012, allocations: 71.38 kB / 381.7 MB, free: 2.973 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-05/0.2013, allocations: 28 kB / 381.8 MB, free: 2.945 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 (73): * Single equations (assignments): 70 * 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.0006923/0.202, allocations: 269.9 kB / 382 MB, free: 2.676 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002425/0.2022, allocations: 86.95 kB / 382.1 MB, free: 2.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.2025, allocations: 100.4 kB / 382.2 MB, free: 2.484 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.2025, allocations: 8 kB / 382.2 MB, free: 2.477 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.2026, allocations: 3.938 kB / 382.2 MB, free: 2.473 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.486e-05/0.2026, allocations: 7.938 kB / 382.2 MB, free: 2.465 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0048/0.2074, allocations: 2.003 MB / 384.2 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.2074, allocations: 0 / 384.2 MB, free: 404 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006827/0.2081, allocations: 87.92 kB / 384.3 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.2094, allocations: 282 kB / 384.6 MB, free: 28 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.599e-05/0.2095, allocations: 19.98 kB / 384.6 MB, free: 8 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008304/0.2178, allocations: 4.667 MB / 389.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2179, allocations: 7.938 kB / 389.3 MB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003879/0.2218, allocations: 1.393 MB / 390.7 MB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000533/0.2224, allocations: 259.8 kB / 390.9 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001956/0.2226, allocations: 16 kB / 390.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007565/0.2233, allocations: 39.97 kB / 391 MB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002826/0.2236, allocations: 84.89 kB / 391.1 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.95e-05/0.2237, allocations: 20 kB / 391.1 MB, free: 9.207 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009011/0.2246, allocations: 459 kB / 391.5 MB, free: 8.766 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.2247, allocations: 0 / 391.5 MB, free: 8.766 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00202/0.2267, allocations: 458.8 kB / 392 MB, free: 8.316 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: 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 (56): * Single equations (assignments): 48 * 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.0002915/0.227, allocations: 143.4 kB / 392.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004967/0.232, allocations: 1.998 MB / 394.1 MB, free: 6.098 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/0.232, allocations: 256 / 394.1 MB, free: 6.098 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.234, allocations: 0.7765 MB / 394.9 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.2352, allocations: 163.2 kB / 395.1 MB, free: 5.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005162/0.2404, allocations: 2.022 MB / 397.1 MB, free: 3.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008794/0.2413, allocations: 1.019 MB / 398.1 MB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.2416, allocations: 51.44 kB / 398.1 MB, free: 1.992 MB / 330.7 MB Notification: Performance of SimCode: time 1.213e-06/0.2416, allocations: 0 / 398.1 MB, free: 1.992 MB / 330.7 MB Notification: Performance of Templates: time 0.3038/0.5454, allocations: 18.69 MB / 416.8 MB, free: 42.21 MB / 330.7 MB