Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 116 kB / 17.03 MB, free: 6.055 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.00182/0.00182, allocations: 196.1 kB / 17.97 MB, free: 5.133 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.556/1.556, allocations: 205.1 MB / 223.8 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1859/0.1859, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001482/0.001482, allocations: 63.91 kB / 431.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1185, allocations: 55.24 MB / 487.1 MB, free: 8.48 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006948/0.1255, allocations: 5.637 MB / 492.7 MB, free: 2.809 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003839/0.1294, allocations: 2.657 MB / 495.4 MB, free: 144 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004038/0.1298, allocations: 23.88 kB / 495.4 MB, free: 120 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001133/0.131, allocations: 358.1 kB / 495.7 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009456/0.132, allocations: 469.7 kB / 496.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009561/0.1329, allocations: 455.1 kB / 496.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.134, allocations: 1.068 MB / 497.7 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000711/0.1347, allocations: 0.559 MB / 498.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004706/0.1352, allocations: 410.4 kB / 498.7 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004794/0.1357, allocations: 434.1 kB / 499.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.038e-05/0.1358, allocations: 72 kB / 499.2 MB, free: 12.33 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007209/0.1365, allocations: 0.5067 MB / 499.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.1367, allocations: 223.4 kB / 499.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003216/0.1371, allocations: 378.1 kB / 0.4885 GB, free: 11.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00102/0.1381, allocations: 1.079 MB / 0.4896 GB, free: 10.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1381, allocations: 0 / 0.4896 GB, free: 10.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1381, allocations: 0 / 0.4896 GB, free: 10.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1381, allocations: 4 kB / 0.4896 GB, free: 10.14 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002011/0.1401, allocations: 1.11 MB / 0.4907 GB, free: 8.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.1402, allocations: 11.89 kB / 0.4907 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001235/0.1414, allocations: 187.8 kB / 0.4909 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008983/0.1423, allocations: 0.5638 MB / 0.4914 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.402e-05/0.1424, allocations: 45.69 kB / 0.4914 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.1425, allocations: 56.38 kB / 0.4915 GB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1439, allocations: 0.7905 MB / 0.4923 GB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.264e-05/0.1439, allocations: 3.938 kB / 0.4923 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.638e-05/0.144, allocations: 23.94 kB / 0.4923 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.776e-05/0.144, allocations: 41.23 kB / 0.4923 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001445/0.1455, allocations: 0.735 MB / 0.4931 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003951/0.1495, allocations: 2.896 MB / 0.4959 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.1508, allocations: 0.5884 MB / 0.4965 GB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006796/0.1515, allocations: 354.8 kB / 0.4968 GB, free: 2.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.998e-05/0.1516, allocations: 16.53 kB / 0.4968 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008131/0.1524, allocations: 422.2 kB / 0.4972 GB, free: 2.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.334e-06/0.1524, allocations: 0 / 0.4972 GB, free: 2.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.004447/0.1569, allocations: 2.124 MB / 0.4993 GB, free: 15.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.157, allocations: 115.4 kB / 0.4994 GB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007734/0.1578, allocations: 486 kB / 0.4999 GB, free: 15.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.1578, allocations: 37.7 kB / 0.4999 GB, free: 15.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002717/0.1581, allocations: 312.5 kB / 0.5002 GB, free: 14.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.1583, allocations: 193.2 kB / 0.5004 GB, free: 14.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.1585, allocations: 110.2 kB / 0.5005 GB, free: 14.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1587, allocations: 370.8 kB / 0.5008 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006252/0.1593, allocations: 295.2 kB / 0.5011 GB, free: 13.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007089/0.16, allocations: 403 kB / 0.5015 GB, free: 13.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.1614, allocations: 0.7224 MB / 0.5022 GB, free: 12.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1615, allocations: 7.938 kB / 0.5022 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002334/0.1638, allocations: 1.013 MB / 0.5032 GB, free: 11.63 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.604e-05/0.1639, allocations: 33.7 kB / 0.5032 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1639, allocations: 4 kB / 0.5032 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006807/0.1646, allocations: 181.6 kB / 0.5034 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005054/0.1651, allocations: 123.8 kB / 0.5035 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004782/0.1699, allocations: 4.135 MB / 0.5076 GB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/0.1706, allocations: 56 kB / 0.5076 GB, free: 6.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.816e-05/0.1707, allocations: 23.98 kB / 0.5076 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008639/0.1716, allocations: 449.2 kB / 0.5081 GB, free: 6.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006289/0.1722, allocations: 394.9 kB / 0.5085 GB, free: 5.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001233/0.1735, allocations: 0.6951 MB / 0.5091 GB, free: 5.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.1735, allocations: 0 / 0.5091 GB, free: 5.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=74) (initialization_lambda0): time 0.001972/0.1754, allocations: 0.9307 MB / 0.51 GB, free: 4.227 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.1755, allocations: 33.7 kB / 0.5101 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1755, allocations: 4 kB / 0.5101 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005651/0.1761, allocations: 173.7 kB / 0.5102 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000484/0.1766, allocations: 111.9 kB / 0.5103 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003767/0.1803, allocations: 3.932 MB / 0.5142 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006239/0.181, allocations: 59.92 kB / 0.5142 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.181, allocations: 23.94 kB / 0.5143 GB, free: 15.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002385/0.1813, allocations: 220.1 kB / 0.5145 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.144e-05/0.1814, allocations: 63.34 kB / 0.5145 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001732/0.1831, allocations: 0.8149 MB / 0.5153 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.159e-05/0.1832, allocations: 8 kB / 0.5153 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.1832, allocations: 8 kB / 0.5154 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.1832, allocations: 7.922 kB / 0.5154 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.1859, allocations: 1.671 MB / 0.517 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1859, allocations: 4 kB / 0.517 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006162/0.1865, allocations: 128 kB / 0.5171 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002162/0.1868, allocations: 65.67 kB / 0.5172 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.242e-05/0.1868, allocations: 16 kB / 0.5172 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002061/0.1889, allocations: 2.898 MB / 0.52 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.1889, allocations: 3.938 kB / 0.52 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.1913, allocations: 1.303 MB / 0.5213 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002616/0.1916, allocations: 188.3 kB / 0.5215 GB, free: 7.766 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.337e-05/0.1916, allocations: 15.98 kB / 0.5215 GB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004796/0.1921, allocations: 55.94 kB / 0.5215 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.1923, allocations: 56.44 kB / 0.5216 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.122e-05/0.1923, allocations: 19.98 kB / 0.5216 GB, free: 7.621 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005572/0.1929, allocations: 342.8 kB / 0.5219 GB, free: 7.289 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1929, allocations: 0 / 0.5219 GB, free: 7.289 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001114/0.194, allocations: 267.9 kB / 0.5222 GB, free: 7.027 MB / 414.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001982/0.1942, allocations: 127.1 kB / 0.5223 GB, free: 6.891 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003231/0.1975, allocations: 1.742 MB / 0.524 GB, free: 5.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.1975, allocations: 0 / 0.524 GB, free: 5.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.1985, allocations: 0.6026 MB / 0.5246 GB, free: 4.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008013/0.1994, allocations: 142.4 kB / 0.5248 GB, free: 4.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002629/0.202, allocations: 1.52 MB / 0.5262 GB, free: 2.738 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005863/0.2026, allocations: 0.9431 MB / 0.5272 GB, free: 1.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004782/0.2031, allocations: 152.5 kB / 0.5273 GB, free: 1.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.2033, allocations: 51.42 kB / 0.5274 GB, free: 1.566 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2033, allocations: 0 / 0.5274 GB, free: 1.566 MB / 414.1 MB Notification: Performance of Templates: time 0.2693/0.4726, allocations: 10.08 MB / 0.5372 GB, free: 49.61 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)