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.305/2.305, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.296e-05/3.324e-05, allocations: 7.984 kB / 304.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3405, allocations: 53.21 MB / 357.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.008648/0.3492, allocations: 5.091 MB / 362.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005732/0.355, allocations: 2.333 MB / 365 MB, free: 8.043 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008247/0.3559, allocations: 43.81 kB / 365 MB, free: 8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000548/0.3565, allocations: 107.2 kB / 365.1 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.3581, allocations: 354.8 kB / 365.5 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001455/0.3595, allocations: 319.3 kB / 365.8 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001207/0.3608, allocations: 436 kB / 366.2 MB, free: 6.809 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001386/0.3622, allocations: 0.549 MB / 366.8 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007014/0.3629, allocations: 251.2 kB / 367 MB, free: 5.988 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005488/0.3635, allocations: 259.1 kB / 367.3 MB, free: 5.734 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008228/0.3643, allocations: 239.5 kB / 367.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001647/0.3645, allocations: 24 kB / 367.5 MB, free: 5.477 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.3648, allocations: 151.5 kB / 367.7 MB, free: 5.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001989/0.365, allocations: 48 kB / 367.7 MB, free: 5.281 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00145/0.3665, allocations: 0.7637 MB / 368.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3665, allocations: 0 / 368.5 MB, free: 4.516 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3665, allocations: 3.938 kB / 368.5 MB, free: 4.512 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.09e-05/0.3665, allocations: 0 / 368.5 MB, free: 4.512 MB / 298.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.002384/0.3689, allocations: 0.8611 MB / 369.4 MB, free: 3.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.369, allocations: 8.031 kB / 369.4 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00204/0.3711, allocations: 202.8 kB / 369.6 MB, free: 3.383 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.3727, allocations: 0.5122 MB / 370.1 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.852e-05/0.3728, allocations: 41.31 kB / 370.1 MB, free: 2.793 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.373, allocations: 59.98 kB / 370.2 MB, free: 2.734 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.3753, allocations: 0.7568 MB / 370.9 MB, free: 1.945 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.415e-05/0.3754, allocations: 11.84 kB / 370.9 MB, free: 1.934 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.935e-05/0.3755, allocations: 27.98 kB / 371 MB, free: 1.906 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.732e-05/0.3756, allocations: 37.3 kB / 371 MB, free: 1.867 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002564/0.3781, allocations: 0.7389 MB / 371.7 MB, free: 1.129 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006861/0.385, allocations: 2.696 MB / 374.4 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002345/0.3874, allocations: 0.6104 MB / 375.1 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.598e-05/0.3875, allocations: 12.42 kB / 375.1 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001329/0.3889, allocations: 437.9 kB / 375.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 4.148e-06/0.3889, allocations: 4 kB / 375.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.007554/0.3965, allocations: 2.156 MB / 377.7 MB, free: 11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.3966, allocations: 119.4 kB / 377.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.3978, allocations: 416.9 kB / 378.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001431/0.398, allocations: 33.7 kB / 378.2 MB, free: 10.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003191/0.3983, allocations: 327.2 kB / 378.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002936/0.3986, allocations: 197.1 kB / 378.7 MB, free: 9.883 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.785e-05/0.3987, allocations: 8 kB / 378.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.3989, allocations: 334.8 kB / 379.1 MB, free: 9.539 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.4, allocations: 297 kB / 379.3 MB, free: 9.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001178/0.4012, allocations: 395.9 kB / 379.7 MB, free: 8.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/0.4024, allocations: 363.8 kB / 380.1 MB, free: 8.465 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.4025, allocations: 0 / 380.1 MB, free: 8.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003574/0.4061, allocations: 0.9704 MB / 381.1 MB, free: 7.473 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005124/0.4066, allocations: 0.9042 MB / 382 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.242e-05/0.4066, allocations: 0 / 382 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.4078, allocations: 209.6 kB / 382.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009921/0.4089, allocations: 111.8 kB / 382.3 MB, free: 6.176 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.412, allocations: 2.164 MB / 384.4 MB, free: 3.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.4132, allocations: 87.97 kB / 384.5 MB, free: 3.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.739e-05/0.4133, allocations: 23.94 kB / 384.5 MB, free: 3.742 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.4134, allocations: 4 kB / 384.6 MB, free: 3.738 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003031/0.4164, allocations: 0.8557 MB / 385.4 MB, free: 2.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.4165, allocations: 3.938 kB / 385.4 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007142/0.4172, allocations: 145.6 kB / 385.6 MB, free: 2.719 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009547/0.4181, allocations: 120 kB / 385.7 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003735/0.4219, allocations: 2.194 MB / 387.9 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007858/0.4227, allocations: 47.95 kB / 387.9 MB, free: 232 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.521e-05/0.4228, allocations: 20 kB / 387.9 MB, free: 212 kB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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.0005776/0.4234, allocations: 233.7 kB / 388.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.4236, allocations: 51.34 kB / 388.2 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00298/0.4266, allocations: 0.8381 MB / 389 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/0.4267, allocations: 4 kB / 389.1 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4267, allocations: 4 kB / 389.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.4267, allocations: 3.984 kB / 389.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004701/0.4314, allocations: 1.679 MB / 390.7 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4315, allocations: 4.031 kB / 390.7 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.4327, allocations: 135.8 kB / 390.9 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003704/0.4331, allocations: 69.61 kB / 390.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.71e-05/0.4331, allocations: 12 kB / 391 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003051/0.4362, allocations: 2.713 MB / 393.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/0.4363, allocations: 7.969 kB / 393.7 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004267/0.4405, allocations: 1.399 MB / 395.1 MB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004427/0.441, allocations: 188.3 kB / 395.3 MB, free: 8.383 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001455/0.4412, allocations: 19.94 kB / 395.3 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008862/0.4421, allocations: 64.31 kB / 395.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.4423, allocations: 56.42 kB / 395.4 MB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/0.4424, allocations: 16 kB / 395.4 MB, free: 8.23 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008135/0.4432, allocations: 323.1 kB / 395.7 MB, free: 7.918 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4432, allocations: 0 / 395.7 MB, free: 7.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001252/0.4445, allocations: 236 kB / 396 MB, free: 7.688 MB / 330.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.0002337/0.4448, allocations: 123.5 kB / 396.1 MB, free: 7.559 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004741/0.4495, allocations: 1.567 MB / 397.6 MB, free: 5.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.4496, allocations: 0 / 397.6 MB, free: 5.922 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.4514, allocations: 0.6103 MB / 398.3 MB, free: 5.285 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000935/0.4523, allocations: 98.44 kB / 398.4 MB, free: 5.191 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004251/0.4566, allocations: 1.782 MB / 400.1 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000772/0.4574, allocations: 0.9426 MB / 401.1 MB, free: 2.387 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.4578, allocations: 47.42 kB / 401.1 MB, free: 2.344 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4578, allocations: 0 / 401.1 MB, free: 2.344 MB / 330.7 MB Notification: Performance of Templates: time 0.02609/0.4839, allocations: 12.55 MB / 413.7 MB, free: 5.793 MB / 346.7 MB