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 2.064/2.064, allocations: 194.9 MB / 211.2 MB, free: 8.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.417e-05/2.418e-05, allocations: 0 / 258.8 MB, free: 8.484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3413, allocations: 44.5 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.00855/0.3499, allocations: 4.695 MB / 308 MB, free: 8.953 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00417/0.3542, allocations: 1.381 MB / 309.4 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.3553, allocations: 39.88 kB / 309.4 MB, free: 7.527 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006156/0.356, allocations: 127 kB / 309.5 MB, free: 7.402 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001392/0.3574, allocations: 295 kB / 309.8 MB, free: 7.113 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.3587, allocations: 227.6 kB / 310.1 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002155/0.3608, allocations: 0.6642 MB / 310.7 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007906/0.3617, allocations: 282.9 kB / 311 MB, free: 5.945 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006771/0.3624, allocations: 307 kB / 311.3 MB, free: 5.645 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007031/0.3631, allocations: 350.6 kB / 311.6 MB, free: 5.301 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.3634, allocations: 36 kB / 311.7 MB, free: 5.266 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002091/0.3636, allocations: 40 kB / 311.7 MB, free: 5.227 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002818/0.3639, allocations: 163.2 kB / 311.9 MB, free: 5.066 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002743/0.3642, allocations: 80 kB / 312 MB, free: 4.988 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.366, allocations: 1.188 MB / 313.1 MB, free: 3.797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3661, allocations: 0 / 313.1 MB, free: 3.797 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.3661, allocations: 7.938 kB / 313.1 MB, free: 3.789 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.278e-05/0.3662, allocations: 0 / 313.1 MB, free: 3.789 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.003251/0.3694, allocations: 1.072 MB / 314.2 MB, free: 2.66 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.3695, allocations: 8.031 kB / 314.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004094/0.3699, allocations: 118.7 kB / 314.3 MB, free: 2.535 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001582/0.3715, allocations: 0.6174 MB / 315 MB, free: 1.871 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001906/0.3718, allocations: 77.98 kB / 315 MB, free: 1.797 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002465/0.372, allocations: 88 kB / 315.1 MB, free: 1.711 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002804/0.3748, allocations: 0.9592 MB / 316.1 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.839e-05/0.3749, allocations: 4 kB / 316.1 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.3751, allocations: 36 kB / 316.1 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.228e-05/0.3751, allocations: 23.98 kB / 316.1 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/0.3777, allocations: 0.7418 MB / 316.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008733/0.3865, allocations: 3.771 MB / 320.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.389, allocations: 0.8179 MB / 321.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.467e-05/0.3891, allocations: 8.656 kB / 321.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001379/0.3905, allocations: 472.5 kB / 321.9 MB, free: 10.69 MB / 266.7 MB Notification: Performance of pre-optimization done (n=84): time 3.557e-06/0.3906, allocations: 3.938 kB / 321.9 MB, free: 10.69 MB / 266.7 MB Notification: Performance of matching and sorting (n=84): time 0.00751/0.3981, allocations: 1.653 MB / 323.6 MB, free: 8.984 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.3982, allocations: 127.7 kB / 323.7 MB, free: 8.836 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/0.3995, allocations: 0.5854 MB / 324.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002074/0.3998, allocations: 45.69 kB / 324.4 MB, free: 8.195 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003929/0.4002, allocations: 383.1 kB / 324.7 MB, free: 7.816 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003779/0.4006, allocations: 248.5 kB / 325 MB, free: 7.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.767e-05/0.4006, allocations: 16 kB / 325 MB, free: 7.555 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.4008, allocations: 342.8 kB / 325.3 MB, free: 7.211 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009423/0.4018, allocations: 269.9 kB / 325.6 MB, free: 6.949 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/0.4029, allocations: 431.7 kB / 326 MB, free: 6.469 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.4039, allocations: 316.9 kB / 326.3 MB, free: 6.152 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/0.404, allocations: 3.953 kB / 326.3 MB, free: 6.148 MB / 266.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002896/0.4069, allocations: 0.9258 MB / 327.2 MB, free: 5.203 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007334/0.4077, allocations: 1.604 MB / 328.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-05/0.4077, allocations: 4 kB / 328.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.4092, allocations: 285.5 kB / 329.1 MB, free: 3.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008521/0.4101, allocations: 111.8 kB / 329.2 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008944/0.419, allocations: 4.664 MB / 333.9 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.4201, allocations: 99.31 kB / 334 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.4203, allocations: 31.98 kB / 334 MB, free: 14.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4203, allocations: 11.95 kB / 334 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002673/0.423, allocations: 0.8662 MB / 334.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/0.4231, allocations: 4 kB / 334.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001257/0.4243, allocations: 281.7 kB / 335.2 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007878/0.4252, allocations: 103.8 kB / 335.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008851/0.434, allocations: 4.636 MB / 339.9 MB, free: 7.832 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/0.4348, allocations: 67.47 kB / 340 MB, free: 7.766 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.36e-05/0.4349, allocations: 35.94 kB / 340 MB, free: 7.73 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 (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.0007128/0.4356, allocations: 269.7 kB / 340.3 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002693/0.4359, allocations: 83.02 kB / 340.4 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.4362, allocations: 100.3 kB / 340.5 MB, free: 7.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.4362, allocations: 8 kB / 340.5 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.4363, allocations: 0 / 340.5 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.27e-05/0.4363, allocations: 3.984 kB / 340.5 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00487/0.4412, allocations: 1.999 MB / 342.5 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.4412, allocations: 0 / 342.5 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.4419, allocations: 83.89 kB / 342.6 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/0.4432, allocations: 289.5 kB / 342.8 MB, free: 4.82 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.381e-05/0.4433, allocations: 19.98 kB / 342.9 MB, free: 4.801 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008552/0.4519, allocations: 4.663 MB / 347.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.452, allocations: 0 / 347.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.456, allocations: 1.401 MB / 348.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005755/0.4566, allocations: 251.9 kB / 349.2 MB, free: 14.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.4568, allocations: 20 kB / 349.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000723/0.4575, allocations: 35.97 kB / 349.2 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.4578, allocations: 76.89 kB / 349.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-05/0.4579, allocations: 27.98 kB / 349.3 MB, free: 14.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008959/0.4588, allocations: 459 kB / 349.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4589, allocations: 0 / 349.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00208/0.461, allocations: 454.8 kB / 350.2 MB, free: 13.12 MB / 298.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,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 (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.0002939/0.4613, allocations: 135.2 kB / 350.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005162/0.4665, allocations: 2.005 MB / 352.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/0.4665, allocations: 0 / 352.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/0.4685, allocations: 0.7773 MB / 353.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.4697, allocations: 157.4 kB / 353.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005423/0.4751, allocations: 2.006 MB / 355.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008904/0.4761, allocations: 1.015 MB / 356.3 MB, free: 6.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.4764, allocations: 55.42 kB / 356.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of SimCode: time 1.252e-06/0.4764, allocations: 0 / 356.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of Templates: time 0.03666/0.5131, allocations: 18.58 MB / 374.9 MB, free: 4.234 MB / 314.7 MB