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.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.467e-05, allocations: 1.406 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0997/0.09978, allocations: 44.5 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5272/0.627, allocations: 103.3 MB / 403.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.6274, allocations: 91.84 kB / 403.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2762/0.9037, allocations: 65.36 MB / 468.7 MB, free: 32 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.9037, allocations: 0 / 468.7 MB, free: 32 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000594/0.9044, allocations: 84.08 kB / 468.8 MB, free: 15.95 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.01404/0.9184, allocations: 3.439 MB / 472.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.481e-05/0.9185, allocations: 12.03 kB / 472.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002097/0.9206, allocations: 462.2 kB / 472.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002607/0.9232, allocations: 431.3 kB / 473.1 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01885/0.9421, allocations: 4.03 MB / 477.1 MB, free: 7.418 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.9425, allocations: 221.7 kB / 477.3 MB, free: 7.199 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001365/0.9439, allocations: 307.8 kB / 477.6 MB, free: 6.898 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01333/0.9573, allocations: 3.77 MB / 481.4 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001249/0.9574, allocations: 0 / 481.4 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006221/0.9581, allocations: 120 kB / 481.5 MB, free: 2.875 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.9583, allocations: 109.5 kB / 481.6 MB, free: 2.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/0.9696, allocations: 3.243 MB / 484.9 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0402/1.01, allocations: 12.8 MB / 497.7 MB, free: 2.398 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009105/1.019, allocations: 2.774 MB / 0.4887 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004061/1.023, allocations: 1.548 MB / 0.4902 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/1.023, allocations: 21.91 kB / 0.4903 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003468/1.027, allocations: 1.383 MB / 0.4916 GB, free: 12.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=179): time 5.43e-06/1.027, allocations: 0 / 0.4916 GB, free: 12.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.01672/1.044, allocations: 6.07 MB / 0.4975 GB, free: 6.473 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002151/1.044, allocations: 302.9 kB / 0.4978 GB, free: 6.117 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00672/1.051, allocations: 2.382 MB / 0.5002 GB, free: 3.711 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005929/1.051, allocations: 89.67 kB / 0.5002 GB, free: 3.617 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001854/1.053, allocations: 1.343 MB / 0.5015 GB, free: 2.262 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.054, allocations: 0.5819 MB / 0.5021 GB, free: 1.672 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002296/1.054, allocations: 44 kB / 0.5022 GB, free: 1.629 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002577/1.055, allocations: 407.5 kB / 0.5025 GB, free: 1.223 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003044/1.058, allocations: 1.148 MB / 0.5037 GB, free: 72 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003623/1.061, allocations: 1.79 MB / 0.5054 GB, free: 14.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003544/1.065, allocations: 1.354 MB / 0.5067 GB, free: 12.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.258e-05/1.065, allocations: 8 kB / 0.5067 GB, free: 12.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.009205/1.074, allocations: 3.498 MB / 0.5102 GB, free: 9.102 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002914/1.077, allocations: 6.903 MB / 0.5169 GB, free: 1.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.802e-05/1.077, allocations: 16 kB / 0.5169 GB, free: 1.645 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/1.08, allocations: 0.5685 MB / 0.5175 GB, free: 1.066 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004945/1.085, allocations: 0.5303 MB / 0.518 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2942/1.379, allocations: 7.94 MB / 0.5257 GB, free: 91.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004943/1.384, allocations: 422 kB / 0.5261 GB, free: 91.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006619/1.385, allocations: 92.53 kB / 0.5262 GB, free: 91.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/1.385, allocations: 4.438 kB / 0.5262 GB, free: 91.44 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009603/1.394, allocations: 3.407 MB / 0.5296 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/1.395, allocations: 17.41 kB / 0.5296 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/1.397, allocations: 0.5715 MB / 0.5301 GB, free: 91.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004115/1.401, allocations: 0.5233 MB / 0.5307 GB, free: 91.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/1.413, allocations: 8.019 MB / 0.5385 GB, free: 87.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/1.416, allocations: 243.8 kB / 0.5387 GB, free: 87.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005708/1.417, allocations: 96.98 kB / 0.5388 GB, free: 87.18 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.0007925/1.417, allocations: 296.5 kB / 0.5391 GB, free: 87.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008641/1.418, allocations: 257.7 kB / 0.5393 GB, free: 87.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00728/1.426, allocations: 2.99 MB / 0.5423 GB, free: 86.71 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/1.426, allocations: 19.44 kB / 0.5423 GB, free: 86.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/1.426, allocations: 5.188 kB / 0.5423 GB, free: 86.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-05/1.426, allocations: 11.02 kB / 0.5423 GB, free: 86.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01712/1.443, allocations: 6.646 MB / 0.5488 GB, free: 85.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/1.443, allocations: 5.156 kB / 0.5488 GB, free: 85.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002443/1.445, allocations: 282.4 kB / 0.5491 GB, free: 85.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001821/1.447, allocations: 0.5277 MB / 0.5496 GB, free: 85.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004017/1.448, allocations: 60.86 kB / 0.5496 GB, free: 85.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/1.459, allocations: 7.674 MB / 0.5571 GB, free: 81.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/1.459, allocations: 18.12 kB / 0.5571 GB, free: 81.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009941/1.469, allocations: 4.575 MB / 0.5616 GB, free: 80.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002338/1.471, allocations: 0.6193 MB / 0.5622 GB, free: 80 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009642/1.472, allocations: 72.75 kB / 0.5623 GB, free: 79.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004003/1.476, allocations: 368.5 kB / 0.5626 GB, free: 79.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001111/1.477, allocations: 268 kB / 0.5629 GB, free: 79.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.478, allocations: 52.02 kB / 0.5629 GB, free: 79.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004519/1.482, allocations: 1.789 MB / 0.5647 GB, free: 79.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.482, allocations: 0 / 0.5647 GB, free: 79.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007095/1.489, allocations: 1.207 MB / 0.5659 GB, free: 79.08 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.01114/1.5, allocations: 5.955 MB / 0.5717 GB, free: 75.93 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01212/1.513, allocations: 5.185 MB / 0.5767 GB, free: 73.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.642e-05/1.513, allocations: 3.938 kB / 0.5767 GB, free: 73.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00456/1.517, allocations: 1.973 MB / 0.5787 GB, free: 72.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005105/1.522, allocations: 0.6128 MB / 0.5793 GB, free: 72.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02261/1.545, allocations: 6.623 MB / 0.5857 GB, free: 70.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004321/1.549, allocations: 2.456 MB / 0.5881 GB, free: 69.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003321/1.553, allocations: 1.24 MB / 0.5894 GB, free: 68.43 MB / 410.7 MB Notification: Performance of SimCode: time 2.124e-06/1.553, allocations: 3.562 kB / 0.5894 GB, free: 68.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.56/6.113, allocations: 108.3 MB / 0.6951 GB, free: 91.65 MB / 410.7 MB