diff --git a/.CI/Jenkinsfile b/.CI/Jenkinsfile index 8005286d..df6a03cb 100644 --- a/.CI/Jenkinsfile +++ b/.CI/Jenkinsfile @@ -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.') @@ -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//merge - the pull request as it would land - the results fill a pr- 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.') @@ -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']) } } @@ -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 @@ -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 diff --git a/README.md b/README.md index 08ff1b4f..9623d6bf 100644 --- a/README.md +++ b/README.md @@ -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` | @@ -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 diff --git a/configs/solvers.json b/configs/solvers.json index 8f12e324..9cffdf15 100644 --- a/configs/solvers.json +++ b/configs/solvers.json @@ -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" diff --git a/shared.py b/shared.py index 2666517e..b09c864a 100644 --- a/shared.py +++ b/shared.py @@ -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