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.001305/0.001305, allocations: 115.9 kB / 17.7 MB, free: 5.309 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.001492/0.001492, allocations: 191 kB / 18.63 MB, free: 4.379 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.481/1.481, 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.184/0.184, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.002353/0.002353, allocations: 59.91 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2803, allocations: 55.24 MB / 432 MB, free: 19.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004406/0.2848, allocations: 3.69 MB / 435.7 MB, free: 15.97 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002546/0.2874, allocations: 1.973 MB / 437.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.2876, allocations: 11.94 kB / 437.7 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008564/0.2886, allocations: 238.9 kB / 437.9 MB, free: 13.74 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.0007949/0.2894, allocations: 290.8 kB / 438.2 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006744/0.29, allocations: 253.5 kB / 438.5 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.2905, allocations: 0.526 MB / 439 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003424/0.2909, allocations: 215.5 kB / 439.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003583/0.2913, allocations: 219.2 kB / 439.4 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.2915, allocations: 207.2 kB / 439.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.605e-05/0.2915, allocations: 44 kB / 439.7 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.292, allocations: 407.1 kB / 440.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.2921, allocations: 131.6 kB / 440.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001529/0.2923, allocations: 179.1 kB / 440.4 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006205/0.2929, allocations: 0.6426 MB / 441 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2929, allocations: 4 kB / 441 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.293, allocations: 3.938 kB / 441 MB, free: 10.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.293, allocations: 0 / 441 MB, free: 10.66 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.001169/0.2941, allocations: 0.7333 MB / 441.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.2942, allocations: 15.88 kB / 441.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009169/0.2951, allocations: 112.3 kB / 441.9 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004887/0.2956, allocations: 415.6 kB / 442.3 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.2957, allocations: 24.73 kB / 442.3 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.044e-05/0.2957, allocations: 20.12 kB / 442.3 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006691/0.2964, allocations: 454.7 kB / 442.8 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2964, allocations: 4 kB / 442.8 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.09e-05/0.2964, allocations: 4 kB / 442.8 MB, free: 8.777 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.2965, allocations: 24.42 kB / 442.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008328/0.2973, allocations: 0.4934 MB / 443.3 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.299, allocations: 1.67 MB / 445 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007833/0.2998, allocations: 365.1 kB / 445.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.3001, allocations: 137.6 kB / 445.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.3001, allocations: 11.92 kB / 445.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004653/0.3006, allocations: 298.8 kB / 445.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.3006, allocations: 0 / 445.8 MB, free: 5.633 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001109/0.3017, allocations: 0.5244 MB / 446.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.47e-05/0.3018, allocations: 299.1 kB / 446.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002664/0.3021, allocations: 328.5 kB / 446.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.3021, allocations: 33.7 kB / 446.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/0.3022, allocations: 204.3 kB / 447.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.456e-05/0.3023, allocations: 98.61 kB / 447.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.172e-05/0.3024, allocations: 69.69 kB / 447.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.686e-05/0.3025, allocations: 346.8 kB / 447.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.3028, allocations: 139.9 kB / 447.8 MB, free: 3.504 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.3031, allocations: 288.9 kB / 448 MB, free: 3.16 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006355/0.3037, allocations: 461.6 kB / 448.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3038, allocations: 0 / 448.5 MB, free: 2.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008213/0.3046, allocations: 0.5179 MB / 449 MB, free: 2.113 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.3046, allocations: 33.69 kB / 449 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3046, allocations: 11.94 kB / 449.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.3047, allocations: 4 kB / 449.1 MB, free: 2.059 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.305, allocations: 91.83 kB / 449.2 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.305, allocations: 12.3 kB / 449.2 MB, free: 1.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002476/0.3053, allocations: 47.67 kB / 449.2 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.3053, allocations: 19.98 kB / 449.2 MB, free: 1.891 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.0001635/0.3055, allocations: 193.6 kB / 449.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.898e-05/0.3055, allocations: 35.56 kB / 449.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.191e-05/0.3056, allocations: 47.17 kB / 449.5 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.3056, allocations: 4 kB / 449.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.3057, allocations: 4 kB / 449.5 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.3057, allocations: 7.984 kB / 449.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006805/0.3064, allocations: 1.034 MB / 450.5 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3064, allocations: 192 / 450.5 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.3066, allocations: 63.91 kB / 450.6 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3066, allocations: 4 kB / 450.6 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.3066, allocations: 15.98 kB / 450.6 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3066, allocations: 4 kB / 450.6 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3067, allocations: 0 / 450.6 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008043/0.3075, allocations: 475.2 kB / 451.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.974e-05/0.3076, allocations: 108.7 kB / 451.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.299e-05/0.3076, allocations: 16 kB / 451.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3078, allocations: 23.97 kB / 451.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.308, allocations: 39.89 kB / 451.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.308, allocations: 15.94 kB / 451.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002546/0.3083, allocations: 239 kB / 451.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3083, allocations: 0 / 451.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004412/0.3087, allocations: 95.83 kB / 451.6 MB, free: 15.35 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.001195/0.3099, allocations: 453 kB / 452.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009492/0.3109, allocations: 416 kB / 452.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3109, allocations: 0 / 452.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000481/0.3114, allocations: 207.8 kB / 452.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000464/0.3119, allocations: 72.98 kB / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.3133, allocations: 0.6987 MB / 453.4 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005608/0.3139, allocations: 0.8034 MB / 454.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000244/0.3142, allocations: 91.19 kB / 454.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3143, allocations: 39.42 kB / 454.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3143, allocations: 0 / 454.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of Templates: time 0.009639/0.3239, allocations: 4.61 MB / 459 MB, free: 7.945 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 cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)