idaholab / HERON

Holistic Energy Resource Optimization Network (HERON) is a modeling toolset and plugin for RAVEN to accelerate stochastic technoeconomic assessment of the economic viability of various grid-energy system configurations, especially with application to electrical grids and integrated energy systems (IES).
Apache License 2.0
24 stars 38 forks source link

[DEFECT] failure in windows test #238

Closed joshua-cogliati-inl closed 1 year ago

joshua-cogliati-inl commented 1 year ago

Defect Description

Describe the defect

What did you expect to see happen?

https://github.com/idaholab/HERON/actions/runs/3659256063 to pass

What did you see instead?

This error:

There were 2 warnings during the simulation run:
(1 time) <class 'DeprecationWarning'> "variables" node inputted but has been deprecated!  Please list variables in the "inputs" and "outputs" nodes instead.  This Warning will result in an error in RAVEN 3.0!
(1 time) Nothing to write to CSV! Checking metadata ...
--------------------------------------------------
(   15.31 sec) SIMULATION               : DEBUG           -> Fri Dec  9 10:28:53 2022
(   15.32 sec) SIMULATION               : Message         -> Run complete!

C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\site-packages\sklearn\base.py:338: UserWarning: Trying to unpickle estimator KMeans from version 0.24.2 when using version 1.0.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/modules/model_persistence.html#security-maintainability-limitations
  UserWarning,
C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\site-packages\pyutilib\misc\import_file.py:11: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
  File "C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\threading.py", line 890, in _bootstrap
    self._bootstrap_inner()
  File "C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\ravenframework\Runners\SharedMemoryRunner.py", line 115, in <lambda>
    self.thread = InterruptibleThread(target = lambda q, *arg : q.append(self.functionToRun(*arg)),
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\ravenframework\Models\EnsembleModel.py", line 515, in evaluateSample
    returnValue = (Input,self._externalRun(Input, jobHandler))
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\ravenframework\Models\EnsembleModel.py", line 683, in _externalRun
    iterationCount, jobHandler)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\ravenframework\Models\EnsembleModel.py", line 744, in __advanceModel
    evaluation = modelToExecute['Instance'].evaluateSample.original_function(modelToExecute['Instance'], origInputList, samplerType, inputKwargs)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\ravenframework\Models\ExternalModel.py", line 324, in evaluateSample
    result,instSelf = self._externalRun(inRun,)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\ravenframework\Models\ExternalModel.py", line 266, in _externalRun
    self.sim.run(externalSelf, InputDict)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\HERON\src\DispatchManager.py", line 725, in run
    runner.load_heron_lib(path)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\HERON\src\DispatchManager.py", line 76, in load_heron_lib
    case, components, sources = SerializationManager.load_heron_lib(path, retry=6)
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\HERON\src\SerializationManager.py", line 24, in load_heron_lib
    case, components, sources = pk.load(lib)
  File "C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\site-packages\dill\_dill.py", line 373, in load
    return Unpickler(file, ignore=ignore, **kwds).load()
  File "C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\site-packages\dill\_dill.py", line 646, in load
    obj = StockUnpickler.load(self)
  File "C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\site-packages\dill\_dill.py", line 636, in find_class
    return StockUnpickler.find_class(self, module, name)
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\HERON\src\Cases.py", line 22, in <module>
    from HERON.src.validators.Factory import known as known_validators
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\HERON\src\validators\Factory.py", line 16, in <module>
    raven_path = hutils.get_raven_loc()
  File "C:\Users\cogljj\actions-runner-heron-main\_work\HERON\HERON\src\dispatch\..\_utils.py", line 47, in get_raven_loc
    traceback.print_stack()
C:\Users\cogljj\Miniconda3\envs\raven_libraries_actions-runner-heron-main\lib\site-packages\sklearn\base.py:338: UserWarning: Trying to unpickle estimator KMeans from version 0.24.2 when using version 1.0.2. This might lead to breaking code or invalid results. Use at your own risk. For more info please refer to:
https://scikit-learn.org/stable/modules/model_persistence.html#security-maintainability-limitations
  UserWarning,
C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\plugins\TEAL\src\main.py:450: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  projCf[decomissionMask] += lifeCf[-1] * taxMult * np.power(inflRate, -1*years[decomissionMask])
C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\plugins\TEAL\src\main.py:450: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  projCf[decomissionMask] += lifeCf[-1] * taxMult * np.power(inflRate, -1*years[decomissionMask])
C:\Users\cogljj\actions-runner-heron-main\_work\HERON\raven\plugins\TEAL\src\main.py:450: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  projCf[decomissionMask] += lifeCf[-1] * taxMult * np.power(inflRate, -1*years[decomissionMask])
Do you have a suggested fix for the development team?

Describe how to Reproduce Steps to reproduce the behavior:

Screenshots and Input Files Please attach the input file(s) that generate this error. The simpler the input, the faster we can find the issue.

Platform (please complete the following information):


For Change Control Board: Issue Review

This review should occur before any development is performed as a response to this issue.


For Change Control Board: Issue Closure

This review should occur when the issue is imminently going to be closed.