Skip to content

Commit

Permalink
Update Dymola image to 2025x (#582)
Browse files Browse the repository at this point in the history
This updates the Dymola image to version 2025x.
  • Loading branch information
mwetter authored Jan 7, 2025
1 parent 8a48649 commit a86da1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions buildingspy/tests/test_simulate_Dymola.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a86da1c

Please sign in to comment.