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_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 194.9 MB / 211.2 MB, free: 8.836 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.746e-05/3.749e-05, allocations: 4 kB / 258.8 MB, free: 9.184 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3284, allocations: 44.51 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.008183/0.3367, allocations: 4.604 MB / 307.9 MB, free: 9.098 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003924/0.3407, allocations: 1.371 MB / 309.3 MB, free: 7.758 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009281/0.3417, allocations: 35.94 kB / 309.3 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000455/0.3421, allocations: 115.1 kB / 309.4 MB, free: 7.609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.3433, allocations: 295 kB / 309.7 MB, free: 7.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.3444, allocations: 227.5 kB / 309.9 MB, free: 7.098 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.3463, allocations: 0.6525 MB / 310.6 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.347, allocations: 278.2 kB / 310.9 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005915/0.3476, allocations: 295.1 kB / 311.1 MB, free: 5.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006504/0.3483, allocations: 350.6 kB / 311.5 MB, free: 5.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.3485, allocations: 36 kB / 311.5 MB, free: 5.504 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.3487, allocations: 36 kB / 311.6 MB, free: 5.469 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.349, allocations: 151.3 kB / 311.7 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.3492, allocations: 80 kB / 311.8 MB, free: 5.242 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.351, allocations: 1.176 MB / 313 MB, free: 4.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3511, allocations: 0 / 313 MB, free: 4.062 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.16e-06/0.3511, allocations: 4 kB / 313 MB, free: 4.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.194e-05/0.3511, allocations: 3.938 kB / 313 MB, free: 4.055 MB / 250.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.003194/0.3543, allocations: 1.048 MB / 314 MB, free: 2.945 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/0.3544, allocations: 12.03 kB / 314 MB, free: 2.934 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004674/0.3549, allocations: 114.7 kB / 314.1 MB, free: 2.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.3566, allocations: 0.6135 MB / 314.8 MB, free: 2.164 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.3568, allocations: 70 kB / 314.8 MB, free: 2.094 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002429/0.357, allocations: 91.89 kB / 314.9 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.3598, allocations: 0.9475 MB / 315.9 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.61e-05/0.3599, allocations: 0 / 315.9 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.36, allocations: 36 kB / 315.9 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/0.3601, allocations: 20 kB / 315.9 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002575/0.3627, allocations: 0.73 MB / 316.6 MB, free: 232 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008668/0.3714, allocations: 3.724 MB / 320.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.374, allocations: 0.8013 MB / 321.2 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.446e-05/0.3741, allocations: 8.656 kB / 321.2 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001429/0.3755, allocations: 471.2 kB / 321.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=82): time 6.542e-06/0.3756, allocations: 0 / 321.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=82): time 0.009937/0.3855, allocations: 1.787 MB / 323.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.3857, allocations: 115.5 kB / 323.5 MB, free: 9.129 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.387, allocations: 0.5854 MB / 324.1 MB, free: 8.535 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002078/0.3873, allocations: 45.69 kB / 324.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004262/0.3877, allocations: 379 kB / 324.5 MB, free: 8.109 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004199/0.3882, allocations: 244.5 kB / 324.8 MB, free: 7.867 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.528e-05/0.3882, allocations: 12 kB / 324.8 MB, free: 7.855 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.3885, allocations: 338.8 kB / 325.1 MB, free: 7.516 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009684/0.3894, allocations: 269.9 kB / 325.4 MB, free: 7.254 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.3906, allocations: 434.2 kB / 325.8 MB, free: 6.77 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.3917, allocations: 300.9 kB / 326.1 MB, free: 6.469 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3918, allocations: 4 kB / 326.1 MB, free: 6.465 MB / 266.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.00316/0.395, allocations: 0.9212 MB / 327 MB, free: 5.527 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008367/0.3959, allocations: 1.596 MB / 328.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/0.3959, allocations: 11.88 kB / 328.6 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001646/0.3976, allocations: 300.7 kB / 328.9 MB, free: 3.496 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008059/0.3984, allocations: 103.8 kB / 329 MB, free: 3.395 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008734/0.4072, allocations: 3.571 MB / 332.6 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.4083, allocations: 91.25 kB / 332.7 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.4084, allocations: 32 kB / 332.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.4085, allocations: 5.875 kB / 332.7 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002658/0.4111, allocations: 0.8495 MB / 333.6 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.4112, allocations: 4 kB / 333.6 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.4126, allocations: 297.3 kB / 333.9 MB, free: 14.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000737/0.4133, allocations: 95.83 kB / 334 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008475/0.4218, allocations: 3.552 MB / 337.5 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/0.4226, allocations: 71.42 kB / 337.6 MB, free: 10.55 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.111e-05/0.4227, allocations: 24 kB / 337.6 MB, free: 10.52 MB / 282.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,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.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.0007371/0.4235, allocations: 261.7 kB / 337.9 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.4238, allocations: 87 kB / 338 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002992/0.4241, allocations: 100.2 kB / 338 MB, free: 10.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.4241, allocations: 12 kB / 338.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.4241, allocations: 0 / 338.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.4242, allocations: 3.984 kB / 338.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005511/0.4297, allocations: 1.975 MB / 340 MB, free: 8.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/0.4298, allocations: 0 / 340 MB, free: 8.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006467/0.4304, allocations: 71.84 kB / 340.1 MB, free: 7.949 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001436/0.4319, allocations: 296.7 kB / 340.4 MB, free: 7.656 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.432, allocations: 15.98 kB / 340.4 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008537/0.4406, allocations: 3.571 MB / 344 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.4406, allocations: 480 / 344 MB, free: 3.934 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004224/0.4449, allocations: 1.378 MB / 345.4 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006846/0.4456, allocations: 263.8 kB / 345.6 MB, free: 2.246 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002188/0.4458, allocations: 12 kB / 345.6 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007713/0.4466, allocations: 44.03 kB / 345.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/0.447, allocations: 76.55 kB / 345.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.066e-05/0.4471, allocations: 23.98 kB / 345.8 MB, free: 2.094 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009792/0.4481, allocations: 451.1 kB / 346.2 MB, free: 1.66 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.4481, allocations: 0 / 346.2 MB, free: 1.66 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0022/0.4503, allocations: 443 kB / 346.6 MB, free: 1.227 MB / 282.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,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 (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.0003299/0.4507, allocations: 143.2 kB / 346.8 MB, free: 1.078 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005873/0.4566, allocations: 1.819 MB / 348.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/0.4567, allocations: 4 kB / 348.6 MB, free: 15.21 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002221/0.4589, allocations: 0.6825 MB / 349.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.4603, allocations: 142.8 kB / 349.4 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00611/0.4664, allocations: 1.93 MB / 351.4 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009103/0.4674, allocations: 1.011 MB / 352.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003081/0.4678, allocations: 59.42 kB / 352.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.443e-06/0.4678, allocations: 0 / 352.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of Templates: time 0.03484/0.5026, allocations: 14.57 MB / 367 MB, free: 12.75 MB / 314.7 MB