Open balodja opened 3 years ago
The source code seems to be quite old, for Dymola 2017 I assume. The file Cvode.c was updated from Sundials soon after that, so you could either try to fetch and merge in the updated function below, or simply comment out the failing line (should be non-critical):
SUNDIALS_EXPORT void cvProcessError(CVodeMem cv_mem, int error_code, const char module, const char fname, const char *msgfmt, ...) { va_list ap; char msg[256];
/ Initialize the argument pointer variable (msgfmt is the last required argument to cvProcessError) /
va_start(ap, msgfmt);
/ Compose the message /
vsprintf(msg, msgfmt, ap);
if (cv_mem == NULL) { / We write to stderr /
fprintf(stderr, "\n[%s ERROR] %s\n ", module, fname);
fprintf(stderr, "%s\n\n", msg);
} else { / We can call ehfun / ehfun(error_code, module, fname, msg, eh_data); }
/ Finalize argument processing / va_end(ap);
return; }
Packing the FMPy for NixOS at the moment.
tests/test_c_code
fails because of minor type mismatches in Dymola-generated FMU'ssprintf
. The log is here:pytest logs
``` $ pytest ============================================================================================== test session starts ============================================================================================== platform linux -- Python 3.8.9, pytest-6.2.3, py-1.10.0, pluggy-0.13.1 rootdir: /home/balodja/projects/nix/builds/source collected 62 items test_c_code.py FF [ 3%] test_command_line.py ... [ 8%] test_common_functions.py . [ 9%] test_cswrapper.py . [ 11%] test_cvode.py . [ 12%] test_examples.py ...s [ 19%] test_extracted_fmu.py . [ 20%] test_fmi3.py s [ 22%] test_fmu_container.py s [ 24%] test_fmu_info.py .... [ 30%] test_get_directional_derivative.py s [ 32%] test_get_start_values.py . [ 33%] test_input.py ..... [ 41%] test_jupyter_notebook.py . [ 43%] test_output_grid.py .. [ 46%] test_read_csv.py . [ 48%] test_reference_fmus.py ..... [ 56%] test_remoting.py ssss [ 62%] test_serialize_fmu_state.py . [ 64%] test_ssp.py sssssssssssssss [ 88%] test_start_value_units.py ssss [ 95%] test_type_definitions.py . [ 96%] test_validation.py .. [100%] =================================================================================================== FAILURES ==================================================================================================== _____________________________________________________________________________________________ CCodeTest.test_cmake ______________________________________________________________________________________________ self =system details
``` > nix-shell -p nix-info --run "nix-info -m" - system: `"x86_64-linux"` - host os: `Linux 5.10.48, NixOS, 21.05.1493.1f4e50f03c5 (Okapi)` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.3.12` - channels(root): `"nixos-21.05.1493.1f4e50f03c5"` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos` ```Should I present more technical information?
P.S. I expect the issue to remain on other Linux'es as well.