I try to run this simple circuit (mcp6n11.kicad_sch, mcp6n11-symbol.lib, mcp6n11_RevD.lib):
I downloaded the SPICE model from the official MCP site.
If I run the simulator with PSpice then I get the following errors:
Note: Compatibility modes selected: ps
Circuit: KiCad schematic
Netlist line no. 0:
Closing "}" not found.
Netlist line no. 0:
Closing "}" not found.
Please check your input netlist.
Error: ngspice.dll cannot recover and awaits to be detached
******
** ngspice-38 shared library
** Creation Date: Thu Jan 26 00:03:36 UTC 2023
******
Note: No compatibility mode selected!
Circuit: *
Warning: No job (tran, ac, op etc.) defined:
run simulation not started
If I run with HSpice, then I get these errors:
Note: Compatibility modes selected: hs
warning, model type mismatch in line
s_s1 3 4 1 2 _s1
Circuit: KiCad schematic
Error: unknown subckt: xu2.x_u4_u38 xu2.vdd_vss xu2.u4_12 xu2.analog_buffer xu2.params: gain=0.5
Warning: No job (tran, ac, op etc.) defined:
run simulation not started
If I run without compatibility mode or with LtSpice, I get these errors:
Note: No compatibility mode selected!
warning, model type mismatch in line
s_s1 3 4 1 2 _s1
Circuit: KiCad schematic
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
Error: no such function 'if'
PTerror: syntax error, parsing stopped at
& v(xu2.endly) > 5.0000000000e-01 , 1.0000000000e+00 , 0.0000000000e+00 )
Error on line 0 or its substitute:
b.xu2.x_u8.beout xu2.x_u8.eout_int1 0 v= if ( v(xu2.4) < 5.0000000000e-01 , 1.0000000000e+00 , 0.0000000000e+00 )
parameter value out of range or the wrong type
Error: circuit not parsed.
I use the following version of KiCad:
Application: KiCad Schematic Editor
Version: 6.0.11-2627ca5db0~126~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.0.4
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux 5.15.0-67-generic x86_64, 64 bit, Little endian, wxGTK, ubuntu, x11
Build Info:
Date: Feb 1 2023 20:48:15
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.71.0
OCC: 7.5.2
Curl: 7.87.0
ngspice: 38
Compiler: GCC 9.4.0 with C++ ABI 1013
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
I am lost and would be happy about any advice