Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.055e-05/4.066e-05, allocations: 5.406 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1315, allocations: 50.41 MB / 342.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4462/0.5777, allocations: 89.14 MB / 431.8 MB, free: 4.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003316/0.5781, allocations: 82.77 kB / 431.9 MB, free: 4.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07776/0.6559, allocations: 14.34 MB / 446.2 MB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.6559, allocations: 0 / 446.2 MB, free: 8.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.789e-05/0.656, allocations: 19.94 kB / 446.2 MB, free: 8.52 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: 163 * Number of variables: 163 Notification: Performance of Generate backend data structure: time 0.003352/0.6594, allocations: 0.8921 MB / 447.1 MB, free: 7.621 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.6595, allocations: 8.031 kB / 447.1 MB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002431/0.6597, allocations: 105.6 kB / 447.2 MB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002628/0.66, allocations: 86.97 kB / 447.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001234/0.6613, allocations: 0.5022 MB / 447.8 MB, free: 7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-05/0.6614, allocations: 50.81 kB / 447.9 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001632/0.6615, allocations: 65 kB / 447.9 MB, free: 6.926 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.6635, allocations: 0.7016 MB / 448.6 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.6636, allocations: 0 / 448.6 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.6637, allocations: 28.69 kB / 448.7 MB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.6637, allocations: 19.94 kB / 448.7 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.6653, allocations: 0.4931 MB / 449.2 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007028/0.6723, allocations: 2.686 MB / 451.9 MB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/0.6739, allocations: 0.5226 MB / 452.4 MB, free: 3.559 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009374/0.6749, allocations: 327 kB / 452.7 MB, free: 3.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.783e-05/0.6749, allocations: 4.438 kB / 452.7 MB, free: 3.332 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000849/0.6758, allocations: 352.1 kB / 453.1 MB, free: 3.066 MB / 362.7 MB Notification: Performance of pre-optimization done (n=57): time 3.135e-06/0.6758, allocations: 0 / 453.1 MB, free: 3.066 MB / 362.7 MB Notification: Performance of matching and sorting (n=57): time 0.00156/0.6774, allocations: 0.53 MB / 453.6 MB, free: 2.684 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.6775, allocations: 145 kB / 453.7 MB, free: 2.512 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008291/0.6784, allocations: 433.9 kB / 454.1 MB, free: 2.184 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.799e-05/0.6785, allocations: 43.81 kB / 454.2 MB, free: 2.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003165/0.6788, allocations: 362.6 kB / 454.5 MB, free: 1.859 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.679, allocations: 166.7 kB / 454.7 MB, free: 1.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.6791, allocations: 14.12 kB / 454.7 MB, free: 1.715 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.6793, allocations: 337.2 kB / 455.1 MB, free: 1.387 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.6798, allocations: 193.5 kB / 455.2 MB, free: 1.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006576/0.6805, allocations: 346.1 kB / 455.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005464/0.681, allocations: 209.1 kB / 455.8 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.6811, allocations: 0 / 455.8 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001626/0.6827, allocations: 0.6301 MB / 456.4 MB, free: 376 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000737/0.6835, allocations: 1.575 MB / 458 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.6835, allocations: 4 kB / 458 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008132/0.6843, allocations: 154.4 kB / 458.1 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/0.685, allocations: 91.02 kB / 458.2 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004476/0.6895, allocations: 2.348 MB / 460.6 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009817/0.6906, allocations: 91.55 kB / 460.7 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.945e-05/0.6907, allocations: 24 kB / 460.7 MB, free: 12.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.6907, allocations: 4 kB / 460.7 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001662/0.6924, allocations: 0.5842 MB / 461.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.6924, allocations: 4 kB / 461.3 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006671/0.6931, allocations: 148.7 kB / 461.4 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.6937, allocations: 87.83 kB / 461.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004245/0.698, allocations: 2.322 MB / 463.8 MB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006625/0.6987, allocations: 71.66 kB / 463.9 MB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/0.6988, allocations: 27.95 kB / 463.9 MB, free: 8.809 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002912/0.6991, allocations: 156.9 kB / 464.1 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002245/0.6993, allocations: 59.25 kB / 464.1 MB, free: 8.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.6995, allocations: 73.58 kB / 464.2 MB, free: 8.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.6996, allocations: 7.938 kB / 464.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.6996, allocations: 0 / 464.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.6996, allocations: 3.984 kB / 464.2 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/0.7029, allocations: 1.387 MB / 465.6 MB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.7029, allocations: 0 / 465.6 MB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/0.7034, allocations: 51.86 kB / 465.7 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000693/0.7041, allocations: 148.7 kB / 465.8 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.245e-05/0.7042, allocations: 19.98 kB / 465.8 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004783/0.709, allocations: 2.242 MB / 468.1 MB, free: 4.469 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.709, allocations: 4 kB / 468.1 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/0.7114, allocations: 0.9261 MB / 469 MB, free: 3.512 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003789/0.7118, allocations: 188.3 kB / 469.2 MB, free: 3.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/0.712, allocations: 16 kB / 469.2 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/0.7126, allocations: 43.97 kB / 469.2 MB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002692/0.7129, allocations: 72.44 kB / 469.3 MB, free: 3.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/0.713, allocations: 16 kB / 469.3 MB, free: 3.164 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008477/0.7138, allocations: 333.6 kB / 469.7 MB, free: 2.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.7139, allocations: 0 / 469.7 MB, free: 2.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00175/0.7156, allocations: 343 kB / 470 MB, free: 2.504 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.00278/0.7185, allocations: 1.567 MB / 471.6 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002947/0.7214, allocations: 1.148 MB / 472.7 MB, free: 15.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.7215, allocations: 0 / 472.7 MB, free: 15.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.7225, allocations: 440.6 kB / 473.1 MB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009616/0.7235, allocations: 106.5 kB / 473.2 MB, free: 15.19 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/0.7271, allocations: 1.074 MB / 474.3 MB, free: 14.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007725/0.7279, allocations: 0.9548 MB / 475.3 MB, free: 13.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00053/0.7284, allocations: 239.3 kB / 475.5 MB, free: 12.85 MB / 394.7 MB Notification: Performance of SimCode: time 8.72e-07/0.7285, allocations: 0 / 475.5 MB, free: 12.85 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.015/3.744, allocations: 13.8 MB / 489.3 MB, free: 15.07 MB / 410.7 MB