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.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 205.8 MB / 218.9 MB, free: 9.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.791e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08316/0.08321, allocations: 47.57 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.37/0.4533, allocations: 104 MB / 420.9 MB, free: 364 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.4536, allocations: 91.81 kB / 421 MB, free: 312 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1653/0.6189, allocations: 42.05 MB / 463.1 MB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.165e-06/0.619, allocations: 0 / 463.1 MB, free: 12.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001369/0.6191, allocations: 43.98 kB / 463.1 MB, free: 12.83 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 410 * Number of variables: 410 Notification: Performance of Generate backend data structure: time 0.00392/0.6231, allocations: 1.824 MB / 465 MB, free: 11.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.6231, allocations: 8.031 kB / 465 MB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008995/0.624, allocations: 265.3 kB / 465.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002892/0.6269, allocations: 1.199 MB / 466.4 MB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/0.6271, allocations: 123.5 kB / 466.5 MB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003497/0.6275, allocations: 167.9 kB / 466.7 MB, free: 9.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004049/0.6315, allocations: 1.651 MB / 468.4 MB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.582e-05/0.6316, allocations: 4 kB / 468.4 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002326/0.6319, allocations: 68 kB / 468.4 MB, free: 7.652 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.7e-05/0.6319, allocations: 40 kB / 468.5 MB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003193/0.6351, allocations: 1.169 MB / 469.6 MB, free: 6.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/0.6481, allocations: 6.956 MB / 476.6 MB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/0.6504, allocations: 1.017 MB / 477.6 MB, free: 14.2 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.6519, allocations: 0.6726 MB / 478.3 MB, free: 13.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.371e-05/0.652, allocations: 9 kB / 478.3 MB, free: 13.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001581/0.6536, allocations: 0.7168 MB / 479 MB, free: 12.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 4.749e-06/0.6536, allocations: 0 / 479 MB, free: 12.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.007371/0.661, allocations: 3.044 MB / 482 MB, free: 9.609 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001586/0.6612, allocations: 208.9 kB / 482.3 MB, free: 9.363 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.6636, allocations: 1.177 MB / 483.4 MB, free: 8.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.6638, allocations: 49.7 kB / 483.5 MB, free: 8.125 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009141/0.6647, allocations: 0.7895 MB / 484.3 MB, free: 7.324 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004424/0.6652, allocations: 382.7 kB / 484.6 MB, free: 6.945 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.6653, allocations: 28 kB / 484.7 MB, free: 6.918 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002277/0.6655, allocations: 357.9 kB / 485 MB, free: 6.562 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001095/0.6666, allocations: 436 kB / 485.4 MB, free: 6.137 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.6681, allocations: 0.829 MB / 486.3 MB, free: 5.133 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.6695, allocations: 0.5954 MB / 486.9 MB, free: 4.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.6695, allocations: 4 kB / 486.9 MB, free: 4.516 MB / 394.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.004211/0.6737, allocations: 1.788 MB / 488.7 MB, free: 2.691 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002726/0.6765, allocations: 4.966 MB / 493.6 MB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.6765, allocations: 16 kB / 493.6 MB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.6778, allocations: 343 kB / 494 MB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001038/0.6789, allocations: 223.7 kB / 494.2 MB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009106/0.688, allocations: 6.118 MB / 0.4886 GB, free: 6.316 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.6894, allocations: 67.97 kB / 0.4887 GB, free: 6.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001798/0.6896, allocations: 64 kB / 0.4887 GB, free: 6.188 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.374e-06/0.6896, allocations: 8.062 kB / 0.4887 GB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004003/0.6936, allocations: 1.683 MB / 0.4904 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.6937, allocations: 12 kB / 0.4904 GB, free: 4.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001231/0.6949, allocations: 347.7 kB / 0.4907 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009854/0.6959, allocations: 219.7 kB / 0.4909 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008972/0.7049, allocations: 6.114 MB / 0.4969 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.7063, allocations: 63.98 kB / 0.4969 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001767/0.7065, allocations: 71.98 kB / 0.497 GB, free: 13.25 MB / 426.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,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.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.0004971/0.707, allocations: 281.4 kB / 0.4973 GB, free: 12.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003369/0.7073, allocations: 165.9 kB / 0.4974 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/0.7112, allocations: 1.539 MB / 0.4989 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.7112, allocations: 8 kB / 0.499 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.7112, allocations: 4 kB / 0.499 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.7113, allocations: 7.969 kB / 0.499 GB, free: 11.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007555/0.7188, allocations: 3.231 MB / 0.5021 GB, free: 7.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.401e-06/0.7189, allocations: 4 kB / 0.5021 GB, free: 7.852 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007218/0.7196, allocations: 124.1 kB / 0.5022 GB, free: 7.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.7209, allocations: 330.8 kB / 0.5026 GB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.721, allocations: 31.98 kB / 0.5026 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009197/0.7302, allocations: 6.106 MB / 0.5085 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.955e-06/0.7303, allocations: 0 / 0.5085 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2587/0.989, allocations: 2.394 MB / 0.5109 GB, free: 117.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009603/0.99, allocations: 372.2 kB / 0.5112 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003309/0.9903, allocations: 32.25 kB / 0.5113 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009897/0.9913, allocations: 57.52 kB / 0.5113 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/0.9917, allocations: 111.8 kB / 0.5114 GB, free: 117.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.9918, allocations: 46.12 kB / 0.5115 GB, free: 117.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001845/0.9937, allocations: 0.8786 MB / 0.5123 GB, free: 117.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.017e-06/0.9937, allocations: 0 / 0.5123 GB, free: 117.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003633/0.9974, allocations: 0.7635 MB / 0.5131 GB, free: 117.6 MB / 426.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,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,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.0008132/0.9982, allocations: 404.2 kB / 0.5135 GB, free: 117.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005527/1.004, allocations: 3.228 MB / 0.5166 GB, free: 116.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.315e-06/1.004, allocations: 1.312 kB / 0.5166 GB, free: 116.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002072/1.006, allocations: 1.239 MB / 0.5178 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/1.008, allocations: 325.4 kB / 0.5181 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00593/1.014, allocations: 2.373 MB / 0.5205 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/1.015, allocations: 1.357 MB / 0.5218 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001757/1.017, allocations: 273.7 kB / 0.522 GB, free: 114.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002052/1.017, allocations: 70.59 kB / 0.5221 GB, free: 114.6 MB / 426.7 MB Notification: Performance of SimCode: time 2.602e-06/1.017, allocations: 0 / 0.5221 GB, free: 114.6 MB / 426.7 MB Notification: Performance of Templates: time 0.09299/1.11, allocations: 29.54 MB / 0.551 GB, free: 112.8 MB / 426.7 MB