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_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 1.958/1.958, allocations: 194.9 MB / 210.6 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.631e-05, allocations: 4 kB / 258.8 MB, free: 7.84 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3421, allocations: 44.5 MB / 303.3 MB, free: 12.97 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.01537/0.3576, allocations: 8.797 MB / 312.1 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009889/0.3675, allocations: 3.197 MB / 315.3 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00206/0.3696, allocations: 67.88 kB / 315.4 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002442/0.3721, allocations: 0.5283 MB / 315.9 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003271/0.3754, allocations: 0.6893 MB / 316.6 MB, free: 276 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002023/0.3775, allocations: 399.3 kB / 317 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004227/0.3817, allocations: 1.297 MB / 318.3 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.3833, allocations: 0.4988 MB / 318.8 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.3847, allocations: 0.5881 MB / 319.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.3864, allocations: 0.7122 MB / 320.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.3875, allocations: 227.7 kB / 320.3 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003873/0.3879, allocations: 80 kB / 320.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005333/0.3885, allocations: 302.6 kB / 320.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006626/0.3892, allocations: 164 kB / 320.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004521/0.3937, allocations: 2.31 MB / 323.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3937, allocations: 0 / 323.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3938, allocations: 4 kB / 323.2 MB, free: 9.691 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.335e-05/0.3938, allocations: 0 / 323.2 MB, free: 9.691 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.006174/0.4, allocations: 1.822 MB / 325 MB, free: 7.793 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.4001, allocations: 8.031 kB / 325 MB, free: 7.785 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/0.4013, allocations: 253.3 kB / 325.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003695/0.405, allocations: 1.077 MB / 326.3 MB, free: 6.402 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003089/0.4053, allocations: 131.1 kB / 326.5 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005181/0.4059, allocations: 159.9 kB / 326.6 MB, free: 6.117 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0061/0.412, allocations: 1.657 MB / 328.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.691e-05/0.4121, allocations: 11.94 kB / 328.3 MB, free: 4.363 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000321/0.4124, allocations: 67.98 kB / 328.3 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.251e-05/0.4125, allocations: 40 kB / 328.4 MB, free: 4.258 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005637/0.4182, allocations: 1.225 MB / 329.6 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/0.4387, allocations: 6.78 MB / 336.4 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00397/0.4427, allocations: 1.032 MB / 337.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001284/0.4429, allocations: 16.98 kB / 337.4 MB, free: 10.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002581/0.4455, allocations: 0.6915 MB / 338.1 MB, free: 10.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=122): time 5.34e-06/0.4455, allocations: 0 / 338.1 MB, free: 10.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=125): time 0.01883/0.4644, allocations: 4.072 MB / 342.2 MB, free: 5.953 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001969/0.4646, allocations: 212.9 kB / 342.4 MB, free: 5.699 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00351/0.4681, allocations: 1.154 MB / 343.6 MB, free: 4.539 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002147/0.4684, allocations: 49.7 kB / 343.6 MB, free: 4.484 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001278/0.4697, allocations: 0.7932 MB / 344.4 MB, free: 3.68 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006477/0.4703, allocations: 382.6 kB / 344.8 MB, free: 3.301 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.4705, allocations: 28 kB / 344.8 MB, free: 3.273 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002622/0.4708, allocations: 357.9 kB / 345.2 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/0.4727, allocations: 431.8 kB / 345.6 MB, free: 2.496 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002425/0.4752, allocations: 0.8548 MB / 346.4 MB, free: 1.457 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.4774, allocations: 0.5858 MB / 347 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/0.4775, allocations: 4 kB / 347 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.006633/0.4841, allocations: 1.718 MB / 348.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003113/0.4873, allocations: 5.234 MB / 354 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-05/0.4874, allocations: 19.94 kB / 354 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00241/0.4898, allocations: 342.4 kB / 354.3 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002137/0.492, allocations: 227.6 kB / 354.6 MB, free: 8.949 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01472/0.5067, allocations: 6.192 MB / 360.7 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002381/0.5092, allocations: 71.84 kB / 360.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/0.5094, allocations: 63.98 kB / 360.9 MB, free: 2.223 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.5094, allocations: 4 kB / 360.9 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006054/0.5155, allocations: 1.578 MB / 362.5 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.626e-05/0.5156, allocations: 12 kB / 362.5 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002196/0.5178, allocations: 346.7 kB / 362.8 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.5198, allocations: 219.7 kB / 363 MB, free: 40 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01448/0.5343, allocations: 6.188 MB / 369.2 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.5365, allocations: 64.06 kB / 369.3 MB, free: 9.383 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002022/0.5367, allocations: 68.06 kB / 369.3 MB, free: 9.316 MB / 314.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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 (141): * Single equations (assignments): 135 * 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.001697/0.5385, allocations: 498.5 kB / 369.8 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004628/0.5389, allocations: 162 kB / 370 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006054/0.545, allocations: 1.458 MB / 371.4 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.5451, allocations: 12 kB / 371.5 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/0.5451, allocations: 0 / 371.5 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-05/0.5451, allocations: 11.91 kB / 371.5 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009665/0.5548, allocations: 3.076 MB / 374.5 MB, free: 3.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.5549, allocations: 4 kB / 374.5 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009618/0.5558, allocations: 119.8 kB / 374.7 MB, free: 3.832 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/0.5573, allocations: 326.4 kB / 375 MB, free: 3.504 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.5574, allocations: 28 kB / 375 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009931/0.5673, allocations: 6.169 MB / 381.2 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.5674, allocations: 4 kB / 381.2 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005636/0.573, allocations: 2.221 MB / 383.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008591/0.5739, allocations: 351 kB / 383.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003495/0.5743, allocations: 31.98 kB / 383.8 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.5754, allocations: 48.22 kB / 383.8 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003449/0.5758, allocations: 112.8 kB / 383.9 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.5759, allocations: 43.98 kB / 384 MB, free: 9.969 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001874/0.5778, allocations: 0.8723 MB / 384.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5778, allocations: 0 / 384.8 MB, free: 9.098 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003222/0.581, allocations: 0.6953 MB / 385.5 MB, free: 8.402 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,meanVoltage.y,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 (81): * Single equations (assignments): 70 * 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.0005618/0.5816, allocations: 221.1 kB / 385.8 MB, free: 8.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007426/0.589, allocations: 3.41 MB / 389.2 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.5891, allocations: 4.062 kB / 389.2 MB, free: 4.617 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002874/0.592, allocations: 1.29 MB / 390.5 MB, free: 3.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/0.5942, allocations: 307.8 kB / 390.8 MB, free: 2.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008559/0.6028, allocations: 3.697 MB / 394.5 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001397/0.6043, allocations: 1.354 MB / 395.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001923/0.6062, allocations: 272 kB / 396.1 MB, free: 13.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.6065, allocations: 75.44 kB / 396.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.6065, allocations: 0 / 396.2 MB, free: 13.5 MB / 346.7 MB Notification: Performance of Templates: time 0.0731/0.6796, allocations: 26.24 MB / 422.4 MB, free: 3.242 MB / 362.7 MB