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.001232/0.001232, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001331/0.001332, allocations: 200 kB / 18.01 MB, free: 5.055 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.5/1.5, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1917/0.1917, allocations: 37.99 MB / 309.2 MB, free: 5.93 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.001615/0.001616, allocations: 67.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.149, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.007887/0.157, allocations: 5.153 MB / 492.3 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004099/0.1611, allocations: 2.191 MB / 494.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005269/0.1616, allocations: 23.88 kB / 494.5 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0011/0.1628, allocations: 254.5 kB / 494.7 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008439/0.1637, allocations: 338.1 kB / 495 MB, free: 352 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009465/0.1646, allocations: 403.3 kB / 495.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001029/0.1657, allocations: 0.9125 MB / 496.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007723/0.1665, allocations: 0.5044 MB / 496.9 MB, free: 14.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004863/0.167, allocations: 362.6 kB / 497.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004738/0.1674, allocations: 354.4 kB / 497.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.306e-05/0.1675, allocations: 72 kB / 497.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005815/0.1681, allocations: 347.2 kB / 498 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.1683, allocations: 187.5 kB / 498.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003598/0.1687, allocations: 338.2 kB / 498.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.1698, allocations: 0.9228 MB / 499.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.83e-06/0.1698, allocations: 0 / 499.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1699, allocations: 4 kB / 499.4 MB, free: 11.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1699, allocations: 0 / 499.4 MB, free: 11.97 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.002459/0.1723, allocations: 1.031 MB / 0.4887 GB, free: 10.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.1724, allocations: 15.89 kB / 0.4887 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008949/0.1733, allocations: 140 kB / 0.4889 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00103/0.1743, allocations: 0.5404 MB / 0.4894 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.505e-05/0.1744, allocations: 41.38 kB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.1745, allocations: 60.23 kB / 0.4895 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001387/0.1759, allocations: 0.6749 MB / 0.4901 GB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/0.176, allocations: 3.906 kB / 0.4901 GB, free: 9.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.176, allocations: 24 kB / 0.4902 GB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.349e-05/0.1761, allocations: 32.98 kB / 0.4902 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.1774, allocations: 0.5971 MB / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003951/0.1814, allocations: 2.681 MB / 0.4934 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001449/0.1829, allocations: 0.6044 MB / 0.494 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005629/0.1834, allocations: 210.2 kB / 0.4942 GB, free: 5.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.051e-05/0.1835, allocations: 8.312 kB / 0.4942 GB, free: 5.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007067/0.1842, allocations: 313.6 kB / 0.4945 GB, free: 4.676 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.374e-06/0.1842, allocations: 0 / 0.4945 GB, free: 4.676 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.002189/0.1864, allocations: 0.7485 MB / 0.4952 GB, free: 3.898 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001457/0.1866, allocations: 136.5 kB / 0.4954 GB, free: 3.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000916/0.1875, allocations: 0.4983 MB / 0.4958 GB, free: 3.223 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.913e-05/0.1876, allocations: 37.7 kB / 0.4959 GB, free: 3.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.1879, allocations: 315.9 kB / 0.4962 GB, free: 2.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.1881, allocations: 141.9 kB / 0.4963 GB, free: 2.727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1883, allocations: 86.25 kB / 0.4964 GB, free: 2.637 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002503/0.1885, allocations: 362.8 kB / 0.4967 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005201/0.1891, allocations: 195 kB / 0.4969 GB, free: 2.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005849/0.1897, allocations: 315.2 kB / 0.4972 GB, free: 1.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.1907, allocations: 0.5216 MB / 0.4977 GB, free: 1.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1907, allocations: 0 / 0.4977 GB, free: 1.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001789/0.1925, allocations: 0.7686 MB / 0.4985 GB, free: 372 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.4e-05/0.1926, allocations: 41.69 kB / 0.4985 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1926, allocations: 4 kB / 0.4985 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006172/0.1933, allocations: 132.8 kB / 0.4987 GB, free: 184 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004119/0.1937, allocations: 100 kB / 0.4988 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003858/0.1976, allocations: 2.651 MB / 0.5013 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005386/0.1981, allocations: 71.48 kB / 0.5014 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.1982, allocations: 20 kB / 0.5014 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006714/0.1989, allocations: 341.3 kB / 0.5018 GB, free: 12.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00053/0.1994, allocations: 303.1 kB / 0.5021 GB, free: 12.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009254/0.2003, allocations: 0.4947 MB / 0.5025 GB, free: 11.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.568e-06/0.2003, allocations: 4 kB / 0.5025 GB, free: 11.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001514/0.2019, allocations: 0.69 MB / 0.5032 GB, free: 11.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.2019, allocations: 37.69 kB / 0.5032 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.2019, allocations: 4.438 kB / 0.5033 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003568/0.2023, allocations: 128.7 kB / 0.5034 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003588/0.2027, allocations: 87.88 kB / 0.5035 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/0.2056, allocations: 2.448 MB / 0.5058 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.2061, allocations: 67.55 kB / 0.5059 GB, free: 8.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.2061, allocations: 16 kB / 0.5059 GB, free: 8.332 MB / 398.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,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0002173/0.2063, allocations: 216.3 kB / 0.5061 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.214e-05/0.2064, allocations: 51.34 kB / 0.5062 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.2076, allocations: 0.5161 MB / 0.5067 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.2077, allocations: 8 kB / 0.5067 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.2077, allocations: 0 / 0.5067 GB, free: 7.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.2077, allocations: 7.922 kB / 0.5067 GB, free: 7.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.2098, allocations: 1.175 MB / 0.5078 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.2098, allocations: 3.938 kB / 0.5079 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004595/0.2103, allocations: 87.88 kB / 0.5079 GB, free: 6.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001353/0.2104, allocations: 36.78 kB / 0.508 GB, free: 6.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/0.2105, allocations: 15.98 kB / 0.508 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.2118, allocations: 1.442 MB / 0.5094 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.2118, allocations: 3.938 kB / 0.5094 GB, free: 4.547 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.2135, allocations: 0.8424 MB / 0.5102 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/0.2137, allocations: 168.3 kB / 0.5104 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.991e-05/0.2138, allocations: 11.94 kB / 0.5104 GB, free: 3.484 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004104/0.2142, allocations: 52.11 kB / 0.5104 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.2143, allocations: 31.95 kB / 0.5105 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-05/0.2144, allocations: 16 kB / 0.5105 GB, free: 3.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005886/0.215, allocations: 358.8 kB / 0.5108 GB, free: 3.039 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.215, allocations: 0 / 0.5108 GB, free: 3.039 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001001/0.216, allocations: 247.4 kB / 0.5111 GB, free: 2.797 MB / 398.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 (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001908/0.2162, allocations: 115.2 kB / 0.5112 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.2189, allocations: 1.132 MB / 0.5123 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.2189, allocations: 1.25 kB / 0.5123 GB, free: 1.492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007045/0.2196, allocations: 342.5 kB / 0.5126 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007347/0.2204, allocations: 122.4 kB / 0.5127 GB, free: 1.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00234/0.2227, allocations: 1.225 MB / 0.5139 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005725/0.2233, allocations: 0.902 MB / 0.5148 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003442/0.2237, allocations: 112.1 kB / 0.5149 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001235/0.2238, allocations: 35.44 kB / 0.5149 GB, free: 14.69 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2238, allocations: 4 kB / 0.5149 GB, free: 14.69 MB / 414.1 MB Notification: Performance of Templates: time 0.01562/0.2394, allocations: 8.58 MB / 0.5233 GB, free: 6.094 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (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)