Skip to content

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_PR-16439/runtime.wasm
   Compiling autocfg v1.5.1
   Compiling libm v0.2.16
   Compiling bytemuck v1.25.2
   Compiling nano-gemm-codegen v0.2.1
   Compiling version_check v0.9.5
   Compiling paste v1.0.15
   Compiling cfg-if v1.0.4
   Compiling pulp-wasm-simd-flag v0.1.1
   Compiling reborrow v0.5.5
   Compiling dyn-stack-macros v0.1.3
   Compiling bitflags v2.13.1
   Compiling proc-macro2 v1.0.107
   Compiling seq-macro v0.3.6
   Compiling once_cell v1.21.4
   Compiling unicode-ident v1.0.24
   Compiling num-traits v0.2.19
   Compiling pulp v0.22.3
   Compiling quote v1.0.47
   Compiling nano-gemm-core v0.2.1
   Compiling shlex v2.0.1
   Compiling find-msvc-tools v0.1.9
   Compiling dyn-stack v0.13.2
   Compiling nano-gemm-f32 v0.2.1
   Compiling nano-gemm-c32 v0.2.1
   Compiling nano-gemm-c64 v0.2.1
   Compiling nano-gemm-f64 v0.2.1
   Compiling raw-cpuid v11.6.0
   Compiling openmodelica_solvers v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_solvers)
   Compiling generativity v1.2.1
   Compiling equator-macro v0.6.0
   Compiling openmodelica_sim_meta v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_sim_meta)
   Compiling openmodelica_codegen_wasm_jit_runtime v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_codegen_wasm_jit_runtime)
   Compiling cc v1.2.65
   Compiling openmodelica_mat_writer v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_mat_writer)
   Compiling minpack v0.1.0 (/tmp/omc-rust/rust-src/minpack)
   Compiling dlmalloc v0.2.14
   Compiling equator v0.6.0
warning: value assigned to `info` is never read
   --> /tmp/omc-rust/rust-src/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 num-complex v0.4.6
   Compiling daskr v0.1.0 (/tmp/omc-rust/rust-src/daskr)
   Compiling syn v2.0.119
   Compiling equator-macro v0.2.1
   Compiling gemm-common v0.19.0
   Compiling qd v0.8.0
   Compiling equator v0.2.2
   Compiling faer-traits v0.24.0
   Compiling gemm-f32 v0.19.0
   Compiling gemm-c64 v0.19.0
   Compiling gemm-f64 v0.19.0
   Compiling gemm-c32 v0.19.0
warning: unused import: `core::cell::RefCell`
  --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:17:5
   |
17 | use core::cell::RefCell;
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `alloc::vec::Vec`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:1129:9
     |
1129 |     use alloc::vec::Vec;
     |         ^^^^^^^^^^^^^^^

warning: variable does not need to be mutable
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:2244:9
     |
2244 |     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/openmodelica_sim_meta/src/driver.rs:2417:26
     |
2417 |     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: unused variable: `e`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:6186:31
     |
6186 |     fn dae_restart(&mut self, e: &mut (dyn SimEngine + 'static), ctx: *mut ResCtx) -> Result<()> {
     |                               ^ help: if this is intentional, prefix it with an underscore: `_e`

warning: unused variable: `t`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:6217:14
     |
6217 |         let (t, sim_data) = (self.t, self.sim_data);
     |              ^ help: if this is intentional, prefix it with an underscore: `_t`

warning: unused variable: `sim_data`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:6217:17
     |
6217 |         let (t, sim_data) = (self.t, self.sim_data);
     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_data`

warning: unused variable: `sim_data`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:6458:13
     |
6458 |         let sim_data = self.sim_data;
     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_data`

warning: unused variable: `ders_base`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:6668:13
     |
6668 |         let ders_base = self.ders_base;
     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ders_base`

warning: variable does not need to be mutable
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/lib.rs:2054:17
     |
2054 |             let mut jac = |r: &mut Reader| -> core::result::Result<Option<ReconJac>, &'static str> {
     |                 ----^^^
     |                 |
     |                 help: remove this `mut`

warning: function `uri_to_filename` is never used
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:1001:15
     |
1001 | 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/openmodelica_sim_meta/src/driver.rs:1023:15
     |
1023 | pub(crate) fn read_result_file(
     |               ^^^^^^^^^^^^^^^^

warning: function `update_discrete_system` is never used
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:3300:15
     |
3300 | pub(crate) fn update_discrete_system(
     |               ^^^^^^^^^^^^^^^^^^^^^^

warning: field `jac_ypsave` is never read
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:4246:5
     |
4214 | struct ResCtx {
     |        ------ field in this struct
...
4246 |     jac_ypsave: Vec<f64>,
     |     ^^^^^^^^^^

warning: `openmodelica_sim_meta` (lib) generated 14 warnings (run `cargo fix --lib -p openmodelica_sim_meta` to apply 10 suggestions)
   Compiling gemm v0.19.0
   Compiling nano-gemm v0.2.2
   Compiling faer v0.24.4
   Compiling openmodelica_lapack v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_lapack)
warning: unused variable: `x_ptr`
    --> src/lib.rs:2518:55
     |
2518 | pub extern "C" fn rt_linsolve(a_ptr: u32, b_ptr: u32, x_ptr: u32, n: u32, eq_index: i32, time: f64, method1: i32) -> 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:2804:69
     |
2804 | 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`

warning: unused variable: `x_ptr`
    --> src/lib.rs:2890:5
     |
2890 |     x_ptr: u32,
     |     ^^^^^ help: if this is intentional, prefix it with an underscore: `_x_ptr`

warning: field `0` is never read
   --> src/lib.rs:622:20
    |
622 | 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: constant `CONTEXT_JACOBIAN` is never used
  --> src/nls.rs:27:11
   |
27 | pub const CONTEXT_JACOBIAN: u32 = 4;
   |           ^^^^^^^^^^^^^^^^

warning: constant `CONTEXT_SYM_JACOBIAN` is never used
  --> src/nls.rs:28:11
   |
28 | pub const CONTEXT_SYM_JACOBIAN: u32 = 5;
   |           ^^^^^^^^^^^^^^^^^^^^

warning: function `hybrj_scaled` is never used
    --> src/nls.rs:1695:4
     |
1695 | fn hybrj_scaled(
     |    ^^^^^^^^^^^^

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 8 warnings (run `cargo fix --lib -p openmodelica_codegen_wasm_jit_runtime` to apply 3 suggestions)
    Finished `release` profile [optimized] target(s) in 7.19s
Built target rust_wasm_runtime