Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.363/2.363, allocations: 233 MB / 246.1 MB, free: 14.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.271e-05/3.28e-05, allocations: 0 / 302.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 53.23 MB / 355.5 MB, free: 2.039 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4588/0.5743, allocations: 95.82 MB / 451.3 MB, free: 5.859 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003586/0.5748, allocations: 91.92 kB / 451.4 MB, free: 5.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.089/0.6638, allocations: 18.44 MB / 469.9 MB, free: 3.199 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.6638, allocations: 0 / 469.9 MB, free: 3.199 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.251e-05/0.6639, allocations: 16 kB / 469.9 MB, free: 3.184 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.003407/0.6674, allocations: 0.8342 MB / 470.7 MB, free: 2.301 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.086e-05/0.6675, allocations: 8.031 kB / 470.7 MB, free: 2.293 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002771/0.6678, allocations: 86.52 kB / 470.8 MB, free: 2.199 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002503/0.6703, allocations: 159 kB / 471 MB, free: 2.043 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.6721, allocations: 488.6 kB / 471.4 MB, free: 1.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.946e-05/0.6722, allocations: 33 kB / 471.5 MB, free: 1.488 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002169/0.6725, allocations: 55.94 kB / 471.5 MB, free: 1.434 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/0.6748, allocations: 0.5715 MB / 472.1 MB, free: 0.832 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.757e-05/0.6749, allocations: 7.984 kB / 472.1 MB, free: 0.8242 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001201/0.675, allocations: 20 kB / 472.1 MB, free: 0.8047 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-05/0.6751, allocations: 21 kB / 472.2 MB, free: 0.7852 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002144/0.6773, allocations: 489.8 kB / 472.6 MB, free: 312 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009047/0.6864, allocations: 2.517 MB / 475.2 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.6887, allocations: 0.5182 MB / 475.7 MB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.6894, allocations: 154.3 kB / 475.8 MB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.931e-05/0.6895, allocations: 4 kB / 475.8 MB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009071/0.6905, allocations: 252.3 kB / 476.1 MB, free: 12.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 4.849e-06/0.6905, allocations: 0 / 476.1 MB, free: 12.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.00191/0.6924, allocations: 397.3 kB / 476.5 MB, free: 12.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.6926, allocations: 132.5 kB / 476.6 MB, free: 12.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001131/0.6937, allocations: 391.1 kB / 477 MB, free: 11.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.6939, allocations: 33.7 kB / 477 MB, free: 11.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004371/0.6943, allocations: 284.2 kB / 477.3 MB, free: 11.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002631/0.6946, allocations: 138.4 kB / 477.4 MB, free: 11.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.303e-05/0.6947, allocations: 12 kB / 477.4 MB, free: 11.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002451/0.695, allocations: 358.8 kB / 477.8 MB, free: 10.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006878/0.6957, allocations: 145 kB / 477.9 MB, free: 10.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008169/0.6965, allocations: 244.4 kB / 478.2 MB, free: 10.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008163/0.6974, allocations: 193.6 kB / 478.3 MB, free: 10.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.6974, allocations: 0 / 478.3 MB, free: 10.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.003154/0.7006, allocations: 0.6125 MB / 479 MB, free: 9.652 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007148/0.7013, allocations: 1.167 MB / 480.1 MB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/0.7014, allocations: 4 kB / 480.1 MB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.7025, allocations: 136.7 kB / 480.3 MB, free: 8.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.7036, allocations: 91.89 kB / 480.4 MB, free: 8.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.7051, allocations: 0.7357 MB / 481.1 MB, free: 7.398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.7065, allocations: 91.53 kB / 481.2 MB, free: 7.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-05/0.7066, allocations: 16 kB / 481.2 MB, free: 7.293 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.7066, allocations: 4 kB / 481.2 MB, free: 7.289 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002414/0.7091, allocations: 0.5099 MB / 481.7 MB, free: 6.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.7091, allocations: 0 / 481.7 MB, free: 6.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008905/0.71, allocations: 116.8 kB / 481.8 MB, free: 6.652 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.711, allocations: 92.08 kB / 481.9 MB, free: 6.562 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005063/0.7161, allocations: 2.156 MB / 484.1 MB, free: 4.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.7175, allocations: 71.55 kB / 484.1 MB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.022e-05/0.7177, allocations: 20.06 kB / 484.2 MB, free: 4.184 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.0003025/0.718, allocations: 130.2 kB / 484.3 MB, free: 4.051 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.7182, allocations: 51.44 kB / 484.3 MB, free: 4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.7202, allocations: 432.2 kB / 484.8 MB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.7202, allocations: 4 kB / 484.8 MB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.7202, allocations: 0 / 484.8 MB, free: 3.566 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/0.7203, allocations: 7.984 kB / 484.8 MB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003453/0.7237, allocations: 1.03 MB / 485.8 MB, free: 2.469 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.7238, allocations: 3.984 kB / 485.8 MB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001294/0.7251, allocations: 87.89 kB / 485.9 MB, free: 2.379 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002409/0.7254, allocations: 32.84 kB / 485.9 MB, free: 2.344 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.145e-05/0.7255, allocations: 11.98 kB / 485.9 MB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001873/0.7273, allocations: 1.347 MB / 487.3 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.7274, allocations: 0 / 487.3 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.7298, allocations: 0.7236 MB / 488 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004617/0.7303, allocations: 164.4 kB / 488.2 MB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.7305, allocations: 12 kB / 488.2 MB, free: 15.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007812/0.7313, allocations: 51.95 kB / 488.2 MB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.7314, allocations: 31.94 kB / 488.3 MB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.391e-05/0.7315, allocations: 12 kB / 488.3 MB, free: 15.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005838/0.7321, allocations: 305.2 kB / 488.6 MB, free: 15.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7321, allocations: 4 kB / 488.6 MB, free: 15.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001187/0.7333, allocations: 247.5 kB / 488.8 MB, free: 15.26 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.002127/0.7354, allocations: 1.434 MB / 490.2 MB, free: 13.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.7376, allocations: 0.8088 MB / 491.1 MB, free: 12.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.7376, allocations: 0 / 491.1 MB, free: 12.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006435/0.7382, allocations: 294.6 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.000845/0.7391, allocations: 92.72 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.002963/0.7421, allocations: 1 MB / 492.4 MB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006164/0.7427, allocations: 0.899 MB / 493.3 MB, free: 10.58 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0008049/0.7435, allocations: 138 kB / 493.5 MB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003914/0.7439, allocations: 187.4 kB / 493.6 MB, free: 10.26 MB / 426.7 MB Notification: Performance of SimCode: time 9.42e-07/0.744, allocations: 4 kB / 493.7 MB, free: 10.26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04476/0.7887, allocations: 12.12 MB / 0.4939 GB, free: 14.21 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003749/0.7892, allocations: 194.5 kB / 0.4941 GB, free: 13.98 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.895/3.685, allocations: 0 / 0.4941 GB, free: 13.98 MB / 442.7 MB