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/jenkins1/ws/OpenModelica_PR-16158/runtime.wasm
   Compiling libm v0.2.16
   Compiling autocfg v1.5.1
   Compiling shlex v2.0.1
   Compiling find-msvc-tools v0.1.9
   Compiling openmodelica_sim_meta v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_sim_meta)
   Compiling cfg-if v1.0.4
   Compiling openmodelica_mat_writer v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_mat_writer)
   Compiling openmodelica_codegen_wasm_jit_runtime v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_codegen_wasm_jit_runtime)
   Compiling typenum v1.20.1
   Compiling dlmalloc v0.2.14
   Compiling cc v1.2.65
   Compiling num-traits v0.2.19
   Compiling daskr v0.1.0 (/tmp/omc-rust/rust-src/daskr)
   Compiling minpack v0.1.0 (/tmp/omc-rust/rust-src/minpack)
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 approx v0.5.1
   Compiling num-complex v0.4.6
   Compiling num-integer v0.1.46
   Compiling num-rational v0.4.2
   Compiling simba v0.10.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:910:9
    |
910 |     use alloc::vec::Vec;
    |         ^^^^^^^^^^^^^^^

warning: variable does not need to be mutable
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:2041:9
     |
2041 |     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:2214:26
     |
2214 |     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:5321:31
     |
5321 |     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:5352:14
     |
5352 |         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:5352:17
     |
5352 |         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:5572:13
     |
5572 |         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:5779:13
     |
5779 |         let ders_base = self.ders_base;
     |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ders_base`

warning: function `read_result_file` is never used
   --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:814:15
    |
814 | pub(crate) fn read_result_file(
    |               ^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

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

warning: `openmodelica_sim_meta` (lib) generated 11 warnings (run `cargo fix --lib -p openmodelica_sim_meta` to apply 9 suggestions)
   Compiling nalgebra v0.35.0
warning: field `0` is never read
   --> src/lib.rs:608:20
    |
608 | 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: function `hybrj_scaled` is never used
    --> src/nls.rs:1587:4
     |
1587 | fn hybrj_scaled(
     |    ^^^^^^^^^^^^

warning: feature `asm_experimental_arch` is declared but not used
  --> src/lib.rs:41:12
   |
41 | #![feature(asm_experimental_arch)]
   |            ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_features)]` (part of `#[warn(unused)]`) on by default

warning: `openmodelica_codegen_wasm_jit_runtime` (lib) generated 4 warnings
    Finished `release` profile [optimized] target(s) in 6.90s
Built target rust_wasm_runtime