Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.364/2.364, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.55e-05/3.548e-05, allocations: 7.984 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1095, allocations: 53.23 MB / 354.6 MB, free: 2.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4446/0.5542, allocations: 97.23 MB / 451.8 MB, free: 4.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/0.5546, allocations: 87.94 kB / 451.9 MB, free: 4.664 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09123/0.6459, allocations: 21.49 MB / 473.4 MB, free: 15.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6459, allocations: 3.938 kB / 473.4 MB, free: 15.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.465e-05/0.646, allocations: 20 kB / 473.4 MB, free: 15 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.002573/0.6486, allocations: 0.9016 MB / 474.3 MB, free: 14.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.998e-05/0.6487, allocations: 8.031 kB / 474.3 MB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002215/0.6489, allocations: 106.5 kB / 474.4 MB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001548/0.6505, allocations: 174.8 kB / 474.6 MB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001496/0.652, allocations: 0.5411 MB / 475.2 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.139e-05/0.6521, allocations: 49.3 kB / 475.2 MB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.6523, allocations: 71.84 kB / 475.3 MB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.6539, allocations: 0.6371 MB / 475.9 MB, free: 12.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/0.654, allocations: 7.984 kB / 475.9 MB, free: 12.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.781e-05/0.6541, allocations: 24 kB / 475.9 MB, free: 12.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.13e-05/0.6542, allocations: 25.31 kB / 476 MB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.6557, allocations: 0.5297 MB / 476.5 MB, free: 11.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006653/0.6624, allocations: 2.536 MB / 479 MB, free: 9.172 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.6642, allocations: 0.586 MB / 479.6 MB, free: 8.539 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000523/0.6647, allocations: 202.9 kB / 479.8 MB, free: 8.336 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.366e-05/0.6648, allocations: 16.42 kB / 479.8 MB, free: 8.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/0.6649, allocations: 35 kB / 479.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.196e-06/0.6649, allocations: 0 / 479.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of matching and sorting (n=48): time 0.001345/0.6663, allocations: 435.3 kB / 480.3 MB, free: 7.848 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/0.6664, allocations: 111.2 kB / 480.4 MB, free: 7.715 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009348/0.6673, allocations: 457 kB / 480.8 MB, free: 7.258 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.6674, allocations: 33.7 kB / 480.9 MB, free: 7.219 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/0.6677, allocations: 347.7 kB / 481.2 MB, free: 6.879 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.668, allocations: 177.4 kB / 481.4 MB, free: 6.703 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-05/0.668, allocations: 8 kB / 481.4 MB, free: 6.695 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6682, allocations: 338.8 kB / 481.7 MB, free: 6.355 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004873/0.6687, allocations: 161.1 kB / 481.9 MB, free: 6.199 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005712/0.6693, allocations: 264.1 kB / 482.1 MB, free: 5.906 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00056/0.6698, allocations: 193.7 kB / 482.3 MB, free: 5.715 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.6699, allocations: 3.938 kB / 482.3 MB, free: 5.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002011/0.6719, allocations: 0.5902 MB / 482.9 MB, free: 5.109 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004858/0.6724, allocations: 1.049 MB / 484 MB, free: 3.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.6724, allocations: 4 kB / 484 MB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005868/0.673, allocations: 112.7 kB / 484.1 MB, free: 3.863 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.6742, allocations: 131.9 kB / 484.2 MB, free: 3.734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008987/0.6751, allocations: 0.6772 MB / 484.9 MB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008793/0.676, allocations: 87.42 kB / 485 MB, free: 2.945 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.476e-05/0.6761, allocations: 16 kB / 485 MB, free: 2.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.6761, allocations: 4 kB / 485 MB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001586/0.6777, allocations: 0.5109 MB / 485.5 MB, free: 2.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.6777, allocations: 0 / 485.5 MB, free: 2.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003931/0.6781, allocations: 88.73 kB / 485.6 MB, free: 2.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.6791, allocations: 119.9 kB / 485.7 MB, free: 2.203 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002754/0.6819, allocations: 1.905 MB / 487.6 MB, free: 168 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005423/0.6825, allocations: 63.52 kB / 487.7 MB, free: 104 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.6826, allocations: 16 kB / 487.7 MB, free: 88 kB / 410.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 (56): * Single equations (assignments): 55 * 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.000283/0.6829, allocations: 139.6 kB / 487.8 MB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/0.6831, allocations: 63.25 kB / 487.9 MB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.6845, allocations: 478.5 kB / 488.4 MB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.6845, allocations: 15.98 kB / 488.4 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.6845, allocations: 0 / 488.4 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.6845, allocations: 0 / 488.4 MB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/0.6871, allocations: 1.174 MB / 489.6 MB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.6872, allocations: 3.938 kB / 489.6 MB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001125/0.6883, allocations: 111.9 kB / 489.7 MB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.22e-05/0.6883, allocations: 4 kB / 489.7 MB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.248e-05/0.6884, allocations: 19.98 kB / 489.7 MB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.184e-06/0.6884, allocations: 4 kB / 489.7 MB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.6884, allocations: 0 / 489.7 MB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001804/0.6902, allocations: 0.7782 MB / 490.5 MB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/0.6906, allocations: 196.2 kB / 490.7 MB, free: 13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/0.6908, allocations: 15.94 kB / 490.7 MB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007146/0.6915, allocations: 39.97 kB / 490.7 MB, free: 12.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.6917, allocations: 40.33 kB / 490.8 MB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.6917, allocations: 12 kB / 490.8 MB, free: 12.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006933/0.6924, allocations: 365.5 kB / 491.1 MB, free: 12.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6925, allocations: 0 / 491.1 MB, free: 12.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001192/0.6937, allocations: 255.2 kB / 491.4 MB, free: 12.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 (49): * Single equations (assignments): 48 * 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.002256/0.6959, allocations: 1.419 MB / 492.8 MB, free: 10.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.6981, allocations: 0.7681 MB / 493.6 MB, free: 10.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6981, allocations: 0 / 493.6 MB, free: 10.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005619/0.6987, allocations: 207 kB / 493.8 MB, free: 9.863 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009965/0.6997, allocations: 112.3 kB / 493.9 MB, free: 9.754 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.7041, allocations: 1.316 MB / 495.2 MB, free: 8.383 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007022/0.7048, allocations: 0.9378 MB / 496.1 MB, free: 7.418 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005838/0.7054, allocations: 251.3 kB / 496.4 MB, free: 7.172 MB / 426.7 MB Notification: Performance of SimCode: time 9.12e-07/0.7054, allocations: 0 / 496.4 MB, free: 7.172 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.606/3.312, allocations: 11.7 MB / 0.4962 GB, free: 11.46 MB / 442.7 MB