Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadModel(PowerSystems): time 2.163/2.163, allocations: 233 MB / 245.6 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3.008e-05, allocations: 4 kB / 301.3 MB, free: 7.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09108/0.09113, allocations: 53.24 MB / 354.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3713/0.4624, allocations: 97.79 MB / 452.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.4628, allocations: 83.95 kB / 452.4 MB, free: 4.176 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09081/0.5536, allocations: 24.23 MB / 476.6 MB, free: 11.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.852e-06/0.5536, allocations: 4 kB / 476.6 MB, free: 11.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.044e-05/0.5537, allocations: 12 kB / 476.6 MB, free: 11.73 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: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.001917/0.5556, allocations: 0.8859 MB / 477.5 MB, free: 10.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.5557, allocations: 8.031 kB / 477.5 MB, free: 10.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/0.5575, allocations: 186.9 kB / 477.7 MB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.5586, allocations: 0.5062 MB / 478.2 MB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.812e-05/0.5587, allocations: 49.2 kB / 478.2 MB, free: 10 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.5589, allocations: 55.98 kB / 478.3 MB, free: 9.949 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.5604, allocations: 0.6841 MB / 479 MB, free: 9.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.397e-05/0.5605, allocations: 7.906 kB / 479 MB, free: 9.223 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.003e-05/0.5606, allocations: 20 kB / 479 MB, free: 9.203 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.5607, allocations: 37.3 kB / 479 MB, free: 9.168 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.5622, allocations: 0.596 MB / 479.6 MB, free: 8.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005515/0.5677, allocations: 2.72 MB / 482.4 MB, free: 5.738 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.5691, allocations: 486.2 kB / 482.8 MB, free: 5.246 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006838/0.5698, allocations: 310.9 kB / 483.1 MB, free: 4.938 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.315e-05/0.5698, allocations: 4.438 kB / 483.1 MB, free: 4.934 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007776/0.5706, allocations: 376.8 kB / 483.5 MB, free: 4.547 MB / 410.7 MB Notification: Performance of pre-optimization done (n=55): time 3.813e-06/0.5707, allocations: 0 / 483.5 MB, free: 4.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=57): time 0.003672/0.5743, allocations: 1.523 MB / 485 MB, free: 2.965 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.168e-05/0.5745, allocations: 111.4 kB / 485.1 MB, free: 2.832 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000638/0.5751, allocations: 371.1 kB / 485.5 MB, free: 2.473 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.314e-05/0.5752, allocations: 41.73 kB / 485.5 MB, free: 2.426 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.5755, allocations: 335.1 kB / 485.9 MB, free: 2.094 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.5757, allocations: 193.1 kB / 486.1 MB, free: 1.902 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.744e-05/0.5758, allocations: 11.94 kB / 486.1 MB, free: 1.891 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.576, allocations: 342.8 kB / 486.4 MB, free: 1.547 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.5766, allocations: 229.3 kB / 486.6 MB, free: 1.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006486/0.5772, allocations: 334.4 kB / 487 MB, free: 0.957 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006606/0.5779, allocations: 300.9 kB / 487.3 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.71e-06/0.5779, allocations: 0 / 487.3 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.002204/0.5801, allocations: 0.8259 MB / 488.1 MB, free: 15.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00053/0.5807, allocations: 0.9912 MB / 489.1 MB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.5807, allocations: 4 kB / 489.1 MB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007917/0.5815, allocations: 166.9 kB / 489.2 MB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007048/0.5822, allocations: 131.8 kB / 489.4 MB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.5848, allocations: 2.11 MB / 491.5 MB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007443/0.5856, allocations: 67.92 kB / 491.5 MB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.175e-05/0.5856, allocations: 16.12 kB / 491.6 MB, free: 12.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.5857, allocations: 8 kB / 491.6 MB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001943/0.5876, allocations: 0.7541 MB / 492.3 MB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.5877, allocations: 4.266 kB / 492.3 MB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005762/0.5883, allocations: 153.6 kB / 492.5 MB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000672/0.5889, allocations: 115.8 kB / 492.6 MB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003191/0.5922, allocations: 2.155 MB / 494.7 MB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.5927, allocations: 47.95 kB / 494.8 MB, free: 8.707 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.731e-05/0.5928, allocations: 16 kB / 494.8 MB, free: 8.691 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002384/0.5931, allocations: 148.8 kB / 494.9 MB, free: 8.539 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.5932, allocations: 59.39 kB / 495 MB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001835/0.5951, allocations: 0.713 MB / 495.7 MB, free: 7.746 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.5951, allocations: 7.953 kB / 495.7 MB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.881e-06/0.5951, allocations: 4 kB / 495.7 MB, free: 7.734 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.46e-05/0.5952, allocations: 11.95 kB / 495.7 MB, free: 7.723 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003285/0.5985, allocations: 1.55 MB / 497.3 MB, free: 6.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.778e-06/0.5985, allocations: 4 kB / 497.3 MB, free: 6.086 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008636/0.5994, allocations: 136 kB / 497.4 MB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000308/0.5997, allocations: 61.67 kB / 497.5 MB, free: 5.887 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.568e-05/0.5998, allocations: 16 kB / 497.5 MB, free: 5.871 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002741/0.6025, allocations: 2.682 MB / 0.4885 GB, free: 2.922 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.246e-06/0.6026, allocations: 11.91 kB / 0.4885 GB, free: 2.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.6051, allocations: 1.232 MB / 0.4897 GB, free: 1.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003847/0.6055, allocations: 180.4 kB / 0.4899 GB, free: 1.395 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.6056, allocations: 19.98 kB / 0.4899 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006536/0.6063, allocations: 67.94 kB / 0.4899 GB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.6065, allocations: 60.38 kB / 0.49 GB, free: 1.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-05/0.6065, allocations: 16 kB / 0.49 GB, free: 1.234 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005039/0.6071, allocations: 297.2 kB / 0.4903 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.68e-07/0.6071, allocations: 0 / 0.4903 GB, free: 0.9492 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001202/0.6083, allocations: 260 kB / 0.4905 GB, free: 0.6953 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002467/0.6085, allocations: 135.1 kB / 0.4907 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002883/0.6114, allocations: 1.369 MB / 0.492 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.076e-06/0.6115, allocations: 0 / 0.492 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.6125, allocations: 0.5249 MB / 0.4925 GB, free: 14.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007446/0.6133, allocations: 97.41 kB / 0.4926 GB, free: 14.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.6161, allocations: 1.179 MB / 0.4938 GB, free: 13.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007702/0.6169, allocations: 0.9504 MB / 0.4947 GB, free: 12.28 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.6172, allocations: 43.42 kB / 0.4947 GB, free: 12.23 MB / 442.7 MB Notification: Performance of SimCode: time 1.751e-06/0.6172, allocations: 0 / 0.4947 GB, free: 12.23 MB / 442.7 MB Notification: Performance of Templates: time 0.02111/0.6383, allocations: 12.52 MB / 0.507 GB, free: 15.71 MB / 458.7 MB