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
12 changes: 6 additions & 6 deletions .CI/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pipeline {
booleanParam(name: 'report_ryzen_5950x_2', defaultValue: false, description: 'Generate a report for ryzen-5950x-2 without running the tests')

booleanParam(name: 'conversion_script', defaultValue: false, description: 'master branch with conversion script from MSL 3 to 4 (ryzen-5950x-1). This is an experimental job that does not run on a fixed schedule.')
booleanParam(name: 'solvers', defaultValue: false, description: 'master branch, simulated with -s cvode, -s gbode and -s ida (ryzen-9950x). This is an experimental job that does not run on a fixed schedule.')
booleanParam(name: 'solvers', defaultValue: false, description: 'master branch, simulated with -s cvode, -s dassl, -s gbode and -s ida (ryzen-9950x). This is an experimental job that does not run on a fixed schedule.')
booleanParam(name: 'dataReconciliation', defaultValue: false, description: 'master branch, the data reconciliation libraries of configs/dataReconciliation.json run with -reconcile (ryzen-5950x-1). Their reports are linked as (dr) and the job fills overview-dataReconciliation.html.')
booleanParam(name: 'dataReconciliation_newBackend', defaultValue: false, description: 'master branch, the data reconciliation libraries run with -reconcile and --newBackend, configs/dataReconciliation-newBackend.json (ryzen-5950x-1). Fills dataReconciliation-newBackend, which overview-dataReconciliation.html compares with dataReconciliation.')
booleanParam(name: 'generateSymbolicJacobian', defaultValue: false, description: 'master branch, with --generateSymbolicJacobian (ryzen-5950x-1). This is an experimental job that does not run on a fixed schedule.')
Expand All @@ -37,7 +37,7 @@ pipeline {
string(name: 'extraEmails', defaultValue: '', description: 'Space separated email addresses that also get the report emails of this run, besides openmodelicabuilds and the authors of the commits.')
string(name: 'pull_request', defaultValue: '', description: 'Test an OpenModelica pull request rather than a branch: its number, e.g. 16354. omc is built from refs/pull/<N>/merge - the pull request as it would land - the results fill a pr-<N> table, and the report compares them against the newest run of pull_request_baseline. Left empty, nothing of this runs.')
choice(name: 'pull_request_target', choices: ['wasm-jit', 'C'], description: 'The --simCodeTarget a pull request is simulated with. wasm-jit is the cheaper run and is compared against the wasm-jit job; C against master.')
choice(name: 'pull_request_solver', choices: ['default', 'gbode', 'cvode', 'ida'], description: 'The solver a pull request is simulated with: default is the one each model asks for, the others are the configs/solvers.json entries of that name. With the C target, the baseline is then that solver\'s table, which the solvers job fills; nothing fills one for wasm-jit, so set pull_request_baseline yourself or compare against the default solver.')
choice(name: 'pull_request_solver', choices: ['default', 'gbode', 'cvode', 'dassl', 'ida'], description: 'The solver a pull request is simulated with: default is the one each model asks for, the others are the configs/solvers.json entries of that name. With the C target, the baseline is then that solver\'s table, which the solvers job fills; nothing fills one for wasm-jit, so set pull_request_baseline yourself or compare against the default solver.')
string(name: 'pull_request_simflags', defaultValue: '', description: 'Simulation flags appended to every model\'s, after those of pull_request_solver, e.g. -gbm=esdirk3 to run gbode with another method.')
string(name: 'pull_request_baseline', defaultValue: '', description: 'The branch a pull request is compared against. Left empty, the one pull_request_target is tested by: wasm-jit for wasm-jit, master for C, or for C with a pull_request_solver its own table. Its newest run has to come from pull_request_node, or the report compares the machines as much as the pull request.')
choice(name: 'pull_request_verifier', choices: ['nightly', 'pull request'], description: 'The omc that test.py and testmodel.py run through OMPython, which lists the models and compares the results with the reference files (diffSimulationResults): the nightly of the testing image, as for every other run, or the omc built from the pull request, to test a change of the comparison itself.')
Expand Down Expand Up @@ -121,7 +121,7 @@ pipeline {
}
steps {
runRegressiontest('master', 'master', '', '', false, '', '', false, false, 0, 'configs/conf.json', '', '.CI/testing', null,
['cvode', 'gbode', 'ida'])
['cvode', 'dassl', 'gbode', 'ida'])
}
}

Expand Down Expand Up @@ -561,8 +561,8 @@ pipeline {

// The shell takes extraEmails from the environment, so its value is never
// part of the command.
sh "./all-reports.py --email --extra-emails=\"\$extraEmails\" --omcgitdir=OpenModelica ${env.GITBRANCHES} ${env.GITBRANCHES_FMI} ${env.GITBRANCHES_NEWINST} ${env.GITBRANCHES_DAE} ${env.GITBRANCHES_NEWBACKEND_DAE} ${env.GITBRANCHES_CPP} ${env.GITBRANCHES_WASM_JIT} ${env.GITBRANCHES_C_PLUS_RUST} conversion heavy_tests heavy_tests_wasm generateSymbolicJacobian dataReconciliation dataReconciliation-newBackend gbode cvode ida"
sh "./all-plots.py ${env.GITBRANCHES} ${env.GITBRANCHES_FMI} ${env.GITBRANCHES_NEWINST} ${env.GITBRANCHES_DAE} ${env.GITBRANCHES_NEWBACKEND_DAE} ${env.GITBRANCHES_CPP} ${env.GITBRANCHES_WASM_JIT} ${env.GITBRANCHES_C_PLUS_RUST} conversion heavy_tests heavy_tests_wasm generateSymbolicJacobian dataReconciliation dataReconciliation-newBackend gbode cvode ida"
sh "./all-reports.py --email --extra-emails=\"\$extraEmails\" --omcgitdir=OpenModelica ${env.GITBRANCHES} ${env.GITBRANCHES_FMI} ${env.GITBRANCHES_NEWINST} ${env.GITBRANCHES_DAE} ${env.GITBRANCHES_NEWBACKEND_DAE} ${env.GITBRANCHES_CPP} ${env.GITBRANCHES_WASM_JIT} ${env.GITBRANCHES_C_PLUS_RUST} conversion heavy_tests heavy_tests_wasm generateSymbolicJacobian dataReconciliation dataReconciliation-newBackend gbode cvode dassl ida"
sh "./all-plots.py ${env.GITBRANCHES} ${env.GITBRANCHES_FMI} ${env.GITBRANCHES_NEWINST} ${env.GITBRANCHES_DAE} ${env.GITBRANCHES_NEWBACKEND_DAE} ${env.GITBRANCHES_CPP} ${env.GITBRANCHES_WASM_JIT} ${env.GITBRANCHES_C_PLUS_RUST} conversion heavy_tests heavy_tests_wasm generateSymbolicJacobian dataReconciliation dataReconciliation-newBackend gbode cvode dassl ida"

// Recorded and announced only once they are up: a report the database
// knows about is never generated again, so one that a later failure in
Expand Down Expand Up @@ -635,7 +635,7 @@ pipeline {
sh "./report.py --branches='${env.GITBRANCHES_NEWBACKEND_DAE}' configs/conf-nonstandard.json"
sh "mv overview.html overview-nonstandard-libs-newbackend-dae.html"

sh "./report.py --branches='cvode gbode ida master' configs/conf.json"
sh "./report.py --branches='cvode dassl gbode ida' configs/conf.json"
sh "mv overview.html overview-solvers.html"

// The ways a wasm-jit model is simulated, against master: the plain
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,16 @@ it once per solver:
# the overview.html it writes is published as overview-cvode.html
```

`default` is the model's own solver - DASSL unless the model says otherwise -
and every other name is what the run is given as `-s`. A solver fills the table
its entry names, which is the one each of them has always had:
`default` is the model's own solver - omc's default (`-s auto` on master) unless
the model says otherwise - and every other name is what the run is given as
`-s`. A solver fills the table its entry names, which is the one each of them
has always had:

| solver | branch | simulated with |
| --- | --- | --- |
| `default` | `master` | the solver the model asks for |
| `cvode` | `cvode` | `-s cvode` |
| `dassl` | `dassl` | `-s dassl` |
| `gbode` | `gbode` | `-s gbode -gbm=radauIIA3` |
| `ida` | `ida` | `-s ida` |

Expand All @@ -506,8 +508,8 @@ an entry there (`simflags` is what is appended to the model's simulation flags,
defaults to `{name}`).

In Jenkins the parameters keep their meaning: `master` asks for the model's own
solver, `cvode`, `gbode` and `ida` for theirs. Ticking several runs one job that
builds every model once and simulates it with each.
solver, `cvode`, `dassl`, `gbode` and `ida` for theirs. Ticking several runs one
job that builds every model once and simulates it with each.

### Testing a pull request

Expand Down
6 changes: 5 additions & 1 deletion configs/solvers.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
"default": {
"branch": "{branch}",
"simflags": "",
"description": "the solver the model asks for, DASSL unless it says otherwise"
"description": "the solver the model asks for, omc's default unless it says otherwise"
},
"cvode": {
"simflags": "-s cvode",
"description": "SUNDIALS CVODE"
},
"dassl": {
"simflags": "-s dassl",
"description": "DASSL"
},
"gbode": {
"simflags": "-s gbode -gbm=radauIIA3",
"description": "the generic bi-rate ODE solver, with the radauIIA3 method"
Expand Down
2 changes: 1 addition & 1 deletion shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def branchForWasmFmuRunner(branch, name):

# The solvers one built model can be run with, in configs/solvers.json. Like the
# wasm FMU runners, a solver is not a tool but a set of simulation flags, so
# cvode, gbode and ida share one translation and one compilation.
# cvode, dassl, gbode and ida share one translation and one compilation.
SOLVERS_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)),
"configs", "solvers.json")
_solvers = None
Expand Down
Loading