Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse,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.1..u|rectifier.pre.2..u|rectifier.pre.3..u|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.RectifierBridge2mPulse.HalfControlledBridge2mPulse") Notification: Performance of loadModel(Modelica): time 2.087/2.087, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.81e-05/2.797e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse): time 0.008616/0.1187, allocations: 4.916 MB / 349.9 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004654/0.1234, allocations: 1.605 MB / 351.5 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009872/0.1245, allocations: 59.75 kB / 351.6 MB, free: 2.312 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001108/0.1256, allocations: 254.6 kB / 351.8 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.1274, allocations: 370.8 kB / 352.2 MB, free: 1.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.1286, allocations: 255.6 kB / 352.4 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002912/0.1315, allocations: 1.034 MB / 353.5 MB, free: 424 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002237/0.1338, allocations: 1.047 MB / 354.5 MB, free: 15.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.1352, allocations: 0.5103 MB / 355 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001497/0.1367, allocations: 0.6343 MB / 355.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004476/0.1372, allocations: 64 kB / 355.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003073/0.1375, allocations: 67.88 kB / 355.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005427/0.1381, allocations: 390.6 kB / 356.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005101/0.1386, allocations: 148 kB / 356.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00388/0.1425, allocations: 2.618 MB / 358.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1425, allocations: 0 / 358.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1426, allocations: 0 / 358.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001027/0.1427, allocations: 0 / 358.9 MB, free: 10.92 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: 425 * Number of variables: 425 Notification: Performance of Generate backend data structure: time 0.006128/0.1488, allocations: 1.914 MB / 360.9 MB, free: 8.953 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.1489, allocations: 8.031 kB / 360.9 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008103/0.1497, allocations: 213.5 kB / 361.1 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003483/0.1532, allocations: 1.239 MB / 362.3 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.1534, allocations: 131.3 kB / 362.4 MB, free: 7.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005377/0.154, allocations: 164 kB / 362.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00682/0.1608, allocations: 2.333 MB / 364.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.193e-05/0.1609, allocations: 4 kB / 364.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002621/0.1612, allocations: 75.88 kB / 365 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.1613, allocations: 75.2 kB / 365.1 MB, free: 4.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006972/0.1683, allocations: 2.043 MB / 367.1 MB, free: 2.578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01882/0.1872, allocations: 6.728 MB / 373.9 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004365/0.1916, allocations: 1.63 MB / 375.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001292/0.1918, allocations: 9 kB / 375.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002532/0.1943, allocations: 0.919 MB / 376.4 MB, free: 9.145 MB / 314.7 MB Notification: Performance of pre-optimization done (n=122): time 5.139e-06/0.1944, allocations: 0 / 376.4 MB, free: 9.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=122): time 0.01615/0.2106, allocations: 3.555 MB / 380 MB, free: 5.562 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001478/0.2108, allocations: 179.2 kB / 380.1 MB, free: 5.352 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.2132, allocations: 1.018 MB / 381.2 MB, free: 4.316 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003341/0.2136, allocations: 69.67 kB / 381.2 MB, free: 4.242 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000897/0.2145, allocations: 0.7243 MB / 382 MB, free: 3.508 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006351/0.2152, allocations: 370.8 kB / 382.3 MB, free: 3.141 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.2153, allocations: 31.94 kB / 382.3 MB, free: 3.109 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.2155, allocations: 366.8 kB / 382.7 MB, free: 2.742 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.2175, allocations: 0.6623 MB / 383.4 MB, free: 2.082 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002311/0.2199, allocations: 0.9422 MB / 384.3 MB, free: 1.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/0.222, allocations: 0.7324 MB / 385 MB, free: 304 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.2221, allocations: 4 kB / 385 MB, free: 300 kB / 314.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005555/0.2277, allocations: 1.915 MB / 387 MB, free: 14.37 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001141/0.2288, allocations: 2.79 MB / 389.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.2289, allocations: 8 kB / 389.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002091/0.231, allocations: 496.2 kB / 390.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.2324, allocations: 179.7 kB / 390.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.245, allocations: 5.432 MB / 395.9 MB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.2469, allocations: 190.7 kB / 396 MB, free: 4.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002528/0.2472, allocations: 48.12 kB / 396.1 MB, free: 4.887 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2473, allocations: 4 kB / 396.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005312/0.2526, allocations: 1.832 MB / 397.9 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.459e-05/0.2527, allocations: 8 kB / 397.9 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001786/0.2545, allocations: 492.5 kB / 398.4 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.256, allocations: 167.7 kB / 398.6 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.36/0.616, allocations: 5.475 MB / 404 MB, free: 48.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.618, allocations: 162.8 kB / 404.2 MB, free: 48.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003534/0.6184, allocations: 47.67 kB / 404.3 MB, free: 48.14 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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,$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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 30} Notification: Performance of prepare postOptimizeDAE: time 0.002444/0.6209, allocations: 0.7003 MB / 405 MB, free: 47.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005538/0.6214, allocations: 134.1 kB / 405.1 MB, free: 47.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006615/0.6221, allocations: 165.7 kB / 405.2 MB, free: 47.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/0.6222, allocations: 13.09 kB / 405.3 MB, free: 47.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.6222, allocations: 0 / 405.3 MB, free: 47.7 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.684e-05/0.6222, allocations: 6.469 kB / 405.3 MB, free: 47.7 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.6378, allocations: 3.667 MB / 408.9 MB, free: 46.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.173e-05/0.6379, allocations: 1.219 kB / 408.9 MB, free: 46.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001655/0.6396, allocations: 111.5 kB / 409 MB, free: 46.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/0.6417, allocations: 475.2 kB / 409.5 MB, free: 46.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001736/0.6419, allocations: 21.64 kB / 409.5 MB, free: 46.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/0.6541, allocations: 5.414 MB / 414.9 MB, free: 42.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.6541, allocations: 1.984 kB / 414.9 MB, free: 42.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007834/0.662, allocations: 2.77 MB / 417.7 MB, free: 41.79 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.663, allocations: 371 kB / 418.1 MB, free: 41.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003421/0.6634, allocations: 35.16 kB / 418.1 MB, free: 41.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001268/0.6647, allocations: 105.8 kB / 418.2 MB, free: 41.51 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005955/0.6653, allocations: 182.7 kB / 418.4 MB, free: 41.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.6654, allocations: 38.48 kB / 418.4 MB, free: 41.47 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001582/0.667, allocations: 0.7747 MB / 419.2 MB, free: 41.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.667, allocations: 4.062 kB / 419.2 MB, free: 41.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002753/0.6698, allocations: 0.8579 MB / 420.1 MB, free: 40.82 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[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[3].y,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.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 77 * 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 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003218/0.6701, allocations: 182.4 kB / 420.2 MB, free: 40.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007234/0.6774, allocations: 3.123 MB / 423.4 MB, free: 38.86 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.6774, allocations: 0.5625 kB / 423.4 MB, free: 38.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002702/0.6801, allocations: 1.172 MB / 424.5 MB, free: 37.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00216/0.6823, allocations: 315.3 kB / 424.8 MB, free: 37.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.6935, allocations: 4.096 MB / 428.9 MB, free: 33.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/0.6956, allocations: 1.684 MB / 430.6 MB, free: 31.55 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006936/0.6963, allocations: 83.42 kB / 430.7 MB, free: 31.46 MB / 330.7 MB Notification: Performance of SimCode: time 2.424e-06/0.6963, allocations: 0 / 430.7 MB, free: 31.46 MB / 330.7 MB Notification: Performance of Templates: time 0.05486/0.7512, allocations: 30.77 MB / 461.5 MB, free: 0.7617 MB / 330.7 MB