Skip to content

Console Output

+ cmake --build build_cmake --parallel 12 --target rust_wasm_runtime
[  0%] Rust: syncing hand-written sources -> per-build working copy
[  0%] Built target rust_src_sync
[100%] Rust: building + optimising the wasm-jit runtime -> /var/lib/jenkins1/ws/OpenModelica/runtime.wasm
   Compiling libm v0.2.16
   Compiling autocfg v1.5.1
   Compiling cfg-if v1.0.5
   Compiling bytemuck v1.25.2
   Compiling version_check v0.9.5
   Compiling proc-macro2 v1.0.107
   Compiling unicode-ident v1.0.26
   Compiling quote v1.0.47
   Compiling nano-gemm-codegen v0.2.1
   Compiling once_cell v1.21.4
   Compiling paste v1.0.15
   Compiling bitflags v2.13.2
   Compiling reborrow v0.5.5
   Compiling pulp-wasm-simd-flag v0.1.1
   Compiling dyn-stack-macros v0.1.3
   Compiling pulp v0.22.3
   Compiling num-traits v0.2.19
   Compiling crunchy v0.2.4
   Compiling zerocopy v0.8.57
   Compiling libc v0.2.189
   Compiling tiny-keccak v2.0.2
   Compiling raw-cpuid v11.6.0
   Compiling seq-macro v0.3.6
   Compiling nano-gemm-core v0.2.1
   Compiling dyn-stack v0.13.2
   Compiling find-msvc-tools v0.1.12
   Compiling shlex v2.0.1
   Compiling ahash v0.8.12
   Compiling bytes v1.12.1
   Compiling nano-gemm-c32 v0.2.1
   Compiling nano-gemm-c64 v0.2.1
   Compiling nano-gemm-f32 v0.2.1
   Compiling cc v1.4.6
   Compiling nano-gemm-f64 v0.2.1
   Compiling arrow-schema v60.0.0
   Compiling semver v1.0.28
   Compiling syn v2.0.119
   Compiling hashbrown v0.17.1
   Compiling daskr v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/daskr)
   Compiling generativity v1.2.1
   Compiling equator-macro v0.6.0
   Compiling rustc_version v0.4.1
   Compiling openmodelica_solvers v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_solvers)
   Compiling openmodelica_nls v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls)
   Compiling flatbuffers v25.12.19
   Compiling num-complex v0.4.6
   Compiling num-integer v0.1.47
   Compiling chrono v0.4.45
   Compiling getrandom v0.2.17
   Compiling num-bigint v0.5.1
   Compiling minpack v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/minpack)
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 openmodelica_sim_meta v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta)
   Compiling zerocopy-derive v0.8.57
   Compiling equator-macro v0.2.1
   Compiling openmodelica_plt_writer v0.1.0 (/tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_plt_writer)
   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:37:16
   |
37 | pub(crate) use linsol::color_columns;
   |                ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

   Compiling dlmalloc v0.2.14
warning: `openmodelica_solvers` (lib) generated 1 warning (run `cargo fix --lib -p openmodelica_solvers` to apply 1 suggestion)
   Compiling const-random v0.1.18
   Compiling gemm-common v0.19.0
   Compiling qd v0.8.0
   Compiling equator v0.2.2
   Compiling faer-traits v0.24.0
   Compiling gemm-f64 v0.19.0
   Compiling gemm-f32 v0.19.0
   Compiling gemm-c64 v0.19.0
   Compiling gemm-c32 v0.19.0
   Compiling nano-gemm v0.2.2
   Compiling gemm v0.19.0
   Compiling faer v0.24.4
   Compiling half v2.7.1
   Compiling arrow-buffer v60.0.0
   Compiling openmodelica_lapack v0.1.0 (/tmp/omc-rust/rust-src/Compiler/OpenModelica.rs/openmodelica_lapack)
   Compiling arrow-data v60.0.0
   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: variable does not need to be mutable
    --> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_nls/src/lib.rs:3010:9
     |
3010 |     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:4081:9
     |
4081 |     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:4088:9
     |
4088 |     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:4089:9
     |
4089 |     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:4091:9
     |
4091 |     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:2680:4
     |
2680 | 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 import: `alloc::vec::Vec`
    --> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:1599:9
     |
1599 |     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:2880:9
     |
2880 |     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:3068:26
     |
3068 |     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:6056:13
     |
6056 |             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:5942:1
     |
5942 | / unsafe fn dassl_jac(
5943 | |     t: *mut f64,
5944 | |     y: *mut f64,
5945 | |     yprime: *mut f64,
...    |
5952 | |     _ipar: *mut i32,
5953 | | ) {
     | |_^
     = 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:8192:17
     |
8192 |         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:8449:13
     |
8449 |         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:11781:9
      |
11781 |     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:2496:17
     |
2496 |             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:2517:9
     |
2517 |     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:1444:15
     |
1444 | 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:1466:15
     |
1466 | 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:4361:15
     |
4361 | 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:5509:5
     |
5474 | struct ResCtx {
     |        ------ fields in this struct
...
5509 |     jac_ypsave: Vec<f64>,
     |     ^^^^^^^^^^
...
5520 |     tol: f64,
     |     ^^^

warning: field `rel_fresh_off` is never read
    --> /tmp/omc-rust/rust-src/SimulationRuntime/rust/openmodelica_sim_meta/src/driver.rs:7582:5
     |
7572 | struct SolverCore {
     |        ---------- field in this struct
...
7582 |     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: unused variable: `x_ptr`
    --> src/lib.rs:3467:69
     |
3467 | 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:3549:5
     |
3549 |     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 12.06s
[100%] Built target rust_wasm_runtime