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.816/1.816, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.677e-05/2.703e-05, allocations: 0 / 255.4 MB, free: 3.164 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.0859, allocations: 44.51 MB / 299.9 MB, free: 6.598 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3474/0.4333, allocations: 87.34 MB / 387.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.4336, allocations: 86.28 kB / 387.3 MB, free: 20.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.122/0.5556, allocations: 36.08 MB / 423.4 MB, free: 8.828 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.373e-06/0.5556, allocations: 0 / 423.4 MB, free: 8.828 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001811/0.5558, allocations: 58.98 kB / 423.4 MB, free: 8.809 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.005461/0.5613, allocations: 1.96 MB / 425.4 MB, free: 7.582 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.5614, allocations: 7.625 kB / 425.4 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009134/0.5623, allocations: 232.2 kB / 425.6 MB, free: 7.465 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006815/0.5691, allocations: 2.055 MB / 427.7 MB, free: 6.59 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.5694, allocations: 144.7 kB / 427.8 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005967/0.57, allocations: 179.9 kB / 428 MB, free: 6.574 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005667/0.5756, allocations: 2.352 MB / 430.4 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.213e-05/0.5757, allocations: 3.938 kB / 430.4 MB, free: 5.957 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002952/0.5761, allocations: 80.08 kB / 430.4 MB, free: 5.953 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.238e-05/0.5762, allocations: 77.3 kB / 430.5 MB, free: 5.941 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004733/0.5809, allocations: 1.9 MB / 432.4 MB, free: 5.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01337/0.5943, allocations: 6.841 MB / 439.3 MB, free: 1.148 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003724/0.5981, allocations: 1.689 MB / 440.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002018/0.6001, allocations: 0.9624 MB / 441.9 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.326e-05/0.6002, allocations: 13 kB / 441.9 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001839/0.6021, allocations: 0.8691 MB / 442.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of pre-optimization done (n=123): time 4.83e-06/0.6021, allocations: 8 kB / 442.8 MB, free: 13.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=123): time 0.004014/0.6062, allocations: 1.653 MB / 444.4 MB, free: 11.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.6063, allocations: 153.5 kB / 444.6 MB, free: 11.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002322/0.6087, allocations: 1.039 MB / 445.6 MB, free: 10.67 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003159/0.609, allocations: 81.61 kB / 445.7 MB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009361/0.6099, allocations: 0.7477 MB / 446.5 MB, free: 9.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000559/0.6105, allocations: 367 kB / 446.8 MB, free: 9.465 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.6107, allocations: 28 kB / 446.8 MB, free: 9.438 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002371/0.6109, allocations: 362.8 kB / 447.2 MB, free: 9.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.6124, allocations: 0.6442 MB / 447.8 MB, free: 8.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/0.6141, allocations: 0.9176 MB / 448.8 MB, free: 7.418 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.6157, allocations: 0.688 MB / 449.5 MB, free: 6.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.6157, allocations: 4 kB / 449.5 MB, free: 6.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004121/0.6198, allocations: 1.861 MB / 451.3 MB, free: 4.855 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001421/0.6213, allocations: 2.442 MB / 453.8 MB, free: 2.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.377e-05/0.6213, allocations: 8 kB / 453.8 MB, free: 2.215 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/0.6231, allocations: 0.4893 MB / 454.3 MB, free: 1.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.6242, allocations: 171.7 kB / 454.4 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/0.6346, allocations: 5.193 MB / 459.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.6363, allocations: 206.9 kB / 459.8 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002474/0.6366, allocations: 44 kB / 459.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.6366, allocations: 4 kB / 459.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004258/0.6409, allocations: 1.8 MB / 461.7 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/0.641, allocations: 8 kB / 461.7 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.6425, allocations: 489.4 kB / 462.2 MB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.6435, allocations: 167.7 kB / 462.3 MB, free: 9.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01018/0.6537, allocations: 5.267 MB / 467.6 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.6549, allocations: 155.2 kB / 467.7 MB, free: 3.953 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.6551, allocations: 51.98 kB / 467.8 MB, free: 3.902 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 (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.0005319/0.6556, allocations: 241.3 kB / 468 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004423/0.6561, allocations: 134.4 kB / 468.2 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005237/0.6566, allocations: 164.6 kB / 468.3 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.711e-05/0.6566, allocations: 12 kB / 468.3 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.6567, allocations: 3.953 kB / 468.3 MB, free: 3.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.6567, allocations: 7.969 kB / 468.3 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008845/0.6655, allocations: 3.56 MB / 471.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.6656, allocations: 7.953 kB / 471.9 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007418/0.6664, allocations: 103.8 kB / 472 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001548/0.6679, allocations: 461.1 kB / 472.5 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002239/0.6682, allocations: 27.98 kB / 472.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009996/0.6782, allocations: 5.144 MB / 477.6 MB, free: 9.844 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.052e-06/0.6782, allocations: 4 kB / 477.6 MB, free: 9.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005631/0.6839, allocations: 2.577 MB / 480.2 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.685, allocations: 371.2 kB / 480.6 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.6854, allocations: 47.97 kB / 480.6 MB, free: 6.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000981/0.6864, allocations: 103.9 kB / 480.7 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006802/0.6871, allocations: 228.6 kB / 480.9 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.6872, allocations: 28 kB / 481 MB, free: 6.461 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001713/0.6889, allocations: 0.7886 MB / 481.8 MB, free: 5.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.94e-07/0.6889, allocations: 0 / 481.8 MB, free: 5.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00331/0.6923, allocations: 0.8528 MB / 482.6 MB, free: 4.805 MB / 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.0004413/0.6927, allocations: 201.5 kB / 482.8 MB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006957/0.6997, allocations: 3.004 MB / 485.8 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.6998, allocations: 0.5625 kB / 485.8 MB, free: 1.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/0.7022, allocations: 1.056 MB / 486.9 MB, free: 0.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/0.7042, allocations: 312.2 kB / 487.2 MB, free: 200 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007729/0.712, allocations: 2.826 MB / 490 MB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002178/0.7142, allocations: 1.695 MB / 491.7 MB, free: 11.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005069/0.7148, allocations: 87.44 kB / 491.8 MB, free: 11.51 MB / 378.7 MB Notification: Performance of SimCode: time 2.264e-06/0.7148, allocations: 3.938 kB / 491.8 MB, free: 11.51 MB / 378.7 MB Notification: Performance of Templates: time 0.2777/0.9925, allocations: 31.1 MB / 0.5106 GB, free: 108.1 MB / 394.7 MB