Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_RLV_Characteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,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_Characteristic") Notification: Performance of loadModel(Modelica): time 1.797/1.797, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.784e-05/2.808e-05, allocations: 4 kB / 255.4 MB, free: 3.164 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07765/0.0777, allocations: 44.51 MB / 299.9 MB, free: 6.598 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4154, allocations: 87.88 MB / 387.7 MB, free: 20.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002476/0.4157, allocations: 83.22 kB / 387.8 MB, free: 20.24 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1612/0.5769, allocations: 36.57 MB / 424.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.885e-06/0.5769, allocations: 0 / 424.4 MB, free: 8.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001368/0.5771, allocations: 46.28 kB / 424.4 MB, free: 8.207 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: 450 * Number of variables: 450 Notification: Performance of Generate backend data structure: time 0.003907/0.581, allocations: 1.995 MB / 426.4 MB, free: 6.969 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.5811, allocations: 11.62 kB / 426.4 MB, free: 6.969 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004525/0.5815, allocations: 224.5 kB / 426.7 MB, free: 6.855 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005669/0.5872, allocations: 2.07 MB / 428.7 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.5873, allocations: 139.8 kB / 428.9 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000327/0.5877, allocations: 174.1 kB / 429 MB, free: 5.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004215/0.5919, allocations: 2.361 MB / 431.4 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.992e-05/0.592, allocations: 4 kB / 431.4 MB, free: 5.344 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.5922, allocations: 76.58 kB / 431.5 MB, free: 5.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.93e-05/0.5923, allocations: 79.27 kB / 431.6 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003838/0.5962, allocations: 1.909 MB / 433.5 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.608, allocations: 6.863 MB / 440.3 MB, free: 84 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003283/0.6113, allocations: 1.624 MB / 442 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002006/0.6134, allocations: 0.9584 MB / 442.9 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.973e-05/0.6135, allocations: 16.91 kB / 442.9 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001828/0.6153, allocations: 0.8957 MB / 443.8 MB, free: 12.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=126): time 4.888e-06/0.6153, allocations: 0 / 443.8 MB, free: 12.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=126): time 0.003933/0.6193, allocations: 1.645 MB / 445.5 MB, free: 10.9 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.6194, allocations: 157.5 kB / 445.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/0.6215, allocations: 1.023 MB / 446.6 MB, free: 9.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.6217, allocations: 73.67 kB / 446.7 MB, free: 9.594 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008058/0.6225, allocations: 0.7401 MB / 447.5 MB, free: 8.844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004558/0.623, allocations: 378.8 kB / 447.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.6231, allocations: 24 kB / 447.9 MB, free: 8.445 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002391/0.6234, allocations: 370.7 kB / 448.2 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001401/0.6248, allocations: 0.6481 MB / 448.9 MB, free: 7.426 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.6265, allocations: 0.9253 MB / 449.8 MB, free: 6.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.628, allocations: 0.6958 MB / 450.5 MB, free: 5.711 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.628, allocations: 4 kB / 450.5 MB, free: 5.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=171) (initialization): time 0.004023/0.632, allocations: 1.864 MB / 452.4 MB, free: 3.832 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001346/0.6334, allocations: 2.45 MB / 454.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.6334, allocations: 8 kB / 454.8 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001557/0.635, allocations: 497.8 kB / 455.3 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009852/0.636, allocations: 187.7 kB / 455.5 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/0.6457, allocations: 5.225 MB / 460.7 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.6471, allocations: 183 kB / 460.9 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.6473, allocations: 55.92 kB / 460.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.6473, allocations: 4 kB / 460.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003882/0.6512, allocations: 1.804 MB / 462.7 MB, free: 9.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.6512, allocations: 4.812 kB / 462.7 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/0.6526, allocations: 488.6 kB / 463.2 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008835/0.6535, allocations: 183.7 kB / 463.4 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009546/0.6631, allocations: 5.276 MB / 468.7 MB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.6641, allocations: 163.2 kB / 468.8 MB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.6643, allocations: 48 kB / 468.9 MB, free: 2.812 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 (138): * Single equations (assignments): 137 * 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.0004899/0.6648, allocations: 245.3 kB / 469.1 MB, free: 2.559 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003834/0.6652, allocations: 130.4 kB / 469.3 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000478/0.6657, allocations: 173.3 kB / 469.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.6657, allocations: 12 kB / 469.4 MB, free: 2.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.6657, allocations: 4 kB / 469.4 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.802e-05/0.6657, allocations: 7.969 kB / 469.4 MB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007568/0.6733, allocations: 3.58 MB / 473 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.6734, allocations: 3.984 kB / 473 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007485/0.6741, allocations: 115.8 kB / 473.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.6755, allocations: 472.7 kB / 473.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.6757, allocations: 23.98 kB / 473.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009513/0.6852, allocations: 5.155 MB / 478.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.698e-06/0.6852, allocations: 0 / 478.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005436/0.6907, allocations: 2.62 MB / 481.4 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008317/0.6915, allocations: 375.2 kB / 481.8 MB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.6918, allocations: 47.98 kB / 481.8 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009761/0.6928, allocations: 119.9 kB / 481.9 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007076/0.6936, allocations: 228.6 kB / 482.2 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.6937, allocations: 40.11 kB / 482.2 MB, free: 5.242 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001563/0.6953, allocations: 0.773 MB / 483 MB, free: 4.457 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.603e-06/0.6953, allocations: 0 / 483 MB, free: 4.457 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002787/0.6981, allocations: 0.8721 MB / 483.8 MB, free: 3.582 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_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 83 * 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.0004384/0.6986, allocations: 213.4 kB / 484 MB, free: 3.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006328/0.7049, allocations: 3.04 MB / 487.1 MB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.714e-06/0.7049, allocations: 0.5625 kB / 487.1 MB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002222/0.7072, allocations: 1.059 MB / 488.1 MB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/0.7089, allocations: 312.9 kB / 488.5 MB, free: 14.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007248/0.7162, allocations: 2.865 MB / 491.3 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002042/0.7182, allocations: 1.695 MB / 493 MB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004469/0.7187, allocations: 91.42 kB / 493.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of SimCode: time 2.048e-06/0.7187, allocations: 3.938 kB / 493.1 MB, free: 10.2 MB / 378.7 MB Notification: Performance of Templates: time 0.2609/0.9796, allocations: 31.43 MB / 0.5122 GB, free: 107.3 MB / 394.7 MB