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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 1.912/1.912, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.032e-05/3.037e-05, allocations: 6.812 kB / 292.2 MB, free: 8.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09021/0.09026, allocations: 50.41 MB / 342.6 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4617/0.552, allocations: 105.3 MB / 447.9 MB, free: 5.168 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.5523, allocations: 91.38 kB / 448 MB, free: 5.117 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1645/0.7168, allocations: 42.26 MB / 490.3 MB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.102e-06/0.7169, allocations: 0 / 490.3 MB, free: 14.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001526/0.7171, allocations: 40 kB / 490.3 MB, free: 14.77 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.00442/0.7215, allocations: 1.826 MB / 492.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.7215, allocations: 15.97 kB / 492.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001101/0.7227, allocations: 261.3 kB / 492.4 MB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003477/0.7262, allocations: 1.194 MB / 493.6 MB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001463/0.7263, allocations: 119.2 kB / 493.7 MB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003523/0.7267, allocations: 163.9 kB / 493.9 MB, free: 11.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004654/0.7314, allocations: 1.655 MB / 495.5 MB, free: 9.324 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.606e-05/0.7315, allocations: 11.94 kB / 495.5 MB, free: 9.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.7317, allocations: 68.33 kB / 495.6 MB, free: 9.246 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.087e-05/0.7318, allocations: 43.95 kB / 495.6 MB, free: 9.203 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003374/0.7352, allocations: 1.177 MB / 496.8 MB, free: 8.023 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01405/0.7493, allocations: 6.975 MB / 0.492 GB, free: 0.7852 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.7516, allocations: 1.009 MB / 0.493 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.7532, allocations: 0.661 MB / 0.4936 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.718e-05/0.7533, allocations: 13 kB / 0.4936 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001565/0.7548, allocations: 0.7013 MB / 0.4943 GB, free: 14.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=122): time 5.521e-06/0.7549, allocations: 0 / 0.4943 GB, free: 14.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=125): time 0.00759/0.7625, allocations: 3.052 MB / 0.4973 GB, free: 11.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/0.7627, allocations: 204.9 kB / 0.4975 GB, free: 10.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002499/0.7652, allocations: 1.165 MB / 0.4986 GB, free: 9.789 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001796/0.7654, allocations: 49.7 kB / 0.4987 GB, free: 9.734 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009442/0.7663, allocations: 0.8011 MB / 0.4995 GB, free: 8.922 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/0.7668, allocations: 378.6 kB / 0.4998 GB, free: 8.547 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.7669, allocations: 32 kB / 0.4998 GB, free: 8.516 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.7672, allocations: 365.9 kB / 0.5002 GB, free: 8.152 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001144/0.7683, allocations: 439.8 kB / 0.5006 GB, free: 7.723 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.7699, allocations: 0.8251 MB / 0.5014 GB, free: 6.723 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.7713, allocations: 0.5876 MB / 0.502 GB, free: 6.117 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.7713, allocations: 4 kB / 0.502 GB, free: 6.113 MB / 426.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.00446/0.7758, allocations: 1.781 MB / 0.5037 GB, free: 4.293 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002815/0.7786, allocations: 4.972 MB / 0.5086 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.111e-05/0.7787, allocations: 12 kB / 0.5086 GB, free: 15.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001414/0.7801, allocations: 346.5 kB / 0.5089 GB, free: 14.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.7812, allocations: 227.6 kB / 0.5092 GB, free: 14.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009245/0.7905, allocations: 6.127 MB / 0.5151 GB, free: 7.906 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.792, allocations: 71.88 kB / 0.5152 GB, free: 7.836 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001843/0.7922, allocations: 71.98 kB / 0.5153 GB, free: 7.766 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.7923, allocations: 4 kB / 0.5153 GB, free: 7.762 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004067/0.7963, allocations: 1.675 MB / 0.5169 GB, free: 6.059 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.225e-05/0.7964, allocations: 12 kB / 0.5169 GB, free: 6.047 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.7977, allocations: 338.8 kB / 0.5172 GB, free: 5.707 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009621/0.7987, allocations: 219.7 kB / 0.5175 GB, free: 5.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.259/1.058, allocations: 6.109 MB / 0.5234 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/1.059, allocations: 68.19 kB / 0.5235 GB, free: 118 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001932/1.059, allocations: 67.75 kB / 0.5236 GB, free: 118 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.000464/1.06, allocations: 280.8 kB / 0.5238 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003359/1.06, allocations: 167.3 kB / 0.524 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003949/1.064, allocations: 1.536 MB / 0.5255 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/1.064, allocations: 11.83 kB / 0.5255 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.871e-06/1.064, allocations: 4.562 kB / 0.5255 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/1.064, allocations: 8.547 kB / 0.5255 GB, free: 117.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006954/1.071, allocations: 3.237 MB / 0.5287 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/1.071, allocations: 3.672 kB / 0.5287 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007349/1.072, allocations: 117.9 kB / 0.5288 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001193/1.073, allocations: 327.9 kB / 0.5291 GB, free: 117.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/1.073, allocations: 35.47 kB / 0.5291 GB, free: 117.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007216/1.081, allocations: 6.09 MB / 0.5351 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.043e-06/1.081, allocations: 6.078 kB / 0.5351 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004959/1.086, allocations: 2.389 MB / 0.5374 GB, free: 112.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008928/1.087, allocations: 376.5 kB / 0.5378 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002979/1.087, allocations: 37.75 kB / 0.5378 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009373/1.088, allocations: 53.59 kB / 0.5379 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/1.088, allocations: 118.1 kB / 0.538 GB, free: 112.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/1.088, allocations: 47.06 kB / 0.538 GB, free: 112.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001766/1.09, allocations: 0.8822 MB / 0.5389 GB, free: 112.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.38e-07/1.09, allocations: 0 / 0.5389 GB, free: 112.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003353/1.094, allocations: 0.763 MB / 0.5396 GB, free: 112.5 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.0007932/1.094, allocations: 410.6 kB / 0.54 GB, free: 112.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005568/1.1, allocations: 3.23 MB / 0.5432 GB, free: 111.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/1.1, allocations: 1.156 kB / 0.5432 GB, free: 111.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002137/1.102, allocations: 1.229 MB / 0.5444 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/1.104, allocations: 327.3 kB / 0.5447 GB, free: 110.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005625/1.11, allocations: 2.379 MB / 0.547 GB, free: 110.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00116/1.111, allocations: 1.358 MB / 0.5483 GB, free: 109.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001827/1.113, allocations: 272.7 kB / 0.5486 GB, free: 109.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/1.113, allocations: 71.69 kB / 0.5487 GB, free: 109.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.753e-06/1.113, allocations: 0 / 0.5487 GB, free: 109.4 MB / 442.7 MB Notification: Performance of Templates: time 0.0659/1.179, allocations: 29.54 MB / 0.5775 GB, free: 107.7 MB / 442.7 MB