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_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadModel(Modelica): time 1.771/1.771, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.89e-05/2.908e-05, allocations: 2.031 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07897/0.07902, allocations: 44.51 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.373/0.4521, allocations: 80.08 MB / 379.9 MB, free: 21.97 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.4524, allocations: 91.03 kB / 380 MB, free: 21.97 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04959/0.502, allocations: 15.04 MB / 395.1 MB, free: 19.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.949e-06/0.502, allocations: 7.906 kB / 395.1 MB, free: 19.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.765e-05/0.5021, allocations: 27.52 kB / 395.1 MB, free: 19.59 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.002036/0.5042, allocations: 1.064 MB / 396.2 MB, free: 18.93 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.5042, allocations: 11.66 kB / 396.2 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.5045, allocations: 109.1 kB / 396.3 MB, free: 18.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.5056, allocations: 0.6346 MB / 396.9 MB, free: 18.57 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.858e-05/0.5057, allocations: 62 kB / 397 MB, free: 18.57 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.5059, allocations: 98.27 kB / 397.1 MB, free: 18.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.5078, allocations: 0.9206 MB / 398 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.528e-05/0.5079, allocations: 7.812 kB / 398 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.508, allocations: 40.12 kB / 398 MB, free: 18.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.508, allocations: 23.39 kB / 398.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.5097, allocations: 0.6874 MB / 398.8 MB, free: 18.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005758/0.5155, allocations: 3.763 MB / 402.5 MB, free: 16.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.5171, allocations: 0.7799 MB / 403.3 MB, free: 16.78 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009763/0.5181, allocations: 465.3 kB / 403.8 MB, free: 16.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.83e-05/0.5182, allocations: 12.22 kB / 403.8 MB, free: 16.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008494/0.519, allocations: 445.1 kB / 404.2 MB, free: 16.69 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 4.594e-06/0.5191, allocations: 4 kB / 404.2 MB, free: 16.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.001862/0.5209, allocations: 0.7922 MB / 405 MB, free: 16.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.521, allocations: 119 kB / 405.1 MB, free: 16.45 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009941/0.522, allocations: 0.584 MB / 405.7 MB, free: 16.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-05/0.5221, allocations: 47.88 kB / 405.7 MB, free: 16.29 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.5224, allocations: 380.5 kB / 406.1 MB, free: 16.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.5226, allocations: 248.2 kB / 406.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.975e-05/0.5227, allocations: 22.25 kB / 406.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.463e-05/0.5228, allocations: 337.1 kB / 406.7 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005921/0.5234, allocations: 247.3 kB / 407 MB, free: 15.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006822/0.5241, allocations: 397.2 kB / 407.3 MB, free: 15.42 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006125/0.5247, allocations: 287.6 kB / 407.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.5247, allocations: 3.906 kB / 407.6 MB, free: 15.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001912/0.5266, allocations: 0.871 MB / 408.5 MB, free: 15.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002729/0.5269, allocations: 1.337 MB / 409.8 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.527, allocations: 3.906 kB / 409.8 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.5281, allocations: 291.7 kB / 410.1 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000602/0.5287, allocations: 115.9 kB / 410.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00653/0.5353, allocations: 4.556 MB / 414.8 MB, free: 27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008964/0.5362, allocations: 98.56 kB / 414.9 MB, free: 26.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-05/0.5363, allocations: 30.69 kB / 414.9 MB, free: 26.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.5364, allocations: 4.594 kB / 414.9 MB, free: 26.96 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001804/0.5382, allocations: 0.8324 MB / 415.8 MB, free: 26.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.442e-06/0.5382, allocations: 0 / 415.8 MB, free: 26.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.5397, allocations: 279.4 kB / 416 MB, free: 26.85 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.5409, allocations: 99.41 kB / 416.1 MB, free: 26.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01231/0.5532, allocations: 4.544 MB / 420.7 MB, free: 24.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.5543, allocations: 80.23 kB / 420.7 MB, free: 24.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.5545, allocations: 27.31 kB / 420.8 MB, free: 24.02 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 (70): * Single equations (assignments): 67 * 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.0004984/0.555, allocations: 158.8 kB / 420.9 MB, free: 23.9 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003729/0.5554, allocations: 81.97 kB / 421 MB, free: 23.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004351/0.5559, allocations: 101.5 kB / 421.1 MB, free: 23.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.5559, allocations: 11.75 kB / 421.1 MB, free: 23.83 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.5559, allocations: 3.469 kB / 421.1 MB, free: 23.83 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/0.556, allocations: 3.609 kB / 421.1 MB, free: 23.83 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006761/0.5627, allocations: 1.936 MB / 423.1 MB, free: 23.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.5628, allocations: 3.984 kB / 423.1 MB, free: 23.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009378/0.5638, allocations: 84.17 kB / 423.1 MB, free: 23.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/0.5656, allocations: 270.4 kB / 423.4 MB, free: 23.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.5658, allocations: 13.12 kB / 423.4 MB, free: 23.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/0.5779, allocations: 4.568 MB / 428 MB, free: 19.47 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5779, allocations: 0 / 428 MB, free: 19.47 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00519/0.5831, allocations: 1.305 MB / 429.3 MB, free: 18.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009003/0.5841, allocations: 259.1 kB / 429.5 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/0.5844, allocations: 15.94 kB / 429.6 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001187/0.5856, allocations: 35.38 kB / 429.6 MB, free: 18.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004203/0.5861, allocations: 91.89 kB / 429.7 MB, free: 18.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.5862, allocations: 23.38 kB / 429.7 MB, free: 18.42 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001474/0.5877, allocations: 454.2 kB / 430.2 MB, free: 18.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.277e-06/0.5877, allocations: 3.906 kB / 430.2 MB, free: 18.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003654/0.5914, allocations: 442.2 kB / 430.6 MB, free: 18.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.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 (55): * Single equations (assignments): 47 * 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.0004015/0.5918, allocations: 141.5 kB / 430.7 MB, free: 17.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006407/0.5983, allocations: 1.912 MB / 432.6 MB, free: 16.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/0.5983, allocations: 3.984 kB / 432.6 MB, free: 16.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00239/0.6007, allocations: 0.7302 MB / 433.4 MB, free: 16.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.6025, allocations: 149.2 kB / 433.5 MB, free: 16.11 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005963/0.6085, allocations: 1.275 MB / 434.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001367/0.6099, allocations: 1.017 MB / 435.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/0.6104, allocations: 54.41 kB / 435.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of SimCode: time 2.831e-06/0.6104, allocations: 0 / 435.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of Templates: time 0.03505/0.6455, allocations: 18.64 MB / 454.5 MB, free: 0.7344 MB / 330.7 MB