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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 109.2 kB / 17.06 MB, free: 5.977 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.001708/0.001708, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.309/1.309, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1742/0.1742, allocations: 37.98 MB / 309.2 MB, free: 5.941 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.001428/0.001428, allocations: 59.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09837, allocations: 55.24 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005692/0.1041, allocations: 3.68 MB / 490.3 MB, free: 5.137 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.107, allocations: 1.981 MB / 492.3 MB, free: 3.145 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.1072, allocations: 7.938 kB / 492.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008254/0.108, allocations: 234.9 kB / 492.5 MB, free: 2.906 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.0006752/0.1087, allocations: 290.8 kB / 492.8 MB, free: 2.621 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.1093, allocations: 259.3 kB / 493 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005789/0.1099, allocations: 0.526 MB / 493.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004279/0.1103, allocations: 211.6 kB / 493.8 MB, free: 1.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005004/0.1109, allocations: 227.2 kB / 494 MB, free: 1.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000334/0.1112, allocations: 223.1 kB / 494.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.1113, allocations: 36 kB / 494.2 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005996/0.1119, allocations: 399.2 kB / 494.6 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.112, allocations: 119.7 kB / 494.8 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.1122, allocations: 195 kB / 494.9 MB, free: 468 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007755/0.113, allocations: 0.6357 MB / 495.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.113, allocations: 3.984 kB / 495.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.113, allocations: 0 / 495.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.113, allocations: 3.938 kB / 495.6 MB, free: 15.81 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.001189/0.1142, allocations: 0.7277 MB / 496.3 MB, free: 15.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.1143, allocations: 19.89 kB / 496.3 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.584e-05/0.1143, allocations: 62.72 kB / 496.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008527/0.1152, allocations: 104.4 kB / 496.5 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.1158, allocations: 419.5 kB / 496.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.1159, allocations: 24.75 kB / 496.9 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.6e-05/0.1159, allocations: 23.94 kB / 497 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008198/0.1167, allocations: 446.8 kB / 497.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.1168, allocations: 4 kB / 497.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.1168, allocations: 12 kB / 497.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.24e-05/0.1168, allocations: 20.42 kB / 497.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009921/0.1178, allocations: 0.4973 MB / 497.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.1199, allocations: 1.674 MB / 499.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009524/0.1209, allocations: 376.9 kB / 500 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/0.1213, allocations: 145.6 kB / 0.4884 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.1213, allocations: 7.984 kB / 0.4884 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005191/0.1218, allocations: 286.9 kB / 0.4887 GB, free: 10.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.234e-06/0.1218, allocations: 0 / 0.4887 GB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.00131/0.1232, allocations: 0.5208 MB / 0.4892 GB, free: 10.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001376/0.1233, allocations: 294.7 kB / 0.4895 GB, free: 9.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.1237, allocations: 328.8 kB / 0.4898 GB, free: 9.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.1237, allocations: 41.7 kB / 0.4898 GB, free: 9.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1239, allocations: 192.4 kB / 0.49 GB, free: 9.262 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.218e-05/0.124, allocations: 102.6 kB / 0.4901 GB, free: 9.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.1241, allocations: 69.69 kB / 0.4902 GB, free: 9.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1242, allocations: 350.7 kB / 0.4905 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003783/0.1246, allocations: 135.9 kB / 0.4906 GB, free: 8.602 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004506/0.1251, allocations: 284.8 kB / 0.4909 GB, free: 8.262 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008131/0.1259, allocations: 457.7 kB / 0.4913 GB, free: 7.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1259, allocations: 0 / 0.4913 GB, free: 7.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001066/0.127, allocations: 0.5219 MB / 0.4918 GB, free: 7.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.127, allocations: 33.7 kB / 0.4919 GB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.127, allocations: 8 kB / 0.4919 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.1271, allocations: 8 kB / 0.4919 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003251/0.1274, allocations: 87.88 kB / 0.492 GB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.1274, allocations: 11.94 kB / 0.492 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.1277, allocations: 47.88 kB / 0.492 GB, free: 7.016 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-05/0.1278, allocations: 20 kB / 0.492 GB, free: 6.996 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.0001999/0.128, allocations: 193.7 kB / 0.4922 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.968e-05/0.1281, allocations: 43.45 kB / 0.4923 GB, free: 6.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.284e-05/0.1282, allocations: 47.16 kB / 0.4923 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.1282, allocations: 8 kB / 0.4923 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1282, allocations: 0 / 0.4923 GB, free: 6.695 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.1282, allocations: 4 kB / 0.4923 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009234/0.1291, allocations: 1.038 MB / 0.4933 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1291, allocations: 0 / 0.4933 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002455/0.1294, allocations: 59.89 kB / 0.4934 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.1294, allocations: 8.188 kB / 0.4934 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1294, allocations: 12 kB / 0.4934 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.1295, allocations: 3.984 kB / 0.4934 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.588e-06/0.1295, allocations: 7.938 kB / 0.4934 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000935/0.1304, allocations: 464.4 kB / 0.4939 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.354e-05/0.1305, allocations: 116.7 kB / 0.494 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.057e-05/0.1306, allocations: 15.94 kB / 0.494 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002057/0.1308, allocations: 27.97 kB / 0.494 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.784e-05/0.1309, allocations: 39.84 kB / 0.4941 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.1309, allocations: 15.98 kB / 0.4941 GB, free: 4.758 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002651/0.1312, allocations: 235 kB / 0.4943 GB, free: 4.527 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1312, allocations: 0 / 0.4943 GB, free: 4.527 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000399/0.1316, allocations: 91.84 kB / 0.4944 GB, free: 4.438 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.002121/0.1337, allocations: 1.354 MB / 0.4957 GB, free: 3.027 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008809/0.1346, allocations: 420 kB / 0.4961 GB, free: 2.605 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1346, allocations: 0 / 0.4961 GB, free: 2.605 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004582/0.1351, allocations: 195.8 kB / 0.4963 GB, free: 2.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.1355, allocations: 73.88 kB / 0.4964 GB, free: 2.344 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005054/0.1406, allocations: 3.68 MB / 0.5 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.141, allocations: 0.8034 MB / 0.5008 GB, free: 13.59 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002381/0.1413, allocations: 87.19 kB / 0.5008 GB, free: 13.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002135/0.1415, allocations: 115.4 kB / 0.5009 GB, free: 13.39 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1415, allocations: 0 / 0.5009 GB, free: 13.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0259/0.1674, allocations: 8.522 MB / 0.5093 GB, free: 4.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/7.769, allocations: 11.62 kB / 0.5093 GB, free: 4.758 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1)