Skip to content

Commit b1a5d04

Browse files
authored
Add dassl to the solvers job (#434)
master now simulates with -s auto when the model does not set a solver (OpenModelica/OpenModelica#17977). Thus the master table no longer shows DASSL results. The solvers job now also simulates with -s dassl and fills the dassl table. overview-solvers.html compares cvode, dassl, gbode and ida, and does not show master. Assisted-by: Claude Opus 5.5
1 parent 7d36ed2 commit b1a5d04

4 files changed

Lines changed: 19 additions & 13 deletions

File tree

‎.CI/Jenkinsfile‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pipeline {
2323
booleanParam(name: 'report_ryzen_5950x_2', defaultValue: false, description: 'Generate a report for ryzen-5950x-2 without running the tests')
2424

2525
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.')
26-
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.')
26+
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.')
2727
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.')
2828
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.')
2929
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.')
@@ -37,7 +37,7 @@ pipeline {
3737
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.')
3838
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.')
3939
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.')
40-
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.')
40+
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.')
4141
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.')
4242
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.')
4343
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.')
@@ -121,7 +121,7 @@ pipeline {
121121
}
122122
steps {
123123
runRegressiontest('master', 'master', '', '', false, '', '', false, false, 0, 'configs/conf.json', '', '.CI/testing', null,
124-
['cvode', 'gbode', 'ida'])
124+
['cvode', 'dassl', 'gbode', 'ida'])
125125
}
126126
}
127127

@@ -561,8 +561,8 @@ pipeline {
561561

562562
// The shell takes extraEmails from the environment, so its value is never
563563
// part of the command.
564-
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"
565-
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"
564+
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"
565+
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"
566566

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

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

641641
// The ways a wasm-jit model is simulated, against master: the plain

‎README.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -483,14 +483,16 @@ it once per solver:
483483
# the overview.html it writes is published as overview-cvode.html
484484
```
485485

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

490491
| solver | branch | simulated with |
491492
| --- | --- | --- |
492493
| `default` | `master` | the solver the model asks for |
493494
| `cvode` | `cvode` | `-s cvode` |
495+
| `dassl` | `dassl` | `-s dassl` |
494496
| `gbode` | `gbode` | `-s gbode -gbm=radauIIA3` |
495497
| `ida` | `ida` | `-s ida` |
496498

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

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

512514
### Testing a pull request
513515

‎configs/solvers.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
"default": {
1414
"branch": "{branch}",
1515
"simflags": "",
16-
"description": "the solver the model asks for, DASSL unless it says otherwise"
16+
"description": "the solver the model asks for, omc's default unless it says otherwise"
1717
},
1818
"cvode": {
1919
"simflags": "-s cvode",
2020
"description": "SUNDIALS CVODE"
2121
},
22+
"dassl": {
23+
"simflags": "-s dassl",
24+
"description": "DASSL"
25+
},
2226
"gbode": {
2327
"simflags": "-s gbode -gbm=radauIIA3",
2428
"description": "the generic bi-rate ODE solver, with the radauIIA3 method"

‎shared.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def branchForWasmFmuRunner(branch, name):
522522

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

0 commit comments

Comments
 (0)