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_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 1.973/1.973, allocations: 225.8 MB / 239.4 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.474e-05/3.482e-05, allocations: 4 kB / 292.7 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09019, allocations: 50.41 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4249/0.5152, allocations: 105.3 MB / 448.4 MB, free: 5.164 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5155, allocations: 90.5 kB / 448.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2048/0.7203, allocations: 42.26 MB / 490.8 MB, free: 14.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.532e-06/0.7203, allocations: 0 / 490.8 MB, free: 14.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001462/0.7205, allocations: 43.98 kB / 490.8 MB, free: 14.8 MB / 410.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.004356/0.7249, allocations: 1.826 MB / 492.6 MB, free: 12.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.7249, allocations: 15.97 kB / 492.7 MB, free: 12.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.726, allocations: 261.3 kB / 492.9 MB, free: 12.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003279/0.7293, allocations: 1.19 MB / 494.1 MB, free: 11.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.7295, allocations: 119.2 kB / 494.2 MB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003596/0.7298, allocations: 163.9 kB / 494.4 MB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00415/0.734, allocations: 1.659 MB / 496 MB, free: 9.359 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.385e-05/0.7341, allocations: 11.98 kB / 496.1 MB, free: 9.348 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000219/0.7343, allocations: 64.34 kB / 496.1 MB, free: 9.285 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.7344, allocations: 43.95 kB / 496.2 MB, free: 9.242 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003267/0.7377, allocations: 1.177 MB / 497.3 MB, free: 8.062 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01362/0.7513, allocations: 6.971 MB / 0.4925 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/0.7537, allocations: 1.017 MB / 0.4935 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001499/0.7552, allocations: 0.657 MB / 0.4941 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.021e-05/0.7553, allocations: 13 kB / 0.4941 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001566/0.7569, allocations: 0.7091 MB / 0.4948 GB, free: 14.39 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 5.252e-06/0.7569, allocations: 0 / 0.4948 GB, free: 14.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.00754/0.7644, allocations: 3.052 MB / 0.4978 GB, free: 11.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001584/0.7646, allocations: 204.9 kB / 0.498 GB, free: 11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.7671, allocations: 1.165 MB / 0.4991 GB, free: 9.824 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.7673, allocations: 49.7 kB / 0.4992 GB, free: 9.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009324/0.7682, allocations: 0.7972 MB / 0.5 GB, free: 8.961 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004553/0.7687, allocations: 378.6 kB / 0.5003 GB, free: 8.586 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.7688, allocations: 32 kB / 0.5004 GB, free: 8.555 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.7691, allocations: 365.9 kB / 0.5007 GB, free: 8.191 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.7702, allocations: 439.8 kB / 0.5011 GB, free: 7.762 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.7718, allocations: 0.8251 MB / 0.5019 GB, free: 6.762 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.7737, allocations: 0.5915 MB / 0.5025 GB, free: 6.156 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.7737, allocations: 4 kB / 0.5025 GB, free: 6.152 MB / 426.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.00451/0.7782, allocations: 1.781 MB / 0.5043 GB, free: 4.332 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002996/0.7812, allocations: 4.975 MB / 0.5091 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.7813, allocations: 15.98 kB / 0.5091 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.7827, allocations: 342.4 kB / 0.5095 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.7839, allocations: 227.6 kB / 0.5097 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009517/0.7934, allocations: 6.119 MB / 0.5156 GB, free: 7.949 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.795, allocations: 71.88 kB / 0.5157 GB, free: 7.879 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/0.7952, allocations: 68.06 kB / 0.5158 GB, free: 7.812 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.7952, allocations: 4 kB / 0.5158 GB, free: 7.809 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004086/0.7993, allocations: 1.675 MB / 0.5174 GB, free: 6.102 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.7994, allocations: 12 kB / 0.5174 GB, free: 6.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.8007, allocations: 342.9 kB / 0.5178 GB, free: 5.746 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/0.8017, allocations: 219.6 kB / 0.518 GB, free: 5.531 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2514/1.053, allocations: 6.115 MB / 0.5239 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/1.055, allocations: 65.44 kB / 0.524 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002422/1.055, allocations: 66.2 kB / 0.5241 GB, free: 118.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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.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,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 (140): * Single equations (assignments): 134 * 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%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0004953/1.056, allocations: 278.6 kB / 0.5243 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003648/1.056, allocations: 167.5 kB / 0.5245 GB, free: 118.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/1.06, allocations: 1.541 MB / 0.526 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/1.06, allocations: 10.72 kB / 0.526 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.582e-06/1.06, allocations: 1.281 kB / 0.526 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.946e-05/1.06, allocations: 5.641 kB / 0.526 GB, free: 117.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007255/1.067, allocations: 3.236 MB / 0.5292 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/1.067, allocations: 4.047 kB / 0.5292 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007276/1.068, allocations: 121.3 kB / 0.5293 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001192/1.069, allocations: 327.1 kB / 0.5296 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/1.069, allocations: 34.52 kB / 0.5296 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007858/1.077, allocations: 6.101 MB / 0.5356 GB, free: 113.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.637e-06/1.077, allocations: 6.484 kB / 0.5356 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005066/1.082, allocations: 2.389 MB / 0.5379 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/1.084, allocations: 374.6 kB / 0.5383 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003248/1.084, allocations: 37.06 kB / 0.5383 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009396/1.085, allocations: 51.73 kB / 0.5384 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003701/1.085, allocations: 121.3 kB / 0.5385 GB, free: 112.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/1.085, allocations: 46.78 kB / 0.5385 GB, free: 112.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001917/1.087, allocations: 0.8797 MB / 0.5394 GB, free: 112.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.087, allocations: 0 / 0.5394 GB, free: 112.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004032/1.091, allocations: 0.7594 MB / 0.5401 GB, free: 112.8 MB / 442.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,inductor.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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_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,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 71 * 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%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008703/1.092, allocations: 411.1 kB / 0.5405 GB, free: 112.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005866/1.098, allocations: 3.234 MB / 0.5437 GB, free: 111.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.148e-06/1.098, allocations: 1.438 kB / 0.5437 GB, free: 111.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/1.101, allocations: 1.231 MB / 0.5449 GB, free: 111.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/1.103, allocations: 317.5 kB / 0.5452 GB, free: 111.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006232/1.109, allocations: 2.384 MB / 0.5475 GB, free: 110.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/1.11, allocations: 1.354 MB / 0.5488 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001855/1.112, allocations: 271.6 kB / 0.5491 GB, free: 109.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002033/1.112, allocations: 72.8 kB / 0.5492 GB, free: 109.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.79e-06/1.112, allocations: 0 / 0.5492 GB, free: 109.6 MB / 442.7 MB Notification: Performance of Templates: time 0.06709/1.179, allocations: 29.53 MB / 0.578 GB, free: 108 MB / 442.7 MB