Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_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.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_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R") Notification: Performance of loadModel(Modelica): time 2.139/2.139, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.371e-05/2.377e-05, allocations: 0 / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 50.41 MB / 345 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_R): time 0.008299/0.1187, allocations: 4.768 MB / 349.8 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004477/0.1232, allocations: 1.567 MB / 351.3 MB, free: 2.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009166/0.1242, allocations: 55.81 kB / 351.4 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008486/0.125, allocations: 218.7 kB / 351.6 MB, free: 2.293 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001667/0.1267, allocations: 374.7 kB / 352 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1278, allocations: 247.6 kB / 352.2 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002625/0.1304, allocations: 1.062 MB / 353.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002053/0.1325, allocations: 1.087 MB / 354.3 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001227/0.1338, allocations: 0.5413 MB / 354.9 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001578/0.1354, allocations: 0.7084 MB / 355.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003719/0.1358, allocations: 64 kB / 355.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002992/0.1361, allocations: 68 kB / 355.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005645/0.1367, allocations: 434.5 kB / 356.2 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005006/0.1372, allocations: 156 kB / 356.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00406/0.1413, allocations: 2.735 MB / 359 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1414, allocations: 0 / 359 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1414, allocations: 0 / 359 MB, free: 10.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.1415, allocations: 0 / 359 MB, free: 10.82 MB / 298.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.006689/0.1482, allocations: 2.014 MB / 361.1 MB, free: 8.746 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.1483, allocations: 8.031 kB / 361.1 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009851/0.1493, allocations: 225.3 kB / 361.3 MB, free: 8.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003715/0.153, allocations: 1.291 MB / 362.6 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000187/0.1532, allocations: 143.4 kB / 362.7 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005202/0.1538, allocations: 176 kB / 362.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007523/0.1613, allocations: 2.48 MB / 365.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.439e-05/0.1614, allocations: 0 / 365.4 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002703/0.1617, allocations: 79.88 kB / 365.4 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/0.1618, allocations: 75.47 kB / 365.5 MB, free: 4.176 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007134/0.169, allocations: 2.223 MB / 367.7 MB, free: 1.949 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02009/0.1891, allocations: 7.302 MB / 375 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004181/0.1933, allocations: 1.563 MB / 376.6 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.1935, allocations: 16.94 kB / 376.6 MB, free: 8.863 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002609/0.1961, allocations: 0.9259 MB / 377.5 MB, free: 7.918 MB / 314.7 MB Notification: Performance of pre-optimization done (n=116): time 4.529e-06/0.1962, allocations: 0 / 377.5 MB, free: 7.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=116): time 0.01295/0.2091, allocations: 3.109 MB / 380.7 MB, free: 4.781 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.2093, allocations: 157.5 kB / 380.8 MB, free: 4.598 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002605/0.2119, allocations: 1.111 MB / 381.9 MB, free: 3.473 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003461/0.2123, allocations: 65.69 kB / 382 MB, free: 3.402 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009066/0.2132, allocations: 0.7768 MB / 382.8 MB, free: 2.617 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005993/0.2138, allocations: 355.1 kB / 383.1 MB, free: 2.266 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.214, allocations: 24 kB / 383.1 MB, free: 2.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.2142, allocations: 354.8 kB / 383.5 MB, free: 1.887 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/0.2163, allocations: 0.6778 MB / 384.2 MB, free: 1.207 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002503/0.2188, allocations: 0.9268 MB / 385.1 MB, free: 184 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002224/0.2211, allocations: 0.6978 MB / 385.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.2212, allocations: 8 kB / 385.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.005551/0.2267, allocations: 1.849 MB / 387.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001078/0.2279, allocations: 2.528 MB / 390.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/0.2279, allocations: 8 kB / 390.2 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/0.2298, allocations: 458.4 kB / 390.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.2314, allocations: 183.7 kB / 390.8 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009935/0.2414, allocations: 4.51 MB / 395.3 MB, free: 5.613 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.2433, allocations: 182.9 kB / 395.5 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.2435, allocations: 40 kB / 395.5 MB, free: 5.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.2435, allocations: 4 kB / 395.5 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00524/0.2488, allocations: 1.769 MB / 397.3 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/0.2489, allocations: 7.938 kB / 397.3 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00152/0.2504, allocations: 440.7 kB / 397.7 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/0.2519, allocations: 183.9 kB / 397.9 MB, free: 3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3082/0.5601, allocations: 4.553 MB / 402.5 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.5618, allocations: 160.5 kB / 402.6 MB, free: 47.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.5621, allocations: 45.97 kB / 402.7 MB, free: 47.95 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 22} Notification: Performance of prepare postOptimizeDAE: time 0.002/0.5641, allocations: 0.7235 MB / 403.4 MB, free: 47.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004517/0.5645, allocations: 139.8 kB / 403.5 MB, free: 47.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000485/0.565, allocations: 173.8 kB / 403.7 MB, free: 47.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.5651, allocations: 12.72 kB / 403.7 MB, free: 47.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.5651, allocations: 1.406 kB / 403.7 MB, free: 47.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-05/0.5651, allocations: 7.734 kB / 403.7 MB, free: 47.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.5758, allocations: 3.774 MB / 407.5 MB, free: 46.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.5759, allocations: 1.375 kB / 407.5 MB, free: 46.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.577, allocations: 129 kB / 407.6 MB, free: 46.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001599/0.5787, allocations: 416 kB / 408 MB, free: 46.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/0.5789, allocations: 25.98 kB / 408.1 MB, free: 46.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009009/0.5879, allocations: 4.346 MB / 412.4 MB, free: 44 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.588, allocations: 1.562 kB / 412.4 MB, free: 44 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0072/0.5952, allocations: 2.796 MB / 415.2 MB, free: 42.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.5963, allocations: 382.8 kB / 415.6 MB, free: 42.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000348/0.5966, allocations: 35.53 kB / 415.6 MB, free: 42.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.598, allocations: 103.8 kB / 415.7 MB, free: 42.55 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007426/0.5987, allocations: 240 kB / 415.9 MB, free: 42.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.5989, allocations: 32.66 kB / 416 MB, free: 42.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001674/0.6005, allocations: 0.8472 MB / 416.8 MB, free: 42.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.012e-06/0.6006, allocations: 0 / 416.8 MB, free: 42.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00333/0.6039, allocations: 0.8869 MB / 417.7 MB, free: 41.92 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[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 (89): * Single equations (assignments): 79 * 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.0003937/0.6043, allocations: 182.6 kB / 417.9 MB, free: 41.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007557/0.6119, allocations: 3.042 MB / 420.9 MB, free: 40.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-05/0.612, allocations: 0.6562 kB / 420.9 MB, free: 40.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/0.6149, allocations: 1.147 MB / 422.1 MB, free: 39.67 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.617, allocations: 294.4 kB / 422.4 MB, free: 39.46 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.6281, allocations: 4.551 MB / 426.9 MB, free: 34.88 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.6298, allocations: 1.748 MB / 428.7 MB, free: 33.1 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006359/0.6305, allocations: 91.42 kB / 428.8 MB, free: 33.01 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.6305, allocations: 0 / 428.8 MB, free: 33.01 MB / 330.7 MB Notification: Performance of Templates: time 0.0557/0.6862, allocations: 31.95 MB / 460.7 MB, free: 1.09 MB / 330.7 MB