Comment 6 for bug 1835547

Revision history for this message
Holger Vogt (h+vogt) wrote :

Just another vote:

Unfortunately the project file is somewhat inconsistent: Openeing the project mosfet.sch from posting #3 generates a warning message "It appears that last time you were editing the file "mosfet.sch" it was not saved properly. I aknowledge this message with "No". Then I get a circuit calling the Infineon MOSFET with all legs shorted to GND.

I have added a "simulation command ".tran 1 2" in a text box (we definitely would need .op here!).

Running the simulation: No crash, but a ngspice error message:

Circuit: KiCad schematic
Doing analysis at TEMP = 27.000000 and TNOM = 27.000000
Error: no data saved for Transient analysis; analysis not run
doAnalyses: not found
run simulation(s) aborted

Printing the ngspice netlist reveals the issue:

.title KiCad schematic
.include "D:\Spice_general\kicad\mosfet_orig\infineon\OptiMOS2_20V.lib"
XQ? 0 0 0 BSC019N02KS_L1
.save V(0)
.save V(GND)
.tran 1 2
.end

Eeschema adds
.save v(0)
.save v(GND)

This is of no use because GND is (internally, within ngspice) translated to 0. 0 is our reference. No need to save it. It is ignored.

.save is exclusive: If you issue a .save command, only the vector named in the command will be saved. If you issue multiple .save commands, all vectors following the commands are assembled and saved, but no others. So here we save our reference only that is simply ignored by ngspice. No other vectors are to be saved, so no simulation is run.

Please do not .save 0 or GND !

A strange thing is that we have now three different OSs, three different reactions of eeschem-ngspice. Maybe this occurs due to different approaches how to finally start the simulation.

Application: eeschema
Version: (5.1.2)-2, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON