Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1826/0.1826, allocations: 38.5 MB / 342.5 MB, free: 8.059 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002144/0.002144, allocations: 68.7 kB / 478.6 MB, free: 33.8 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1131, allocations: 61.25 MB / 0.5272 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005558/0.1186, allocations: 3.716 MB / 0.5308 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003168/0.1218, allocations: 2.058 MB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.122, allocations: 11.94 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008892/0.1229, allocations: 242.9 kB / 0.5331 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006596/0.1235, allocations: 278.8 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006794/0.1242, allocations: 291.1 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006354/0.1248, allocations: 0.5299 MB / 0.5342 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003273/0.1252, allocations: 171.6 kB / 0.5343 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004335/0.1256, allocations: 235.1 kB / 0.5345 GB, free: 9.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.1259, allocations: 227.1 kB / 0.5348 GB, free: 9.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.126, allocations: 36 kB / 0.5348 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006891/0.1266, allocations: 407.2 kB / 0.5352 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.1268, allocations: 131.6 kB / 0.5353 GB, free: 9.055 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.127, allocations: 183 kB / 0.5355 GB, free: 8.875 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008168/0.1278, allocations: 0.6384 MB / 0.5361 GB, free: 8.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1278, allocations: 4 kB / 0.5361 GB, free: 8.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1278, allocations: 7.938 kB / 0.5361 GB, free: 8.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1278, allocations: 0 / 0.5361 GB, free: 8.223 MB / 398.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.00133/0.1291, allocations: 0.7541 MB / 0.5369 GB, free: 7.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.1292, allocations: 15.88 kB / 0.5369 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.579e-05/0.1293, allocations: 62.73 kB / 0.5369 GB, free: 7.324 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009074/0.1302, allocations: 104.6 kB / 0.537 GB, free: 7.223 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006678/0.1308, allocations: 427.8 kB / 0.5374 GB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.947e-05/0.1309, allocations: 12.81 kB / 0.5375 GB, free: 6.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.746e-05/0.1309, allocations: 27.94 kB / 0.5375 GB, free: 6.723 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008361/0.1318, allocations: 446.8 kB / 0.5379 GB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.1318, allocations: 0 / 0.5379 GB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.1318, allocations: 7.984 kB / 0.5379 GB, free: 6.254 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.43e-05/0.1318, allocations: 20.44 kB / 0.5379 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/0.1329, allocations: 0.5012 MB / 0.5384 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002286/0.1352, allocations: 1.674 MB / 0.5401 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009477/0.1361, allocations: 358.5 kB / 0.5404 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003726/0.1365, allocations: 129.6 kB / 0.5405 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.091e-05/0.1365, allocations: 11.98 kB / 0.5405 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005753/0.1371, allocations: 290.9 kB / 0.5408 GB, free: 3.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.724e-06/0.1371, allocations: 0 / 0.5408 GB, free: 3.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001393/0.1385, allocations: 0.5318 MB / 0.5413 GB, free: 2.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002075/0.1387, allocations: 302.6 kB / 0.5416 GB, free: 2.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004088/0.1391, allocations: 336.4 kB / 0.5419 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.1391, allocations: 33.7 kB / 0.542 GB, free: 1.852 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.1393, allocations: 192.7 kB / 0.5422 GB, free: 1.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1394, allocations: 111.1 kB / 0.5423 GB, free: 1.551 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.1396, allocations: 73.73 kB / 0.5423 GB, free: 1.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.1397, allocations: 346.8 kB / 0.5427 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003728/0.1401, allocations: 139.9 kB / 0.5428 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/0.1406, allocations: 269 kB / 0.5431 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008464/0.1414, allocations: 457.7 kB / 0.5435 GB, free: 156 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1414, allocations: 0 / 0.5435 GB, free: 156 kB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001083/0.1425, allocations: 0.5258 MB / 0.544 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/0.1426, allocations: 34.27 kB / 0.544 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1426, allocations: 8 kB / 0.544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.1426, allocations: 4 kB / 0.544 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003289/0.1429, allocations: 87.88 kB / 0.5441 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.397e-05/0.1429, allocations: 15.88 kB / 0.5441 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.1432, allocations: 47.75 kB / 0.5442 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.1432, allocations: 20 kB / 0.5442 GB, free: 15.39 MB / 414.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.0002201/0.1434, allocations: 193.4 kB / 0.5444 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.824e-05/0.1435, allocations: 51.69 kB / 0.5444 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.1436, allocations: 47.17 kB / 0.5445 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.1436, allocations: 4 kB / 0.5445 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.1436, allocations: 4 kB / 0.5445 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1437, allocations: 7.922 kB / 0.5445 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.1447, allocations: 1.027 MB / 0.5455 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1447, allocations: 0 / 0.5455 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002475/0.1449, allocations: 67.89 kB / 0.5456 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.1449, allocations: 4 kB / 0.5456 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.393e-05/0.145, allocations: 15.98 kB / 0.5456 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.145, allocations: 4 kB / 0.5456 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.145, allocations: 8.062 kB / 0.5456 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009284/0.1459, allocations: 475.5 kB / 0.5461 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.569e-05/0.146, allocations: 112.8 kB / 0.5462 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.1461, allocations: 16 kB / 0.5462 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.1463, allocations: 23.97 kB / 0.5462 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.1464, allocations: 51.77 kB / 0.5462 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/0.1464, allocations: 8 kB / 0.5463 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002622/0.1467, allocations: 239 kB / 0.5465 GB, free: 12.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1467, allocations: 0 / 0.5465 GB, free: 12.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.1471, allocations: 87.88 kB / 0.5466 GB, free: 12.82 MB / 414.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.002761/0.1498, allocations: 1.363 MB / 0.5479 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009315/0.1508, allocations: 406.9 kB / 0.5483 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1508, allocations: 320 / 0.5483 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004647/0.1512, allocations: 191.7 kB / 0.5485 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.1517, allocations: 75.31 kB / 0.5485 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00569/0.1574, allocations: 3.688 MB / 0.5521 GB, free: 7.004 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.1579, allocations: 0.8034 MB / 0.5529 GB, free: 6.176 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002619/0.1581, allocations: 95.19 kB / 0.553 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.1583, allocations: 115.4 kB / 0.5531 GB, free: 5.969 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1583, allocations: 0 / 0.5531 GB, free: 5.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.1922, allocations: 8.444 MB / 0.5614 GB, free: 13.53 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.414/8.606, allocations: 4.375 kB / 0.5614 GB, free: 13.53 MB / 430.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.566806193906814]