Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(PowerSystems): time 2.27/2.27, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.34e-05/3.352e-05, allocations: 4 kB / 301.4 MB, free: 7.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 53.24 MB / 354.6 MB, free: 2.516 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4452/0.5516, allocations: 95.82 MB / 450.4 MB, free: 6.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/0.552, allocations: 83.95 kB / 450.5 MB, free: 5.969 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07635/0.6283, allocations: 18.43 MB / 468.9 MB, free: 3.406 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.6284, allocations: 0 / 468.9 MB, free: 3.406 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.79e-05/0.6284, allocations: 16 kB / 468.9 MB, free: 3.391 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.002203/0.6307, allocations: 0.8342 MB / 469.8 MB, free: 2.508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.6307, allocations: 12.03 kB / 469.8 MB, free: 2.496 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.6309, allocations: 86.52 kB / 469.9 MB, free: 2.402 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001484/0.6324, allocations: 163 kB / 470 MB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.6336, allocations: 488.6 kB / 470.5 MB, free: 1.719 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.518e-05/0.6337, allocations: 33 kB / 470.5 MB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.6338, allocations: 51.95 kB / 470.6 MB, free: 1.637 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.6353, allocations: 0.5754 MB / 471.2 MB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.6354, allocations: 0 / 471.2 MB, free: 1.031 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.619e-05/0.6355, allocations: 24 kB / 471.2 MB, free: 1.008 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.193e-05/0.6355, allocations: 24.98 kB / 471.2 MB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.6369, allocations: 485.8 kB / 471.7 MB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005775/0.6427, allocations: 2.517 MB / 474.2 MB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.6442, allocations: 0.5143 MB / 474.7 MB, free: 13.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004901/0.6448, allocations: 162.3 kB / 474.9 MB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.143e-05/0.6448, allocations: 4 kB / 474.9 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006237/0.6455, allocations: 252.3 kB / 475.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 2.806e-06/0.6455, allocations: 0 / 475.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.001287/0.6468, allocations: 393.3 kB / 475.5 MB, free: 12.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.6469, allocations: 132.5 kB / 475.6 MB, free: 12.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007735/0.6477, allocations: 391.1 kB / 476 MB, free: 11.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000118/0.6478, allocations: 37.7 kB / 476.1 MB, free: 11.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002975/0.6482, allocations: 322.7 kB / 476.4 MB, free: 11.57 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.6484, allocations: 134.4 kB / 476.5 MB, free: 11.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/0.6484, allocations: 8 kB / 476.5 MB, free: 11.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.6486, allocations: 330.8 kB / 476.8 MB, free: 11.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004347/0.649, allocations: 141 kB / 477 MB, free: 10.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005369/0.6496, allocations: 244.4 kB / 477.2 MB, free: 10.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005157/0.6501, allocations: 197.5 kB / 477.4 MB, free: 10.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.6501, allocations: 0 / 477.4 MB, free: 10.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001944/0.6521, allocations: 0.5777 MB / 478 MB, free: 9.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005319/0.6526, allocations: 1.17 MB / 479.2 MB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.6527, allocations: 0 / 479.2 MB, free: 8.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006979/0.6534, allocations: 136.8 kB / 479.3 MB, free: 8.484 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007377/0.6541, allocations: 91.88 kB / 479.4 MB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.6551, allocations: 0.7358 MB / 480.1 MB, free: 7.633 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008961/0.6561, allocations: 87.55 kB / 480.2 MB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.572e-05/0.6561, allocations: 16 kB / 480.2 MB, free: 7.531 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.6562, allocations: 4 kB / 480.2 MB, free: 7.527 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001552/0.6577, allocations: 0.5098 MB / 480.7 MB, free: 7.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.6577, allocations: 11.94 kB / 480.7 MB, free: 6.996 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004918/0.6582, allocations: 112.8 kB / 480.8 MB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007235/0.659, allocations: 88.11 kB / 480.9 MB, free: 6.797 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003317/0.6623, allocations: 2.121 MB / 483.1 MB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006376/0.663, allocations: 59.56 kB / 483.1 MB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.6631, allocations: 16 kB / 483.1 MB, free: 4.473 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.0002083/0.6633, allocations: 129.7 kB / 483.3 MB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.6635, allocations: 47.44 kB / 483.3 MB, free: 4.293 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.6647, allocations: 432.3 kB / 483.7 MB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.6647, allocations: 4 kB / 483.7 MB, free: 3.855 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.6648, allocations: 0 / 483.7 MB, free: 3.855 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.6648, allocations: 7.984 kB / 483.7 MB, free: 3.848 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.6671, allocations: 1.041 MB / 484.8 MB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.6671, allocations: 0 / 484.8 MB, free: 2.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008677/0.668, allocations: 87.89 kB / 484.9 MB, free: 2.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.6681, allocations: 28.84 kB / 484.9 MB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.404e-05/0.6682, allocations: 15.98 kB / 484.9 MB, free: 2.613 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.6695, allocations: 1.347 MB / 486.3 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.6695, allocations: 3.984 kB / 486.3 MB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.6712, allocations: 0.7275 MB / 487 MB, free: 368 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002971/0.6715, allocations: 160.5 kB / 487.1 MB, free: 188 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.6717, allocations: 8 kB / 487.2 MB, free: 180 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007417/0.6724, allocations: 47.95 kB / 487.2 MB, free: 132 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000143/0.6726, allocations: 39.94 kB / 487.2 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.6726, allocations: 8 kB / 487.2 MB, free: 84 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005931/0.6732, allocations: 309.2 kB / 487.5 MB, free: 15.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6732, allocations: 0 / 487.5 MB, free: 15.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001142/0.6744, allocations: 247.3 kB / 487.8 MB, free: 15.54 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.00212/0.6765, allocations: 1.42 MB / 489.2 MB, free: 14.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.6786, allocations: 0.7971 MB / 490 MB, free: 13.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.6787, allocations: 1.594 kB / 490 MB, free: 13.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006397/0.6793, allocations: 290.2 kB / 490.3 MB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008771/0.6802, allocations: 100.8 kB / 490.4 MB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.6833, allocations: 1.039 MB / 491.4 MB, free: 11.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005955/0.6839, allocations: 0.8982 MB / 492.3 MB, free: 10.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004665/0.6844, allocations: 195.4 kB / 492.5 MB, free: 10.65 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6844, allocations: 0 / 492.5 MB, free: 10.65 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.689/3.374, allocations: 11.02 MB / 0.4917 GB, free: 15.63 MB / 442.7 MB