Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_DC_Drive",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.597/2.597, allocations: 195 MB / 202.9 MB, free: 6.629 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.984e-05/2.998e-05, allocations: 3.25 kB / 249.8 MB, free: 5.285 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1046, allocations: 44.51 MB / 294.3 MB, free: 10.63 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5429/0.6476, allocations: 102.6 MB / 396.9 MB, free: 1.031 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003718/0.648, allocations: 90 kB / 397 MB, free: 1.016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.366/1.014, allocations: 64.9 MB / 461.9 MB, free: 9.832 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.296e-06/1.014, allocations: 0 / 461.9 MB, free: 9.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00053/1.015, allocations: 83.94 kB / 462 MB, free: 9.75 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: 732 * Number of variables: 732 Notification: Performance of Generate backend data structure: time 0.01546/1.03, allocations: 3.433 MB / 465.4 MB, free: 6.234 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/1.03, allocations: 16.03 kB / 465.4 MB, free: 6.219 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002349/1.033, allocations: 354.2 kB / 465.7 MB, free: 5.859 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002752/1.035, allocations: 431.3 kB / 466.2 MB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/1.056, allocations: 4.027 MB / 470.2 MB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003063/1.056, allocations: 129.7 kB / 470.3 MB, free: 1.199 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001228/1.057, allocations: 191.8 kB / 470.5 MB, free: 1.012 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01148/1.069, allocations: 3.111 MB / 473.6 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01213/1.081, allocations: 3.372 MB / 477 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001227/1.081, allocations: 11.92 kB / 477 MB, free: 10.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004509/1.082, allocations: 7.938 kB / 477 MB, free: 10.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001998/1.082, allocations: 113.5 kB / 477.1 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04175/1.124, allocations: 12.23 MB / 489.4 MB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009103/1.133, allocations: 2.714 MB / 492.1 MB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004582/1.138, allocations: 1.496 MB / 493.6 MB, free: 9.516 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002346/1.138, allocations: 18 kB / 493.6 MB, free: 9.496 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004197/1.142, allocations: 1.332 MB / 494.9 MB, free: 8.133 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 7.094e-06/1.142, allocations: 0 / 494.9 MB, free: 8.133 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.02185/1.164, allocations: 5.835 MB / 0.489 GB, free: 2.199 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002373/1.164, allocations: 291 kB / 0.4893 GB, free: 1.852 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3521/1.516, allocations: 2.11 MB / 0.4913 GB, free: 87.91 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008115/1.517, allocations: 57.84 kB / 0.4914 GB, free: 87.88 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003921/1.521, allocations: 1.449 MB / 0.4928 GB, free: 87.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00193/1.523, allocations: 0.569 MB / 0.4934 GB, free: 87.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005629/1.524, allocations: 0.6562 kB / 0.4934 GB, free: 87.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004558/1.524, allocations: 398.5 kB / 0.4938 GB, free: 87.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005987/1.53, allocations: 1.11 MB / 0.4948 GB, free: 87.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007155/1.538, allocations: 1.739 MB / 0.4965 GB, free: 86.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007686/1.545, allocations: 1.318 MB / 0.4978 GB, free: 86.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-05/1.545, allocations: 4.406 kB / 0.4978 GB, free: 86.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.02013/1.566, allocations: 3.484 MB / 0.5012 GB, free: 86.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00248/1.568, allocations: 7.245 MB / 0.5083 GB, free: 78.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/1.568, allocations: 21.42 kB / 0.5083 GB, free: 78.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004665/1.573, allocations: 0.5634 MB / 0.5089 GB, free: 78.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008496/1.582, allocations: 0.5308 MB / 0.5094 GB, free: 78.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02324/1.605, allocations: 7.736 MB / 0.517 GB, free: 74.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009298/1.614, allocations: 372.7 kB / 0.5173 GB, free: 74.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009937/1.615, allocations: 93.81 kB / 0.5174 GB, free: 74.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/1.615, allocations: 0 / 0.5174 GB, free: 74.68 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01633/1.632, allocations: 3.199 MB / 0.5205 GB, free: 74.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/1.632, allocations: 15.28 kB / 0.5205 GB, free: 74.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003786/1.636, allocations: 0.5608 MB / 0.5211 GB, free: 74.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007301/1.643, allocations: 0.5248 MB / 0.5216 GB, free: 74.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/1.664, allocations: 7.733 MB / 0.5291 GB, free: 70.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008594/1.673, allocations: 360.6 kB / 0.5295 GB, free: 70.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008026/1.673, allocations: 87 kB / 0.5296 GB, free: 70.46 MB / 394.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.001173/1.675, allocations: 228.7 kB / 0.5298 GB, free: 70.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/1.676, allocations: 243.4 kB / 0.53 GB, free: 70.22 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008764/1.685, allocations: 2.835 MB / 0.5328 GB, free: 69.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.901e-05/1.685, allocations: 18.98 kB / 0.5328 GB, free: 69.88 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-05/1.685, allocations: 3.719 kB / 0.5328 GB, free: 69.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.735e-05/1.685, allocations: 11.08 kB / 0.5328 GB, free: 69.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02057/1.705, allocations: 6.154 MB / 0.5388 GB, free: 68.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-05/1.706, allocations: 7.672 kB / 0.5388 GB, free: 68.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003544/1.709, allocations: 283.8 kB / 0.5391 GB, free: 68.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002645/1.712, allocations: 0.5162 MB / 0.5396 GB, free: 68.33 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005341/1.712, allocations: 28.48 kB / 0.5396 GB, free: 68.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/1.726, allocations: 7.432 MB / 0.5469 GB, free: 62.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/1.726, allocations: 3.906 kB / 0.5469 GB, free: 62.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/1.738, allocations: 4.435 MB / 0.5512 GB, free: 60.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002715/1.741, allocations: 0.6038 MB / 0.5518 GB, free: 60.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001186/1.742, allocations: 46.17 kB / 0.5519 GB, free: 60.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004978/1.747, allocations: 338.2 kB / 0.5522 GB, free: 60.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001389/1.749, allocations: 272.8 kB / 0.5525 GB, free: 60.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000321/1.749, allocations: 50.06 kB / 0.5525 GB, free: 60.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004621/1.754, allocations: 1.553 MB / 0.554 GB, free: 59.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.553e-06/1.754, allocations: 0 / 0.554 GB, free: 59.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008467/1.762, allocations: 1.054 MB / 0.555 GB, free: 59.85 MB / 394.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.01326/1.776, allocations: 5.77 MB / 0.5607 GB, free: 56.78 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01368/1.789, allocations: 5.128 MB / 0.5657 GB, free: 54.53 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.789, allocations: 0 / 0.5657 GB, free: 54.53 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005593/1.795, allocations: 2.032 MB / 0.5677 GB, free: 53.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005968/1.801, allocations: 0.537 MB / 0.5682 GB, free: 53.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02687/1.828, allocations: 6.487 MB / 0.5745 GB, free: 50.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00498/1.833, allocations: 2.487 MB / 0.577 GB, free: 48.96 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.009741/1.843, allocations: 1.473 MB / 0.5784 GB, free: 48.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003225/1.846, allocations: 1.194 MB / 0.5796 GB, free: 46.95 MB / 394.7 MB Notification: Performance of SimCode: time 1.543e-06/1.846, allocations: 0 / 0.5796 GB, free: 46.95 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8812/2.727, allocations: 72.34 MB / 0.6502 GB, free: 83.75 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004058/2.728, allocations: 210.5 kB / 0.6504 GB, free: 83.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.748/10.48, allocations: 0 / 0.6504 GB, free: 83.46 MB / 410.7 MB