Skip to content

Commit 24b4f90

Browse files
authored
Test the data reconciliation libraries with the new backend (#425)
The new backend can reconcile since OpenModelica #17546 (OpenModelica #16873). Test the data reconciliation libraries of OpenModelica #14817 with it too, and compare the two backends in one overview. - configs/dataReconciliation-newBackend.json: the configuration of configs/dataReconciliation.json with --newBackend. - .CI/Jenkinsfile: parameter dataReconciliation_newBackend and stage dataReconciliation-newBackend, filling the branch of that name. The branch gets report emails and plots, and overview-dataReconciliation.html is built from both branches. - README.md: mention the new configuration. Tested locally with test.py and report.py, omc v1.28.0-dev.1860: 49 of 66 models reconcile with the old backend and 44 with the new one. The Jenkinsfile was not run. Assisted-by: Claude Fable 5.2
1 parent 59c8e4f commit 24b4f90

3 files changed

Lines changed: 43 additions & 4 deletions

File tree

‎.CI/Jenkinsfile‎

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pipeline {
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.')
2626
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.')
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.')
28+
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.')
2829
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.')
2930
booleanParam(name: 'wasm_jit', defaultValue: false, description: 'master branch, with --simCodeTarget=wasm-jit (ryzen-9950x). Every model is translated and simulated the way simulate() does, filling wasm-jit. This is an experimental job that does not run on a fixed schedule.')
3031
booleanParam(name: 'wasm_web', defaultValue: false, description: 'master branch, with --simCodeTarget=wasm-jit (ryzen-9950x), simulated the way the web omc does: the driver and the linear and nonlinear solvers in wasm, the in-wasm libm, and external "C" only from prebuilt wasm libraries. Fills wasm-web. This is an experimental job that does not run on a fixed schedule.')
@@ -416,6 +417,22 @@ pipeline {
416417
runRegressiontest('master', 'dataReconciliation', '', '', false, '', '', false, false, 0, 'configs/dataReconciliation.json')
417418
}
418419
}
420+
stage('dataReconciliation-newBackend') {
421+
agent {
422+
node {
423+
label 'ryzen-5950x-1'
424+
customWorkspace 'ws/OpenModelicaLibraryTestingWork'
425+
}
426+
}
427+
options { skipDefaultCheckout() }
428+
when {
429+
beforeAgent true
430+
expression { params.dataReconciliation_newBackend }
431+
}
432+
steps {
433+
runRegressiontest('master', 'dataReconciliation-newBackend', '', '', false, '', '', false, false, 0, 'configs/dataReconciliation-newBackend.json')
434+
}
435+
}
419436
stage('heavy_tests') {
420437
agent {
421438
node {
@@ -511,7 +528,7 @@ pipeline {
511528
}
512529
when {
513530
beforeAgent true
514-
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.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.oldInst || params.cpp || params.solvers || params.wasm_jit || params.wasm_fmu || params.wasm_web || params.c_plus_rust}
531+
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.oldInst || params.cpp || params.solvers || params.wasm_jit || params.wasm_fmu || params.wasm_web || params.c_plus_rust}
515532
}
516533
environment {
517534
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'
@@ -544,8 +561,8 @@ pipeline {
544561

545562
// The shell takes extraEmails from the environment, so its value is never
546563
// part of the command.
547-
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 gbode cvode ida"
548-
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 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 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"
549566

550567
// Recorded and announced only once they are up: a report the database
551568
// knows about is never generated again, so one that a later failure in
@@ -575,7 +592,7 @@ pipeline {
575592
sh "./report.py --branches='generateSymbolicJacobian' configs/conf.json"
576593
sh "mv overview.html overview-generateSymbolicJacobian.html"
577594

578-
sh "./report.py --branches='dataReconciliation' configs/dataReconciliation.json"
595+
sh "./report.py --branches='dataReconciliation dataReconciliation-newBackend' configs/dataReconciliation.json"
579596
sh "mv overview.html overview-dataReconciliation.html"
580597

581598
sh "./report.py --branches='heavy_tests heavy_tests_wasm' configs/heavy_tests.json"

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ different OpenModelica versions, according to the conditions of the
158158
and the pages it links) is published in `files/<model>.dr/`, linked as
159159
`(dr)` next to `(sim)`, with a *Data reconciliation* column in the library
160160
page.
161+
[configs/dataReconciliation-newBackend.json](./configs/dataReconciliation-newBackend.json)
162+
is the same configuration with `--newBackend`; it fills the branch
163+
`dataReconciliation-newBackend`, and `overview-dataReconciliation.html` has
164+
a row for each of the two.
161165

162166
Check [configs/conf.json](./configs/conf.json) for more.
163167
- If you used [.CI/installLibraries.mos](./.CI/installLibraries.mos) to test all
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"library": "ModelicaDataReconciliationSimpleTests",
4+
"libraryVersion": "master",
5+
"libraryVersionNameForTests": "",
6+
"dataReconciliation": true,
7+
"extraCustomCommands": ["setCommandLineOptions(\"--newBackend --preOptModules+=dataReconciliation\")"],
8+
"extraSimFlags": "-reconcile"
9+
},
10+
{
11+
"library": "TSP_DataReconciliationSimpleTests",
12+
"libraryVersion": "master",
13+
"libraryVersionNameForTests": "",
14+
"dataReconciliation": true,
15+
"extraCustomCommands": ["setCommandLineOptions(\"--newBackend --preOptModules+=dataReconciliation\")"],
16+
"extraSimFlags": "-reconcile"
17+
}
18+
]

0 commit comments

Comments
 (0)