Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007807/0.0007807, allocations: 89.3 kB / 16.31 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008465/0.0008465, allocations: 181.4 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.4 MB / 223.4 MB, free: 5.543 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3053/0.3053, allocations: 38.05 MB / 309.7 MB, free: 8.883 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004956/0.0004956, allocations: 16 kB / 376.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09875/0.09926, allocations: 56.33 MB / 432.8 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.005566/0.1049, allocations: 4.88 MB / 437.7 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003481/0.1084, allocations: 2.18 MB / 439.9 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006376/0.1091, allocations: 31.81 kB / 439.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000485/0.1096, allocations: 99.2 kB / 440 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008557/0.1104, allocations: 278.4 kB / 440.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009326/0.1114, allocations: 303.4 kB / 440.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.1125, allocations: 0.8813 MB / 441.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009829/0.1135, allocations: 0.5429 MB / 442 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005652/0.1141, allocations: 274.7 kB / 442.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004112/0.1145, allocations: 294.7 kB / 442.6 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.713e-05/0.1146, allocations: 24 kB / 442.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003921/0.1149, allocations: 155.6 kB / 442.8 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.1151, allocations: 139.5 kB / 442.9 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1152, allocations: 137.3 kB / 443 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006119/0.1159, allocations: 0.6702 MB / 443.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1159, allocations: 0 / 443.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1159, allocations: 0 / 443.7 MB, free: 11.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1159, allocations: 0 / 443.7 MB, free: 11.77 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001624/0.1175, allocations: 0.9332 MB / 444.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.1176, allocations: 8.031 kB / 444.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007657/0.1183, allocations: 151 kB / 444.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007566/0.1191, allocations: 0.5005 MB / 445.3 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.353e-05/0.1192, allocations: 37 kB / 445.3 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.525e-05/0.1192, allocations: 55.91 kB / 445.4 MB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.1204, allocations: 0.6903 MB / 446.1 MB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.1204, allocations: 4 kB / 446.1 MB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.1204, allocations: 19.95 kB / 446.1 MB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.843e-05/0.1205, allocations: 32.98 kB / 446.1 MB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.1216, allocations: 0.6284 MB / 446.7 MB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00316/0.1248, allocations: 2.696 MB / 449.4 MB, free: 5.738 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.126, allocations: 0.6435 MB / 450.1 MB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004535/0.1265, allocations: 230.2 kB / 450.3 MB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.1266, allocations: 4.328 kB / 450.3 MB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005732/0.1271, allocations: 317.8 kB / 450.6 MB, free: 4.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.394e-06/0.1271, allocations: 0 / 450.6 MB, free: 4.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.001771/0.1289, allocations: 0.807 MB / 451.4 MB, free: 3.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.129, allocations: 132.5 kB / 451.6 MB, free: 3.496 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000659/0.1297, allocations: 0.4904 MB / 452.1 MB, free: 2.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.61e-05/0.1297, allocations: 41.73 kB / 452.1 MB, free: 2.945 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002421/0.13, allocations: 307.9 kB / 452.4 MB, free: 2.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.1301, allocations: 142 kB / 452.5 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.1302, allocations: 8 kB / 452.5 MB, free: 2.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1303, allocations: 362.8 kB / 452.9 MB, free: 2.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004459/0.1308, allocations: 205 kB / 453.1 MB, free: 1.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005445/0.1313, allocations: 323.2 kB / 453.4 MB, free: 1.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004807/0.1318, allocations: 261.5 kB / 453.7 MB, free: 1.309 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1318, allocations: 4 kB / 453.7 MB, free: 1.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001588/0.1334, allocations: 0.8308 MB / 454.5 MB, free: 468 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.1336, allocations: 203 kB / 454.7 MB, free: 208 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.1336, allocations: 11.98 kB / 454.7 MB, free: 196 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005103/0.1342, allocations: 156.8 kB / 454.9 MB, free: 36 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1719/0.3061, allocations: 100.4 kB / 455 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00245/0.3086, allocations: 2.463 MB / 457.4 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004575/0.3091, allocations: 89.98 kB / 457.5 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.3091, allocations: 19.16 kB / 457.5 MB, free: 49.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.3091, allocations: 7.25 kB / 457.5 MB, free: 49.57 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001081/0.3102, allocations: 0.6402 MB / 458.2 MB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3102, allocations: 3.281 kB / 458.2 MB, free: 49.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000299/0.3105, allocations: 125.5 kB / 458.3 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.3109, allocations: 100.9 kB / 458.4 MB, free: 49.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/0.3126, allocations: 2.233 MB / 460.6 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004057/0.313, allocations: 86.53 kB / 460.7 MB, free: 48.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.136e-05/0.313, allocations: 18.41 kB / 460.7 MB, free: 48.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002938/0.3133, allocations: 295.6 kB / 461 MB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.3134, allocations: 55.28 kB / 461.1 MB, free: 47.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001049/0.3145, allocations: 0.542 MB / 461.6 MB, free: 47.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3145, allocations: 6.625 kB / 461.6 MB, free: 47.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3145, allocations: 0 / 461.6 MB, free: 47.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3145, allocations: 0 / 461.6 MB, free: 47.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.3161, allocations: 1.206 MB / 462.8 MB, free: 47.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.3161, allocations: 0 / 462.8 MB, free: 47.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004107/0.3165, allocations: 105.3 kB / 462.9 MB, free: 47.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.643e-05/0.3166, allocations: 30.56 kB / 463 MB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/0.3166, allocations: 9.344 kB / 463 MB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006524/0.3173, allocations: 1.357 MB / 464.3 MB, free: 46.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3173, allocations: 0 / 464.3 MB, free: 46.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.3187, allocations: 0.8951 MB / 465.2 MB, free: 46.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.3189, allocations: 178.2 kB / 465.4 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.073e-05/0.3189, allocations: 11.03 kB / 465.4 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003463/0.3193, allocations: 51.5 kB / 465.5 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.385e-05/0.3194, allocations: 32.28 kB / 465.5 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.3194, allocations: 17.34 kB / 465.5 MB, free: 45.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004208/0.3199, allocations: 357.6 kB / 465.9 MB, free: 45.86 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3199, allocations: 0 / 465.9 MB, free: 45.86 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008423/0.3207, allocations: 247.6 kB / 466.1 MB, free: 45.82 MB / 382.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * 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.0001202/0.3208, allocations: 111.9 kB / 466.2 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.3225, allocations: 1.161 MB / 467.4 MB, free: 45.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.3225, allocations: 4.062 kB / 467.4 MB, free: 45.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.323, allocations: 358.4 kB / 467.7 MB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.3236, allocations: 120.2 kB / 467.8 MB, free: 44.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001805/0.3254, allocations: 1.469 MB / 469.3 MB, free: 44.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.3257, allocations: 0.8951 MB / 470.2 MB, free: 43.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000331/0.3261, allocations: 110 kB / 470.3 MB, free: 43.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3262, allocations: 37.81 kB / 470.4 MB, free: 43.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3262, allocations: 0 / 470.4 MB, free: 43.32 MB / 382.1 MB Notification: Performance of Templates: time 0.01044/0.3367, allocations: 7.39 MB / 477.7 MB, free: 42.74 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) Environment - environmentSimulation: