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 1.768/1.768, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.141e-05, allocations: 7.938 kB / 255.4 MB, free: 3.156 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07761/0.07766, allocations: 44.5 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3414/0.4191, allocations: 79.79 MB / 379.7 MB, free: 22.18 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.4194, allocations: 83.3 kB / 379.8 MB, free: 22.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04926/0.4687, allocations: 14.72 MB / 394.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.082e-06/0.4687, allocations: 0 / 394.5 MB, free: 19.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.932e-05/0.4688, allocations: 27.52 kB / 394.5 MB, free: 19.85 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.00194/0.4708, allocations: 1.038 MB / 395.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.4708, allocations: 11.75 kB / 395.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002271/0.4711, allocations: 117.5 kB / 395.7 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.4722, allocations: 0.6309 MB / 396.3 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/0.4722, allocations: 66.66 kB / 396.4 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.4724, allocations: 86.62 kB / 396.4 MB, free: 18.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001829/0.4742, allocations: 0.8975 MB / 397.3 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.146e-05/0.4743, allocations: 7.938 kB / 397.3 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.4744, allocations: 36.23 kB / 397.4 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.4744, allocations: 19.62 kB / 397.4 MB, free: 18.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.4761, allocations: 0.6606 MB / 398.1 MB, free: 18.64 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005669/0.4818, allocations: 3.713 MB / 401.8 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001525/0.4834, allocations: 0.7506 MB / 402.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008695/0.4842, allocations: 438.9 kB / 403 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.508e-05/0.4843, allocations: 8.594 kB / 403 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008863/0.4852, allocations: 448.6 kB / 403.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 4.58e-06/0.4853, allocations: 0 / 403.4 MB, free: 16.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.002187/0.4874, allocations: 0.8399 MB / 404.2 MB, free: 16.85 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.723e-05/0.4875, allocations: 122.4 kB / 404.4 MB, free: 16.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.4886, allocations: 0.5866 MB / 404.9 MB, free: 16.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.4888, allocations: 44.08 kB / 405 MB, free: 16.55 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.4891, allocations: 371 kB / 405.4 MB, free: 16.33 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.4893, allocations: 244.2 kB / 405.6 MB, free: 16.17 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.84e-05/0.4894, allocations: 15.22 kB / 405.6 MB, free: 16.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.739e-05/0.4895, allocations: 341.5 kB / 405.9 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006018/0.4901, allocations: 241.4 kB / 406.2 MB, free: 15.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006315/0.4907, allocations: 376.9 kB / 406.5 MB, free: 15.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006201/0.4914, allocations: 285.8 kB / 406.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.484e-06/0.4914, allocations: 0 / 406.8 MB, free: 15.66 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001898/0.4933, allocations: 0.8614 MB / 407.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000287/0.4936, allocations: 1.34 MB / 409 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.4937, allocations: 3.844 kB / 409 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001217/0.4949, allocations: 321.5 kB / 409.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005368/0.4954, allocations: 90.75 kB / 409.4 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006337/0.5018, allocations: 3.631 MB / 413.1 MB, free: 28.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008714/0.5027, allocations: 91.89 kB / 413.1 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.969e-05/0.5028, allocations: 26.34 kB / 413.2 MB, free: 28.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.5028, allocations: 7.906 kB / 413.2 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001709/0.5046, allocations: 0.8133 MB / 414 MB, free: 28.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.5046, allocations: 0 / 414 MB, free: 28.51 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009382/0.5055, allocations: 318.7 kB / 414.3 MB, free: 28.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004142/0.506, allocations: 87.86 kB / 414.4 MB, free: 28.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005939/0.5119, allocations: 3.593 MB / 418 MB, free: 27.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.5125, allocations: 61.42 kB / 418 MB, free: 27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-05/0.5126, allocations: 34.88 kB / 418.1 MB, free: 26.99 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.0002799/0.5129, allocations: 173.8 kB / 418.2 MB, free: 26.86 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.5131, allocations: 86.02 kB / 418.3 MB, free: 26.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002416/0.5134, allocations: 97.5 kB / 418.4 MB, free: 26.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.713e-06/0.5134, allocations: 7.906 kB / 418.4 MB, free: 26.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5134, allocations: 0 / 418.4 MB, free: 26.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.5134, allocations: 2.766 kB / 418.4 MB, free: 26.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003418/0.5168, allocations: 1.917 MB / 420.4 MB, free: 26.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.411e-06/0.5169, allocations: 0 / 420.4 MB, free: 26.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003794/0.5173, allocations: 61.53 kB / 420.4 MB, free: 26.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.5183, allocations: 317 kB / 420.7 MB, free: 26.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.594e-05/0.5184, allocations: 13.53 kB / 420.7 MB, free: 26.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005954/0.5244, allocations: 3.634 MB / 424.4 MB, free: 23.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.969e-06/0.5244, allocations: 0 / 424.4 MB, free: 23.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002603/0.527, allocations: 1.283 MB / 425.7 MB, free: 22.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004647/0.5275, allocations: 262.9 kB / 425.9 MB, free: 22.61 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001398/0.5277, allocations: 19.91 kB / 425.9 MB, free: 22.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005615/0.5283, allocations: 39.66 kB / 426 MB, free: 22.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/0.5285, allocations: 87.83 kB / 426.1 MB, free: 22.53 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.706e-05/0.5286, allocations: 23.44 kB / 426.1 MB, free: 22.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007223/0.5293, allocations: 454.1 kB / 426.5 MB, free: 22.28 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.29e-07/0.5293, allocations: 0 / 426.5 MB, free: 22.28 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00153/0.5309, allocations: 433.8 kB / 426.9 MB, free: 22.2 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.0002388/0.5311, allocations: 145.5 kB / 427.1 MB, free: 22.08 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003269/0.5344, allocations: 1.698 MB / 428.8 MB, free: 21.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.866e-06/0.5345, allocations: 0 / 428.8 MB, free: 21.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.5357, allocations: 0.6351 MB / 429.4 MB, free: 20.65 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009191/0.5367, allocations: 148.2 kB / 429.6 MB, free: 20.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.5399, allocations: 1.219 MB / 430.8 MB, free: 19.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007937/0.5407, allocations: 1.013 MB / 431.8 MB, free: 19.04 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.541, allocations: 58.27 kB / 431.9 MB, free: 19.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.727e-06/0.541, allocations: 0 / 431.9 MB, free: 19.02 MB / 330.7 MB Notification: Performance of Templates: time 0.02161/0.5626, allocations: 14.54 MB / 446.4 MB, free: 9.297 MB / 330.7 MB