From a86da1c9a06e8594c803871dffbc0307e7fa9da1 Mon Sep 17 00:00:00 2001 From: Michael Wetter Date: Mon, 6 Jan 2025 17:16:59 -0800 Subject: [PATCH] Update Dymola image to 2025x (#582) This updates the Dymola image to version 2025x. --- .travis.yml | 2 +- buildingspy/tests/test_simulate_Dymola.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fbb2a8ee..7e9b335b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ env: - DOCKER_REPONAME=lbnlblum - OMC_VERSION=ubuntu-2204-omc:1.24.0-1 - OPTIMICA_VERSION=travis-ubuntu-2204-optimica:1.51.6 - - DYMOLA_VERSION=travis_ubuntu-2004_dymola:2024xRefresh1-x86_64 + - DYMOLA_VERSION=travis_ubuntu-2004_dymola:2025x-x86_64 - MPLBACKEND=agg notifications: diff --git a/buildingspy/tests/test_simulate_Dymola.py b/buildingspy/tests/test_simulate_Dymola.py index 8ece379c..399be34d 100644 --- a/buildingspy/tests/test_simulate_Dymola.py +++ b/buildingspy/tests/test_simulate_Dymola.py @@ -241,12 +241,14 @@ def test_timeout(self, timeout=0.0001): s._deleteTemporaryDirectory = False outDir = os.path.abspath(s.getOutputDirectory()) s.setTimeOut(timeout) + print("*** Running simulation that times out. ***") with self.assertRaises(TimeoutError): s.simulate() with open(os.path.join(outDir, s._reporter._logFil)) as fh: log = fh.read() self.assertTrue('Terminating simulation' in log and 'Process timeout' in log) # A value of -1 will never time out + print("*** Running simulation that does not time out. ***") s.setTimeOut(-1) s.simulate() with open(os.path.join(outDir, 'dslog.txt')) as fh: