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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001547/0.001547, allocations: 209.6 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.536/1.536, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.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.1883/0.1883, allocations: 38.53 MB / 348.7 MB, free: 2.629 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 75.88 kB / 487.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1167, allocations: 62.42 MB / 0.5367 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005615/0.1223, allocations: 3.74 MB / 0.5403 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003553/0.1259, allocations: 2.217 MB / 0.5425 GB, free: 1.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.1261, allocations: 11.88 kB / 0.5425 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000836/0.127, allocations: 246.9 kB / 0.5427 GB, free: 1.316 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007759/0.1277, allocations: 318.6 kB / 0.5431 GB, free: 1.004 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006086/0.1283, allocations: 251.3 kB / 0.5433 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000646/0.129, allocations: 0.5455 MB / 0.5438 GB, free: 216 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003439/0.1293, allocations: 171.5 kB / 0.544 GB, free: 40 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005355/0.1299, allocations: 247.1 kB / 0.5442 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003299/0.1302, allocations: 235.1 kB / 0.5444 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.232e-05/0.1303, allocations: 40 kB / 0.5445 GB, free: 15.53 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007672/0.131, allocations: 455.1 kB / 0.5449 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1312, allocations: 131.6 kB / 0.545 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.1314, allocations: 191 kB / 0.5452 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008887/0.1322, allocations: 0.6889 MB / 0.5459 GB, free: 14.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1323, allocations: 4 kB / 0.5459 GB, free: 14.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1323, allocations: 3.938 kB / 0.5459 GB, free: 14.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1323, allocations: 0 / 0.5459 GB, free: 14.07 MB / 414.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.1336, allocations: 0.7774 MB / 0.5467 GB, free: 13.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.1337, allocations: 12.03 kB / 0.5467 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.006e-05/0.1338, allocations: 62.72 kB / 0.5467 GB, free: 13.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009428/0.1347, allocations: 108.6 kB / 0.5468 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007166/0.1354, allocations: 431.8 kB / 0.5473 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.1355, allocations: 12.81 kB / 0.5473 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.1355, allocations: 27.94 kB / 0.5473 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009221/0.1364, allocations: 446.8 kB / 0.5477 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1364, allocations: 0 / 0.5477 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.1365, allocations: 11.98 kB / 0.5477 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.891e-05/0.1365, allocations: 16.44 kB / 0.5477 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.1376, allocations: 0.4973 MB / 0.5482 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.1399, allocations: 1.682 MB / 0.5499 GB, free: 9.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.141, allocations: 349.1 kB / 0.5502 GB, free: 9.414 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003884/0.1413, allocations: 133.6 kB / 0.5503 GB, free: 9.277 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.929e-05/0.1414, allocations: 11.98 kB / 0.5503 GB, free: 9.266 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006268/0.142, allocations: 286.8 kB / 0.5506 GB, free: 8.945 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.963e-06/0.142, allocations: 0 / 0.5506 GB, free: 8.945 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001466/0.1435, allocations: 0.5213 MB / 0.5511 GB, free: 8.418 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001746/0.1437, allocations: 298.7 kB / 0.5514 GB, free: 8.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.1441, allocations: 348.4 kB / 0.5517 GB, free: 7.711 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.491e-05/0.1441, allocations: 37.7 kB / 0.5518 GB, free: 7.668 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.1443, allocations: 200.6 kB / 0.552 GB, free: 7.469 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1444, allocations: 107.1 kB / 0.5521 GB, free: 7.363 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.1445, allocations: 73.69 kB / 0.5521 GB, free: 7.285 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.1447, allocations: 346.8 kB / 0.5525 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004018/0.1451, allocations: 143.9 kB / 0.5526 GB, free: 6.797 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005235/0.1456, allocations: 280.9 kB / 0.5529 GB, free: 6.461 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009025/0.1465, allocations: 465.5 kB / 0.5533 GB, free: 5.941 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.1465, allocations: 4 kB / 0.5533 GB, free: 5.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001147/0.1477, allocations: 0.518 MB / 0.5538 GB, free: 5.406 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.688e-05/0.1477, allocations: 33.7 kB / 0.5539 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1477, allocations: 4 kB / 0.5539 GB, free: 5.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.1478, allocations: 8.562 kB / 0.5539 GB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003551/0.1481, allocations: 95.81 kB / 0.554 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.1481, allocations: 7.938 kB / 0.554 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003006/0.1484, allocations: 47.75 kB / 0.554 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.1485, allocations: 20 kB / 0.554 GB, free: 5.188 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.0002612/0.1487, allocations: 197.6 kB / 0.5542 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.251e-05/0.1488, allocations: 43.7 kB / 0.5543 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.149, allocations: 51.27 kB / 0.5543 GB, free: 4.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.149, allocations: 8 kB / 0.5543 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.149, allocations: 4 kB / 0.5543 GB, free: 4.875 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.537e-06/0.149, allocations: 4 kB / 0.5543 GB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.1503, allocations: 1.042 MB / 0.5554 GB, free: 3.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1503, allocations: 0 / 0.5554 GB, free: 3.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.1506, allocations: 59.89 kB / 0.5554 GB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.1506, allocations: 4 kB / 0.5554 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.353e-05/0.1507, allocations: 12 kB / 0.5554 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.1507, allocations: 3.984 kB / 0.5554 GB, free: 3.672 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/0.1507, allocations: 7.938 kB / 0.5554 GB, free: 3.664 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.1518, allocations: 471.7 kB / 0.5559 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.1519, allocations: 120.8 kB / 0.556 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.754e-05/0.152, allocations: 12 kB / 0.556 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.1522, allocations: 23.97 kB / 0.556 GB, free: 2.988 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.1523, allocations: 47.83 kB / 0.5561 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.1524, allocations: 8 kB / 0.5561 GB, free: 2.934 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000373/0.1527, allocations: 247 kB / 0.5563 GB, free: 2.691 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1527, allocations: 0 / 0.5563 GB, free: 2.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006341/0.1534, allocations: 103.8 kB / 0.5564 GB, free: 2.59 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.003206/0.1566, allocations: 1.43 MB / 0.5578 GB, free: 1.301 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.1576, allocations: 410.3 kB / 0.5582 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1576, allocations: 0 / 0.5582 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.1581, allocations: 179.8 kB / 0.5584 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005637/0.1587, allocations: 71.62 kB / 0.5585 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005858/0.1645, allocations: 3.727 MB / 0.5621 GB, free: 12.67 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004908/0.165, allocations: 0.8073 MB / 0.5629 GB, free: 11.84 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002694/0.1653, allocations: 87.14 kB / 0.563 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.1655, allocations: 123.4 kB / 0.5631 GB, free: 11.63 MB / 430.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1655, allocations: 0 / 0.5631 GB, free: 11.63 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.1977, allocations: 8.938 MB / 0.5718 GB, free: 2.734 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.698, allocations: 12.05 kB / 0.5718 GB, free: 2.723 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! Error: Could not read variable windFarm.p[1] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable windFarm.p[1] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! Error: Could not read variable windFarm.p[2] in file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv. Warning: Get data of variable windFarm.p[2] from file PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.8798115439713]