Simulation demo issues
<!-- --------Before Creating a New Issue----------- * Limit report to a single issue. * Search the issue tracker to verify the issue has not already been reported. * Complete all instructions between `template comment markers <>. * Keep report contents limited to the necessary information required to fix the issue. * When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. --> # Description <!-- What is the current behavior and what is the expected behavior? --> <!-- If the issue is visual/graphical, please attach screenshots of the problem. --> <!-- Add the issue details below this line and before the "Steps to reproduce" heading. --> I noticed a couple of issues with the simulation demo projects, tested with both 8.0.7 stable, and 9.0.0-rc1 (all from flathub). The Q17 issue was found during testing ngspice 44 in test builds, then confirmed with ngspice 43, and @craftyjon confirmed this on MacOS as well. I then went through all simulation demo projects with 8.0.7 stable (ngspice 43) and found the following: - [x] `demos/simulation/generic_models`: Contains a project file `generic_opamp_bip.kicad_pro` with no schematic file, thus you get an empty file list shown in the project manager: ![grafik](/uploads/1de6d8c9406eb5b2f808a088dfa4f372/grafik.png) - [ ] `demos/simulation/Q17`: Shows a big error dialog at step 4 with the following text (steps 5-6 are thus not possible): ``` /app/share/kicad/demos/simulation/q17/all_devices.lib:306:50: expected newline Error loading simulation model: could not find base model 'D1N5248/TEMP' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'IRF610h' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'QSA970' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model '2N7000_ZX' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'BS250P' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'LED1' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'QSA970' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'BS250P' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'Q2SC2240' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'LED1' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'IRF9610h' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'Q2SC2240' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'Q2SC2240' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'D1N5248/TEMP' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'FQA46N15' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'D1N5245/TEMP' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'IRF9610h' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'D1N5245/TEMP' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' Error loading simulation model: could not find base model 'FQP3P20' in library '/app/share/kicad/demos/simulation/q17/all_devices.lib' ... ``` ![grafik](/uploads/0065678c5ad41ee6943a5ae08b0284f2/grafik.png) - [x] `demos/simulation/subsheets`: This folder has 3 schematic files, but no project file, thus you cannot open anything from here via File / Open demo project from the project manager. - [x] `demos/simulation/v_i_sources`: The following error appears in the ngspice log after clicking on run: ``` Note: Codel model file loading path is /app/share/kicad/demos/simulation/v_i_sources/ Note: Compatibility modes selected: ps lt a Circuit: KiCad schematic Error on line 31 or its substitute: v9 /vtrrandom 0 min=2 max=100n ts=0 td=1 unknown parameter (min) List of plots available: Current const Constant values (constants) ``` # Steps to reproduce <!-- If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended. --> <!-- If this issue is specific to a project, please attach the necessary files to this issue. --> <!-- Add the steps to reproduce using the numbers below --> <!-- Add new step numbers before the "KiCad Version" heading. --> For each demo project in `demos/simulation` I have: 1. Clicked on File / Open demo project from the project manager, opened the project file (if any, see below) 2. Opened the schematic. 3. Opened the simulator. 4. Clicked on "run". 5. Activated some signals if none were pre-selected. 6. Checked if plots/results appeared or if there were errors on the ngspice log. # KiCad Version <!-- Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting. --> ``` Application: x86_64 on x86_64 Version: 8.0.7, release build Libraries: wxWidgets 3.2.6 FreeType 2.13.3 HarfBuzz 9.0.0 FontConfig 2.15.0 libcurl/8.11.1 OpenSSL/3.3.2 zlib/1.3.1 libidn2/2.3.7 libpsl/0.21.5 nghttp2/1.64.0 Platform: Freedesktop SDK 24.08 (Flatpak runtime), 64 bit, Little endian, wxGTK, X11, gnome, wayland OpenGL: Intel, Mesa Intel(R) HD Graphics 620 (KBL GT2), 4.6 (Compatibility Profile) Mesa 24.3.1 (git-c815d651b8) Build Info: Date: Jan 3 2025 15:52:04 wxWidgets: 3.2.6 (wchar_t,wx containers) GTK+ 3.24 Boost: 1.87.0 OCC: 7.8.1 Curl: 8.11.1 ngspice: 43 Compiler: GCC 14.2.0 with C++ ABI 1019 Build settings: ```
issue