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.03/2.03, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.118e-05/2.13e-05, allocations: 4 kB / 249.6 MB, free: 15.27 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2501, allocations: 44.5 MB / 294.1 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.3721, allocations: 79.12 MB / 373.3 MB, free: 2.836 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.3724, allocations: 87.88 kB / 373.3 MB, free: 2.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05327/0.4257, allocations: 14.55 MB / 387.9 MB, free: 4.094 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.96e-06/0.4258, allocations: 0 / 387.9 MB, free: 4.094 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.017e-05/0.4258, allocations: 20 kB / 387.9 MB, free: 4.074 MB / 330.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.002271/0.4281, allocations: 1.047 MB / 389 MB, free: 2.969 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.4282, allocations: 8.031 kB / 389 MB, free: 2.961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.4285, allocations: 114.6 kB / 389.1 MB, free: 2.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/0.4299, allocations: 0.6408 MB / 389.7 MB, free: 2.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.058e-05/0.43, allocations: 28 kB / 389.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.4301, allocations: 56 kB / 389.8 MB, free: 2.082 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001722/0.4319, allocations: 0.6132 MB / 390.4 MB, free: 1.469 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001932/0.4338, allocations: 0.7836 MB / 391.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.144e-05/0.4339, allocations: 0 / 391.2 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.434, allocations: 8 kB / 391.2 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.181e-05/0.434, allocations: 23.95 kB / 391.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007133/0.4412, allocations: 3.511 MB / 394.7 MB, free: 12.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.4429, allocations: 0.7316 MB / 395.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009349/0.4439, allocations: 417.6 kB / 395.9 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.926e-05/0.444, allocations: 12.77 kB / 395.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009703/0.445, allocations: 427.7 kB / 396.3 MB, free: 11.39 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 4.199e-06/0.445, allocations: 0 / 396.3 MB, free: 11.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.002123/0.4471, allocations: 0.7743 MB / 397.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.408e-05/0.4472, allocations: 115.6 kB / 397.2 MB, free: 10.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008332/0.4481, allocations: 434 kB / 397.6 MB, free: 10.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.683e-05/0.4482, allocations: 29.7 kB / 397.6 MB, free: 10 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004047/0.4486, allocations: 406.8 kB / 398 MB, free: 9.598 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000284/0.4489, allocations: 224.7 kB / 398.3 MB, free: 9.375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-05/0.449, allocations: 0 / 398.3 MB, free: 9.375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.4492, allocations: 350.8 kB / 398.6 MB, free: 9.023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005702/0.4498, allocations: 221.6 kB / 398.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007275/0.4505, allocations: 373.4 kB / 399.2 MB, free: 8.391 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006026/0.4512, allocations: 232.5 kB / 399.4 MB, free: 8.164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.566e-06/0.4512, allocations: 4 kB / 399.4 MB, free: 8.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001951/0.4531, allocations: 0.7532 MB / 400.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007986/0.454, allocations: 1.351 MB / 401.5 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.454, allocations: 4 kB / 401.5 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.4553, allocations: 308.6 kB / 401.8 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005166/0.4558, allocations: 95.83 kB / 401.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006802/0.4626, allocations: 3.509 MB / 405.4 MB, free: 1.91 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007529/0.4634, allocations: 75.34 kB / 405.5 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.971e-05/0.4635, allocations: 28 kB / 405.5 MB, free: 1.809 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.4636, allocations: 7.938 kB / 405.5 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001848/0.4654, allocations: 0.7064 MB / 406.2 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.4655, allocations: 4 kB / 406.2 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001064/0.4665, allocations: 305.1 kB / 406.5 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004372/0.467, allocations: 91.83 kB / 406.6 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006714/0.4737, allocations: 3.478 MB / 410.1 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005559/0.4743, allocations: 43.67 kB / 410.2 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.15e-05/0.4744, allocations: 27.98 kB / 410.2 MB, free: 13.03 MB / 362.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.0003012/0.4747, allocations: 142 kB / 410.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.475, allocations: 71.16 kB / 410.4 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000234/0.4752, allocations: 75.23 kB / 410.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.4752, allocations: 8 kB / 410.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.016e-06/0.4753, allocations: 0 / 410.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/0.4753, allocations: 7.938 kB / 410.5 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/0.4791, allocations: 1.728 MB / 412.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.4791, allocations: 0 / 412.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.4796, allocations: 59.91 kB / 412.3 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/0.4808, allocations: 308.9 kB / 412.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-05/0.4809, allocations: 15.92 kB / 412.6 MB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006798/0.4877, allocations: 3.521 MB / 416.1 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.797e-06/0.4877, allocations: 0 / 416.1 MB, free: 6.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.4905, allocations: 1.218 MB / 417.3 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000534/0.4911, allocations: 236.1 kB / 417.6 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.4913, allocations: 8 kB / 417.6 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.4918, allocations: 28.03 kB / 417.6 MB, free: 5.395 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.4921, allocations: 88.59 kB / 417.7 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.078e-05/0.4922, allocations: 20 kB / 417.7 MB, free: 5.289 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000574/0.4928, allocations: 315 kB / 418 MB, free: 4.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.4928, allocations: 0 / 418 MB, free: 4.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00177/0.4946, allocations: 394.9 kB / 418.4 MB, free: 4.594 MB / 362.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.0002838/0.4949, allocations: 130.3 kB / 418.5 MB, free: 4.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003687/0.4986, allocations: 1.65 MB / 420.2 MB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.78e-06/0.4986, allocations: 0 / 420.2 MB, free: 2.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.5, allocations: 0.6143 MB / 420.8 MB, free: 2.141 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008886/0.5009, allocations: 109.9 kB / 420.9 MB, free: 2.031 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/0.5045, allocations: 1.16 MB / 422 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2477/0.7522, allocations: 1.01 MB / 423.1 MB, free: 103.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.7525, allocations: 42.84 kB / 423.1 MB, free: 103.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.831e-06/0.7525, allocations: 0.5938 kB / 423.1 MB, free: 103.5 MB / 362.7 MB Notification: Performance of Templates: time 0.02227/0.7748, allocations: 13.78 MB / 436.9 MB, free: 102 MB / 362.7 MB