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 2.018/2.018, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.448e-05/2.452e-05, allocations: 4 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3007, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2027/0.5035, allocations: 102.6 MB / 396.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/0.5039, allocations: 91.95 kB / 396.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5101/1.014, allocations: 64.58 MB / 461.5 MB, free: 87.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.474e-06/1.014, allocations: 0 / 461.5 MB, free: 87.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004819/1.015, allocations: 83.44 kB / 461.6 MB, free: 87.29 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.0125/1.027, allocations: 3.44 MB / 465 MB, free: 84.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/1.027, allocations: 8.031 kB / 465 MB, free: 84.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002548/1.03, allocations: 435.2 kB / 465.5 MB, free: 83.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01614/1.046, allocations: 4.035 MB / 469.5 MB, free: 79.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002297/1.046, allocations: 103.9 kB / 469.6 MB, free: 79.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/1.047, allocations: 179.9 kB / 469.8 MB, free: 79.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009378/1.057, allocations: 3.115 MB / 472.9 MB, free: 76.28 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/1.068, allocations: 3.364 MB / 476.2 MB, free: 72.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/1.068, allocations: 11.92 kB / 476.3 MB, free: 72.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004545/1.068, allocations: 8 kB / 476.3 MB, free: 72.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/1.068, allocations: 109.5 kB / 476.4 MB, free: 72.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03209/1.101, allocations: 12.23 MB / 488.6 MB, free: 60.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006981/1.108, allocations: 2.717 MB / 491.3 MB, free: 57.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003296/1.111, allocations: 1.48 MB / 492.8 MB, free: 56.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002082/1.111, allocations: 25.83 kB / 492.8 MB, free: 56.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003005/1.114, allocations: 1.332 MB / 494.2 MB, free: 54.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 7.253e-06/1.114, allocations: 0 / 494.2 MB, free: 54.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=183): time 0.01568/1.13, allocations: 5.837 MB / 500 MB, free: 48.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/1.13, allocations: 290.9 kB / 0.4886 GB, free: 48.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004837/1.135, allocations: 2.114 MB / 0.4906 GB, free: 46.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005547/1.136, allocations: 53.67 kB / 0.4907 GB, free: 46.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001397/1.137, allocations: 1.346 MB / 0.492 GB, free: 44.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000906/1.138, allocations: 0.5621 MB / 0.4925 GB, free: 44.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/1.138, allocations: 0 / 0.4925 GB, free: 44.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/1.138, allocations: 403.5 kB / 0.4929 GB, free: 43.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/1.141, allocations: 1.113 MB / 0.494 GB, free: 42.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/1.144, allocations: 1.739 MB / 0.4957 GB, free: 40.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003308/1.147, allocations: 1.313 MB / 0.497 GB, free: 39.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.879e-05/1.147, allocations: 4 kB / 0.497 GB, free: 39.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007918/1.155, allocations: 3.346 MB / 0.5003 GB, free: 36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001359/1.157, allocations: 6.879 MB / 0.507 GB, free: 28.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.253e-05/1.157, allocations: 20 kB / 0.507 GB, free: 28.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002003/1.159, allocations: 0.5607 MB / 0.5075 GB, free: 28.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003855/1.163, allocations: 0.5343 MB / 0.5081 GB, free: 27.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01057/1.173, allocations: 7.726 MB / 0.5156 GB, free: 19.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004689/1.178, allocations: 379.4 kB / 0.516 GB, free: 19.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006103/1.179, allocations: 88 kB / 0.5161 GB, free: 18.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/1.179, allocations: 4 kB / 0.5161 GB, free: 18.94 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007348/1.186, allocations: 3.197 MB / 0.5192 GB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.706e-05/1.186, allocations: 16 kB / 0.5192 GB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/1.188, allocations: 0.5643 MB / 0.5197 GB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003749/1.191, allocations: 0.5265 MB / 0.5203 GB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/1.202, allocations: 7.779 MB / 0.5279 GB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002483/1.204, allocations: 199.7 kB / 0.528 GB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004463/1.205, allocations: 88 kB / 0.5281 GB, free: 6.18 MB / 362.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.000745/1.206, allocations: 236.6 kB / 0.5284 GB, free: 5.934 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006476/1.212, allocations: 2.693 MB / 0.531 GB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/1.213, allocations: 241 kB / 0.5312 GB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006694/1.22, allocations: 2.834 MB / 0.534 GB, free: 52 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/1.22, allocations: 16 kB / 0.534 GB, free: 36 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/1.22, allocations: 4 kB / 0.534 GB, free: 32 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-05/1.22, allocations: 7.969 kB / 0.534 GB, free: 24 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01889/1.239, allocations: 6.162 MB / 0.54 GB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/1.239, allocations: 4 kB / 0.54 GB, free: 9.766 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002539/1.242, allocations: 271.6 kB / 0.5403 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/1.244, allocations: 0.5178 MB / 0.5408 GB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004347/1.244, allocations: 31.97 kB / 0.5408 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/1.256, allocations: 7.431 MB / 0.5481 GB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-05/1.256, allocations: 4.094 kB / 0.5481 GB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/1.267, allocations: 4.431 MB / 0.5524 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002456/1.27, allocations: 0.5997 MB / 0.553 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009773/1.271, allocations: 48.23 kB / 0.553 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003857/1.275, allocations: 331.5 kB / 0.5534 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001135/1.276, allocations: 265.5 kB / 0.5536 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002333/1.276, allocations: 59.97 kB / 0.5537 GB, free: 11.27 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004144/1.28, allocations: 1.558 MB / 0.5552 GB, free: 9.691 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.28, allocations: 0 / 0.5552 GB, free: 9.691 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007055/1.288, allocations: 1.047 MB / 0.5562 GB, free: 8.645 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.01219/1.3, allocations: 5.767 MB / 0.5618 GB, free: 2.781 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2787/1.579, allocations: 5.046 MB / 0.5668 GB, free: 107.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.646e-05/1.579, allocations: 7.797 kB / 0.5668 GB, free: 107.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004881/1.584, allocations: 1.945 MB / 0.5687 GB, free: 107.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005545/1.589, allocations: 0.5347 MB / 0.5692 GB, free: 107.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02199/1.611, allocations: 6.436 MB / 0.5755 GB, free: 106 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00352/1.615, allocations: 2.456 MB / 0.5779 GB, free: 105.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003138/1.618, allocations: 1.226 MB / 0.5791 GB, free: 105.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/1.618, allocations: 0 / 0.5791 GB, free: 105.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.198/5.816, allocations: 106.9 MB / 0.6835 GB, free: 20.89 MB / 394.7 MB