Compatibility Issue with NuSMV 2.7
For whatever reason, NuSMV2.7 generates multiple xml files, prefixed with some index, for the command file FRET produces when doing test case generation. It tries to prefix the filename you give it, which in this case is the absolute path in the system, leading to it trying to make a 1_/home/user/Documents/... which obviously fails.
Hi @sasharosca ,
Thanks for reporting this. I will take a look. Could you provide a minimal example that can help me replicate this?
Best,
Andreas
I'm running Ubuntu 24.04.2 LTS. I downloaded the repo, installed the latest version of all dependencies and put them on the path including NuSMV 2.7. Open the liquid_mixer example from the fret repo. Try test generation on the first requirement. Observe error: The following error(s) occured at the solver level: Command failed: NuSMV -s -source /home/sasha/Documents/fret-analysis/mc_steps.scr /home/sasha/Documents/fret-analysis/liquid_mixerSpec_obligations.smv Unable to open file "1_/home/sasha/Documents/fret-analysis/out.xml". aborting 'source /home/sasha/Documents/fret-analysis/mc_steps.scr'
If I breakpoint during the test generation, edit mc_steps.scr so that the output destination is just out.xml, the command runs and produces multiple #_out.xml files.
Now if I replace the NuSMV executable with 2.6 and run test generation again in fret, it completes and I can view the traces.
Thank you, @sasharosca ,
This is indeed an issue specific with NuSMV v2.7.0. The behavior of the show_traces command using options -a and -o has changed from v2.6.0 (which is the version that our current implementation is based on). More specifically, NuSMV v2.7.0 now creates a collection of .xml files, one per test case. In v2.6.0, a single .xml containing all test cases is generated instead.
I can also confirm that the two options above no longer work with filenames prefixed by absolute paths. I am not sure if this is intended, so I will reach out to the NuSMV developers to clarify this part.
For the time being, the solution is to use NuSMV v2.6.0. I will provide an update to this issue when we have a solution that addresses either versions.
Best,
Andreas
Thanks @andreaskatis, will do so. Something in the installation instructions or docs mentioning latest dependency versions its been tested with might save others time in the future.