Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2mPulse_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.721e-05/3.713e-05, allocations: 4 kB / 292.2 MB, free: 8.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.111, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4521/0.5632, allocations: 93.62 MB / 436.3 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/0.5636, allocations: 86.38 kB / 436.4 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1584/0.722, allocations: 37.95 MB / 474.3 MB, free: 15.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.722, allocations: 0 / 474.3 MB, free: 15.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002156/0.7222, allocations: 51.94 kB / 474.4 MB, free: 15.11 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.007435/0.7297, allocations: 1.997 MB / 476.3 MB, free: 13.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.497e-05/0.7298, allocations: 12.03 kB / 476.4 MB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001036/0.7308, allocations: 269.3 kB / 476.6 MB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00075/0.7316, allocations: 221.4 kB / 476.8 MB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008632/0.7402, allocations: 2.085 MB / 478.9 MB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002356/0.7405, allocations: 147.5 kB / 479.1 MB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006315/0.7412, allocations: 172 kB / 479.2 MB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006497/0.7477, allocations: 2.38 MB / 481.6 MB, free: 7.625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.45e-05/0.7478, allocations: 7.891 kB / 481.6 MB, free: 7.617 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000288/0.7481, allocations: 76 kB / 481.7 MB, free: 7.543 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001317/0.7482, allocations: 75.48 kB / 481.8 MB, free: 7.469 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005952/0.7542, allocations: 1.932 MB / 483.7 MB, free: 5.535 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01997/0.7742, allocations: 6.95 MB / 490.7 MB, free: 14.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003993/0.7783, allocations: 1.555 MB / 492.2 MB, free: 12.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003408/0.7817, allocations: 1.169 MB / 493.4 MB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.7819, allocations: 13 kB / 493.4 MB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002321/0.7842, allocations: 0.886 MB / 494.3 MB, free: 10.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=126): time 6.893e-06/0.7843, allocations: 7.984 kB / 494.3 MB, free: 10.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=126): time 0.004815/0.7891, allocations: 1.68 MB / 496 MB, free: 9.113 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.7893, allocations: 179.2 kB / 496.1 MB, free: 8.902 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002648/0.7919, allocations: 1.071 MB / 497.2 MB, free: 7.812 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003948/0.7924, allocations: 81.67 kB / 497.3 MB, free: 7.727 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009154/0.7933, allocations: 0.74 MB / 498 MB, free: 6.977 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006358/0.794, allocations: 374.9 kB / 498.4 MB, free: 6.605 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.7941, allocations: 24 kB / 498.4 MB, free: 6.582 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.7943, allocations: 370.7 kB / 498.8 MB, free: 6.211 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00176/0.7961, allocations: 0.6599 MB / 499.4 MB, free: 5.551 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/0.7982, allocations: 0.93 MB / 0.4886 GB, free: 4.516 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001848/0.8, allocations: 0.7153 MB / 0.4893 GB, free: 3.801 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.8001, allocations: 4 kB / 0.4893 GB, free: 3.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004994/0.8051, allocations: 1.887 MB / 0.4912 GB, free: 1.898 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00107/0.8062, allocations: 2.457 MB / 0.4936 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.202e-05/0.8062, allocations: 8 kB / 0.4936 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00222/0.8085, allocations: 0.5041 MB / 0.4941 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.8099, allocations: 183.7 kB / 0.4943 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.8225, allocations: 5.536 MB / 0.4997 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.8245, allocations: 194.9 kB / 0.4999 GB, free: 8.691 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001828/0.8248, allocations: 48.12 kB / 0.4999 GB, free: 8.645 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.8248, allocations: 7.938 kB / 0.4999 GB, free: 8.637 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004749/0.8295, allocations: 1.831 MB / 0.5017 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.061e-05/0.8296, allocations: 11.98 kB / 0.5017 GB, free: 6.789 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001845/0.8315, allocations: 0.5048 MB / 0.5022 GB, free: 6.281 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.8329, allocations: 167.7 kB / 0.5024 GB, free: 6.117 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/0.8453, allocations: 5.574 MB / 0.5078 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.8468, allocations: 163.4 kB / 0.508 GB, free: 244 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.847, allocations: 47.98 kB / 0.508 GB, free: 196 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of prepare postOptimizeDAE: time 0.0005556/0.8475, allocations: 249.3 kB / 0.5082 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004667/0.848, allocations: 142.3 kB / 0.5084 GB, free: 15.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005829/0.8486, allocations: 169.5 kB / 0.5085 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.091e-05/0.8486, allocations: 12 kB / 0.5086 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.8487, allocations: 4 kB / 0.5086 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.819e-05/0.8487, allocations: 7.969 kB / 0.5086 GB, free: 15.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01136/0.8601, allocations: 3.811 MB / 0.5123 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.8601, allocations: 0 / 0.5123 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009806/0.8611, allocations: 103.8 kB / 0.5124 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/0.8631, allocations: 489.2 kB / 0.5129 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001888/0.8633, allocations: 24 kB / 0.5129 GB, free: 11.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/0.876, allocations: 5.423 MB / 0.5182 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/0.8761, allocations: 0 / 0.5182 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006717/0.8828, allocations: 2.643 MB / 0.5208 GB, free: 2.902 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/0.8841, allocations: 383.1 kB / 0.5211 GB, free: 2.508 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003275/0.8844, allocations: 43.98 kB / 0.5212 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.8859, allocations: 107.9 kB / 0.5213 GB, free: 2.359 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008189/0.8867, allocations: 228.6 kB / 0.5215 GB, free: 2.137 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.8869, allocations: 35.98 kB / 0.5215 GB, free: 2.102 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002036/0.8889, allocations: 0.8049 MB / 0.5223 GB, free: 1.285 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.11e-07/0.8889, allocations: 0 / 0.5223 GB, free: 1.285 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00384/0.8928, allocations: 0.8606 MB / 0.5231 GB, free: 432 kB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[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,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.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[3].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 32} Notification: Performance of Backend phase and start with SimCode phase: time 0.2936/1.186, allocations: 3.301 MB / 0.5264 GB, free: 127.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007802/1.194, allocations: 3.029 MB / 0.5293 GB, free: 127.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/1.194, allocations: 0.5625 kB / 0.5293 GB, free: 127.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002849/1.197, allocations: 1.05 MB / 0.5303 GB, free: 127.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/1.2, allocations: 322 kB / 0.5307 GB, free: 127.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/1.211, allocations: 3.31 MB / 0.5339 GB, free: 126.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/1.213, allocations: 1.718 MB / 0.5356 GB, free: 125.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/1.214, allocations: 0.6356 MB / 0.5362 GB, free: 125.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.402e-06/1.214, allocations: 1.219 kB / 0.5362 GB, free: 125.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.248/4.463, allocations: 40.89 MB / 0.5761 GB, free: 113.9 MB / 442.7 MB