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

Unclear log output - failed to generate graph #34

Open
trainvoi opened this issue May 5, 2024 · 2 comments
Open

Unclear log output - failed to generate graph #34

trainvoi opened this issue May 5, 2024 · 2 comments

Comments

@trainvoi
Copy link

trainvoi commented May 5, 2024

Error:

> susy/supreme gasoline - ethyl lead.yaml
_solver.py:666 INFO Running linear solver...
_solver.py:306 WARNING EmptySet response - likely overdetermined
_solver.py:342 INFO Searching for inconsistency in system of equations...
Traceback (most recent call last):
  File "C:\Users\PV\Documents\gtnh-flow\factory_graph.py", line 69, in generate_one
    self.graph_gen(self, project_name[:-5], recipes, self.graph_config)
  File "C:\Users\PV\Documents\gtnh-flow\src\graph\_solver.py", line 668, in systemOfEquationsSolverGraphGen
    solver.run()
  File "C:\Users\PV\Documents\gtnh-flow\src\graph\_solver.py", line 77, in run
    self._solve()
  File "C:\Users\PV\Documents\gtnh-flow\src\graph\_solver.py", line 315, in _solve
    self._searchForInconsistency()
  File "C:\Users\PV\Documents\gtnh-flow\src\graph\_solver.py", line 382, in _searchForInconsistency
    unvar = unsolved[0]
            ~~~~~~~~^^^
IndexError: list index out of range

factory_graph.py:72 ERROR Error generating graph for project "susy/supreme gasoline - ethyl lead.yaml": list index out of range
factory_graph.py:73 ERROR If error cause is not obvious, please notify dev: https://github.com/OrderedSet86/gtnh-flow/issues

Code:

- m: blender
  tier: MV
  I:
    antiknock: 100
    oxygenates: 100
    gasoline: 1000
  O:
    midgrade gasoline: 1000
  eut: 120
  dur: 0.5
  group: gasoline
- m: blender
  tier: MV
  I:
    corrosion inhibitor: 100
    methyl carbitol: 100
    midgrade gasoline: 1000
  O:
    premium gasoline: 1000
  eut: 120
  dur: 0.5
  group: gasoline
- m: blender
  tier: MV
  I:
    metal deactivators: 100
    antioxidants: 100
    premium gasoline: 1000
  O:
    supreme gasoline: 1000
  eut: 120
  dur: 0.5
  number: 1
  group: gasoline
  
#antiknock
- m: blender
  tier: MV
  I:
    naphthalene: 400
    naphtha: 1500
    tetraethyl lead: 100
  O:
    antiknock: 1000
  eut: 120
  dur: 10
  group: antiknock
- m: distillation tower
  tier: MV
  I:
    tetraethyl lead sludge : 2000
  O:
    '[out] salt': 8
    liquid lead: 432
    tetraethyl lead: 1000
  eut: 120
  dur: 10
  group: antiknock
- m: batch reactor
  tier: MV
  I:
    sodium-lead alloy dust : 8
    chloroethane: 4000
  O:
    tetraethyl lead sludge : 2000
  eut: 120
  dur: 10
  group: antiknock
- m: cstr
  tier: MV
  I:
    ethylene: 50
    hydrogen chloride: 50
  O:
    chloroethane: 50
  eut: 120
  dur: 0.25
  group: antiknock
- m: cstr
  tier: LV
  I:
    hydrogen: 50
    chlorine: 50
  O:
    hydrogen chloride: 50
  eut: 7
  dur: 0.05
  group: antiknock
- m: macerator
  tier: LV
  I:
    sodium-lead alloy ingot : 1
  O:
    sodium-lead alloy dust : 1
  eut: 2
  dur: 5.7
  group: antiknock
- m: alloy smelter
  tier: LV
  I:
    sodium dust: 1
    '[in] lead ingot': 1
  O:
    sodium-lead alloy ingot: 2
  eut: 30
  dur: 15
  group: antiknock
- m: extractor
  tier: LV
  I:
    '[in] salt': 1
  O:
    liquid salt: 144
  eut: 30
  dur: 1.4
  group: antiknock
- m: electrolyzer
  tier: LV
  I:
    liquid salt: 288
  O:
    sodium dust: 1
    chlorine: 1000
  eut: 30
  dur: 15
  group: antiknock
- m: fluid solidifier
  tier: LV
  I:
    liquid lead: 144
  O:
    '[out] lead ingot': 1
  eut: 7
  dur: 1
  group: antiknock
@OrderedSet86
Copy link
Owner

should be fixed now

@OrderedSet86
Copy link
Owner

To clarify for later reference; the unvar = unsolved[0] error message is fixed; the underlying issue here giving EmptySet is not. The issue is parallel ratio mismatch which the solver should detect and print some kind of error about

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

No branches or pull requests

2 participants