Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.331/2.331, allocations: 233 MB / 246.1 MB, free: 14.82 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.33e-05, allocations: 4 kB / 302.3 MB, free: 7.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1116, allocations: 53.24 MB / 355.5 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4557/0.5674, allocations: 95.82 MB / 451.4 MB, free: 5.848 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.5677, allocations: 83.95 kB / 451.4 MB, free: 5.766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0767/0.6445, allocations: 18.43 MB / 469.9 MB, free: 3.203 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.6445, allocations: 0 / 469.9 MB, free: 3.203 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.691e-05/0.6446, allocations: 16 kB / 469.9 MB, free: 3.188 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002177/0.6468, allocations: 0.8343 MB / 470.7 MB, free: 2.305 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.6468, allocations: 12.03 kB / 470.7 MB, free: 2.293 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001928/0.647, allocations: 94.45 kB / 470.8 MB, free: 2.191 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/0.6485, allocations: 155 kB / 471 MB, free: 2.039 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/0.6497, allocations: 480.6 kB / 471.4 MB, free: 1.523 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.224e-05/0.6497, allocations: 33 kB / 471.5 MB, free: 1.492 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.6499, allocations: 55.94 kB / 471.5 MB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.6515, allocations: 0.5715 MB / 472.1 MB, free: 0.8359 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/0.6515, allocations: 4 kB / 472.1 MB, free: 0.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.643e-05/0.6516, allocations: 20 kB / 472.1 MB, free: 0.8125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.173e-05/0.6517, allocations: 24.98 kB / 472.1 MB, free: 0.7891 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001392/0.6531, allocations: 485.8 kB / 472.6 MB, free: 320 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005754/0.6589, allocations: 2.529 MB / 475.1 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.6604, allocations: 0.5065 MB / 475.7 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/0.6609, allocations: 166.2 kB / 475.8 MB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.661, allocations: 7.984 kB / 475.8 MB, free: 12.94 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005925/0.6616, allocations: 248.3 kB / 476.1 MB, free: 12.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 2.926e-06/0.6616, allocations: 4 kB / 476.1 MB, free: 12.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.001231/0.6628, allocations: 389.3 kB / 476.5 MB, free: 12.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.13e-05/0.6629, allocations: 140.5 kB / 476.6 MB, free: 12.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007526/0.6637, allocations: 391.2 kB / 477 MB, free: 11.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/0.6638, allocations: 33.7 kB / 477 MB, free: 11.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.6641, allocations: 288.2 kB / 477.3 MB, free: 11.39 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.6643, allocations: 138.4 kB / 477.4 MB, free: 11.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/0.6643, allocations: 4 kB / 477.4 MB, free: 11.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001859/0.6645, allocations: 366.7 kB / 477.8 MB, free: 10.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004158/0.665, allocations: 133.1 kB / 477.9 MB, free: 10.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005177/0.6655, allocations: 244.4 kB / 478.2 MB, free: 10.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004931/0.666, allocations: 193.6 kB / 478.3 MB, free: 10.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.666, allocations: 0 / 478.3 MB, free: 10.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001958/0.668, allocations: 0.6164 MB / 479 MB, free: 9.648 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005247/0.6685, allocations: 1.163 MB / 480.1 MB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.6686, allocations: 4 kB / 480.1 MB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006961/0.6693, allocations: 136.7 kB / 480.3 MB, free: 8.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007119/0.67, allocations: 91.88 kB / 480.3 MB, free: 8.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009862/0.671, allocations: 0.7397 MB / 481.1 MB, free: 7.395 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008578/0.6719, allocations: 79.48 kB / 481.2 MB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.672, allocations: 19.94 kB / 481.2 MB, free: 7.297 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.672, allocations: 4 kB / 481.2 MB, free: 7.293 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001542/0.6735, allocations: 0.5097 MB / 481.7 MB, free: 6.773 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.6736, allocations: 7.984 kB / 481.7 MB, free: 6.766 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000549/0.6741, allocations: 121.2 kB / 481.8 MB, free: 6.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006831/0.6748, allocations: 87.88 kB / 481.9 MB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/0.6783, allocations: 2.153 MB / 484.1 MB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008847/0.6792, allocations: 75.61 kB / 484.1 MB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.636e-05/0.6793, allocations: 20 kB / 484.2 MB, free: 4.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002148/0.6795, allocations: 132.1 kB / 484.3 MB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.6796, allocations: 51.42 kB / 484.3 MB, free: 3.996 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.6808, allocations: 432.2 kB / 484.8 MB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.465e-06/0.6809, allocations: 4 kB / 484.8 MB, free: 3.562 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.6809, allocations: 4 kB / 484.8 MB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.6809, allocations: 7.922 kB / 484.8 MB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/0.6832, allocations: 1.026 MB / 485.8 MB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.6833, allocations: 0 / 485.8 MB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008961/0.6842, allocations: 99.88 kB / 485.9 MB, free: 2.367 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.6843, allocations: 24.84 kB / 485.9 MB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.6844, allocations: 8 kB / 485.9 MB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.6857, allocations: 1.359 MB / 487.3 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6858, allocations: 0 / 487.3 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.6875, allocations: 0.7237 MB / 488 MB, free: 80 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003352/0.6878, allocations: 164.5 kB / 488.2 MB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.6879, allocations: 11.98 kB / 488.2 MB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000742/0.6887, allocations: 51.94 kB / 488.2 MB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.6889, allocations: 39.95 kB / 488.3 MB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.6889, allocations: 11.98 kB / 488.3 MB, free: 15.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005746/0.6895, allocations: 301.2 kB / 488.6 MB, free: 15.49 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6895, allocations: 0 / 488.6 MB, free: 15.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00121/0.6907, allocations: 247.4 kB / 488.8 MB, free: 15.25 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002252/0.693, allocations: 1.423 MB / 490.2 MB, free: 13.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.6952, allocations: 0.8127 MB / 491.1 MB, free: 12.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6952, allocations: 0 / 491.1 MB, free: 12.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006702/0.6959, allocations: 290.2 kB / 491.3 MB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/0.6968, allocations: 90.08 kB / 491.4 MB, free: 12.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.6999, allocations: 1.003 MB / 492.4 MB, free: 11.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006186/0.7005, allocations: 0.9029 MB / 493.3 MB, free: 10.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008142/0.7013, allocations: 138 kB / 493.5 MB, free: 10.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.7018, allocations: 187.4 kB / 493.6 MB, free: 10.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7018, allocations: 0 / 493.6 MB, free: 10.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0452/0.747, allocations: 12.13 MB / 0.4939 GB, free: 14.21 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000327/0.7474, allocations: 190.9 kB / 0.4941 GB, free: 13.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.199/3.946, allocations: 0 / 0.4941 GB, free: 13.98 MB / 442.7 MB