Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 62 additions & 10 deletions .CI/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ pipeline {

booleanParam(name: 'v1_26', defaultValue: false, description: 'maintenance/v1.26 branch (ryzen-5950x-1)')
booleanParam(name: 'v1_27', defaultValue: false, description: 'maintenance/v1.27 branch (ryzen-5950x-1)')
booleanParam(name: 'v1_28', defaultValue: false, description: 'maintenance/v1.28 branch (ryzen-5950x-1)')
booleanParam(name: 'master', defaultValue: false, description: 'master branch, simulated with the solver each model asks for, filling master (ryzen-9950x).')

booleanParam(name: 'fmi_v1_26', defaultValue: false, description: 'maintenance/v1.26 branch with FMI (ryzen-5950x-2). Every FMU is built once and simulated four ways: Model Exchange with OMSimulator filling v1.26-fmi and with FMPy filling v1.26-fmi-fmpy, Co-Simulation with OMSimulator and CVODE filling v1.26-fmi-cs-cvode and with Euler filling v1.26-fmi-cs-euler.')
booleanParam(name: 'fmi_v1_27', defaultValue: false, description: 'maintenance/v1.27 branch with FMI (ryzen-5950x-2). Every FMU is built once and simulated four ways: Model Exchange with OMSimulator filling v1.27-fmi and with FMPy filling v1.27-fmi-fmpy, Co-Simulation with OMSimulator and CVODE filling v1.27-fmi-cs-cvode and with Euler filling v1.27-fmi-cs-euler.')
booleanParam(name: 'fmi_v1_28', defaultValue: false, description: 'maintenance/v1.28 branch with FMI (ryzen-5950x-2). Every FMU is built once and simulated four ways: Model Exchange with OMSimulator filling v1.28-fmi and with FMPy filling v1.28-fmi-fmpy, Co-Simulation with OMSimulator and CVODE filling v1.28-fmi-cs-cvode and with Euler filling v1.28-fmi-cs-euler.')
booleanParam(name: 'fmi_master', defaultValue: false, description: 'master branch with FMI (ryzen-5950x-2). Every FMU is built once, serving FMI 2.0 and 3.0, and simulated five ways: FMI 2.0 Model Exchange with OMSimulator filling master-fmi and with FMPy filling master-fmi-fmpy, FMI 2.0 Co-Simulation with OMSimulator and CVODE filling master-fmi-cs-cvode and with Euler filling master-fmi-cs-euler, and FMI 3.0 Co-Simulation with FMPy and CVODE filling master-fmi3-cs-cvode.')

booleanParam(name: 'newInst_daeMode', defaultValue: false, description: 'master branch, --daeMode (ryzen-5950x-2)')
Expand All @@ -17,6 +19,7 @@ pipeline {

booleanParam(name: 'cpp_v1_26', defaultValue: false, description: 'maintenance/v1.26 branch, with --simCodeTarget=Cpp (ryzen-5950x-2).')
booleanParam(name: 'cpp_v1_27', defaultValue: false, description: 'maintenance/v1.27 branch, with --simCodeTarget=Cpp (ryzen-5950x-2).')
booleanParam(name: 'cpp_v1_28', defaultValue: false, description: 'maintenance/v1.28 branch, with --simCodeTarget=Cpp (ryzen-5950x-2).')
booleanParam(name: 'cpp', defaultValue: false, description: 'master branch, with --simCodeTarget=Cpp (ryzen-5950x-2).')
booleanParam(name: 'report_ryzen_5950x_1', defaultValue: false, description: 'Generate a report for ryzen-5950x-1 without running the tests')
booleanParam(name: 'report_ryzen_5950x_2', defaultValue: false, description: 'Generate a report for ryzen-5950x-2 without running the tests')
Expand Down Expand Up @@ -89,6 +92,23 @@ pipeline {
}
}

stage('v1.28') {
agent {
node {
label 'ryzen-5950x-1'
customWorkspace 'ws/OpenModelicaLibraryTestingWork'
}
}
options { skipDefaultCheckout() }
when {
beforeAgent true
expression { params.v1_28 }
}
steps {
runRegressiontest('maintenance/v1.28', 'v1.28', '', '', false, '', '', false, false)
}
}

stage('master') {
agent {
node {
Expand Down Expand Up @@ -243,6 +263,22 @@ pipeline {
runRegressiontest('maintenance/v1.27', 'v1.27-fmi', '', omsimulatorHash(), false, '', '', false, false, 0, 'configs/conf.json', '', '.CI/testing', fmiSimulators())
}
}
stage('v1.28 FMI') {
agent {
node {
label 'ryzen-5950x-2-1'
customWorkspace 'ws/OpenModelicaLibraryTestingWork'
}
}
options { skipDefaultCheckout() }
when {
beforeAgent true
expression { params.fmi_v1_28 }
}
steps {
runRegressiontest('maintenance/v1.28', 'v1.28-fmi', '', omsimulatorHash(), false, '', '', false, false, 0, 'configs/conf.json', '', '.CI/testing', fmiSimulators())
}
}
stage('master FMI') {
agent {
node {
Expand Down Expand Up @@ -483,6 +519,23 @@ pipeline {
}
}

stage('C++ v1.28') {
agent {
node {
label 'ryzen-5950x-2-1'
customWorkspace 'ws/OpenModelicaLibraryTestingWork'
}
}
options { skipDefaultCheckout() }
when {
beforeAgent true
expression { params.cpp_v1_28 }
}
steps {
runRegressiontest('maintenance/v1.28', 'v1.28-cpp', 'setCommandLineOptions("--simCodeTarget=Cpp")', '', false, '', '', false, false)
}
}

stage('C++') {
agent {
node {
Expand Down Expand Up @@ -511,14 +564,14 @@ pipeline {
}
when {
beforeAgent true
expression { params.v1_25 || params.v1_26 || params.v1_27 || params.master || params.conversion_script || params.report_ryzen_5950x_1 || params.report_ryzen_5950x_2 || params.newInst_newBackend || params.generateSymbolicJacobian || params.dataReconciliation || params.dataReconciliation_newBackend || params.heavy_tests || params.heavy_tests_wasm || params.fmi_v1_25 || params.fmi_v1_26 || params.fmi_v1_27 || params.fmi_master || params.newInst_daeMode || params.newBackend_daeMode || params.cpp || params.solvers || params.wasm_jit || params.wasm_fmu || params.wasm_web || params.c_plus_rust}
expression { params.v1_25 || params.v1_26 || params.v1_27 || params.v1_28 || params.master || params.conversion_script || params.report_ryzen_5950x_1 || params.report_ryzen_5950x_2 || params.newInst_newBackend || params.generateSymbolicJacobian || params.dataReconciliation || params.dataReconciliation_newBackend || params.heavy_tests || params.heavy_tests_wasm || params.fmi_v1_25 || params.fmi_v1_26 || params.fmi_v1_27 || params.fmi_v1_28 || params.fmi_master || params.newInst_daeMode || params.newBackend_daeMode || params.cpp || params.solvers || params.wasm_jit || params.wasm_fmu || params.wasm_web || params.c_plus_rust}
}
environment {
GITBRANCHES = 'maintenance/v1.20 maintenance/v1.21 maintenance/v1.22 maintenance/v1.23 maintenance/v1.24 maintenance/v1.25 maintenance/v1.26 maintenance/v1.27 master newInst-newBackend'
GITBRANCHES_FMI = 'maintenance/v1.20-fmi maintenance/v1.21-fmi maintenance/v1.22-fmi maintenance/v1.23-fmi maintenance/v1.24-fmi maintenance/v1.25-fmi maintenance/v1.26-fmi maintenance/v1.27-fmi maintenance/v1.22-fmi-fmpy maintenance/v1.23-fmi-fmpy maintenance/v1.24-fmi-fmpy maintenance/v1.25-fmi-fmpy maintenance/v1.26-fmi-fmpy maintenance/v1.27-fmi-fmpy master-fmi master-fmi-fmpy maintenance/v1.26-fmi-cs-cvode maintenance/v1.27-fmi-cs-cvode master-fmi-cs-cvode maintenance/v1.26-fmi-cs-euler maintenance/v1.27-fmi-cs-euler master-fmi-cs-euler master-fmi3-cs-cvode'
GITBRANCHES = 'maintenance/v1.20 maintenance/v1.21 maintenance/v1.22 maintenance/v1.23 maintenance/v1.24 maintenance/v1.25 maintenance/v1.26 maintenance/v1.27 maintenance/v1.28 master newInst-newBackend'
GITBRANCHES_FMI = 'maintenance/v1.20-fmi maintenance/v1.21-fmi maintenance/v1.22-fmi maintenance/v1.23-fmi maintenance/v1.24-fmi maintenance/v1.25-fmi maintenance/v1.26-fmi maintenance/v1.27-fmi maintenance/v1.28-fmi maintenance/v1.22-fmi-fmpy maintenance/v1.23-fmi-fmpy maintenance/v1.24-fmi-fmpy maintenance/v1.25-fmi-fmpy maintenance/v1.26-fmi-fmpy maintenance/v1.27-fmi-fmpy maintenance/v1.28-fmi-fmpy master-fmi master-fmi-fmpy maintenance/v1.26-fmi-cs-cvode maintenance/v1.27-fmi-cs-cvode maintenance/v1.28-fmi-cs-cvode master-fmi-cs-cvode maintenance/v1.26-fmi-cs-euler maintenance/v1.27-fmi-cs-euler maintenance/v1.28-fmi-cs-euler master-fmi-cs-euler master-fmi3-cs-cvode'
GITBRANCHES_DAE = 'newInst-daeMode'
GITBRANCHES_NEWBACKEND_DAE = 'newBackend-daeMode'
GITBRANCHES_CPP = 'v1.19-cpp v1.20-cpp v1.21-cpp v1.22-cpp v1.23-cpp v1.24-cpp v1.25-cpp cpp v1.26-cpp v1.27-cpp'
GITBRANCHES_CPP = 'v1.19-cpp v1.20-cpp v1.21-cpp v1.22-cpp v1.23-cpp v1.24-cpp v1.25-cpp cpp v1.26-cpp v1.27-cpp v1.28-cpp'
GITBRANCHES_WASM_JIT = 'wasm-jit-me wasm-jit-cs wasm-jit wasm-web'
GITBRANCHES_C_PLUS_RUST = 'c-plus-rust'
GITBRANCHES_SPECIAL = 'master newInst-newBackend'
Expand Down Expand Up @@ -861,13 +914,12 @@ def sccachePreamble() {
/**
* Whether omc is built with cmake for `branch`, rather than with Autoconf and Makefiles.
*
* The Autoconf+Make build is being removed from OpenModelica (OpenModelica/OpenModelica#14387),
* so master - and the pull requests that would be merged into it - is built with cmake. The
* maintenance branches are still released from the Autoconf build and keep it until they are
* dropped.
* OpenModelica has dropped the Autoconf+Make build (OpenModelica/OpenModelica#14387): master,
* the pull requests into it and v1.28 are built with cmake. v1.26 and v1.27 are still released
* from the Autoconf build and keep it until they are dropped.
*/
def buildsWithCMake(branch) {
return !branch.startsWith('maintenance/')
return !['maintenance/v1.26', 'maintenance/v1.27'].contains(branch)
}

/**
Expand Down Expand Up @@ -1117,7 +1169,7 @@ def runRegressiontest(branch, name, extraFlags, omsHash, omcompiler, extrasimfla
build/bin/omc --version || exit 1
""" + (useSccache ? 'sccache --show-stats || true\n' : '')
} else {
// The maintenance branches only, see buildsWithCMake().
// The Autoconf branches only, see buildsWithCMake().
buildOMC = """
autoreconf --install
./configure --with-cppruntime --without-omc --disable-modelica3d CC=clang CXX=clang++ FC=gfortran CFLAGS='-O2 -march=x86-64-v3' --with-omlibrary=all --with-omniORB
Expand Down
8 changes: 4 additions & 4 deletions .CI/testing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ FROM docker.openmodelica.org/build-deps:ubuntu-26.04-rust
# libnetcdf-dev is used by NcDataReader2 (AixLib, BuildingSystems): the library ships
# libncDataReader2.a, whose netCDF calls are only resolvable with the -dev package.
# Python 3.8 and 3.12 are used by Buildings
# autoconf/automake/libtool and omniORB build the maintenance branches: master builds with cmake,
# while v1.26 and v1.27 still go through `autoreconf && ./configure --with-omniORB`. The base image
# autoconf/automake/libtool and omniORB build v1.26 and v1.27, which still go through
# `autoreconf && ./configure --with-omniORB`: master and v1.28 build with cmake. The base image
# carries what the cmake build needs, which is not quite the same set.
# Boost is one of the differences: master dropped it (OpenModelica#17057) and so did the base
# image's `apt-get build-dep openmodelica` (OpenModelicaBuildScripts#80), but the maintenance
# branches still include it in ParModelica/auto (chrono, graph) and link it in the C++ runtime
# image's `apt-get build-dep openmodelica` (OpenModelicaBuildScripts#80), but v1.26 and v1.27
# still include it in ParModelica/auto (chrono, graph) and link it in the C++ runtime
# (filesystem, system, serialization, program_options, log, thread).
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ in an FMU laid out for FMI 2.0, with the FMI 3.0 description in
`modelDescription.fmi3.xml`. That simulator runs a copy with the FMI 3.0
`modelDescription.xml` and the binaries in the FMI 3.0 platform directory
(`binaries/x86_64-linux` in place of `binaries/linux64`). This needs an omc that
knows `version="2.0+3.0"`, which is only master.
knows `version="2.0+3.0"`, which is v1.28 and later.

```bash
./test.py --branch=master-fmi --fmi=true --fmuType=me_cs \
Expand All @@ -359,9 +359,9 @@ knows `version="2.0+3.0"`, which is only master.
OMSimulator cannot run these FMUs as FMI 3.0 yet
([OMSimulator#1694](https://github.com/OpenModelica/OMSimulator/issues/1694)).

In Jenkins, `fmi_v1_26`, `fmi_v1_27` and `fmi_master` each run this job for
their branch, with all four FMI 2.0 simulators; `fmi_master` also runs
`fmpy-fmi3-cs-cvode`.
In Jenkins, `fmi_v1_26`, `fmi_v1_27`, `fmi_v1_28` and `fmi_master` each run
this job for their branch, with all four FMI 2.0 simulators; `fmi_master` also
runs `fmpy-fmi3-cs-cvode`.

### Adding an FMI simulator

Expand Down
Loading