Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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.pre_n.1..u|rectifier.pre_n.2..u|rectifier.pre_n.3..u|rectifier.pre_p.1..u|rectifier.pre_p.2..u|rectifier.pre_p.3..u|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_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.9 MB / 208 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.071e-05/3.089e-05, allocations: 8 kB / 255.4 MB, free: 2.676 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07774/0.07779, allocations: 44.48 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4091/0.4869, allocations: 86.8 MB / 386.7 MB, free: 20.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.4873, allocations: 83.42 kB / 386.8 MB, free: 20.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1285/0.6158, allocations: 35.49 MB / 422.3 MB, free: 8.906 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.875e-06/0.6159, allocations: 0 / 422.3 MB, free: 8.906 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000227/0.6161, allocations: 51 kB / 422.3 MB, free: 8.895 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 436 * Number of variables: 436 Notification: Performance of Generate backend data structure: time 0.00803/0.6242, allocations: 1.929 MB / 424.2 MB, free: 7.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.6243, allocations: 7.625 kB / 424.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001207/0.6255, allocations: 220.1 kB / 424.5 MB, free: 7.57 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01096/0.6365, allocations: 2.05 MB / 426.5 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002617/0.6368, allocations: 138.1 kB / 426.7 MB, free: 6.688 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008537/0.6377, allocations: 170.5 kB / 426.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008411/0.6461, allocations: 2.3 MB / 429.1 MB, free: 6.082 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.418e-05/0.6463, allocations: 3.906 kB / 429.1 MB, free: 6.082 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000424/0.6467, allocations: 72.39 kB / 429.2 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.6469, allocations: 73.48 kB / 429.3 MB, free: 6.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007491/0.6544, allocations: 1.861 MB / 431.1 MB, free: 5.863 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02346/0.6779, allocations: 6.753 MB / 437.9 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003152/0.6811, allocations: 1.66 MB / 439.5 MB, free: 444 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002371/0.6835, allocations: 1.125 MB / 440.7 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.744e-05/0.6836, allocations: 13 kB / 440.7 MB, free: 15.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001857/0.6855, allocations: 0.847 MB / 441.5 MB, free: 14.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=120): time 7.868e-06/0.6855, allocations: 0 / 441.5 MB, free: 14.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.004022/0.6896, allocations: 1.644 MB / 443.2 MB, free: 12.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/0.6897, allocations: 153.4 kB / 443.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002269/0.692, allocations: 1.034 MB / 444.4 MB, free: 11.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002855/0.6923, allocations: 73.67 kB / 444.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009626/0.6933, allocations: 0.7337 MB / 445.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005158/0.6938, allocations: 359.1 kB / 445.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.694, allocations: 32 kB / 445.5 MB, free: 10.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.6942, allocations: 353.9 kB / 445.9 MB, free: 9.973 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.6956, allocations: 0.6312 MB / 446.5 MB, free: 9.344 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/0.6973, allocations: 0.8848 MB / 447.4 MB, free: 8.363 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.6988, allocations: 0.6763 MB / 448.1 MB, free: 7.691 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.376e-06/0.6988, allocations: 4 kB / 448.1 MB, free: 7.688 MB / 330.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004391/0.7032, allocations: 1.898 MB / 450 MB, free: 5.777 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00141/0.7047, allocations: 2.451 MB / 452.4 MB, free: 3.137 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/0.7047, allocations: 8 kB / 452.4 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001819/0.7066, allocations: 0.512 MB / 453 MB, free: 2.613 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.7076, allocations: 167.7 kB / 453.1 MB, free: 2.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/0.7184, allocations: 5.492 MB / 458.6 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001542/0.72, allocations: 199 kB / 458.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001845/0.7202, allocations: 44 kB / 458.8 MB, free: 12.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.7202, allocations: 5.562 kB / 458.9 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004108/0.7244, allocations: 1.761 MB / 460.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/0.7244, allocations: 8 kB / 460.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001671/0.7261, allocations: 0.5174 MB / 461.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009632/0.7271, allocations: 159.7 kB / 461.3 MB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/0.7378, allocations: 5.492 MB / 466.8 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.7392, allocations: 171.2 kB / 467 MB, free: 4.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.7393, allocations: 48 kB / 467 MB, free: 4.273 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$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,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,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 (129): * Single equations (assignments): 128 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005033/0.7399, allocations: 233.3 kB / 467.2 MB, free: 4.031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003094/0.7402, allocations: 126.5 kB / 467.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004849/0.7407, allocations: 164.5 kB / 467.5 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.7407, allocations: 19.92 kB / 467.5 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.7407, allocations: 3.953 kB / 467.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.7408, allocations: 7.984 kB / 467.5 MB, free: 3.715 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008329/0.7491, allocations: 3.646 MB / 471.2 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.897e-06/0.7492, allocations: 0 / 471.2 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006219/0.7498, allocations: 87.83 kB / 471.3 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001608/0.7514, allocations: 496.6 kB / 471.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.7516, allocations: 20 kB / 471.8 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/0.7622, allocations: 5.433 MB / 477.2 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.293e-06/0.7622, allocations: 0 / 477.2 MB, free: 9.836 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00536/0.7676, allocations: 2.509 MB / 479.7 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/0.7687, allocations: 363.2 kB / 480.1 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00032/0.7691, allocations: 43.97 kB / 480.1 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009766/0.7701, allocations: 111.9 kB / 480.2 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006758/0.7708, allocations: 224.6 kB / 480.4 MB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.7709, allocations: 39.86 kB / 480.5 MB, free: 6.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001687/0.7726, allocations: 0.7804 MB / 481.3 MB, free: 5.727 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.6e-07/0.7726, allocations: 0 / 481.3 MB, free: 5.727 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003286/0.7759, allocations: 0.8411 MB / 482.1 MB, free: 4.883 MB / 362.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: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,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,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,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: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.00043/0.7764, allocations: 201.4 kB / 482.3 MB, free: 4.676 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006652/0.7831, allocations: 2.959 MB / 485.3 MB, free: 1.699 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.482e-06/0.7831, allocations: 8.312 kB / 485.3 MB, free: 1.691 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.7855, allocations: 1.005 MB / 486.3 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/0.7874, allocations: 315.6 kB / 486.6 MB, free: 376 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007341/0.7948, allocations: 2.761 MB / 489.3 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002182/0.797, allocations: 1.717 MB / 491.1 MB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002247/0.7993, allocations: 0.5802 MB / 491.6 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003038/0.7996, allocations: 67.42 kB / 491.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.19e-06/0.7996, allocations: 0 / 491.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of Templates: time 0.2841/1.084, allocations: 29.48 MB / 0.509 GB, free: 109.7 MB / 394.7 MB