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.001152/0.001152, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.00119/0.00119, allocations: 191 kB / 18.67 MB, free: 4.438 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.4/1.4, allocations: 205.1 MB / 224.5 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.1774/0.1774, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001396/0.001396, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 55.24 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005709/0.1138, allocations: 3.701 MB / 491.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.1168, allocations: 1.969 MB / 493.4 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003161/0.1172, allocations: 11.94 kB / 493.4 MB, free: 2.641 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009316/0.1182, allocations: 238.9 kB / 493.7 MB, free: 2.406 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.0008263/0.119, allocations: 278.8 kB / 494 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007346/0.1197, allocations: 259.3 kB / 494.2 MB, free: 1.879 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007892/0.1205, allocations: 0.5221 MB / 494.7 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.121, allocations: 223.5 kB / 494.9 MB, free: 1.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005593/0.1216, allocations: 223.2 kB / 495.2 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003202/0.1219, allocations: 219.2 kB / 495.4 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.858e-05/0.122, allocations: 36 kB / 495.4 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006843/0.1227, allocations: 395.2 kB / 495.8 MB, free: 288 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.1229, allocations: 123.7 kB / 495.9 MB, free: 164 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.1231, allocations: 187.1 kB / 496.1 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007754/0.1238, allocations: 0.6387 MB / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1239, allocations: 0 / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1239, allocations: 0 / 496.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1239, allocations: 0 / 496.7 MB, free: 15.34 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.001264/0.1251, allocations: 0.7432 MB / 497.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.1252, allocations: 15.83 kB / 497.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008893/0.1261, allocations: 104.4 kB / 497.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005592/0.1267, allocations: 423.5 kB / 498 MB, free: 13.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.1267, allocations: 16.81 kB / 498 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.1268, allocations: 24.12 kB / 498.1 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008309/0.1276, allocations: 454.7 kB / 498.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1276, allocations: 0 / 498.5 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.213e-05/0.1277, allocations: 8 kB / 498.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-05/0.1277, allocations: 24.41 kB / 498.5 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009758/0.1287, allocations: 0.4973 MB / 499 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002032/0.1307, allocations: 1.682 MB / 0.489 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009256/0.1317, allocations: 365 kB / 0.4893 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000346/0.132, allocations: 141.6 kB / 0.4895 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.955e-05/0.1321, allocations: 11.98 kB / 0.4895 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005329/0.1326, allocations: 290.9 kB / 0.4897 GB, free: 10.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.144e-06/0.1326, allocations: 0 / 0.4897 GB, free: 10.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001296/0.1339, allocations: 0.5204 MB / 0.4903 GB, free: 9.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.1341, allocations: 295.4 kB / 0.4905 GB, free: 9.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.1345, allocations: 332.5 kB / 0.4909 GB, free: 9.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.077e-05/0.1345, allocations: 33.7 kB / 0.4909 GB, free: 9.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1347, allocations: 196.4 kB / 0.4911 GB, free: 8.844 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.038e-05/0.1348, allocations: 98.64 kB / 0.4912 GB, free: 8.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.1349, allocations: 69.69 kB / 0.4912 GB, free: 8.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.135, allocations: 346.8 kB / 0.4916 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003687/0.1354, allocations: 143.9 kB / 0.4917 GB, free: 8.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.1358, allocations: 288.8 kB / 0.492 GB, free: 7.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008042/0.1367, allocations: 457.7 kB / 0.4924 GB, free: 7.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.1367, allocations: 0 / 0.4924 GB, free: 7.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001049/0.1377, allocations: 0.5218 MB / 0.4929 GB, free: 6.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.111e-05/0.1378, allocations: 33.7 kB / 0.493 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1378, allocations: 4 kB / 0.493 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.1378, allocations: 8 kB / 0.493 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.1382, allocations: 88.25 kB / 0.4931 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.1382, allocations: 11.94 kB / 0.4931 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.1385, allocations: 47.66 kB / 0.4931 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.638e-05/0.1385, allocations: 20 kB / 0.4931 GB, free: 6.578 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.0002235/0.1388, allocations: 189.7 kB / 0.4933 GB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/0.1388, allocations: 47.39 kB / 0.4934 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.139, allocations: 43.17 kB / 0.4934 GB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.139, allocations: 11.98 kB / 0.4934 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.139, allocations: 4 kB / 0.4934 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.139, allocations: 4 kB / 0.4934 GB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009271/0.1399, allocations: 1.027 MB / 0.4944 GB, free: 5.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.14, allocations: 4.188 kB / 0.4944 GB, free: 5.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002551/0.1402, allocations: 67.83 kB / 0.4945 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.1402, allocations: 4 kB / 0.4945 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.1403, allocations: 8 kB / 0.4945 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1403, allocations: 4 kB / 0.4945 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.1403, allocations: 7.984 kB / 0.4945 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009323/0.1412, allocations: 476.2 kB / 0.495 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.1414, allocations: 112.7 kB / 0.4951 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.183e-05/0.1414, allocations: 12 kB / 0.4951 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.1416, allocations: 27.97 kB / 0.4951 GB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.736e-05/0.1418, allocations: 35.84 kB / 0.4951 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.778e-05/0.1418, allocations: 15.98 kB / 0.4952 GB, free: 4.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002434/0.142, allocations: 243 kB / 0.4954 GB, free: 4.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.142, allocations: 0 / 0.4954 GB, free: 4.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004479/0.1425, allocations: 87.84 kB / 0.4955 GB, free: 4.02 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.001013/0.1435, allocations: 456 kB / 0.4959 GB, free: 3.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009127/0.1444, allocations: 415.8 kB / 0.4963 GB, free: 3.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1445, allocations: 0 / 0.4963 GB, free: 3.145 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.1449, allocations: 192.2 kB / 0.4965 GB, free: 2.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000483/0.1454, allocations: 84.86 kB / 0.4966 GB, free: 2.875 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.1467, allocations: 0.7357 MB / 0.4973 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.1471, allocations: 0.8111 MB / 0.4981 GB, free: 1.246 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/0.1472, allocations: 43.42 kB / 0.4981 GB, free: 1.203 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1472, allocations: 0 / 0.4981 GB, free: 1.203 MB / 382.1 MB Notification: Performance of Templates: time 0.008634/0.1558, allocations: 5.36 MB / 0.5034 GB, free: 11.83 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)