Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.426/2.426, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.508e-05/4.527e-05, allocations: 11.92 kB / 302.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.164, allocations: 53.22 MB / 355.5 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.48/0.6441, allocations: 97.44 MB / 453 MB, free: 4.246 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003452/0.6445, allocations: 87.95 kB / 453.1 MB, free: 4.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09428/0.7388, allocations: 21.65 MB / 474.7 MB, free: 14.37 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.765e-06/0.7389, allocations: 0 / 474.7 MB, free: 14.37 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.37e-05/0.739, allocations: 19.88 kB / 474.7 MB, free: 14.35 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.002886/0.7419, allocations: 0.9212 MB / 475.6 MB, free: 13.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.742, allocations: 12.03 kB / 475.7 MB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002506/0.7422, allocations: 98.52 kB / 475.8 MB, free: 13.27 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001614/0.7439, allocations: 174.8 kB / 475.9 MB, free: 13.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001638/0.7455, allocations: 0.5549 MB / 476.5 MB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.09e-05/0.7456, allocations: 37.31 kB / 476.5 MB, free: 12.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.7458, allocations: 67.94 kB / 476.6 MB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.7476, allocations: 0.6527 MB / 477.2 MB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.7476, allocations: 0 / 477.2 MB, free: 11.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.985e-05/0.7477, allocations: 20 kB / 477.3 MB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.841e-05/0.7478, allocations: 29.31 kB / 477.3 MB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.7494, allocations: 0.5375 MB / 477.8 MB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006872/0.7563, allocations: 2.563 MB / 480.4 MB, free: 8.469 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.7583, allocations: 0.6199 MB / 481 MB, free: 7.805 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000526/0.7588, allocations: 199.1 kB / 481.2 MB, free: 7.605 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.817e-05/0.7589, allocations: 12.38 kB / 481.2 MB, free: 7.594 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.759, allocations: 39 kB / 481.2 MB, free: 7.547 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 5.561e-06/0.759, allocations: 96 / 481.2 MB, free: 7.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.00138/0.7604, allocations: 451.4 kB / 481.7 MB, free: 7.098 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.7605, allocations: 111.2 kB / 481.8 MB, free: 6.965 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008921/0.7614, allocations: 449 kB / 482.2 MB, free: 6.516 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.902e-05/0.7615, allocations: 33.7 kB / 482.3 MB, free: 6.477 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003403/0.7618, allocations: 328.5 kB / 482.6 MB, free: 6.152 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002234/0.7621, allocations: 177.5 kB / 482.8 MB, free: 5.977 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.768e-05/0.7621, allocations: 12.03 kB / 482.8 MB, free: 5.965 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.7623, allocations: 370.8 kB / 483.1 MB, free: 5.594 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.7628, allocations: 169.1 kB / 483.3 MB, free: 5.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006098/0.7635, allocations: 276 kB / 483.6 MB, free: 5.125 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005724/0.764, allocations: 197.6 kB / 483.8 MB, free: 4.934 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.7641, allocations: 3.953 kB / 483.8 MB, free: 4.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002137/0.7662, allocations: 0.6481 MB / 484.4 MB, free: 4.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004664/0.7667, allocations: 1.051 MB / 485.5 MB, free: 3.141 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.7667, allocations: 4 kB / 485.5 MB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005824/0.7673, allocations: 100.8 kB / 485.6 MB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.7685, allocations: 143.8 kB / 485.7 MB, free: 2.895 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008659/0.7694, allocations: 0.6812 MB / 486.4 MB, free: 2.188 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009225/0.7703, allocations: 87.39 kB / 486.5 MB, free: 2.102 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.989e-05/0.7704, allocations: 28.02 kB / 486.5 MB, free: 2.074 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.7705, allocations: 4 kB / 486.5 MB, free: 2.07 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001605/0.7721, allocations: 0.5106 MB / 487 MB, free: 1.555 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.7721, allocations: 3.953 kB / 487 MB, free: 1.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004452/0.7726, allocations: 93.14 kB / 487.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.7737, allocations: 135.8 kB / 487.2 MB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002905/0.7766, allocations: 1.92 MB / 489.2 MB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009465/0.7776, allocations: 87.55 kB / 489.2 MB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.715e-05/0.7777, allocations: 20.27 kB / 489.3 MB, free: 15.17 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * 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 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.000233/0.778, allocations: 136.8 kB / 489.4 MB, free: 15.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.7781, allocations: 71.19 kB / 489.5 MB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.7796, allocations: 0.4906 MB / 490 MB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.7796, allocations: 4 kB / 490 MB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.7796, allocations: 4 kB / 490 MB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.7796, allocations: 3.984 kB / 490 MB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/0.7823, allocations: 1.189 MB / 491.2 MB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.7824, allocations: 4 kB / 491.2 MB, free: 13.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001239/0.7837, allocations: 123.9 kB / 491.3 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.061e-05/0.7837, allocations: 0 / 491.3 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.767e-05/0.7838, allocations: 12 kB / 491.3 MB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-05/0.7838, allocations: 7.984 kB / 491.3 MB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.7838, allocations: 3.938 kB / 491.3 MB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.7858, allocations: 0.8017 MB / 492.1 MB, free: 12.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003741/0.7862, allocations: 188.2 kB / 492.3 MB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.7863, allocations: 8 kB / 492.3 MB, free: 12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007797/0.7871, allocations: 51.95 kB / 492.4 MB, free: 11.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.7872, allocations: 40.38 kB / 492.4 MB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.118e-05/0.7873, allocations: 19.94 kB / 492.4 MB, free: 11.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006815/0.788, allocations: 353.6 kB / 492.8 MB, free: 11.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.788, allocations: 4 kB / 492.8 MB, free: 11.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001266/0.7893, allocations: 259.8 kB / 493 MB, free: 11.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002386/0.7917, allocations: 1.443 MB / 494.5 MB, free: 9.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002333/0.7941, allocations: 0.8116 MB / 495.3 MB, free: 9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7941, allocations: 0 / 495.3 MB, free: 9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006243/0.7948, allocations: 217.6 kB / 495.5 MB, free: 8.785 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.7958, allocations: 117.3 kB / 495.6 MB, free: 8.676 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/0.8003, allocations: 1.291 MB / 496.9 MB, free: 7.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/0.8011, allocations: 0.9391 MB / 497.8 MB, free: 6.375 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001075/0.8022, allocations: 174.6 kB / 498 MB, free: 6.203 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005073/0.8027, allocations: 239.3 kB / 498.2 MB, free: 5.969 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/0.8027, allocations: 0 / 498.2 MB, free: 5.969 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05404/0.8567, allocations: 13.67 MB / 0.4999 GB, free: 8.375 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003718/0.8572, allocations: 187.3 kB / 0.5001 GB, free: 8.148 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.863/3.721, allocations: 0 / 0.5001 GB, free: 8.148 MB / 442.7 MB