Skip to content

Console Output

Push event to branch Ticket6084
18:32:08 Connecting to https://api.github.com using sjoelund.se/****** (GitHub Access Token)
Obtained Jenkinsfile from a29dd2834c65e93bba3dc0e95828fcd6e91556f8
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] stage
[Pipeline] { (test)
[Pipeline] parallel
[Pipeline] { (Branch: python2)
[Pipeline] { (Branch: python3)
[Pipeline] stage
[Pipeline] { (python2)
[Pipeline] stage
[Pipeline] { (python3)
[Pipeline] node
Running on asap-1 in /var/lib/jenkins1/ws/OMPython_Ticket6084
[Pipeline] node
Running on ripper2-1 in /var/lib/jenkins1/ws/OMPython_Ticket6084
[Pipeline] {
[Pipeline] {
[Pipeline] checkout
using credential github
[Pipeline] checkout
Fetching changes from the remote Git repository
Cleaning workspace
using credential github
Fetching changes from the remote Git repository
Fetching without tags
Cleaning workspace
Fetching without tags
 > git rev-parse --is-inside-work-tree # timeout=10
 > git config remote.origin.url https://github.com/OpenModelica/OMPython.git # timeout=10
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/OpenModelica/OMPython.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
using GIT_ASKPASS to set credentials GitHub Access Token
 > git fetch --no-tags --progress -- https://github.com/OpenModelica/OMPython.git +refs/heads/Ticket6084:refs/remotes/origin/Ticket6084 # timeout=10
Checking out Revision a29dd2834c65e93bba3dc0e95828fcd6e91556f8 (Ticket6084)
 > git rev-parse --is-inside-work-tree # timeout=10
 > git config remote.origin.url https://github.com/OpenModelica/OMPython.git # timeout=10
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/OpenModelica/OMPython.git
 > git --version # timeout=10
 > git --version # 'git version 2.17.1'
using GIT_ASKPASS to set credentials GitHub Access Token
 > git fetch --no-tags --progress -- https://github.com/OpenModelica/OMPython.git +refs/heads/Ticket6084:refs/remotes/origin/Ticket6084 # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a29dd2834c65e93bba3dc0e95828fcd6e91556f8 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D Ticket6084 # timeout=10
Checking out Revision a29dd2834c65e93bba3dc0e95828fcd6e91556f8 (Ticket6084)
Commit message: "fix ticket #6084"
 > git checkout -b Ticket6084 a29dd2834c65e93bba3dc0e95828fcd6e91556f8 # timeout=10
 > git rev-list --no-walk 2bb000a7f93e076784158749727fc1722fd74d2b # timeout=10
Cleaning workspace
Commit message: "fix ticket #6084"
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] isUnix
[Pipeline] readFile
[Pipeline] sh
[Pipeline] isUnix
 > git config core.sparsecheckout # timeout=10
 > git checkout -f a29dd2834c65e93bba3dc0e95828fcd6e91556f8 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D Ticket6084 # timeout=10
 > git checkout -b Ticket6084 a29dd2834c65e93bba3dc0e95828fcd6e91556f8 # timeout=10
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
[Pipeline] readFile
[Pipeline] sh
+ docker build -t 99544a3172fce9a5ccb39c4f2b816e57f37bb902 --pull -f .jenkins/python3/Dockerfile .jenkins/python3
Sending build context to Docker daemon   2.56kB

Step 1/3 : FROM docker.openmodelica.org/build-deps:v1.16.2
v1.16.2: Pulling from build-deps
Digest: sha256:ef85a65a4b895238f0080287981632dc1a0b144ee2d67b86a10e6cc9df150c9a
Status: Image is up to date for docker.openmodelica.org/build-deps:v1.16.2
 ---> 8c0f9eac200c
Step 2/3 : RUN apt-get update   && apt-get install -qy gnupg wget ca-certificates apt-transport-https sudo   && echo "deb https://build.openmodelica.org/omc/builds/linux/releases/1.14.2/ `lsb_release -sc`  release" > /etc/apt/sources.list.d/openmodelica.list   && wget https://build.openmodelica.org/apt/openmodelica.asc -O- | apt-key add -   && apt-get update   && apt-get install -qy --no-install-recommends omc   && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> c775661f7ca7
Step 3/3 : RUN pip3 install --no-cache pytest
 ---> Using cache
 ---> 30d1cf5dd184
Successfully built 30d1cf5dd184
Successfully tagged 99544a3172fce9a5ccb39c4f2b816e57f37bb902:latest
+ docker build -t 08a347a15216cf56b0aa78160bab159161cba142 --pull -f .jenkins/python2/Dockerfile .jenkins/python2
Sending build context to Docker daemon   2.56kB

Step 1/3 : FROM docker.openmodelica.org/build-deps:v1.16.2
v1.16.2: Pulling from build-deps
Digest: sha256:ef85a65a4b895238f0080287981632dc1a0b144ee2d67b86a10e6cc9df150c9a
Status: Image is up to date for docker.openmodelica.org/build-deps:v1.16.2
 ---> 8c0f9eac200c
Step 2/3 : RUN apt-get update   && apt-get install -qy gnupg wget ca-certificates apt-transport-https sudo   && echo "deb https://build.openmodelica.org/omc/builds/linux/releases/1.14.2/ `lsb_release -sc`  release" > /etc/apt/sources.list.d/openmodelica.list   && wget https://build.openmodelica.org/apt/openmodelica.asc -O- | apt-key add -   && apt-get update   && apt-get install -qy --no-install-recommends omc   && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> b3c29c912eeb
Step 3/3 : RUN pip2 install --no-cache pytest
 ---> Using cache
 ---> def99d370364
Successfully built def99d370364
Successfully tagged 08a347a15216cf56b0aa78160bab159161cba142:latest
[Pipeline] isUnix
[Pipeline] sh
[Pipeline] isUnix
[Pipeline] sh
+ docker inspect -f . 99544a3172fce9a5ccb39c4f2b816e57f37bb902
.
[Pipeline] withDockerContainer
+ docker inspect -f . 08a347a15216cf56b0aa78160bab159161cba142
.
ripper2-1 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -w /var/lib/jenkins1/ws/OMPython_Ticket6084 -v /var/lib/jenkins1/ws/OMPython_Ticket6084:/var/lib/jenkins1/ws/OMPython_Ticket6084:rw,z -v /var/lib/jenkins1/ws/OMPython_Ticket6084@tmp:/var/lib/jenkins1/ws/OMPython_Ticket6084@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** 99544a3172fce9a5ccb39c4f2b816e57f37bb902 cat
$ docker top 3ecd5b57b103fcd72cb2d461511b8cae8ea89b3a263a344a89d6541044933268 -eo pid,comm
[Pipeline] {
[Pipeline] withDockerContainer
asap-1 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -w /var/lib/jenkins1/ws/OMPython_Ticket6084 -v /var/lib/jenkins1/ws/OMPython_Ticket6084:/var/lib/jenkins1/ws/OMPython_Ticket6084:rw,z -v /var/lib/jenkins1/ws/OMPython_Ticket6084@tmp:/var/lib/jenkins1/ws/OMPython_Ticket6084@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** 08a347a15216cf56b0aa78160bab159161cba142 cat
$ docker top 49d021516015a83985251f1b8cc52f6f7637d1fa62866e31c6f68c09d384c22f -eo pid,comm
[Pipeline] {
[Pipeline] sh
[Pipeline] sh
+ python3 setup.py build
+ python2 setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/OMPython
copying OMPython/__init__.py -> build/lib/OMPython
copying OMPython/OMTypedParser.py -> build/lib/OMPython
creating build/lib/OMPython/OMParser
copying OMPython/OMParser/__init__.py -> build/lib/OMPython/OMParser
[Pipeline] timeout
Timeout set to expire in 3 min 0 sec
[Pipeline] {
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/OMPython
copying OMPython/__init__.py -> build/lib.linux-x86_64-2.7/OMPython
copying OMPython/OMTypedParser.py -> build/lib.linux-x86_64-2.7/OMPython
creating build/lib.linux-x86_64-2.7/OMPython/OMParser
copying OMPython/OMParser/__init__.py -> build/lib.linux-x86_64-2.7/OMPython/OMParser
[Pipeline] timeout
Timeout set to expire in 3 min 0 sec
[Pipeline] {
[Pipeline] sh
[Pipeline] sh
+ python3 /usr/local/bin/py.test -v --junitxml py3.xml tests
+ python2 /usr/local/bin/py.test -v --junitxml py2.xml tests
============================= test session starts ==============================
platform linux -- Python 3.6.9, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /var/lib/jenkins1/ws/OMPython_Ticket6084
collecting ... collected 0 items / 4 errors

==================================== ERRORS ====================================
________________ ERROR collecting tests/test_ModelicaSystem.py _________________
/usr/local/lib/python3.6/dist-packages/_pytest/python.py:571: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/usr/local/lib/python3.6/dist-packages/_pytest/pathlib.py:517: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
    ???
<frozen importlib._bootstrap>:971: in _find_and_load
    ???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:665: in _load_unlocked
    ???
/usr/local/lib/python3.6/dist-packages/_pytest/assertion/rewrite.py:171: in exec_module
    exec(co, module.__dict__)
tests/test_ModelicaSystem.py:1: in <module>
    import OMPython
E     File "/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py", line 1419
E       else
E          ^
E   SyntaxError: invalid syntax
___________________ ERROR collecting tests/test_OMParser.py ____________________
/usr/local/lib/python3.6/dist-packages/_pytest/python.py:571: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/usr/local/lib/python3.6/dist-packages/_pytest/pathlib.py:517: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
    ???
<frozen importlib._bootstrap>:971: in _find_and_load
    ???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:665: in _load_unlocked
    ???
/usr/local/lib/python3.6/dist-packages/_pytest/assertion/rewrite.py:171: in exec_module
    exec(co, module.__dict__)
tests/test_OMParser.py:6: in <module>
    from OMPython import OMParser
E     File "/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py", line 1419
E       else
E          ^
E   SyntaxError: invalid syntax
______________________ ERROR collecting tests/test_ZMQ.py ______________________
/usr/local/lib/python3.6/dist-packages/_pytest/python.py:571: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/usr/local/lib/python3.6/dist-packages/_pytest/pathlib.py:517: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
    ???
<frozen importlib._bootstrap>:971: in _find_and_load
    ???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:665: in _load_unlocked
    ???
/usr/local/lib/python3.6/dist-packages/_pytest/assertion/rewrite.py:171: in exec_module
    exec(co, module.__dict__)
tests/test_ZMQ.py:1: in <module>
    import OMPython
E     File "/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py", line 1419
E       else
E          ^
E   SyntaxError: invalid syntax
__________________ ERROR collecting tests/test_typedParser.py __________________
/usr/local/lib/python3.6/dist-packages/_pytest/python.py:571: in _importtestmodule
    mod = import_path(self.fspath, mode=importmode)
/usr/local/lib/python3.6/dist-packages/_pytest/pathlib.py:517: in import_path
    importlib.import_module(module_name)
/usr/lib/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
    ???
<frozen importlib._bootstrap>:971: in _find_and_load
    ???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:665: in _load_unlocked
    ???
/usr/local/lib/python3.6/dist-packages/_pytest/assertion/rewrite.py:171: in exec_module
    exec(co, module.__dict__)
tests/test_typedParser.py:6: in <module>
    from OMPython import OMTypedParser
E     File "/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py", line 1419
E       else
E          ^
E   SyntaxError: invalid syntax
----- generated xml file: /var/lib/jenkins1/ws/OMPython_Ticket6084/py3.xml -----
=========================== short test summary info ============================
ERROR tests/test_ModelicaSystem.py
ERROR tests/test_OMParser.py
ERROR tests/test_ZMQ.py
ERROR tests/test_typedParser.py
!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 4 errors in 0.32s ===============================
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
============================= test session starts ==============================
platform linux2 -- Python 2.7.17, pytest-4.6.11, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python2
cachedir: .pytest_cache
rootdir: /var/lib/jenkins1/ws/OMPython_Ticket6084
collecting ... collected 19 items / 1 errors / 18 selected
$ docker stop --time=1 3ecd5b57b103fcd72cb2d461511b8cae8ea89b3a263a344a89d6541044933268

==================================== ERRORS ====================================
________________ ERROR collecting tests/test_ModelicaSystem.py _________________
/usr/local/lib/python2.7/dist-packages/_pytest/python.py:507: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
/usr/local/lib/python2.7/dist-packages/py/_path/local.py:704: in pyimport
    __import__(modname)
/usr/local/lib/python2.7/dist-packages/_pytest/assertion/rewrite.py:304: in load_module
    exec(co, mod.__dict__)
tests/test_ModelicaSystem.py:1: in <module>
    import OMPython
E     File "/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py", line 1419
E       else
E          ^
E   SyntaxError: invalid syntax
----- generated xml file: /var/lib/jenkins1/ws/OMPython_Ticket6084/py2.xml -----
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.34 seconds ============================
$ docker rm -f 3ecd5b57b103fcd72cb2d461511b8cae8ea89b3a263a344a89d6541044933268
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] // timeout
[Pipeline] }
[Pipeline] }
$ docker stop --time=1 49d021516015a83985251f1b8cc52f6f7637d1fa62866e31c6f68c09d384c22f
$ docker rm -f 49d021516015a83985251f1b8cc52f6f7637d1fa62866e31c6f68c09d384c22f
[Pipeline] // node
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] }
[Pipeline] // stage
[Pipeline] // withEnv
[Pipeline] }
Failed in branch python3
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Failed in branch python2
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline

GitHub has been notified of this commit’s build result

ERROR: script returned exit code 2
Finished: FAILURE