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.001151/0.001151, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001042/0.001042, allocations: 192 kB / 18.63 MB, free: 4.508 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.364/1.364, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.176/0.176, allocations: 37.98 MB / 309.8 MB, free: 5.973 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.001488/0.001488, allocations: 63.91 kB / 376.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2017, allocations: 55.25 MB / 432 MB, free: 19.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.00423/0.206, allocations: 3.691 MB / 435.7 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.208, allocations: 1.965 MB / 437.7 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.2082, allocations: 11.94 kB / 437.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007329/0.209, allocations: 234.9 kB / 437.9 MB, free: 13.57 MB / 318.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.0004933/0.2095, allocations: 282.8 kB / 438.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004656/0.21, allocations: 261.5 kB / 438.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.2103, allocations: 0.5299 MB / 439 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002817/0.2106, allocations: 207.6 kB / 439.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.2109, allocations: 219.2 kB / 439.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002122/0.2112, allocations: 219.2 kB / 439.6 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.273e-05/0.2112, allocations: 40 kB / 439.7 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004438/0.2117, allocations: 407.1 kB / 440.1 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.605e-05/0.2118, allocations: 131.6 kB / 440.2 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.2119, allocations: 183 kB / 440.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004943/0.2124, allocations: 0.6347 MB / 441 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2124, allocations: 4 kB / 441 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2124, allocations: 0 / 441 MB, free: 10.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.2124, allocations: 0 / 441 MB, free: 10.49 MB / 318.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.0009533/0.2134, allocations: 0.7449 MB / 441.7 MB, free: 9.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.2134, allocations: 11.89 kB / 441.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008164/0.2143, allocations: 108.3 kB / 441.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004863/0.2147, allocations: 419.6 kB / 442.3 MB, free: 9.129 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.2148, allocations: 24.8 kB / 442.3 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.2148, allocations: 20.12 kB / 442.3 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006804/0.2155, allocations: 442.8 kB / 442.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.2155, allocations: 0 / 442.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.2156, allocations: 19.97 kB / 442.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.2156, allocations: 16.44 kB / 442.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008237/0.2164, allocations: 0.4934 MB / 443.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.2181, allocations: 1.678 MB / 445 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007965/0.2189, allocations: 361.2 kB / 445.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.2192, allocations: 149.5 kB / 445.5 MB, free: 5.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.836e-05/0.2193, allocations: 4 kB / 445.5 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004578/0.2197, allocations: 290.9 kB / 445.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.2198, allocations: 0 / 445.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001116/0.2209, allocations: 0.5245 MB / 446.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/0.221, allocations: 302.7 kB / 446.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002564/0.2212, allocations: 324.9 kB / 446.9 MB, free: 4.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.2213, allocations: 41.7 kB / 446.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.59e-05/0.2213, allocations: 196.3 kB / 447.1 MB, free: 3.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.522e-05/0.2214, allocations: 106.5 kB / 447.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.616e-05/0.2215, allocations: 65.7 kB / 447.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.554e-05/0.2216, allocations: 350.8 kB / 447.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.2219, allocations: 131.9 kB / 447.8 MB, free: 3.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003423/0.2222, allocations: 292.9 kB / 448 MB, free: 2.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006365/0.2229, allocations: 457.6 kB / 448.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2229, allocations: 4 kB / 448.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008636/0.2238, allocations: 0.514 MB / 449 MB, free: 1.949 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.2238, allocations: 41.64 kB / 449 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.2238, allocations: 12 kB / 449.1 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.2238, allocations: 7.938 kB / 449.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.2241, allocations: 83.88 kB / 449.1 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.2242, allocations: 8 kB / 449.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002537/0.2244, allocations: 52.03 kB / 449.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.86e-05/0.2245, allocations: 19.94 kB / 449.2 MB, free: 1.723 MB / 318.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.0001433/0.2246, allocations: 193.7 kB / 449.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.2247, allocations: 35.56 kB / 449.4 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.051e-05/0.2248, allocations: 51.11 kB / 449.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.2248, allocations: 4 kB / 449.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.2248, allocations: 4 kB / 449.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2248, allocations: 3.984 kB / 449.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005944/0.2254, allocations: 1.031 MB / 450.5 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2254, allocations: 0 / 450.5 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002245/0.2256, allocations: 68.08 kB / 450.6 MB, free: 260 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.2256, allocations: 4 kB / 450.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.323e-05/0.2257, allocations: 15.98 kB / 450.6 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.2257, allocations: 4 kB / 450.6 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.2257, allocations: 0 / 450.6 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008302/0.2265, allocations: 463.3 kB / 451.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.717e-05/0.2266, allocations: 120.7 kB / 451.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.963e-05/0.2267, allocations: 12 kB / 451.2 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.2269, allocations: 23.97 kB / 451.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.345e-05/0.227, allocations: 43.83 kB / 451.3 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.2271, allocations: 12 kB / 451.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.2273, allocations: 235 kB / 451.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2273, allocations: 4 kB / 451.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004085/0.2277, allocations: 95.83 kB / 451.6 MB, free: 15.18 MB / 334.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.001001/0.2287, allocations: 466.8 kB / 452.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008462/0.2296, allocations: 415 kB / 452.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.2296, allocations: 0 / 452.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.2301, allocations: 201.2 kB / 452.7 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004405/0.2305, allocations: 80.86 kB / 452.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.2317, allocations: 0.6984 MB / 453.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/0.2321, allocations: 0.8034 MB / 454.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.2324, allocations: 91.19 kB / 454.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.2325, allocations: 43.42 kB / 454.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2325, allocations: 0 / 454.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of Templates: time 0.008462/0.2409, allocations: 4.606 MB / 459 MB, free: 7.77 MB / 334.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)