gtnh-flow icon indicating copy to clipboard operation
gtnh-flow copied to clipboard

Unclear log output - failed to generate graph

Open trainvoi opened this issue 1 year ago • 2 comments

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

trainvoi avatar May 05 '24 08:05 trainvoi

should be fixed now

OrderedSet86 avatar Jun 03 '24 05:06 OrderedSet86

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

OrderedSet86 avatar Sep 20 '24 07:09 OrderedSet86