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.00106/0.00106, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.001043/0.001043, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8949/0.8949, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2409/0.2409, allocations: 29.41 MB / 290.1 MB, free: 2.441 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.603e-05/1.793e-05, allocations: 2.281 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.005129/0.005147, allocations: 3.657 MB / 433.9 MB, free: 9.914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.007652, allocations: 2.061 MB / 435.9 MB, free: 7.844 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.007813, allocations: 15.88 kB / 435.9 MB, free: 7.828 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000596/0.008409, allocations: 230.8 kB / 436.2 MB, free: 7.602 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005979/0.009007, allocations: 330.3 kB / 436.5 MB, free: 7.277 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.00943, allocations: 258.9 kB / 436.7 MB, free: 7.023 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004399/0.00987, allocations: 0.5454 MB / 437.3 MB, free: 6.477 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.01017, allocations: 199.8 kB / 437.5 MB, free: 6.273 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003698/0.01054, allocations: 323 kB / 437.8 MB, free: 5.957 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.01076, allocations: 204 kB / 438 MB, free: 5.758 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.775e-05/0.01079, allocations: 44 kB / 438 MB, free: 5.715 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005309/0.01132, allocations: 394.9 kB / 438.4 MB, free: 5.328 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.01143, allocations: 147.5 kB / 438.6 MB, free: 5.184 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.688e-05/0.01153, allocations: 127.7 kB / 438.7 MB, free: 5.059 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006405/0.01217, allocations: 0.7245 MB / 439.4 MB, free: 4.332 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.01217, allocations: 4 kB / 439.4 MB, free: 4.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01217, allocations: 0 / 439.4 MB, free: 4.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.01218, allocations: 0 / 439.4 MB, free: 4.328 MB / 410.7 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.0009364/0.01312, allocations: 0.7022 MB / 440.1 MB, free: 3.59 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.01315, allocations: 11.98 kB / 440.1 MB, free: 3.578 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.971e-05/0.0132, allocations: 62.73 kB / 440.2 MB, free: 3.508 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005035/0.01371, allocations: 116.5 kB / 440.3 MB, free: 3.395 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.0141, allocations: 329.5 kB / 440.6 MB, free: 3.051 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.01411, allocations: 16.88 kB / 440.6 MB, free: 3.035 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.01415, allocations: 24.36 kB / 440.7 MB, free: 3.012 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/0.01468, allocations: 492.8 kB / 441.2 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.01469, allocations: 0 / 441.2 MB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.01472, allocations: 12 kB / 441.2 MB, free: 2.484 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.57e-05/0.01474, allocations: 16.48 kB / 441.2 MB, free: 2.469 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006426/0.01539, allocations: 0.5521 MB / 441.7 MB, free: 1.914 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.0171, allocations: 1.6 MB / 443.3 MB, free: 232 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1694/0.1865, allocations: 389.4 kB / 443.7 MB, free: 54.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.1868, allocations: 145 kB / 443.9 MB, free: 54.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.36e-05/0.1868, allocations: 3.75 kB / 443.9 MB, free: 54.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003784/0.1872, allocations: 305.9 kB / 444.2 MB, free: 54.12 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/0.1872, allocations: 0 / 444.2 MB, free: 54.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009268/0.1881, allocations: 0.5644 MB / 444.7 MB, free: 54.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.084e-05/0.1882, allocations: 298.9 kB / 445 MB, free: 53.74 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.1885, allocations: 394 kB / 445.4 MB, free: 53.59 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.1886, allocations: 43.92 kB / 445.4 MB, free: 53.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.066e-05/0.1887, allocations: 196.9 kB / 445.6 MB, free: 53.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.1887, allocations: 102.6 kB / 445.7 MB, free: 53.35 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/0.1888, allocations: 74.58 kB / 445.8 MB, free: 53.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.599e-05/0.1888, allocations: 353.4 kB / 446.2 MB, free: 52.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.1891, allocations: 179.5 kB / 446.3 MB, free: 52.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002598/0.1893, allocations: 336.2 kB / 446.7 MB, free: 52.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004773/0.1898, allocations: 493.5 kB / 447.1 MB, free: 52.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.1898, allocations: 0 / 447.1 MB, free: 52.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005915/0.1904, allocations: 0.5732 MB / 447.7 MB, free: 52.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.1904, allocations: 34.83 kB / 447.7 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.1904, allocations: 6.844 kB / 447.8 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.658e-05/0.1905, allocations: 6.406 kB / 447.8 MB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.1906, allocations: 92.72 kB / 447.8 MB, free: 52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.1906, allocations: 10.22 kB / 447.9 MB, free: 52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.1908, allocations: 60.3 kB / 447.9 MB, free: 51.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.1908, allocations: 16.06 kB / 447.9 MB, free: 51.98 MB / 410.7 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.0001271/0.191, allocations: 197.7 kB / 448.1 MB, free: 51.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.845e-05/0.191, allocations: 36.58 kB / 448.2 MB, free: 51.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005899/0.1916, allocations: 463.9 kB / 448.6 MB, free: 51.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1916, allocations: 7 kB / 448.6 MB, free: 51.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1916, allocations: 3.219 kB / 448.6 MB, free: 51.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.1916, allocations: 3.375 kB / 448.6 MB, free: 51.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005576/0.1922, allocations: 1.003 MB / 449.6 MB, free: 50.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.1922, allocations: 6.516 kB / 449.6 MB, free: 50.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.1923, allocations: 76.3 kB / 449.7 MB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.1923, allocations: 10.95 kB / 449.7 MB, free: 50.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.1923, allocations: 14.5 kB / 449.7 MB, free: 50.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.1923, allocations: 6.688 kB / 449.7 MB, free: 50.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1923, allocations: 0 / 449.7 MB, free: 50.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000507/0.1928, allocations: 0.5342 MB / 450.3 MB, free: 50.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.1929, allocations: 44.56 kB / 450.3 MB, free: 50.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.1929, allocations: 14.53 kB / 450.3 MB, free: 50.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.193, allocations: 38.53 kB / 450.4 MB, free: 50.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.831e-05/0.1931, allocations: 37.36 kB / 450.4 MB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.1931, allocations: 16.97 kB / 450.4 MB, free: 50.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001577/0.1933, allocations: 283.3 kB / 450.7 MB, free: 50.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1933, allocations: 0 / 450.7 MB, free: 50.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003233/0.1936, allocations: 113.1 kB / 450.8 MB, free: 50.32 MB / 410.7 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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * 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.001547/0.1951, allocations: 1.527 MB / 452.3 MB, free: 49.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005927/0.1957, allocations: 479.1 kB / 452.8 MB, free: 49.23 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.1957, allocations: 0 / 452.8 MB, free: 49.23 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.196, allocations: 213.1 kB / 453 MB, free: 49.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.1963, allocations: 81.88 kB / 453.1 MB, free: 49.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.1994, allocations: 3.972 MB / 457.1 MB, free: 46.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.1995, allocations: 211.1 kB / 457.3 MB, free: 46.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001485/0.1997, allocations: 96.38 kB / 457.4 MB, free: 46.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.1998, allocations: 135 kB / 457.5 MB, free: 46.36 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1998, allocations: 0 / 457.5 MB, free: 46.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01998/0.2198, allocations: 10.41 MB / 467.9 MB, free: 44.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.846/7.066, allocations: 0 / 467.9 MB, free: 44.28 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","/var/lib/jenkins/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: 9.115447047166526]