Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_DC_Drive,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.874e-05/2.892e-05, allocations: 4 kB / 292.2 MB, free: 8.691 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1231, allocations: 50.42 MB / 342.7 MB, free: 6.258 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.498/0.6212, allocations: 112.2 MB / 454.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004192/0.6217, allocations: 92.62 kB / 455 MB, free: 14.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3123/0.934, allocations: 67 MB / 0.5097 GB, free: 15.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.9341, allocations: 0 / 0.5097 GB, free: 15.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005772/0.9347, allocations: 79.94 kB / 0.5098 GB, free: 15.18 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 748 * Number of variables: 748 Notification: Performance of Generate backend data structure: time 0.01425/0.9489, allocations: 3.508 MB / 0.5132 GB, free: 11.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.949, allocations: 8.031 kB / 0.5132 GB, free: 11.58 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002249/0.9513, allocations: 466.9 kB / 0.5137 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002803/0.9541, allocations: 455 kB / 0.5141 GB, free: 10.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01912/0.9733, allocations: 4.144 MB / 0.5182 GB, free: 6.441 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003908/0.9737, allocations: 229.8 kB / 0.5184 GB, free: 6.215 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001402/0.9752, allocations: 303.9 kB / 0.5187 GB, free: 5.918 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01367/0.9889, allocations: 3.845 MB / 0.5224 GB, free: 1.934 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001493/0.9891, allocations: 4 kB / 0.5224 GB, free: 1.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008378/0.9899, allocations: 120 kB / 0.5225 GB, free: 1.812 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001997/0.9901, allocations: 121.6 kB / 0.5227 GB, free: 1.691 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3132/1.303, allocations: 3.3 MB / 0.5259 GB, free: 101.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04368/1.347, allocations: 13.01 MB / 0.5386 GB, free: 98.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007233/1.354, allocations: 2.635 MB / 0.5412 GB, free: 98.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005521/1.36, allocations: 1.577 MB / 0.5427 GB, free: 98.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003191/1.36, allocations: 29.41 kB / 0.5427 GB, free: 98.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006829/1.367, allocations: 1.41 MB / 0.5441 GB, free: 98.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=185): time 1.455e-05/1.367, allocations: 1.188 kB / 0.5441 GB, free: 98.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=189): time 0.03209/1.399, allocations: 6.24 MB / 0.5502 GB, free: 96.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002029/1.4, allocations: 323.1 kB / 0.5505 GB, free: 96.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007901/1.408, allocations: 2.414 MB / 0.5529 GB, free: 96.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005609/1.408, allocations: 97.56 kB / 0.553 GB, free: 96.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001571/1.41, allocations: 1.36 MB / 0.5543 GB, free: 95.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001031/1.411, allocations: 0.6089 MB / 0.5549 GB, free: 95.51 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/1.411, allocations: 44.62 kB / 0.5549 GB, free: 95.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/1.411, allocations: 408.4 kB / 0.5553 GB, free: 95.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002703/1.414, allocations: 1.18 MB / 0.5565 GB, free: 94.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003399/1.417, allocations: 1.831 MB / 0.5583 GB, free: 93.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003398/1.421, allocations: 1.388 MB / 0.5596 GB, free: 93.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.662e-05/1.421, allocations: 3.875 kB / 0.5596 GB, free: 93.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=301) (initialization): time 0.008492/1.43, allocations: 3.565 MB / 0.5631 GB, free: 91.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001562/1.431, allocations: 6.882 MB / 0.5698 GB, free: 84.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.514e-05/1.431, allocations: 24.86 kB / 0.5698 GB, free: 84.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002092/1.433, allocations: 0.5728 MB / 0.5704 GB, free: 84.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/1.437, allocations: 0.542 MB / 0.5709 GB, free: 84.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/1.449, allocations: 7.966 MB / 0.5787 GB, free: 78.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004927/1.454, allocations: 421.1 kB / 0.5791 GB, free: 78.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006185/1.454, allocations: 92.88 kB / 0.5792 GB, free: 78.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/1.454, allocations: 3.75 kB / 0.5792 GB, free: 78.5 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008047/1.463, allocations: 3.475 MB / 0.5826 GB, free: 77.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.543e-05/1.463, allocations: 19 kB / 0.5826 GB, free: 77.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/1.464, allocations: 0.574 MB / 0.5832 GB, free: 77.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003933/1.468, allocations: 0.537 MB / 0.5837 GB, free: 77.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01114/1.48, allocations: 8.023 MB / 0.5915 GB, free: 71.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002655/1.482, allocations: 243.9 kB / 0.5918 GB, free: 71.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003677/1.483, allocations: 94.19 kB / 0.5919 GB, free: 71.16 MB / 442.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_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$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 (261): * Single equations (assignments): 258 * 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.0007715/1.483, allocations: 304.8 kB / 0.5921 GB, free: 70.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008746/1.484, allocations: 261.9 kB / 0.5924 GB, free: 70.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007236/1.492, allocations: 3.064 MB / 0.5954 GB, free: 69.49 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.411e-05/1.492, allocations: 20.47 kB / 0.5954 GB, free: 69.49 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/1.492, allocations: 0 / 0.5954 GB, free: 69.49 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.11e-05/1.492, allocations: 16.97 kB / 0.5954 GB, free: 69.49 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/1.509, allocations: 6.813 MB / 0.6021 GB, free: 66.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/1.509, allocations: 3.938 kB / 0.6021 GB, free: 66.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00258/1.512, allocations: 294.7 kB / 0.6024 GB, free: 66.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001865/1.514, allocations: 0.5329 MB / 0.6029 GB, free: 66.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004745/1.514, allocations: 59.73 kB / 0.6029 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/1.525, allocations: 7.691 MB / 0.6104 GB, free: 60.81 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.034e-06/1.525, allocations: 11.91 kB / 0.6105 GB, free: 60.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01035/1.536, allocations: 4.706 MB / 0.6151 GB, free: 58.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/1.538, allocations: 0.6409 MB / 0.6157 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009556/1.539, allocations: 72.61 kB / 0.6158 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004111/1.543, allocations: 364.9 kB / 0.6161 GB, free: 58.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001122/1.544, allocations: 275.8 kB / 0.6164 GB, free: 58.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002871/1.545, allocations: 51.97 kB / 0.6164 GB, free: 58.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004902/1.55, allocations: 1.821 MB / 0.6182 GB, free: 57.37 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.55, allocations: 0 / 0.6182 GB, free: 57.37 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007641/1.557, allocations: 1.223 MB / 0.6194 GB, free: 56.16 MB / 442.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_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,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_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (149): * Single equations (assignments): 137 * 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%) 4,(1,100.0%) 12} * Non-linear torn systems: 1 {6 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.01151/1.569, allocations: 6.093 MB / 0.6253 GB, free: 50.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01237/1.581, allocations: 5.287 MB / 0.6305 GB, free: 45.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/1.581, allocations: 5.438 kB / 0.6305 GB, free: 45.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004576/1.586, allocations: 2.015 MB / 0.6325 GB, free: 44.13 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005166/1.591, allocations: 0.6125 MB / 0.6331 GB, free: 43.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/1.612, allocations: 6.766 MB / 0.6397 GB, free: 37.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003309/1.615, allocations: 2.488 MB / 0.6421 GB, free: 35.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003078/1.618, allocations: 1.273 MB / 0.6433 GB, free: 34.73 MB / 442.7 MB Notification: Performance of SimCode: time 1.773e-06/1.618, allocations: 0 / 0.6433 GB, free: 34.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.398/6.017, allocations: 110.5 MB / 0.7512 GB, free: 98.36 MB / 458.7 MB