Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R") Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.097e-05/3.112e-05, allocations: 4 kB / 292.1 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.0952, allocations: 50.41 MB / 342.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3818/0.477, allocations: 93.06 MB / 435.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.4774, allocations: 88.44 kB / 435.7 MB, free: 1.129 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1468/0.6242, allocations: 38.09 MB / 473.8 MB, free: 15.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.6242, allocations: 0 / 473.8 MB, free: 15.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001722/0.6244, allocations: 51.92 kB / 473.8 MB, free: 15.56 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 450 * Number of variables: 450 Notification: Performance of Generate backend data structure: time 0.005705/0.6301, allocations: 2.045 MB / 475.9 MB, free: 13.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.6302, allocations: 8.031 kB / 475.9 MB, free: 13.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008143/0.631, allocations: 229.3 kB / 476.1 MB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007024/0.6381, allocations: 2 MB / 478.1 MB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000202/0.6383, allocations: 135.5 kB / 478.3 MB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004941/0.6388, allocations: 172 kB / 478.4 MB, free: 10.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005831/0.6447, allocations: 2.379 MB / 480.8 MB, free: 8.406 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.101e-05/0.6448, allocations: 4 kB / 480.8 MB, free: 8.402 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002692/0.645, allocations: 75.98 kB / 480.9 MB, free: 8.328 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001238/0.6452, allocations: 79.47 kB / 481 MB, free: 8.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004928/0.6501, allocations: 2.002 MB / 483 MB, free: 6.246 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/0.6675, allocations: 7.388 MB / 490.4 MB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003079/0.6706, allocations: 1.49 MB / 491.8 MB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001986/0.6727, allocations: 0.9277 MB / 492.8 MB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.381e-05/0.6728, allocations: 20.98 kB / 492.8 MB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001839/0.6746, allocations: 0.8519 MB / 493.6 MB, free: 11.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 5.192e-06/0.6747, allocations: 3.938 kB / 493.6 MB, free: 11.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=117): time 0.003616/0.6783, allocations: 1.551 MB / 495.2 MB, free: 9.773 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/0.6785, allocations: 153.5 kB / 495.3 MB, free: 9.594 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/0.681, allocations: 1.132 MB / 496.5 MB, free: 8.445 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002272/0.6812, allocations: 61.69 kB / 496.5 MB, free: 8.379 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009062/0.6821, allocations: 0.7595 MB / 497.3 MB, free: 7.609 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/0.6827, allocations: 347.1 kB / 497.6 MB, free: 7.266 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.6828, allocations: 24 kB / 497.7 MB, free: 7.242 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002298/0.683, allocations: 362.8 kB / 498 MB, free: 6.879 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.6844, allocations: 0.6155 MB / 498.6 MB, free: 6.266 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.686, allocations: 0.8247 MB / 499.5 MB, free: 5.363 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001397/0.6874, allocations: 0.6374 MB / 0.4884 GB, free: 4.727 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.923e-06/0.6874, allocations: 0 / 0.4884 GB, free: 4.727 MB / 410.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.004114/0.6915, allocations: 1.685 MB / 0.49 GB, free: 3.031 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001254/0.6928, allocations: 1.918 MB / 0.4919 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.6929, allocations: 8 kB / 0.4919 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.6944, allocations: 438.7 kB / 0.4923 GB, free: 0.5312 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.6955, allocations: 191.6 kB / 0.4925 GB, free: 352 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008141/0.7037, allocations: 4.363 MB / 0.4968 GB, free: 11.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.7052, allocations: 179.1 kB / 0.4969 GB, free: 11.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.7055, allocations: 47.98 kB / 0.497 GB, free: 11.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.7055, allocations: 4 kB / 0.497 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003694/0.7092, allocations: 1.629 MB / 0.4986 GB, free: 9.984 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.7092, allocations: 4 kB / 0.4986 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.7105, allocations: 429.1 kB / 0.499 GB, free: 9.559 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.7116, allocations: 175.7 kB / 0.4992 GB, free: 9.387 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008926/0.7205, allocations: 4.43 MB / 0.5035 GB, free: 4.828 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009789/0.7215, allocations: 155.2 kB / 0.5036 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.7217, allocations: 40 kB / 0.5037 GB, free: 4.637 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 22} Notification: Performance of prepare postOptimizeDAE: time 0.0004612/0.7222, allocations: 216.8 kB / 0.5039 GB, free: 4.418 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/0.7226, allocations: 138.3 kB / 0.504 GB, free: 4.281 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000493/0.7231, allocations: 177 kB / 0.5042 GB, free: 4.098 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/0.7231, allocations: 12 kB / 0.5042 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.033e-06/0.7232, allocations: 0 / 0.5042 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.7232, allocations: 3.984 kB / 0.5042 GB, free: 4.082 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00855/0.7317, allocations: 3.712 MB / 0.5078 GB, free: 320 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.85e-06/0.7318, allocations: 7.938 kB / 0.5078 GB, free: 312 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008087/0.7326, allocations: 119.8 kB / 0.5079 GB, free: 192 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001312/0.734, allocations: 412.4 kB / 0.5083 GB, free: 15.78 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.7341, allocations: 27.98 kB / 0.5084 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007525/0.7416, allocations: 4.151 MB / 0.5124 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.402e-06/0.7417, allocations: 4 kB / 0.5124 GB, free: 11.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005497/0.7472, allocations: 2.572 MB / 0.5149 GB, free: 8.879 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.7483, allocations: 379.2 kB / 0.5153 GB, free: 8.488 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002873/0.7486, allocations: 35.98 kB / 0.5153 GB, free: 8.453 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.7496, allocations: 107.9 kB / 0.5154 GB, free: 8.348 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006754/0.7503, allocations: 228.6 kB / 0.5156 GB, free: 8.125 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/0.7504, allocations: 31.98 kB / 0.5157 GB, free: 8.094 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001842/0.7523, allocations: 0.8688 MB / 0.5165 GB, free: 7.215 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.62e-07/0.7523, allocations: 0 / 0.5165 GB, free: 7.215 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002755/0.7551, allocations: 0.8446 MB / 0.5173 GB, free: 6.367 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003864/0.7555, allocations: 196.3 kB / 0.5175 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006064/0.7616, allocations: 2.78 MB / 0.5202 GB, free: 3.371 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/0.7616, allocations: 0.7812 kB / 0.5202 GB, free: 3.371 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002192/0.7638, allocations: 1.008 MB / 0.5212 GB, free: 2.359 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/0.7657, allocations: 300.3 kB / 0.5215 GB, free: 2.066 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2451/1.011, allocations: 2.846 MB / 0.5243 GB, free: 128.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002109/1.013, allocations: 1.745 MB / 0.526 GB, free: 127.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005737/1.014, allocations: 88.53 kB / 0.5261 GB, free: 127.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.835e-06/1.014, allocations: 0 / 0.5261 GB, free: 127.7 MB / 442.7 MB Notification: Performance of Templates: time 0.04698/1.061, allocations: 31.79 MB / 0.5571 GB, free: 124.3 MB / 442.7 MB