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.001337/0.001337, allocations: 119.8 kB / 17.74 MB, free: 5.301 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.001403/0.001403, allocations: 185.3 kB / 20.67 MB, free: 2.375 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.435/1.435, allocations: 222.9 MB / 246.4 MB, free: 4.227 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.2825/0.2825, allocations: 38.01 MB / 336.6 MB, free: 12.98 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.00192/0.00192, allocations: 66.95 kB / 466.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1269, allocations: 58.08 MB / 0.5121 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.006718/0.1337, allocations: 3.677 MB / 0.5157 GB, free: 6.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003298/0.137, allocations: 2.046 MB / 0.5177 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.1372, allocations: 7.938 kB / 0.5177 GB, free: 4.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008858/0.1381, allocations: 245.8 kB / 0.518 GB, free: 4.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.1388, allocations: 274.8 kB / 0.5182 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006789/0.1395, allocations: 295.1 kB / 0.5185 GB, free: 3.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006128/0.1401, allocations: 0.5221 MB / 0.519 GB, free: 3.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.1405, allocations: 211.5 kB / 0.5192 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000417/0.1409, allocations: 227.1 kB / 0.5194 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003075/0.1413, allocations: 219.2 kB / 0.5196 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.355e-05/0.1413, allocations: 40 kB / 0.5197 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006549/0.142, allocations: 399.2 kB / 0.5201 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.1422, allocations: 131.6 kB / 0.5202 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001985/0.1424, allocations: 183.1 kB / 0.5204 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009049/0.1433, allocations: 0.6344 MB / 0.521 GB, free: 1.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.1433, allocations: 4 kB / 0.521 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1433, allocations: 0 / 0.521 GB, free: 1.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.1433, allocations: 0 / 0.521 GB, free: 1.168 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.001367/0.1447, allocations: 0.758 MB / 0.5217 GB, free: 360 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1447, allocations: 11.89 kB / 0.5217 GB, free: 348 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.342e-05/0.1448, allocations: 58.73 kB / 0.5218 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008965/0.1457, allocations: 116.6 kB / 0.5219 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.1464, allocations: 423.8 kB / 0.5223 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.1464, allocations: 16.81 kB / 0.5223 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.253e-05/0.1465, allocations: 27.94 kB / 0.5224 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009039/0.1474, allocations: 446.8 kB / 0.5228 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1474, allocations: 3.938 kB / 0.5228 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.1475, allocations: 8 kB / 0.5228 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.1475, allocations: 20.42 kB / 0.5228 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1486, allocations: 0.4973 MB / 0.5233 GB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.151, allocations: 1.671 MB / 0.5249 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.1521, allocations: 373 kB / 0.5253 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.1525, allocations: 137.6 kB / 0.5254 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.1525, allocations: 12 kB / 0.5254 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006092/0.1532, allocations: 290.9 kB / 0.5257 GB, free: 12.04 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.234e-06/0.1532, allocations: 0 / 0.5257 GB, free: 12.04 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001458/0.1546, allocations: 0.5289 MB / 0.5262 GB, free: 11.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002156/0.1549, allocations: 294.7 kB / 0.5265 GB, free: 11.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004405/0.1553, allocations: 336.4 kB / 0.5268 GB, free: 10.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.353e-05/0.1554, allocations: 33.7 kB / 0.5269 GB, free: 10.78 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.1556, allocations: 196.7 kB / 0.527 GB, free: 10.58 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001233/0.1557, allocations: 115.1 kB / 0.5272 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1558, allocations: 61.7 kB / 0.5272 GB, free: 10.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.156, allocations: 346.8 kB / 0.5275 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.1564, allocations: 143.9 kB / 0.5277 GB, free: 9.914 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004925/0.1569, allocations: 281 kB / 0.5279 GB, free: 9.578 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008886/0.1578, allocations: 453.7 kB / 0.5284 GB, free: 9.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1579, allocations: 4 kB / 0.5284 GB, free: 9.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001095/0.159, allocations: 0.5142 MB / 0.5289 GB, free: 8.539 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.037e-05/0.159, allocations: 39.72 kB / 0.5289 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.159, allocations: 4 kB / 0.5289 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.1591, allocations: 8 kB / 0.5289 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.1594, allocations: 92.3 kB / 0.529 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.1594, allocations: 4 kB / 0.529 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.1597, allocations: 47.75 kB / 0.5291 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.1598, allocations: 20 kB / 0.5291 GB, free: 8.324 MB / 398.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.0002364/0.16, allocations: 205.2 kB / 0.5293 GB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.1601, allocations: 47.7 kB / 0.5293 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.1602, allocations: 47.16 kB / 0.5294 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.1602, allocations: 4 kB / 0.5294 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.849e-06/0.1602, allocations: 8 kB / 0.5294 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.1603, allocations: 0 / 0.5294 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.1613, allocations: 1.035 MB / 0.5304 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1613, allocations: 4 kB / 0.5304 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.1616, allocations: 59.89 kB / 0.5305 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1616, allocations: 0 / 0.5305 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.642e-05/0.1616, allocations: 12 kB / 0.5305 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/0.1617, allocations: 11.94 kB / 0.5305 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1617, allocations: 3.938 kB / 0.5305 GB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.1627, allocations: 480.5 kB / 0.5309 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.587e-05/0.1628, allocations: 112.8 kB / 0.5311 GB, free: 6.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.328e-05/0.1628, allocations: 19.98 kB / 0.5311 GB, free: 6.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.1631, allocations: 27.91 kB / 0.5311 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-05/0.1632, allocations: 35.91 kB / 0.5311 GB, free: 6.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.089e-05/0.1632, allocations: 19.98 kB / 0.5312 GB, free: 6.059 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.1635, allocations: 231.1 kB / 0.5314 GB, free: 5.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1635, allocations: 0 / 0.5314 GB, free: 5.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000421/0.1639, allocations: 91.88 kB / 0.5315 GB, free: 5.742 MB / 398.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.00283/0.1667, allocations: 1.36 MB / 0.5328 GB, free: 4.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009827/0.1677, allocations: 430.7 kB / 0.5332 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1678, allocations: 0 / 0.5332 GB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004914/0.1683, allocations: 201.3 kB / 0.5334 GB, free: 3.891 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.1687, allocations: 78.22 kB / 0.5335 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005769/0.1745, allocations: 3.676 MB / 0.5371 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.175, allocations: 0.7995 MB / 0.5378 GB, free: 15.08 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.1753, allocations: 95.19 kB / 0.5379 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.1755, allocations: 119.4 kB / 0.538 GB, free: 14.87 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1755, allocations: 0 / 0.538 GB, free: 14.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03346/0.209, allocations: 8.384 MB / 0.5462 GB, free: 6.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.393/8.602, allocations: 8.984 kB / 0.5462 GB, free: 6.516 MB / 414.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_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] "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.64107128197793]