Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rectifier.thyristor_n1.off|rectifier.thyristor_n2.off|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R") Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.804e-05/2.809e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 50.42 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R): time 0.007015/0.1185, allocations: 3.953 MB / 349 MB, free: 4.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003508/0.122, allocations: 1.243 MB / 350.2 MB, free: 3.691 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000641/0.1227, allocations: 31.94 kB / 350.2 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004994/0.1232, allocations: 103.2 kB / 350.3 MB, free: 3.559 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008584/0.1241, allocations: 227.2 kB / 350.6 MB, free: 3.336 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009385/0.1251, allocations: 227.6 kB / 350.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.1263, allocations: 484.2 kB / 351.2 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005795/0.127, allocations: 261.6 kB / 351.5 MB, free: 2.383 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.1274, allocations: 219.3 kB / 351.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004713/0.1279, allocations: 262.9 kB / 352 MB, free: 1.91 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001285/0.128, allocations: 24 kB / 352 MB, free: 1.887 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.836e-05/0.1282, allocations: 28 kB / 352 MB, free: 1.859 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.1283, allocations: 119.4 kB / 352.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.1285, allocations: 60 kB / 352.2 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001178/0.1297, allocations: 0.787 MB / 353 MB, free: 0.8945 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1297, allocations: 7.938 kB / 353 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1298, allocations: 0 / 353 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.92e-05/0.1298, allocations: 0 / 353 MB, free: 0.8867 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.002429/0.1322, allocations: 0.881 MB / 353.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1323, allocations: 12.03 kB / 353.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002636/0.1326, allocations: 86.97 kB / 354 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.1337, allocations: 493.9 kB / 354.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.593e-05/0.1338, allocations: 49.31 kB / 354.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.1339, allocations: 68 kB / 354.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.136, allocations: 0.734 MB / 355.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.1361, allocations: 3.938 kB / 355.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.1362, allocations: 35.94 kB / 355.3 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.1362, allocations: 19.98 kB / 355.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/0.1381, allocations: 0.5517 MB / 355.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006394/0.1446, allocations: 2.658 MB / 358.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001739/0.1463, allocations: 0.5739 MB / 359.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.726e-05/0.1464, allocations: 4.438 kB / 359.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.1475, allocations: 389.6 kB / 359.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=59): time 3.316e-06/0.1475, allocations: 0 / 359.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=59): time 0.005086/0.1526, allocations: 1.125 MB / 360.7 MB, free: 8.945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.1528, allocations: 141.1 kB / 360.8 MB, free: 8.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000872/0.1537, allocations: 421.1 kB / 361.2 MB, free: 8.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.1538, allocations: 37.7 kB / 361.2 MB, free: 8.316 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003354/0.1542, allocations: 358.8 kB / 361.6 MB, free: 7.961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.1544, allocations: 181.5 kB / 361.8 MB, free: 7.781 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.928e-05/0.1545, allocations: 12 kB / 361.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1546, allocations: 338.8 kB / 362.1 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007159/0.1554, allocations: 209.2 kB / 362.3 MB, free: 7.227 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008807/0.1563, allocations: 386.4 kB / 362.7 MB, free: 6.777 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007665/0.1571, allocations: 234.1 kB / 362.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.1571, allocations: 4 kB / 362.9 MB, free: 6.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002106/0.1592, allocations: 0.6949 MB / 363.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008217/0.1601, allocations: 1.661 MB / 365.3 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.1601, allocations: 4 kB / 365.3 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008399/0.1609, allocations: 152.8 kB / 365.4 MB, free: 3.895 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007201/0.1617, allocations: 91.83 kB / 365.5 MB, free: 3.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004907/0.1666, allocations: 2.4 MB / 367.9 MB, free: 1.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007914/0.1674, allocations: 87.45 kB / 368 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.001e-05/0.1675, allocations: 24 kB / 368 MB, free: 1.164 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.001e-05/0.1675, allocations: 3.938 kB / 368 MB, free: 1.16 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001868/0.1694, allocations: 0.6229 MB / 368.7 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1695, allocations: 8 kB / 368.7 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006788/0.1702, allocations: 151.5 kB / 368.8 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006056/0.1708, allocations: 84.23 kB / 368.9 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00475/0.1755, allocations: 2.37 MB / 371.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005828/0.1762, allocations: 79.48 kB / 371.3 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.89e-05/0.1763, allocations: 24 kB / 371.4 MB, free: 13.69 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006337/0.1769, allocations: 241.6 kB / 371.6 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002065/0.1771, allocations: 55.34 kB / 371.7 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.1774, allocations: 77.44 kB / 371.7 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.1774, allocations: 7.953 kB / 371.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1774, allocations: 4 kB / 371.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.1774, allocations: 3.984 kB / 371.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/0.1813, allocations: 1.477 MB / 373.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.1813, allocations: 0 / 373.2 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005153/0.1819, allocations: 51.91 kB / 373.3 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007299/0.1826, allocations: 163.7 kB / 373.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.1827, allocations: 12 kB / 373.5 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004615/0.1873, allocations: 2.303 MB / 375.8 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1874, allocations: 4 kB / 375.8 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00295/0.1903, allocations: 1.036 MB / 376.8 MB, free: 8.016 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004066/0.1908, allocations: 192.3 kB / 377 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001577/0.1909, allocations: 15.95 kB / 377 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/0.1916, allocations: 43.97 kB / 377 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.1919, allocations: 80.44 kB / 377.1 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-05/0.1919, allocations: 16 kB / 377.1 MB, free: 7.656 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006426/0.1926, allocations: 326.9 kB / 377.5 MB, free: 7.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1926, allocations: 4 kB / 377.5 MB, free: 7.336 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001557/0.1942, allocations: 343 kB / 377.8 MB, free: 7 MB / 314.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: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002796/0.1945, allocations: 137.6 kB / 377.9 MB, free: 6.859 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003569/0.1981, allocations: 1.262 MB / 379.2 MB, free: 5.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.1981, allocations: 1 kB / 379.2 MB, free: 5.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001383/0.1995, allocations: 0.4978 MB / 379.7 MB, free: 5.062 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009282/0.2005, allocations: 105.4 kB / 379.8 MB, free: 4.965 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.2047, allocations: 1.565 MB / 381.4 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008567/0.2057, allocations: 0.9547 MB / 382.3 MB, free: 2.379 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/0.206, allocations: 47.44 kB / 382.4 MB, free: 2.332 MB / 314.7 MB Notification: Performance of SimCode: time 1.462e-06/0.206, allocations: 0 / 382.4 MB, free: 2.332 MB / 314.7 MB Notification: Performance of Templates: time 0.02518/0.2312, allocations: 10.94 MB / 393.3 MB, free: 7.418 MB / 330.7 MB