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_master_2/runtime.wasm
   Compiling libm v0.2.16
   Compiling autocfg v1.5.1
   Compiling find-msvc-tools v0.1.9
   Compiling shlex v2.0.1
   Compiling openmodelica_sim_meta v0.1.0 (/tmp/omc-rust/rust-src/openmodelica_sim_meta)
   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 cfg-if v1.0.4
   Compiling typenum v1.20.1
   Compiling dlmalloc v0.2.14
   Compiling num-traits v0.2.19
   Compiling cc v1.2.65
   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:904:9
    |
904 |     use alloc::vec::Vec;
    |         ^^^^^^^^^^^^^^^

warning: variable does not need to be mutable
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:2035:9
     |
2035 |     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:2208:26
     |
2208 |     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:5315:31
     |
5315 |     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:5346:14
     |
5346 |         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:5346:17
     |
5346 |         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:5566:13
     |
5566 |         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:5773:13
     |
5773 |         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:808:15
    |
808 | 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:3865:5
     |
3838 | struct ResCtx {
     |        ------ field in this struct
...
3865 |     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:588:20
    |
588 | 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:1585:4
     |
1585 | 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 7.33s
Built target rust_wasm_runtime