Post Go back to editing

There is more than one sub-circuit definition with this name, which is ill-formed

Thread Summary

The user encountered an error in LTspice after updating, where multiple sub-circuit definitions with the same name cause simulations to fail. The solution is to remove or subjugate duplicate definitions, or add the .options directive 'allow_ambiguous_models=true' to the schematic, though this will still generate a warning. The issue is common with Texas Instruments models, and the duplicates are often identical.
AI Generated Content
Category: Software
Product Number: newest version 24.1.9
Software Version: 24.1.9

There is more than one sub-circuit definition with this name, which is ill-formed.   updated today from older version 17.0.36 i believe.  Now get this error on older simulation that worked.  Someone else post this issue back in January as well.  What is the solution?

Parents
  • Hi  ,

    LTspice used to arbitrarily choose a model or subcircuit definition from multiple defs of the same name. No warning; no way of knowing LTspice had done this. Earlier versions of LTspice gave the impression that it had done something deterministic, when it had at best, flipped a coin. The best solution is to get rid of the definitions you do not want to use, or subjugate them.

    Or, if you prefer the lottery approach—a return to the previous behavior—you can add this to your schematic (but you will still get a warning):

    .options allow_ambiguous_models

    mike

  • syntax error
    .options allow_ambiguous_models=true

    Without the "=true" there is no syntax error but does not solve the problem, it still fails with

    There is more than one sub-circuit definition with this name, which is ill-formed.
    .SUBCKT Prop_Delay VIN VOUT

    Looks like every Texas Instruments model I download has this same problem, I cannot use two TI components in the same simulation. Near as I can tell the duplicates are always identical. I saw a suggestion elsewhere that LTspice should check if they are the same, and if so use it without failing.

    But for now, how can I make the simulation run with two TI components?

  • Hi  ,

    Without the "=true" there is no syntax error but does not solve the problem, it still fails with

    Can you upload your schematics, symbols, and libraries. Zip it all up and drag to this window.

    Near as I can tell the duplicates are always identical. I saw a suggestion elsewhere that LTspice should check if they are the same, and if so use it without failing.

    I believe this is only the case for entire files being identical, not if sections within libraries are duplicated. I will confirm.

    Or, if you prefer the lottery approach—a return to the previous behavior—you can add this to your schematic (but you will still get a warning):

    .options allow_ambiguous_models=true

    I made a mistake. It should be:

    .options allow_ambiguous_models

    mike

  • ShowLTspiceProblem.zip

    Here is a dummied up schematic that uses two TI parts and the .LIB files exactly as supplied by TI.

    This fails to run no matter if the ".options allow_ambiguous_models" is there or not.

  • Hi  ,

    Will take a look. Thanks.

    mike

Reply Children
No Data