Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.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.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 111.6 kB / 17.06 MB, free: 6 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.002025/0.002025, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.546/1.546, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1829/0.1829, allocations: 37.99 MB / 309.2 MB, free: 5.934 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.001894/0.001894, allocations: 64.47 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1347, allocations: 55.25 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.008218/0.143, allocations: 3.689 MB / 490.8 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004132/0.1472, allocations: 1.977 MB / 492.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004531/0.1477, allocations: 7.938 kB / 492.8 MB, free: 2.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.149, allocations: 230.9 kB / 493 MB, free: 2.414 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001017/0.15, allocations: 286.8 kB / 493.3 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009394/0.151, allocations: 259.3 kB / 493.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008496/0.1518, allocations: 0.526 MB / 494.1 MB, free: 1.352 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005191/0.1524, allocations: 215.5 kB / 494.3 MB, free: 1.141 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006482/0.153, allocations: 235.2 kB / 494.5 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004622/0.1535, allocations: 211.2 kB / 494.7 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.1536, allocations: 40 kB / 494.8 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008508/0.1545, allocations: 399.2 kB / 495.1 MB, free: 280 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.1547, allocations: 123.7 kB / 495.3 MB, free: 156 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.1549, allocations: 187.1 kB / 495.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.156, allocations: 0.6387 MB / 496.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1561, allocations: 0 / 496.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.1561, allocations: 4 kB / 496.1 MB, free: 15.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.1561, allocations: 0 / 496.1 MB, free: 15.32 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001586/0.1577, allocations: 0.7354 MB / 496.8 MB, free: 14.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.1577, allocations: 15.89 kB / 496.8 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.1588, allocations: 100.4 kB / 496.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000762/0.1596, allocations: 423.6 kB / 497.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.1596, allocations: 20.8 kB / 497.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.1597, allocations: 24.12 kB / 497.4 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009138/0.1606, allocations: 450.7 kB / 497.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.1606, allocations: 0 / 497.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.545e-05/0.1607, allocations: 15.97 kB / 497.8 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/0.1607, allocations: 20.42 kB / 497.9 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009945/0.1617, allocations: 0.5012 MB / 498.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002289/0.164, allocations: 1.678 MB / 0.4883 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.1651, allocations: 368.9 kB / 0.4887 GB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003561/0.1654, allocations: 141.6 kB / 0.4888 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.393e-05/0.1655, allocations: 12 kB / 0.4888 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006872/0.1662, allocations: 286.9 kB / 0.4891 GB, free: 10.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 3.807e-06/0.1662, allocations: 4 kB / 0.4891 GB, free: 10.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001524/0.1677, allocations: 0.5172 MB / 0.4896 GB, free: 9.766 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000185/0.1679, allocations: 294.7 kB / 0.4899 GB, free: 9.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004057/0.1684, allocations: 332.5 kB / 0.4902 GB, free: 9.078 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.1684, allocations: 33.7 kB / 0.4902 GB, free: 9.039 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.1686, allocations: 200.4 kB / 0.4904 GB, free: 8.836 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.47e-05/0.1687, allocations: 98.64 kB / 0.4905 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.1688, allocations: 73.66 kB / 0.4906 GB, free: 8.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.169, allocations: 350.8 kB / 0.4909 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003605/0.1694, allocations: 139.9 kB / 0.4911 GB, free: 8.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004327/0.1698, allocations: 276.8 kB / 0.4913 GB, free: 7.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008117/0.1706, allocations: 457.7 kB / 0.4918 GB, free: 7.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.1706, allocations: 4 kB / 0.4918 GB, free: 7.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001045/0.1717, allocations: 0.5216 MB / 0.4923 GB, free: 6.789 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.1717, allocations: 33.7 kB / 0.4923 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1718, allocations: 4.562 kB / 0.4923 GB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.1718, allocations: 12 kB / 0.4923 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000316/0.1721, allocations: 87.88 kB / 0.4924 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.1721, allocations: 7.938 kB / 0.4924 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.1724, allocations: 51.66 kB / 0.4925 GB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/0.1725, allocations: 20 kB / 0.4925 GB, free: 6.57 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002197/0.1727, allocations: 185.7 kB / 0.4927 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.18e-05/0.1728, allocations: 47.45 kB / 0.4927 GB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.1729, allocations: 51.16 kB / 0.4928 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.1729, allocations: 7.984 kB / 0.4928 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.1729, allocations: 4 kB / 0.4928 GB, free: 6.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1729, allocations: 4 kB / 0.4928 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.174, allocations: 1.027 MB / 0.4938 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.174, allocations: 4 kB / 0.4938 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.1742, allocations: 67.83 kB / 0.4938 GB, free: 5.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.1743, allocations: 4 kB / 0.4938 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.1743, allocations: 8 kB / 0.4939 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.1743, allocations: 7.984 kB / 0.4939 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1743, allocations: 4 kB / 0.4939 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009141/0.1752, allocations: 476.4 kB / 0.4943 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001039/0.1753, allocations: 112.6 kB / 0.4944 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.775e-05/0.1754, allocations: 16 kB / 0.4944 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.1757, allocations: 23.97 kB / 0.4945 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.1758, allocations: 47.83 kB / 0.4945 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.1758, allocations: 12 kB / 0.4945 GB, free: 4.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002737/0.1761, allocations: 239 kB / 0.4947 GB, free: 4.094 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1761, allocations: 0 / 0.4947 GB, free: 4.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004653/0.1766, allocations: 87.84 kB / 0.4948 GB, free: 4.008 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/0.1777, allocations: 452 kB / 0.4953 GB, free: 3.555 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008981/0.1786, allocations: 415.6 kB / 0.4957 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1786, allocations: 0 / 0.4957 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004608/0.1791, allocations: 208 kB / 0.4959 GB, free: 2.934 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005077/0.1796, allocations: 81.8 kB / 0.4959 GB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001381/0.181, allocations: 0.6945 MB / 0.4966 GB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.1814, allocations: 0.8072 MB / 0.4974 GB, free: 1.277 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002623/0.1817, allocations: 91.2 kB / 0.4975 GB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.1818, allocations: 39.42 kB / 0.4975 GB, free: 1.145 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1818, allocations: 0 / 0.4975 GB, free: 1.145 MB / 382.1 MB Notification: Performance of Templates: time 0.01011/0.1919, allocations: 4.669 MB / 0.5021 GB, free: 12.47 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)