Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV,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.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_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV") Notification: Performance of loadModel(Modelica): time 1.818/1.818, allocations: 195 MB / 203.2 MB, free: 6.758 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.225e-05/2.238e-05, allocations: 2.938 kB / 249.6 MB, free: 5.543 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07496/0.07501, allocations: 44.5 MB / 294.1 MB, free: 11.15 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3402/0.4153, allocations: 86.67 MB / 380.8 MB, free: 9.938 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.4156, allocations: 90.03 kB / 380.9 MB, free: 9.922 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1596/0.5752, allocations: 35.73 MB / 416.6 MB, free: 7.207 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.065e-06/0.5752, allocations: 3.938 kB / 416.6 MB, free: 7.203 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001547/0.5754, allocations: 51.98 kB / 416.7 MB, free: 7.152 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: 448 * Number of variables: 448 Notification: Performance of Generate backend data structure: time 0.004802/0.5802, allocations: 1.957 MB / 418.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.5803, allocations: 12.03 kB / 418.7 MB, free: 5.242 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008268/0.5811, allocations: 225.3 kB / 418.9 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007799/0.5889, allocations: 2.066 MB / 420.9 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.5891, allocations: 60 kB / 421 MB, free: 3.336 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003587/0.5894, allocations: 107.8 kB / 421.1 MB, free: 3.234 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00444/0.5939, allocations: 1.813 MB / 422.9 MB, free: 2.141 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004962/0.5989, allocations: 2.107 MB / 425 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.455e-05/0.599, allocations: 3.953 kB / 425 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.5992, allocations: 7.984 kB / 425 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/0.5993, allocations: 78.08 kB / 425.1 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0151/0.6144, allocations: 6.492 MB / 431.6 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00355/0.618, allocations: 1.638 MB / 433.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001816/0.6199, allocations: 0.9049 MB / 434.1 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.545e-05/0.62, allocations: 13.31 kB / 434.2 MB, free: 7.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001699/0.6217, allocations: 0.8472 MB / 435 MB, free: 6.906 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 4.851e-06/0.6217, allocations: 0 / 435 MB, free: 6.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.003754/0.6255, allocations: 1.567 MB / 436.6 MB, free: 5.328 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/0.6257, allocations: 157.8 kB / 436.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/0.6276, allocations: 0.9013 MB / 437.6 MB, free: 4.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.6278, allocations: 53.67 kB / 437.7 MB, free: 4.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008565/0.6287, allocations: 0.7515 MB / 438.4 MB, free: 3.398 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004597/0.6292, allocations: 343.2 kB / 438.8 MB, free: 3.059 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.624e-05/0.6293, allocations: 0 / 438.8 MB, free: 3.059 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002385/0.6295, allocations: 366.8 kB / 439.1 MB, free: 2.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001305/0.6308, allocations: 0.6169 MB / 439.7 MB, free: 2.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.6324, allocations: 0.8786 MB / 440.6 MB, free: 1.098 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.6338, allocations: 0.662 MB / 441.3 MB, free: 444 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.6338, allocations: 4 kB / 441.3 MB, free: 440 kB / 330.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00379/0.6376, allocations: 1.735 MB / 443 MB, free: 14.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00139/0.6391, allocations: 2.444 MB / 445.5 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.6391, allocations: 4 kB / 445.5 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/0.6407, allocations: 0.4895 MB / 446 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000876/0.6416, allocations: 171.7 kB / 446.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009448/0.651, allocations: 5.106 MB / 451.2 MB, free: 6.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.6525, allocations: 155 kB / 451.4 MB, free: 6 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/0.6526, allocations: 52 kB / 451.4 MB, free: 5.949 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.6527, allocations: 11.94 kB / 451.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003577/0.6562, allocations: 1.644 MB / 453.1 MB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.6563, allocations: 8 kB / 453.1 MB, free: 4.281 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001398/0.6577, allocations: 489.4 kB / 453.6 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008664/0.6586, allocations: 171.7 kB / 453.7 MB, free: 3.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009352/0.668, allocations: 5.145 MB / 458.9 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009755/0.669, allocations: 139.1 kB / 459 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.6691, allocations: 48.19 kB / 459.1 MB, free: 14.18 MB / 362.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 (137): * Single equations (assignments): 136 * 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 28} Notification: Performance of prepare postOptimizeDAE: time 0.0004617/0.6696, allocations: 204.9 kB / 459.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/0.67, allocations: 118.6 kB / 459.4 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004388/0.6704, allocations: 147.8 kB / 459.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.6705, allocations: 15.94 kB / 459.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.341e-06/0.6705, allocations: 4 kB / 459.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.538e-05/0.6705, allocations: 3.984 kB / 459.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006852/0.6774, allocations: 3.234 MB / 462.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.6774, allocations: 0 / 462.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006089/0.678, allocations: 99.83 kB / 462.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00143/0.6795, allocations: 465.2 kB / 463.3 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.6796, allocations: 7.984 kB / 463.3 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009211/0.6888, allocations: 5.002 MB / 468.3 MB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.719e-06/0.6889, allocations: 4 kB / 468.4 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005038/0.6939, allocations: 2.476 MB / 470.8 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009045/0.6949, allocations: 351.4 kB / 471.2 MB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/0.6951, allocations: 23.94 kB / 471.2 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009053/0.6961, allocations: 95.89 kB / 471.3 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006357/0.6967, allocations: 225 kB / 471.5 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.6968, allocations: 31.98 kB / 471.5 MB, free: 1.484 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001321/0.6982, allocations: 0.6645 MB / 472.2 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.473e-06/0.6982, allocations: 0 / 472.2 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002805/0.701, allocations: 0.7822 MB / 473 MB, free: 24 kB / 362.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: 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_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003991/0.7014, allocations: 189.5 kB / 473.2 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005881/0.7073, allocations: 2.858 MB / 476 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.367e-06/0.7074, allocations: 2.188 kB / 476 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002069/0.7094, allocations: 1.002 MB / 477 MB, free: 11.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.7111, allocations: 268.3 kB / 477.3 MB, free: 11.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00668/0.7178, allocations: 2.754 MB / 480 MB, free: 8.883 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002126/0.72, allocations: 1.703 MB / 481.8 MB, free: 7.145 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.7205, allocations: 91.42 kB / 481.8 MB, free: 7.055 MB / 378.7 MB Notification: Performance of SimCode: time 2.316e-06/0.7205, allocations: 0 / 481.8 MB, free: 7.055 MB / 378.7 MB Notification: Performance of Templates: time 0.2579/0.9784, allocations: 30.35 MB / 0.5002 GB, free: 112.9 MB / 394.7 MB