Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.thyristor_n.idealThyristor.1..off|rectifier.thyristor_n.idealThyristor.2..off|rectifier.thyristor_n.idealThyristor.3..off|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL") Notification: Performance of loadModel(Modelica): time 1.866/1.866, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.757e-05/2.767e-05, allocations: 4 kB / 292.2 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.08904, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4185/0.5075, allocations: 93.33 MB / 435.9 MB, free: 1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.5079, allocations: 92.61 kB / 436 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1452/0.6531, allocations: 38.43 MB / 474.4 MB, free: 14.7 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.075e-06/0.6532, allocations: 4 kB / 474.4 MB, free: 14.7 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001507/0.6533, allocations: 47.94 kB / 474.5 MB, free: 14.65 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: 456 * Number of variables: 456 Notification: Performance of Generate backend data structure: time 0.004924/0.6583, allocations: 2.063 MB / 476.5 MB, free: 12.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.6583, allocations: 8.031 kB / 476.5 MB, free: 12.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005682/0.6589, allocations: 233.6 kB / 476.8 MB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.6652, allocations: 2.008 MB / 478.8 MB, free: 10.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.6653, allocations: 135.5 kB / 478.9 MB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003926/0.6658, allocations: 180 kB / 479.1 MB, free: 9.922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005195/0.671, allocations: 2.395 MB / 481.5 MB, free: 7.445 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.176e-05/0.671, allocations: 4 kB / 481.5 MB, free: 7.441 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002585/0.6713, allocations: 72 kB / 481.6 MB, free: 7.371 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.6714, allocations: 91.38 kB / 481.7 MB, free: 7.281 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004599/0.676, allocations: 2.006 MB / 483.7 MB, free: 5.273 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01569/0.6918, allocations: 7.47 MB / 491.1 MB, free: 13.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002932/0.6947, allocations: 1.504 MB / 492.6 MB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001894/0.6966, allocations: 0.9484 MB / 493.6 MB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.299e-05/0.6967, allocations: 12.94 kB / 493.6 MB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00175/0.6985, allocations: 0.8694 MB / 494.5 MB, free: 10.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.918e-06/0.6985, allocations: 0 / 494.5 MB, free: 10.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=119): time 0.003434/0.702, allocations: 1.548 MB / 496 MB, free: 8.68 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.7021, allocations: 165.4 kB / 496.2 MB, free: 8.488 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002303/0.7044, allocations: 1.14 MB / 497.3 MB, free: 7.332 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001636/0.7046, allocations: 65.69 kB / 497.4 MB, free: 7.262 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009521/0.7056, allocations: 0.7849 MB / 498.2 MB, free: 6.465 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000451/0.706, allocations: 355.1 kB / 498.5 MB, free: 6.113 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.7062, allocations: 28 kB / 498.5 MB, free: 6.086 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.7064, allocations: 349.9 kB / 498.9 MB, free: 5.738 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.7077, allocations: 0.6155 MB / 499.5 MB, free: 5.121 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.7093, allocations: 0.837 MB / 0.4886 GB, free: 4.207 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.7107, allocations: 0.649 MB / 0.4892 GB, free: 3.559 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.677e-06/0.7107, allocations: 0 / 0.4892 GB, free: 3.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003896/0.7146, allocations: 1.782 MB / 0.491 GB, free: 1.766 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001093/0.7157, allocations: 1.94 MB / 0.4929 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.7157, allocations: 4 kB / 0.4929 GB, free: 15.69 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.7171, allocations: 438.7 kB / 0.4933 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.7182, allocations: 183.7 kB / 0.4935 GB, free: 15.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008223/0.7264, allocations: 4.4 MB / 0.4978 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/0.7288, allocations: 179.2 kB / 0.4979 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002689/0.7291, allocations: 44 kB / 0.498 GB, free: 10.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.7292, allocations: 8 kB / 0.498 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006074/0.7352, allocations: 1.64 MB / 0.4996 GB, free: 8.676 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.7353, allocations: 12.06 kB / 0.4996 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.7375, allocations: 420.7 kB / 0.5 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.7392, allocations: 187.6 kB / 0.5002 GB, free: 8.066 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/0.7529, allocations: 4.4 MB / 0.5045 GB, free: 3.531 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/0.7552, allocations: 163.2 kB / 0.5046 GB, free: 3.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.7555, allocations: 40 kB / 0.5047 GB, free: 3.332 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 (127): * Single equations (assignments): 126 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007093/0.7562, allocations: 224.8 kB / 0.5049 GB, free: 3.105 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005085/0.7568, allocations: 134.4 kB / 0.505 GB, free: 2.973 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007269/0.7575, allocations: 177.1 kB / 0.5052 GB, free: 2.793 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.811e-05/0.7576, allocations: 12 kB / 0.5052 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.7576, allocations: 0 / 0.5052 GB, free: 2.781 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-05/0.7577, allocations: 7.922 kB / 0.5052 GB, free: 2.773 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01412/0.7718, allocations: 3.743 MB / 0.5089 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.7718, allocations: 0 / 0.5089 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/0.7734, allocations: 123.8 kB / 0.509 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002177/0.7756, allocations: 404.5 kB / 0.5094 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001808/0.7758, allocations: 27.94 kB / 0.5094 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01761/0.7935, allocations: 4.337 MB / 0.5136 GB, free: 9.965 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.717e-06/0.7935, allocations: 0 / 0.5136 GB, free: 9.965 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005983/0.7995, allocations: 2.591 MB / 0.5162 GB, free: 7.355 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000979/0.8005, allocations: 379.2 kB / 0.5165 GB, free: 6.965 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002811/0.8008, allocations: 31.98 kB / 0.5165 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.8019, allocations: 115.9 kB / 0.5167 GB, free: 6.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006542/0.8026, allocations: 228.6 kB / 0.5169 GB, free: 6.594 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001312/0.8027, allocations: 31.98 kB / 0.5169 GB, free: 6.562 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001755/0.8045, allocations: 0.8652 MB / 0.5177 GB, free: 5.688 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.076e-06/0.8045, allocations: 0 / 0.5177 GB, free: 5.688 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002704/0.8072, allocations: 0.8641 MB / 0.5186 GB, free: 4.82 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * 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[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 83 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003901/0.8076, allocations: 196.5 kB / 0.5188 GB, free: 4.621 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005869/0.8135, allocations: 2.827 MB / 0.5215 GB, free: 1.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.8136, allocations: 3.938 kB / 0.5215 GB, free: 1.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/0.8156, allocations: 1.005 MB / 0.5225 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.8172, allocations: 292.4 kB / 0.5228 GB, free: 476 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2615/1.079, allocations: 2.948 MB / 0.5257 GB, free: 127.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003089/1.082, allocations: 1.784 MB / 0.5274 GB, free: 127.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004324/1.086, allocations: 0.6455 MB / 0.5281 GB, free: 127.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005019/1.087, allocations: 70.14 kB / 0.5281 GB, free: 127.2 MB / 442.7 MB Notification: Performance of SimCode: time 2.537e-06/1.087, allocations: 0 / 0.5281 GB, free: 127.2 MB / 442.7 MB Notification: Performance of Templates: time 0.06823/1.155, allocations: 27.18 MB / 0.5547 GB, free: 126.2 MB / 442.7 MB