Skip to content

Console Output

+ cmake --build build_cmake --parallel 16 --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-16203/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_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 minpack v0.1.0 (/tmp/omc-rust/rust-src/minpack)
   Compiling daskr v0.1.0 (/tmp/omc-rust/rust-src/daskr)
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-integer v0.1.46
   Compiling num-complex v0.4.6
   Compiling approx v0.5.1
   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:675:9
    |
675 |     use alloc::vec::Vec;
    |         ^^^^^^^^^^^^^^^

warning: unused variable: `e`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:3543:31
     |
3543 |     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`
     |
     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default

warning: unused variable: `t`
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:3574:14
     |
3574 |         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:3574:17
     |
3574 |         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:3748:13
     |
3748 |         let sim_data = self.sim_data;
     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_data`

warning: field `jac_ypsave` is never read
    --> /tmp/omc-rust/rust-src/openmodelica_sim_meta/src/driver.rs:2187:5
     |
2160 | struct ResCtx {
     |        ------ field in this struct
...
2187 |     jac_ypsave: Vec<f64>,
     |     ^^^^^^^^^^
     |
     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: `openmodelica_sim_meta` (lib) generated 7 warnings (run `cargo fix --lib -p openmodelica_sim_meta` to apply 6 suggestions)
   Compiling nalgebra v0.35.0
warning: value assigned to `assert_called` is never read
    --> src/nls.rs:1066:13
     |
1066 |             assert_called = true;
     |             ^^^^^^^^^^^^^^^^^^^^
     |
     = help: maybe it is overwritten before being read?
     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default

warning: field `0` is never read
   --> src/lib.rs:429:20
    |
429 | 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 `assert_hit` is never used
  --> src/nls.rs:73:15
   |
73 | pub(crate) fn assert_hit() -> bool {
   |               ^^^^^^^^^^

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