Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.131e-05/4.149e-05, allocations: 4 kB / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09949/0.09958, allocations: 44.51 MB / 299.9 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.49/0.5896, allocations: 103.3 MB / 403.2 MB, free: 11.66 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003226/0.59, allocations: 98.25 kB / 403.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2914/0.8814, allocations: 65.35 MB / 468.7 MB, free: 120 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.8815, allocations: 4 kB / 468.7 MB, free: 116 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005675/0.882, allocations: 87.92 kB / 468.8 MB, free: 28 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 732 * Number of variables: 732 Notification: Performance of Generate backend data structure: time 0.01475/0.8968, allocations: 3.432 MB / 472.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/0.8969, allocations: 19.95 kB / 472.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002296/0.8992, allocations: 458.2 kB / 472.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/0.9023, allocations: 435.3 kB / 473.1 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01998/0.9223, allocations: 4.023 MB / 477.1 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004326/0.9228, allocations: 225.7 kB / 477.3 MB, free: 7.281 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001567/0.9244, allocations: 311.8 kB / 477.6 MB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01493/0.9394, allocations: 3.789 MB / 481.4 MB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00017/0.9396, allocations: 11.94 kB / 481.4 MB, free: 3.035 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001078/0.9407, allocations: 120 kB / 481.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002387/0.941, allocations: 113.5 kB / 481.7 MB, free: 2.805 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0122/0.9532, allocations: 3.27 MB / 484.9 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04181/0.995, allocations: 12.79 MB / 497.7 MB, free: 2.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008798/1.004, allocations: 2.804 MB / 0.4888 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004461/1.008, allocations: 1.548 MB / 0.4903 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002538/1.009, allocations: 18 kB / 0.4903 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00414/1.013, allocations: 1.399 MB / 0.4917 GB, free: 12.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 5.891e-06/1.013, allocations: 0 / 0.4917 GB, free: 12.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.01957/1.033, allocations: 6.074 MB / 0.4976 GB, free: 6.441 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002076/1.033, allocations: 295 kB / 0.4979 GB, free: 6.094 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007326/1.04, allocations: 2.382 MB / 0.5002 GB, free: 3.688 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006153/1.041, allocations: 85.69 kB / 0.5003 GB, free: 3.598 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002141/1.043, allocations: 1.347 MB / 0.5016 GB, free: 2.238 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/1.044, allocations: 0.5819 MB / 0.5022 GB, free: 1.648 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/1.045, allocations: 48 kB / 0.5022 GB, free: 1.602 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003273/1.045, allocations: 411.4 kB / 0.5026 GB, free: 1.191 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003361/1.048, allocations: 1.145 MB / 0.5037 GB, free: 44 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004562/1.053, allocations: 1.806 MB / 0.5055 GB, free: 13.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004088/1.057, allocations: 1.35 MB / 0.5068 GB, free: 12.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.699e-05/1.057, allocations: 4 kB / 0.5068 GB, free: 12.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01057/1.068, allocations: 3.545 MB / 0.5103 GB, free: 9.016 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002738/1.071, allocations: 6.893 MB / 0.517 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.93e-05/1.071, allocations: 20 kB / 0.517 GB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002349/1.073, allocations: 0.5763 MB / 0.5176 GB, free: 0.9766 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00417/1.077, allocations: 0.5304 MB / 0.5181 GB, free: 456 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3048/1.382, allocations: 7.946 MB / 0.5259 GB, free: 91.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0081/1.39, allocations: 416.9 kB / 0.5263 GB, free: 91.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008914/1.391, allocations: 91.42 kB / 0.5264 GB, free: 91.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/1.391, allocations: 5.906 kB / 0.5264 GB, free: 91.56 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01181/1.403, allocations: 3.462 MB / 0.5298 GB, free: 91.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/1.403, allocations: 18.16 kB / 0.5298 GB, free: 91.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002224/1.406, allocations: 0.5639 MB / 0.5303 GB, free: 91.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004305/1.41, allocations: 0.5254 MB / 0.5308 GB, free: 91.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/1.423, allocations: 8.036 MB / 0.5387 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002785/1.426, allocations: 241.6 kB / 0.5389 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006455/1.427, allocations: 90.78 kB / 0.539 GB, free: 87.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * 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,pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[3].y,$PRE.pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[1].entryTime,$PRE.pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,$PRE.pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,$PRE.pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,$PRE.pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,$PRE.pulse2.twomPulse.timerNegative[3].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (255): * Single equations (assignments): 252 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of prepare postOptimizeDAE: time 0.0008841/1.428, allocations: 297.7 kB / 0.5393 GB, free: 87.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009392/1.429, allocations: 260.7 kB / 0.5395 GB, free: 87.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007904/1.437, allocations: 2.978 MB / 0.5424 GB, free: 86.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.843e-05/1.437, allocations: 19.53 kB / 0.5425 GB, free: 86.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.437, allocations: 4.719 kB / 0.5425 GB, free: 86.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.578e-05/1.437, allocations: 14.45 kB / 0.5425 GB, free: 86.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02197/1.459, allocations: 6.656 MB / 0.549 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.691e-05/1.459, allocations: 5.719 kB / 0.549 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003954/1.463, allocations: 286.3 kB / 0.5493 GB, free: 86.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002789/1.466, allocations: 0.5209 MB / 0.5498 GB, free: 86.01 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005941/1.467, allocations: 55.89 kB / 0.5498 GB, free: 86.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.48, allocations: 7.677 MB / 0.5573 GB, free: 82.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/1.48, allocations: 6.625 kB / 0.5573 GB, free: 82.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/1.491, allocations: 4.578 MB / 0.5618 GB, free: 80.29 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/1.493, allocations: 0.6263 MB / 0.5624 GB, free: 79.92 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/1.495, allocations: 73.2 kB / 0.5625 GB, free: 79.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004328/1.499, allocations: 365.2 kB / 0.5628 GB, free: 79.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001157/1.5, allocations: 271.3 kB / 0.5631 GB, free: 79.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002964/1.5, allocations: 54.58 kB / 0.5631 GB, free: 79.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004878/1.505, allocations: 1.788 MB / 0.5649 GB, free: 79.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.233e-06/1.505, allocations: 3.969 kB / 0.5649 GB, free: 79.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007493/1.513, allocations: 1.199 MB / 0.566 GB, free: 79 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 17 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twomPulse.filter[1].firstOrder.y,pulse2.twomPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[1].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[2].firstOrder.y,pulse2.twomPulse.filter[2].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[2].transferFunction[2].x_scaled[1],pulse2.twomPulse.filter[3].firstOrder.y,pulse2.twomPulse.filter[3].transferFunction[1].x_scaled[1],pulse2.twomPulse.filter[3].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.inductor[2].i,lMains.inductor[3].i) * Number of discrete variables: 48 (pulse2.twomPulse.positiveThreshold[1].y,pulse2.twomPulse.positiveThreshold[2].y,pulse2.twomPulse.positiveThreshold[3].y,pulse2.twomPulse.negativeThreshold[1].y,pulse2.twomPulse.negativeThreshold[2].y,pulse2.twomPulse.negativeThreshold[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,pulse2.twomPulse.timerPositive[1].entryTime,pulse2.twomPulse.timerPositive[2].entryTime,pulse2.twomPulse.timerPositive[3].entryTime,pulse2.twomPulse.timerNegative[1].entryTime,pulse2.twomPulse.timerNegative[2].entryTime,pulse2.twomPulse.timerNegative[3].entryTime,pulse2.fire_p[1],pulse2.fire_p[2],pulse2.fire_p[3],pulse2.fire_n[1],pulse2.fire_n[2],pulse2.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[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 131 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 4} * Non-linear torn systems: 1 {6 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.01199/1.525, allocations: 5.952 MB / 0.5719 GB, free: 75.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01445/1.539, allocations: 5.305 MB / 0.577 GB, free: 73.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.977e-05/1.54, allocations: 6.5 kB / 0.577 GB, free: 73.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006836/1.546, allocations: 2.015 MB / 0.579 GB, free: 72.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007018/1.553, allocations: 0.6126 MB / 0.5796 GB, free: 72.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02886/1.582, allocations: 6.64 MB / 0.5861 GB, free: 70.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004293/1.587, allocations: 2.453 MB / 0.5885 GB, free: 69.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004228/1.591, allocations: 1.233 MB / 0.5897 GB, free: 68.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/1.591, allocations: 1 kB / 0.5897 GB, free: 68.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.429/6.02, allocations: 108.7 MB / 0.6959 GB, free: 92.16 MB / 410.7 MB