Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=240000,variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|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_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 2.136/2.136, allocations: 224.7 MB / 241.1 MB, free: 1.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.681e-05/2.69e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 50.41 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.01474/0.1214, allocations: 8.771 MB / 353.8 MB, free: 116 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008209/0.1297, allocations: 3.212 MB / 357 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.1317, allocations: 67.88 kB / 357 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.1339, allocations: 0.5205 MB / 357.6 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003172/0.1371, allocations: 0.701 MB / 358.3 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00218/0.1394, allocations: 419.3 kB / 358.7 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004034/0.1434, allocations: 1.324 MB / 360 MB, free: 9.867 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.1449, allocations: 0.4988 MB / 360.5 MB, free: 9.363 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001402/0.1463, allocations: 0.5959 MB / 361.1 MB, free: 8.766 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001616/0.148, allocations: 0.7083 MB / 361.8 MB, free: 8.055 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001055/0.1491, allocations: 239.8 kB / 362 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005633/0.1497, allocations: 87.94 kB / 362.1 MB, free: 7.734 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004426/0.1501, allocations: 298.6 kB / 362.4 MB, free: 7.441 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006375/0.1508, allocations: 168 kB / 362.6 MB, free: 7.277 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00398/0.1548, allocations: 2.326 MB / 364.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1548, allocations: 0 / 364.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.796e-06/0.1549, allocations: 0 / 364.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000108/0.155, allocations: 0 / 364.9 MB, free: 4.945 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.005263/0.1602, allocations: 1.834 MB / 366.7 MB, free: 3.035 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.1603, allocations: 8.031 kB / 366.7 MB, free: 3.027 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.1615, allocations: 253.2 kB / 367 MB, free: 2.777 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003183/0.1647, allocations: 1.1 MB / 368.1 MB, free: 1.621 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002486/0.165, allocations: 131.2 kB / 368.2 MB, free: 1.492 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004743/0.1655, allocations: 163.9 kB / 368.4 MB, free: 1.332 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005228/0.1707, allocations: 1.689 MB / 370.1 MB, free: 15.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.867e-05/0.1708, allocations: 3.938 kB / 370.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002586/0.1711, allocations: 68 kB / 370.1 MB, free: 15.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.095e-05/0.1712, allocations: 36 kB / 370.2 MB, free: 15.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004445/0.1756, allocations: 1.237 MB / 371.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/0.1912, allocations: 6.824 MB / 378.2 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003046/0.1943, allocations: 1.063 MB / 379.3 MB, free: 6.066 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.1945, allocations: 16.95 kB / 379.3 MB, free: 6.051 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001917/0.1964, allocations: 0.7108 MB / 380 MB, free: 5.309 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 6.362e-06/0.1965, allocations: 0 / 380 MB, free: 5.309 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.0148/0.2113, allocations: 4.221 MB / 384.2 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.2115, allocations: 208.9 kB / 384.4 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002805/0.2143, allocations: 1.158 MB / 385.6 MB, free: 15.48 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002585/0.2146, allocations: 53.7 kB / 385.7 MB, free: 15.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009059/0.2156, allocations: 0.7551 MB / 386.4 MB, free: 14.66 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006193/0.2162, allocations: 378.5 kB / 386.8 MB, free: 14.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.2163, allocations: 32 kB / 386.8 MB, free: 14.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.2166, allocations: 370.7 kB / 387.2 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.2181, allocations: 435.8 kB / 387.6 MB, free: 13.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001944/0.2201, allocations: 0.8665 MB / 388.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001786/0.2219, allocations: 0.5936 MB / 389.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.222, allocations: 4 kB / 389.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.005134/0.2272, allocations: 1.711 MB / 390.8 MB, free: 10.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00228/0.2295, allocations: 5.144 MB / 395.9 MB, free: 4.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.958e-05/0.2296, allocations: 12 kB / 395.9 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.2313, allocations: 350.3 kB / 396.3 MB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001624/0.233, allocations: 227.6 kB / 396.5 MB, free: 3.906 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2934/0.5264, allocations: 6.174 MB / 402.7 MB, free: 46.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001745/0.5282, allocations: 79.92 kB / 402.7 MB, free: 46.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001721/0.5284, allocations: 64.09 kB / 402.8 MB, free: 46.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.5285, allocations: 4.281 kB / 402.8 MB, free: 46.07 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005184/0.5337, allocations: 1.676 MB / 404.5 MB, free: 45.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.233e-05/0.5338, allocations: 13.62 kB / 404.5 MB, free: 45.87 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.5352, allocations: 335 kB / 404.8 MB, free: 45.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/0.5369, allocations: 225.7 kB / 405.1 MB, free: 45.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009652/0.5466, allocations: 6.148 MB / 411.2 MB, free: 40.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.5479, allocations: 63.12 kB / 411.3 MB, free: 40.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/0.5481, allocations: 67.12 kB / 411.3 MB, free: 40.55 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$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,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001486/0.5496, allocations: 494.3 kB / 411.8 MB, free: 40.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004505/0.5501, allocations: 170.9 kB / 412 MB, free: 40.2 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004938/0.5551, allocations: 1.567 MB / 413.5 MB, free: 39.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.369e-05/0.5551, allocations: 11.91 kB / 413.6 MB, free: 39.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.5552, allocations: 1.375 kB / 413.6 MB, free: 39.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.104e-05/0.5552, allocations: 5.531 kB / 413.6 MB, free: 39.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008703/0.5639, allocations: 3.176 MB / 416.7 MB, free: 37.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.564, allocations: 1.219 kB / 416.7 MB, free: 37.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.5651, allocations: 125.7 kB / 416.9 MB, free: 37.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.5666, allocations: 327.2 kB / 417.2 MB, free: 37.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/0.5669, allocations: 38.16 kB / 417.2 MB, free: 37.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008943/0.5758, allocations: 6.171 MB / 423.4 MB, free: 32.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.5759, allocations: 2.375 kB / 423.4 MB, free: 32.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005788/0.5817, allocations: 2.35 MB / 425.7 MB, free: 31.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.5828, allocations: 352.1 kB / 426.1 MB, free: 31.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/0.5832, allocations: 39.69 kB / 426.1 MB, free: 31.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.5844, allocations: 53.47 kB / 426.2 MB, free: 31.2 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004083/0.5849, allocations: 109.8 kB / 426.3 MB, free: 31.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001196/0.585, allocations: 39.5 kB / 426.3 MB, free: 31.16 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001848/0.5869, allocations: 0.8699 MB / 427.2 MB, free: 30.81 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.5869, allocations: 0 / 427.2 MB, free: 30.81 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003704/0.5906, allocations: 0.7078 MB / 427.9 MB, free: 30.75 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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_last,meanVoltage.y_last,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005871/0.5912, allocations: 230.8 kB / 428.1 MB, free: 30.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00678/0.598, allocations: 3.36 MB / 431.5 MB, free: 28.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/0.5981, allocations: 4 kB / 431.5 MB, free: 28.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002547/0.6007, allocations: 1.283 MB / 432.8 MB, free: 26.82 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/0.603, allocations: 315.3 kB / 433.1 MB, free: 26.55 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007856/0.6109, allocations: 3.75 MB / 436.8 MB, free: 22.9 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.6119, allocations: 1.348 MB / 438.2 MB, free: 21.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004232/0.6124, allocations: 95.44 kB / 438.3 MB, free: 21.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.193e-06/0.6124, allocations: 0 / 438.3 MB, free: 21.43 MB / 330.7 MB Notification: Performance of Templates: time 0.07508/0.6875, allocations: 42.22 MB / 480.5 MB, free: 11.27 MB / 362.7 MB