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.001161/0.001161, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001146/0.001146, allocations: 196 kB / 18 MB, free: 5.105 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.276/1.276, allocations: 205.1 MB / 223.9 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.1623/0.1623, allocations: 37.99 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.001522/0.001522, allocations: 63.91 kB / 431.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08581/0.08735, allocations: 55.24 MB / 487.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004904/0.09228, allocations: 3.685 MB / 490.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.09493, allocations: 1.973 MB / 492.8 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.09515, allocations: 15.88 kB / 492.8 MB, free: 2.766 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008959/0.09605, allocations: 242.9 kB / 493 MB, free: 2.527 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.0007683/0.09683, allocations: 274.8 kB / 493.3 MB, free: 2.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007166/0.09756, allocations: 259.2 kB / 493.5 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007295/0.0983, allocations: 0.5222 MB / 494.1 MB, free: 1.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004789/0.09879, allocations: 215.5 kB / 494.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006193/0.09942, allocations: 243.1 kB / 494.5 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003654/0.0998, allocations: 215.2 kB / 494.7 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.627e-05/0.09988, allocations: 40 kB / 494.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000583/0.1005, allocations: 395.2 kB / 495.1 MB, free: 404 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.1006, allocations: 127.6 kB / 495.3 MB, free: 276 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.1008, allocations: 187 kB / 495.4 MB, free: 88 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007442/0.1015, allocations: 0.631 MB / 496.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.1015, allocations: 0 / 496.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1015, allocations: 0 / 496.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1016, allocations: 4 kB / 496.1 MB, free: 15.45 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.001383/0.1029, allocations: 0.7432 MB / 496.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.103, allocations: 11.89 kB / 496.8 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009027/0.1039, allocations: 104.4 kB / 496.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005215/0.1044, allocations: 423.6 kB / 497.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.1045, allocations: 16.81 kB / 497.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.1045, allocations: 24.12 kB / 497.4 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007535/0.1053, allocations: 446.8 kB / 497.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1053, allocations: 7.875 kB / 497.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.1053, allocations: 8 kB / 497.8 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.006e-05/0.1054, allocations: 16.44 kB / 497.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009361/0.1063, allocations: 0.5013 MB / 498.4 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1082, allocations: 1.678 MB / 0.4883 GB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008716/0.1091, allocations: 373 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003228/0.1094, allocations: 141.6 kB / 0.4888 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.17e-05/0.1095, allocations: 7.938 kB / 0.4888 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005037/0.11, allocations: 290.8 kB / 0.4891 GB, free: 10.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.964e-06/0.11, allocations: 4 kB / 0.4891 GB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001222/0.1112, allocations: 0.5172 MB / 0.4896 GB, free: 9.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/0.1114, allocations: 306.7 kB / 0.4899 GB, free: 9.523 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.1117, allocations: 328.5 kB / 0.4902 GB, free: 9.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.1117, allocations: 37.7 kB / 0.4902 GB, free: 9.152 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.1119, allocations: 188.4 kB / 0.4904 GB, free: 8.961 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.405e-05/0.1119, allocations: 106.6 kB / 0.4905 GB, free: 8.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1121, allocations: 69.7 kB / 0.4906 GB, free: 8.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1122, allocations: 350.8 kB / 0.4909 GB, free: 8.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.1125, allocations: 135.9 kB / 0.4911 GB, free: 8.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.1129, allocations: 284.8 kB / 0.4913 GB, free: 7.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007727/0.1137, allocations: 457.7 kB / 0.4918 GB, free: 7.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1137, allocations: 0 / 0.4918 GB, free: 7.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009623/0.1147, allocations: 0.5177 MB / 0.4923 GB, free: 6.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1147, allocations: 37.7 kB / 0.4923 GB, free: 6.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1148, allocations: 4 kB / 0.4923 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1148, allocations: 4.562 kB / 0.4923 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.1151, allocations: 91.81 kB / 0.4924 GB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.1151, allocations: 8 kB / 0.4924 GB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.1154, allocations: 55.66 kB / 0.4925 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.092e-05/0.1154, allocations: 20 kB / 0.4925 GB, free: 6.691 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.0001762/0.1156, allocations: 193.6 kB / 0.4927 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.659e-05/0.1157, allocations: 43.47 kB / 0.4927 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.593e-05/0.1158, allocations: 47.17 kB / 0.4928 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1158, allocations: 4 kB / 0.4928 GB, free: 6.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.1158, allocations: 4 kB / 0.4928 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.1158, allocations: 3.984 kB / 0.4928 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007879/0.1166, allocations: 1.023 MB / 0.4938 GB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.1166, allocations: 4 kB / 0.4938 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.1168, allocations: 63.89 kB / 0.4938 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1169, allocations: 7.922 kB / 0.4938 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.1169, allocations: 15.98 kB / 0.4939 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.1169, allocations: 7.938 kB / 0.4939 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1169, allocations: 0 / 0.4939 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008514/0.1178, allocations: 472.4 kB / 0.4943 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.1178, allocations: 116.7 kB / 0.4944 GB, free: 4.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.261e-05/0.1179, allocations: 12 kB / 0.4944 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.1181, allocations: 23.97 kB / 0.4945 GB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.761e-05/0.1182, allocations: 43.89 kB / 0.4945 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.1182, allocations: 19.94 kB / 0.4945 GB, free: 4.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.1184, allocations: 231 kB / 0.4947 GB, free: 4.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1185, allocations: 0 / 0.4947 GB, free: 4.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003861/0.1188, allocations: 95.83 kB / 0.4948 GB, free: 4.133 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.0009416/0.1198, allocations: 452 kB / 0.4953 GB, free: 3.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000865/0.1207, allocations: 423.8 kB / 0.4957 GB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1207, allocations: 0 / 0.4957 GB, free: 3.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004407/0.1211, allocations: 196 kB / 0.4959 GB, free: 3.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.1216, allocations: 84.92 kB / 0.4959 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.1226, allocations: 0.6989 MB / 0.4966 GB, free: 2.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1229, allocations: 0.8072 MB / 0.4974 GB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002134/0.1232, allocations: 95.19 kB / 0.4975 GB, free: 1.301 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.1233, allocations: 43.42 kB / 0.4975 GB, free: 1.258 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1233, allocations: 0 / 0.4975 GB, free: 1.258 MB / 382.1 MB Notification: Performance of Templates: time 0.00852/0.1318, allocations: 4.755 MB / 0.5022 GB, free: 12.5 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)