Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No log visible if child simulator process terminated with error code #1001

Closed
tomhajjar opened this issue Oct 18, 2024 · 3 comments · Fixed by #1057
Closed

No log visible if child simulator process terminated with error code #1001

tomhajjar opened this issue Oct 18, 2024 · 3 comments · Fixed by #1057
Labels
Milestone

Comments

@tomhajjar
Copy link

tomhajjar commented Oct 18, 2024

I have been trying to get a complex library of IGBT Spice models to work in Qucs. The Library works in LTspice as-is.

The original lib file "IGBT_600V_HighSpeed3_L1.lib" doesn't work so was simplified to "IGP20N60H3.cir" hoping to get Qucs/ngspice to work. Unfortunately I get a conflicting "Qucs-S Message", Simulator crashed! and Simulator successful.

I then sent the netlist to ngspice via DuSpice and get a totally different "Message" in the ngspice file log, "IGP20N60H3_DC_sweep.log".

  1. Are the two "Formula() error." in the Log confusing Qucs-S?

  2. Would it be useful to allow the User to see both Qucs "Message" and ngspice "Log" Files?

  3. What is the proper way to handle complex Spice Libraries like "IGBT_600V_HighSpeed3_L1.lib"? I'm sure my editing of the file to create "IGP20N60H3.cir" wasn't done 100%.

2024-10-18_182903
2024-10-18_183434

IGBT_prj.zip
IGBT_LTspice.zip

@tomhajjar tomhajjar changed the title Qucs-S reports wrong ngspice log data - Issue getting complex Spice model that works in LTspice to work in Qucs-S Qucs-S reports wrong ngspice log data - Issue getting complex Spice model to work Oct 18, 2024
@tomhajjar tomhajjar changed the title Qucs-S reports wrong ngspice log data - Issue getting complex Spice model to work Qucs-S reports wrong ngspice log data - Getting complex Spice model to work Oct 18, 2024
@tomhajjar tomhajjar changed the title Qucs-S reports wrong ngspice log data - Getting complex Spice model to work Qucs-S reports wrong ngspice log data - Getting Spice model to work Oct 18, 2024
@ra3xdh
Copy link
Owner

ra3xdh commented Oct 20, 2024

Would it be useful to allow the User to see both Qucs "Message" and ngspice "Log" Files?

Qucs-S doesn't apply any filters to log files and doesn't hide the log data from user. The problem is more complicated. The problem may be in Qt itself. The QProcess::readAllStandardOutput returns an empty string if the child process is terminated with error code. And Qt cannot obtain the log if the Ngspice is terminated with error code. The simulation process has merged stdout and stderr channels. Need further investigation. I didn't understand what happens. Don't expect a quick fix.

What is the proper way to handle complex Spice Libraries like "IGBT_600V_HighSpeed3_L1.lib"?

You have to extract all dependent parameters and child subcircuit in the single *.cir file. Also wait until #944 will be implemented.

@ra3xdh ra3xdh changed the title Qucs-S reports wrong ngspice log data - Getting Spice model to work No log visible if child simulator process terminated with error code Nov 8, 2024
@ra3xdh ra3xdh added the bug label Nov 8, 2024
ivandi69 pushed a commit to ivandi69/qucs_s that referenced this issue Nov 12, 2024
@ivandi69 ivandi69 mentioned this issue Nov 12, 2024
@ra3xdh ra3xdh linked a pull request Nov 12, 2024 that will close this issue
ra3xdh added a commit that referenced this issue Nov 12, 2024
@ra3xdh
Copy link
Owner

ra3xdh commented Nov 12, 2024

The false "Success" after the simulation status fixed by #1057. The Ngspice can crash and produce an empty output under some conditions. This will be reported to Ngspice team. See #1057 for investigations.

@ra3xdh ra3xdh added this to the 24.4.1 milestone Nov 12, 2024
@tomhajjar
Copy link
Author

This issue points to ngspice lacking the ability to process many of the "complex" Spice models that work in LTspice.

Some models work after editing, but I lack the knowledge to make the major edits required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants