Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_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.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.3_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RLV") Notification: Performance of loadModel(Modelica): time 1.803/1.803, allocations: 205.8 MB / 218.9 MB, free: 9.25 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.247e-05/2.251e-05, allocations: 0 / 269.4 MB, free: 6.371 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08259/0.08264, allocations: 47.58 MB / 317 MB, free: 6.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.4313, allocations: 92.2 MB / 409.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.4316, allocations: 90.69 kB / 409.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1361/0.5677, allocations: 36.59 MB / 445.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.805e-06/0.5678, allocations: 0 / 445.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001501/0.5679, allocations: 51.06 kB / 445.9 MB, free: 12.93 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 447 * Number of variables: 447 Notification: Performance of Generate backend data structure: time 0.00475/0.5727, allocations: 2.006 MB / 447.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.5728, allocations: 8.031 kB / 447.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005383/0.5733, allocations: 235.9 kB / 448.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005861/0.5792, allocations: 1.972 MB / 450.1 MB, free: 9.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/0.5793, allocations: 138.2 kB / 450.2 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003911/0.5798, allocations: 175 kB / 450.4 MB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004897/0.5847, allocations: 2.346 MB / 452.8 MB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.239e-05/0.5847, allocations: 3.938 kB / 452.8 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/0.585, allocations: 75.94 kB / 452.8 MB, free: 7.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.5852, allocations: 79.39 kB / 452.9 MB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004484/0.5897, allocations: 1.947 MB / 454.9 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01487/0.6045, allocations: 7.313 MB / 462.2 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003639/0.6082, allocations: 1.616 MB / 463.8 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.6101, allocations: 0.9054 MB / 464.7 MB, free: 11.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.523e-05/0.6102, allocations: 16.98 kB / 464.7 MB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001752/0.612, allocations: 0.8342 MB / 465.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=114): time 5.142e-06/0.612, allocations: 0 / 465.5 MB, free: 10.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=114): time 0.003452/0.6155, allocations: 1.489 MB / 467 MB, free: 8.816 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.6156, allocations: 127.8 kB / 467.2 MB, free: 8.668 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002293/0.6179, allocations: 1.117 MB / 468.3 MB, free: 7.535 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001644/0.6181, allocations: 73.69 kB / 468.3 MB, free: 7.457 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009112/0.619, allocations: 0.7693 MB / 469.1 MB, free: 6.676 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004549/0.6195, allocations: 343.2 kB / 469.4 MB, free: 6.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.6196, allocations: 28 kB / 469.5 MB, free: 6.309 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.6198, allocations: 349.9 kB / 469.8 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.6211, allocations: 0.596 MB / 470.4 MB, free: 5.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.6227, allocations: 0.7964 MB / 471.2 MB, free: 4.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.624, allocations: 0.606 MB / 471.8 MB, free: 3.891 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.324e-06/0.624, allocations: 0 / 471.8 MB, free: 3.891 MB / 378.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00383/0.6279, allocations: 1.715 MB / 473.5 MB, free: 2.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001064/0.6289, allocations: 1.932 MB / 475.5 MB, free: 96 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.629, allocations: 4 kB / 475.5 MB, free: 92 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.6304, allocations: 430 kB / 475.9 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.6315, allocations: 183.7 kB / 476.1 MB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00822/0.6397, allocations: 4.392 MB / 480.5 MB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.6412, allocations: 183.2 kB / 480.6 MB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.6414, allocations: 40 kB / 480.7 MB, free: 10.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.6414, allocations: 7.938 kB / 480.7 MB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003557/0.6449, allocations: 1.574 MB / 482.3 MB, free: 9.145 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.645, allocations: 4 kB / 482.3 MB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.6463, allocations: 420.9 kB / 482.7 MB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009903/0.6473, allocations: 171.7 kB / 482.8 MB, free: 8.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007992/0.6553, allocations: 4.401 MB / 487.2 MB, free: 4.027 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.6566, allocations: 159.2 kB / 487.4 MB, free: 3.871 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.6568, allocations: 39.98 kB / 487.4 MB, free: 3.832 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 57 ($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,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 (122): * Single equations (assignments): 121 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.0004405/0.6572, allocations: 220.8 kB / 487.7 MB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.6575, allocations: 138.4 kB / 487.8 MB, free: 3.473 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004595/0.658, allocations: 169 kB / 488 MB, free: 3.297 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.658, allocations: 12 kB / 488 MB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.041e-06/0.6581, allocations: 0 / 488 MB, free: 3.285 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.6581, allocations: 7.969 kB / 488 MB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007854/0.6659, allocations: 3.595 MB / 491.6 MB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.095e-06/0.666, allocations: 0 / 491.6 MB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/0.6668, allocations: 115.8 kB / 491.7 MB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.668, allocations: 388.5 kB / 492.1 MB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.6681, allocations: 27.97 kB / 492.1 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00781/0.676, allocations: 4.334 MB / 496.4 MB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.533e-06/0.676, allocations: 0 / 496.4 MB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005084/0.6811, allocations: 2.478 MB / 498.9 MB, free: 8.141 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008325/0.6819, allocations: 371.2 kB / 499.3 MB, free: 7.758 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/0.6822, allocations: 31.98 kB / 499.3 MB, free: 7.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009569/0.6832, allocations: 111.9 kB / 499.4 MB, free: 7.617 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006567/0.6839, allocations: 224.6 kB / 499.6 MB, free: 7.395 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001142/0.684, allocations: 35.92 kB / 499.7 MB, free: 7.359 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001706/0.6857, allocations: 0.853 MB / 0.4888 GB, free: 6.496 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.28e-07/0.6857, allocations: 0 / 0.4888 GB, free: 6.496 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002807/0.6885, allocations: 0.8524 MB / 0.4896 GB, free: 5.641 MB / 410.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: 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,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: 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 (88): * Single equations (assignments): 78 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003617/0.6889, allocations: 192.2 kB / 0.4898 GB, free: 5.441 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005656/0.6946, allocations: 2.727 MB / 0.4925 GB, free: 2.695 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.838e-06/0.6946, allocations: 0 / 0.4925 GB, free: 2.695 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/0.6966, allocations: 0.97 MB / 0.4934 GB, free: 1.715 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/0.6982, allocations: 296.3 kB / 0.4937 GB, free: 1.422 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006703/0.7049, allocations: 2.872 MB / 0.4965 GB, free: 14.52 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/0.707, allocations: 1.753 MB / 0.4982 GB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002145/0.7091, allocations: 0.6033 MB / 0.4988 GB, free: 12.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002944/0.7094, allocations: 71.42 kB / 0.4989 GB, free: 12.05 MB / 426.7 MB Notification: Performance of SimCode: time 1.541e-06/0.7095, allocations: 8 kB / 0.4989 GB, free: 12.04 MB / 426.7 MB Notification: Performance of Templates: time 0.2924/1.002, allocations: 26.65 MB / 0.5249 GB, free: 94.53 MB / 426.7 MB