Skip to content

Console Output

Push event to branch Ticket6084
18:15:40 Connecting to https://api.github.com using sjoelund.se/****** (GitHub Access Token)
Obtained Jenkinsfile from 2bb000a7f93e076784158749727fc1722fd74d2b
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
using credential github
Cleaning workspace
Fetching changes from the remote Git repository
Cleaning workspace
Fetching without tags
Fetching without tags
Checking out Revision 2bb000a7f93e076784158749727fc1722fd74d2b (Ticket6084)
Commit message: "add convertMo2FMU test"
 > 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 2bb000a7f93e076784158749727fc1722fd74d2b # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D Ticket6084 # timeout=10
 > git checkout -b Ticket6084 2bb000a7f93e076784158749727fc1722fd74d2b # timeout=10
 > git rev-list --no-walk 341d3fd115878ff7839867e08bfbb7136b54450f # timeout=10
Cleaning workspace
 > 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 rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
Checking out Revision 2bb000a7f93e076784158749727fc1722fd74d2b (Ticket6084)
Commit message: "add convertMo2FMU test"
Cleaning workspace
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 2bb000a7f93e076784158749727fc1722fd74d2b # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D Ticket6084 # timeout=10
 > git checkout -b Ticket6084 2bb000a7f93e076784158749727fc1722fd74d2b # timeout=10
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
[Pipeline] {
[Pipeline] isUnix
[Pipeline] readFile
[Pipeline] sh
[Pipeline] isUnix
[Pipeline] readFile
[Pipeline] sh
+ 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
+ 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
[Pipeline] isUnix
[Pipeline] sh
[Pipeline] isUnix
[Pipeline] sh
+ docker inspect -f . 08a347a15216cf56b0aa78160bab159161cba142
.
[Pipeline] withDockerContainer
+ docker inspect -f . 99544a3172fce9a5ccb39c4f2b816e57f37bb902
.
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 7c077dae8f9f65ef370e068438176057a008d1bd62fcf3dcff06a04b760ed3a6 -eo pid,comm
[Pipeline] {
[Pipeline] withDockerContainer
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 4c1d2360853b997b6344ed4f8f5c187656b9639e7a8b64ba7d3e27645ccb51d0 -eo pid,comm
[Pipeline] {
[Pipeline] sh
[Pipeline] sh
+ python2 setup.py build
+ python3 setup.py build
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
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] {
[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 20 items

tests/test_ModelicaSystem.py::ModelicaSystemTester::testModelicaSystemLoop ============================= 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 20 items

tests/test_ModelicaSystem.py::ModelicaSystemTester::testModelicaSystemLoop FAILED [  5%]
tests/test_OMParser.py::TypeCheckTester::testBoolean PASSED              [ 10%]
tests/test_OMParser.py::TypeCheckTester::testFloat PASSED                [ 15%]
tests/test_OMParser.py::TypeCheckTester::testIdent PASSED                [ 20%]
tests/test_OMParser.py::TypeCheckTester::testInt PASSED                  [ 25%]
tests/test_OMParser.py::TypeCheckTester::testNewlineBehaviour PASSED     [ 30%]
tests/test_OMParser.py::TypeCheckTester::testStr PASSED                  [ 35%]
tests/test_OMParser.py::TypeCheckTester::testUnStringable PASSED         [ 40%]
tests/test_ZMQ.py::ZMQTester::testHelloWorld PASSED                      [ 45%]
tests/test_ZMQ.py::ZMQTester::testSimulate FAILED [  5%]
tests/test_OMParser.py::TypeCheckTester::testBoolean PASSED              [ 10%]
tests/test_OMParser.py::TypeCheckTester::testFloat PASSED                [ 15%]
tests/test_OMParser.py::TypeCheckTester::testIdent PASSED                [ 20%]
tests/test_OMParser.py::TypeCheckTester::testInt PASSED                  [ 25%]
tests/test_OMParser.py::TypeCheckTester::testNewlineBehaviour PASSED     [ 30%]
tests/test_OMParser.py::TypeCheckTester::testStr PASSED                  [ 35%]
tests/test_OMParser.py::TypeCheckTester::testUnStringable PASSED         [ 40%]
tests/test_ZMQ.py::ZMQTester::testHelloWorld PASSED                      [ 45%]
tests/test_ZMQ.py::ZMQTester::testSimulate PASSED                        [ 50%]
tests/test_ZMQ.py::ZMQTester::testTranslate PASSED                       [ 55%]
tests/test_ZMQ.py::FindBestOMCSession::testHelloWorldBestOMCSession PASSED                        [ 50%]
tests/test_ZMQ.py::ZMQTester::testTranslate PASSED [ 60%]
tests/test_typedParser.py::TypeCheckTester::testBoolean PASSED           [ 65%]
tests/test_typedParser.py::TypeCheckTester::testEmpty PASSED             [ 70%]
tests/test_typedParser.py::TypeCheckTester::testFloat PASSED             [ 75%]
tests/test_typedParser.py::TypeCheckTester::testIdent PASSED             [ 80%]
tests/test_typedParser.py::TypeCheckTester::testInt PASSED               [ 85%]
tests/test_typedParser.py::TypeCheckTester::testNewlineBehaviour PASSED  [ 90%]
tests/test_typedParser.py::TypeCheckTester::testStr PASSED               [ 95%]
tests/test_typedParser.py::TypeCheckTester::testUnStringable PASSED      [100%]

=================================== FAILURES ===================================
_________________ ModelicaSystemTester.testModelicaSystemLoop __________________

self = <tests.test_ModelicaSystem.ModelicaSystemTester testMethod=testModelicaSystemLoop>

    def testModelicaSystemLoop(self):
      def worker():
        origDir = os.getcwd()
        os.chdir(self.tmp)
        m = OMPython.ModelicaSystem("M.mo", "M")
        m.simulate()
        m.convertMo2Fmu(fmuType="me")
        os.chdir(origDir)
      for _ in range(10):
>       worker()

/var/lib/jenkins1/ws/OMPython_Ticket6084/tests/test_ModelicaSystem.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/var/lib/jenkins1/ws/OMPython_Ticket6084/tests/test_ModelicaSystem.py:26: in worker
    m.convertMo2Fmu(fmuType="me")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OMPython.ModelicaSystem object at 0x7fb470ffe208>, version = '2.0'
fmuType = 'me', fileNamePrefix = '<default>', includeResources = True

    def convertMo2Fmu(self, version="2.0", fmuType="me_cs", fileNamePrefix="<default>", includeResources=True):  # 19
        """
        This method is used to generate FMU from the given Modelica model. It creates "modelName.fmu" in the current working directory. It can be called:
        with no arguments
        with arguments of https://build.openmodelica.org/Documentation/OpenModelica.Scripting.translateModelFMU.html
        usage
        >>> convertMo2Fmu()
        >>> convertMo2Fmu(version="2.0", fmuType="me|cs|me_cs", fileNamePrefix="<default>", includeResources=true)
        """
        convertMo2FmuError = ''
        if fileNamePrefix == "<default":
          fileNamePrefix = self.modelName
>       translateModelFMUResult = self.requestApi('translateModelFMU', self.modelName, fmuType, fileNamePrefix, includeResources)
E       TypeError: requestApi() takes from 2 to 4 positional arguments but 6 were given

/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py:1417: TypeError
----------------------------- Captured stdout call -----------------------------
Expected end of text, found '-'  (at char 192), (line:1, col:193)
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
----------------------------- Captured stderr call -----------------------------
2020-10-30 17:15:49,684 - OMPython - INFO - OMC Server is up and running at file:////tmp/openmodelica.nobody.port.ca7151f2815e4fb2ba6183f4ecc48c76 pid=63
------------------------------ Captured log call -------------------------------
INFO     OMPython:__init__.py:589 OMC Server is up and running at file:////tmp/openmodelica.nobody.port.ca7151f2815e4fb2ba6183f4ecc48c76 pid=63
=============================== warnings summary ===============================
OMPython/__init__.py:649
  /var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py:649: DeprecationWarning: invalid escape sequence \O
    """

-- Docs: https://docs.pytest.org/en/stable/warnings.html
----- generated xml file: /var/lib/jenkins1/ws/OMPython_Ticket6084/py3.xml -----
=========================== short test summary info ============================
FAILED tests/test_ModelicaSystem.py::ModelicaSystemTester::testModelicaSystemLoop
=================== 1 failed, 19 passed, 1 warning in 2.64s ====================
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
$ docker stop --time=1 4c1d2360853b997b6344ed4f8f5c187656b9639e7a8b64ba7d3e27645ccb51d0
PASSED                       [ 55%]
tests/test_ZMQ.py::FindBestOMCSession::testHelloWorldBestOMCSession PASSED [ 60%]
tests/test_typedParser.py::TypeCheckTester::testBoolean PASSED           [ 65%]
tests/test_typedParser.py::TypeCheckTester::testEmpty PASSED             [ 70%]
tests/test_typedParser.py::TypeCheckTester::testFloat PASSED             [ 75%]
tests/test_typedParser.py::TypeCheckTester::testIdent PASSED             [ 80%]
tests/test_typedParser.py::TypeCheckTester::testInt PASSED               [ 85%]
tests/test_typedParser.py::TypeCheckTester::testNewlineBehaviour PASSED  [ 90%]
tests/test_typedParser.py::TypeCheckTester::testStr PASSED               [ 95%]
tests/test_typedParser.py::TypeCheckTester::testUnStringable PASSED      [100%]

=================================== FAILURES ===================================
_________________ ModelicaSystemTester.testModelicaSystemLoop __________________

self = <tests.test_ModelicaSystem.ModelicaSystemTester testMethod=testModelicaSystemLoop>

    def testModelicaSystemLoop(self):
      def worker():
        origDir = os.getcwd()
        os.chdir(self.tmp)
        m = OMPython.ModelicaSystem("M.mo", "M")
        m.simulate()
        m.convertMo2Fmu(fmuType="me")
        os.chdir(origDir)
      for _ in range(10):
>       worker()

/var/lib/jenkins1/ws/OMPython_Ticket6084/tests/test_ModelicaSystem.py:29: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/var/lib/jenkins1/ws/OMPython_Ticket6084/tests/test_ModelicaSystem.py:26: in worker
    m.convertMo2Fmu(fmuType="me")
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <OMPython.ModelicaSystem object at 0x7fa63d35d690>, version = '2.0'
fmuType = 'me', fileNamePrefix = '<default>', includeResources = True

    def convertMo2Fmu(self, version="2.0", fmuType="me_cs", fileNamePrefix="<default>", includeResources=True):  # 19
        """
        This method is used to generate FMU from the given Modelica model. It creates "modelName.fmu" in the current working directory. It can be called:
        with no arguments
        with arguments of https://build.openmodelica.org/Documentation/OpenModelica.Scripting.translateModelFMU.html
        usage
        >>> convertMo2Fmu()
        >>> convertMo2Fmu(version="2.0", fmuType="me|cs|me_cs", fileNamePrefix="<default>", includeResources=true)
        """
        convertMo2FmuError = ''
        if fileNamePrefix == "<default":
          fileNamePrefix = self.modelName
>       translateModelFMUResult = self.requestApi('translateModelFMU', self.modelName, fmuType, fileNamePrefix, includeResources)
E       TypeError: requestApi() takes at most 4 arguments (6 given)

/var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py:1417: TypeError
----------------------------- Captured stdout call -----------------------------
Expected end of text, found u'-'  (at char 192), (line:1, col:193)
LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.
LOG_SUCCESS       | info    | The simulation finished successfully.
----------------------------- Captured stderr call -----------------------------
2020-10-30 17:15:50,057 - OMPython - INFO - OMC Server is up and running at file:////tmp/openmodelica.nobody.port.c36b533aebe541e6bd65d277b873e0a2 pid=72
------------------------------ Captured log call -------------------------------
INFO     OMPython:__init__.py:589 OMC Server is up and running at file:////tmp/openmodelica.nobody.port.c36b533aebe541e6bd65d277b873e0a2 pid=72
=============================== warnings summary ===============================
tests/test_ModelicaSystem.py::ModelicaSystemTester::testModelicaSystemLoop
tests/test_ModelicaSystem.py::ModelicaSystemTester::testModelicaSystemLoop
tests/test_ModelicaSystem.py::ModelicaSystemTester::testModelicaSystemLoop
  /var/lib/jenkins1/ws/OMPython_Ticket6084/OMPython/__init__.py:815: DeprecationWarning: This method will be removed in future versions.  Use 'list(elem)' or iteration over elem instead.
    ch = sv.getchildren()

-- Docs: https://docs.pytest.org/en/latest/warnings.html
----- generated xml file: /var/lib/jenkins1/ws/OMPython_Ticket6084/py2.xml -----
=============== 1 failed, 19 passed, 3 warnings in 3.28 seconds ================
$ docker rm -f 4c1d2360853b997b6344ed4f8f5c187656b9639e7a8b64ba7d3e27645ccb51d0
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] // timeout
[Pipeline] }
[Pipeline] }
$ docker stop --time=1 7c077dae8f9f65ef370e068438176057a008d1bd62fcf3dcff06a04b760ed3a6
$ docker rm -f 7c077dae8f9f65ef370e068438176057a008d1bd62fcf3dcff06a04b760ed3a6
[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 1
Finished: FAILURE