Console Output
+ cmake --build build_cmake --parallel 12 --target rust_wasm_runtime
Rust: syncing hand-written sources -> per-build working copy
Built target rust_src_sync
Rust: building + optimising the wasm-jit runtime -> /var/lib/jenkins/ws/OpenModelica/runtime.wasm
Compiling libm v0.2.16
Compiling autocfg v1.5.1
Compiling bytemuck v1.25.2
Compiling version_check v0.9.5
Compiling cfg-if v1.0.5
Compiling proc-macro2 v1.0.107
Compiling unicode-ident v1.0.26
Compiling quote v1.0.47
Compiling once_cell v1.21.4
Compiling nano-gemm-codegen v0.2.1
Compiling bitflags v2.13.2
Compiling paste v1.0.15
Compiling zerocopy v0.8.57
Compiling pulp v0.22.3
Compiling libc v0.2.189
Compiling reborrow v0.5.5
Compiling num-traits v0.2.19
Compiling crunchy v0.2.4
Compiling pulp-wasm-simd-flag v0.1.1
Compiling tiny-keccak v2.0.2
Compiling dyn-stack-macros v0.1.3
Compiling raw-cpuid v11.6.0
Compiling seq-macro v0.3.6
Compiling find-msvc-tools v0.1.12
Compiling shlex v2.0.1
Compiling ahash v0.8.12
Compiling nano-gemm-core v0.2.1
Compiling dyn-stack v0.13.2
Compiling cc v1.4.6
Compiling bytes v1.12.1
Compiling arrow-schema v60.0.0
Compiling semver v1.0.28
Compiling nano-gemm-f32 v0.2.1
Compiling nano-gemm-c64 v0.2.1
Compiling nano-gemm-f64 v0.2.1
Compiling rustc_version v0.4.1
Compiling nano-gemm-c32 v0.2.1
Compiling syn v2.0.119
Compiling hashbrown v0.17.1
Compiling generativity v1.2.1
Compiling daskr v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/daskr)
Compiling flatbuffers v25.12.19
Compiling openmodelica_solvers v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_solvers)
Compiling equator-macro v0.6.0
Compiling openmodelica_nls v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls)
Compiling num-complex v0.4.6
Compiling num-integer v0.1.47
Compiling chrono v0.4.45
Compiling openmodelica_sim_meta v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta)
Compiling getrandom v0.2.17
Compiling minpack v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/minpack)
Compiling num-bigint v0.5.1
Compiling openmodelica_plt_writer v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_plt_writer)
warning: value assigned to `info` is never read
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/minpack/src/lib.rs:567:20
|
567 | let mut info = Status::Stalled;
| ^^^^^^^^^^^^^^^ this value is reassigned later and never used
...
749 | info = Status::Stalled;
| ---------------------- `info` is overwritten here before the previous value is read
|
= note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
warning: `minpack` (lib) generated 1 warning
Compiling const-random-macro v0.1.16
Compiling equator v0.6.0
Compiling zerocopy-derive v0.8.57
Compiling equator-macro v0.2.1
Compiling openmodelica_codegen_wasm_jit_runtime v0.1.0 (/tmp/omc-rust/rust-src/Compiler/OpenModelica.rs/openmodelica_codegen_wasm_jit_runtime)
Compiling openmodelica_mat_writer v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_mat_writer)
warning: unused import: `linsol::color_columns`
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_solvers/src/gbode/mod.rs:36:16
|
36 | pub(crate) use linsol::color_columns;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: `openmodelica_solvers` (lib) generated 1 warning (run `cargo fix --lib -p openmodelica_solvers` to apply 1 suggestion)
Compiling dlmalloc v0.2.14
Compiling const-random v0.1.18
Compiling gemm-common v0.19.0
Compiling qd v0.8.0
Compiling faer-traits v0.24.0
Compiling equator v0.2.2
Compiling gemm-f32 v0.19.0
Compiling gemm-c32 v0.19.0
Compiling gemm-c64 v0.19.0
Compiling gemm-f64 v0.19.0
Compiling gemm v0.19.0
Compiling nano-gemm v0.2.2
Compiling faer v0.24.4
Compiling half v2.7.1
Compiling arrow-buffer v60.0.0
Compiling arrow-data v60.0.0
Compiling openmodelica_lapack v0.1.0 (/tmp/omc-rust/rust-src/Compiler/OpenModelica.rs/openmodelica_lapack)
Compiling arrow-array v60.0.0
Compiling arrow-cmp v60.0.0
Compiling arrow-select v60.0.0
Compiling arrow-ipc v60.0.0
Compiling openmodelica_arrow_writer v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_arrow_writer)
warning: unused import: `alloc::vec::Vec`
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:1575:9
|
1575 | use alloc::vec::Vec;
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:2842:9
|
2842 | let mut group = |header: &str, lines: alloc::vec::Vec<String>| {
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `model`
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:3030:26
|
3030 | fn header(&mut self, model: Option<&SimMeta>) {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_model`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning[E0133]: call to unsafe function `driver::dassl_log_jacobian` is unsafe and requires unsafe block
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:5976:13
|
5976 | dassl_log_jacobian(ctx, e, unsafe { *t }, y, yprime, base, pd, cj, h, wt)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
|
= note: consult the function's documentation for information on how to avoid undefined behavior
note: an unsafe function restricts its caller, but its body is safe by default
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:5862:1
|
5862 | / unsafe fn dassl_jac(
5863 | | t: *mut f64,
5864 | | y: *mut f64,
5865 | | yprime: *mut f64,
... |
5872 | | _ipar: *mut i32,
5873 | | ) {
| |_^
= note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
= note: `#[warn(unsafe_op_in_unsafe_fn)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
warning: unused variable: `atol`
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:7945:17
|
7945 | let (_, atol) = dassl_tolerances(self.tol, &self.nominals);
| ^^^^ help: if this is intentional, prefix it with an underscore: `_atol`
warning: unused variable: `sim_data`
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:8197:13
|
8197 | let sim_data = self.sim_data;
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_data`
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:11299:9
|
11299 | let mut residual = |e: &mut dyn SimEngine, u: &[f64], out: &mut [f64]| -> Result<()> {
| ----^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/lib.rs:2492:17
|
2492 | let mut jac = |r: &mut Reader| -> core::result::Result<Option<ReconJac>, &'static str> {
| ----^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/lib.rs:2513:9
|
2513 | let mut info = |r: &mut Reader| -> core::result::Result<SrcInfo, &'static str> {
| ----^^^^
| |
| help: remove this `mut`
warning: function `uri_to_filename` is never used
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:1420:15
|
1420 | pub(crate) fn uri_to_filename(uri: &str) -> alloc::string::String {
| ^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: function `read_result_file` is never used
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:1442:15
|
1442 | pub(crate) fn read_result_file(
| ^^^^^^^^^^^^^^^^
warning: function `update_discrete_system` is never used
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:4321:15
|
4321 | pub(crate) fn update_discrete_system(
| ^^^^^^^^^^^^^^^^^^^^^^
warning: fields `jac_ypsave` and `tol` are never read
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:5451:5
|
5416 | struct ResCtx {
| ------ fields in this struct
...
5451 | jac_ypsave: Vec<f64>,
| ^^^^^^^^^^
...
5462 | tol: f64,
| ^^^
warning: field `rel_fresh_off` is never read
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:7384:5
|
7374 | struct SolverCore {
| ---------- field in this struct
...
7384 | rel_fresh_off: u32,
| ^^^^^^^^^^^^^
warning: method `index_list` is never used
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/parmod.rs:97:8
|
92 | impl Cluster {
| ------------ method in this implementation
...
97 | fn index_list(&self) -> String {
| ^^^^^^^^^^
For more information about this error, try `rustc --explain E0133`.
warning: `openmodelica_sim_meta` (lib) generated 15 warnings (run `cargo fix --lib -p openmodelica_sim_meta` to apply 9 suggestions)
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:2907:9
|
2907 | let mut x1 = carve(&mut rest, n);
| ----^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:3921:9
|
3921 | let mut xbuf = carve(&mut rest, m);
| ----^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:3928:9
|
3928 | let mut start_point = carve(&mut rest, n);
| ----^^^^^^^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:3929:9
|
3929 | let mut start = carve(&mut rest, n);
| ----^^^^^
| |
| help: remove this `mut`
warning: variable does not need to be mutable
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:3931:9
|
3931 | let mut best = carve(&mut rest, n);
| ----^^^^
| |
| help: remove this `mut`
warning: function `note_nls_iters` is never used
--> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:2591:4
|
2591 | fn note_nls_iters(n: u64) {
| ^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: `openmodelica_nls` (lib) generated 6 warnings (run `cargo fix --lib -p openmodelica_nls` to apply 5 suggestions)
warning: unused variable: `x_ptr`
--> src/lib.rs:3468:69
|
3468 | pub extern "C" fn rt_solve_lin_dense_sparse(a_ptr: u32, b_ptr: u32, x_ptr: u32, n: u32, eq_index: i32, time: f64) -> i32 {
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_x_ptr`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `x_ptr`
--> src/lib.rs:3550:5
|
3550 | x_ptr: u32,
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_x_ptr`
warning: field `0` is never read
--> src/lib.rs:989:20
|
989 | struct ElemDiscard([u8; 8]);
| ----------- ^^^^^^^
| |
| field in this struct
|
= help: consider removing this field
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
warning: function `set_diag` is never used
--> src/nls.rs:524:15
|
524 | pub(crate) fn set_diag(systems: &[openmodelica_sim_meta::NlsVars]) {
| ^^^^^^^^
warning: function `have_kinsol` is never used
--> src/sundials.rs:84:15
|
84 | pub(crate) fn have_kinsol() -> bool {
| ^^^^^^^^^^^
warning: function `have_klu` is never used
--> src/sundials.rs:89:15
|
89 | pub(crate) fn have_klu() -> bool {
| ^^^^^^^^
warning: function `have_umfpack` is never used
--> src/sundials.rs:94:15
|
94 | pub(crate) fn have_umfpack() -> bool {
| ^^^^^^^^^^^^
warning: function `reset_caches` is never used
--> src/sundials.rs:329:15
|
329 | pub(crate) fn reset_caches() {
| ^^^^^^^^^^^^
warning: feature `asm_experimental_arch` is declared but not used
--> src/lib.rs:39:12
|
39 | #![feature(asm_experimental_arch)]
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default
warning: `openmodelica_codegen_wasm_jit_runtime` (lib) generated 9 warnings (run `cargo fix --lib -p openmodelica_codegen_wasm_jit_runtime` to apply 2 suggestions)
Finished `release` profile [optimized] target(s) in 4.63s
Built target rust_wasm_runtime