Giter Club home page Giter Club logo

tesp's People

Contributors

afisher1 avatar allisonmcampbell avatar battulaswathi avatar bol22 avatar corinnegroth avatar d3j331 avatar d3k205 avatar eranschweitzer avatar htnnguyen avatar laurmarinovici avatar mumonish avatar rohithreddy95 avatar saksoy90 avatar sarmad-hanif avatar temcdrm avatar trevorhardy avatar xcosmos6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tesp's Issues

Running Te-30 challenge

Hi all,
I am trying to run the TE-30 challenge of the example, but encountered the following error. I appreciate your help

error_te_challenge

v1.0.0 incorrect install on Ubuntu LTS 20.04

Using a clean VirtualBox VM install of Ubuntu LTS 20.04.1 the tesp installer runs to completion but the installation doesn't run properly.

  • $PATH was not appended to include /opt/tesp/bin
  • make_tesp_run_dir.sh errors out and does not create the tesp directory correctly:
cp: cannot state '/share/examples': No such file or directory 
cp: cannot state '/share/ercot': No such file or directory 
cp: cannot state '/share/autotest.py': No such file or directory 
cp: cannot state '/share/autotest_long.py': No such file or directory 

There is no /share in file system; I don't know if there should be one.

fncs library not found

Under the FNCS with Prerequisites section of the documentation I get the "fncs library not found" error when executing "cmake ..":

-- Could NOT find FNCS (missing:  FNCS_INCLUDE_DIR FNCS_LIBRARY)
CMake Error at CMakeLists.txt:23 (MESSAGE):
  fncs library not found

-- Configuring incomplete, errors occurred!
See also "/root/src/fncs/java/build/CMakeFiles/CMakeOutput.log".

I am working on an Ubuntu 16.04.3 LTS virtual machine with GCC/G++ 5.4.0 20160609.

Patching PYPOWER

The suggested patch isn't working. I still get the same error:
image

Any help in resolving this is appreciated.

Installer permissions for pip3

The installer script must run with sudo to install binaries to /opt/tesp. As a result, Python packages have to be installed or removed later with sudo, e.g., sudo pip3 uninstall packagename

Also see this error message from InstallBuilder's debug mode, when trying --no-cache-dir

Script stderr:
The directory '/home/tom/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/tom/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Without --no-cache-dir, those errors don't appear, but PSST isn't upgraded from 0.1.6 to 0.1.9.

The installer can be run in debug mode: sudo installer_name.run --enable-debugger

Running example "SGIP1" bumps into ERROR

Installed TESP ok. When testing example "sgip1" I run into an issue related to, I think, gridlab.
The content of gridlabd1a.log is this:

"ERROR [INIT] : connection: local variable '"RegionalWeather".wind_speed' cannot be resolved"

triggered by the gridlab launching command from runSGIP1a.sh script:
"(export FNCS_FATAL=YES && exec gridlabd -D USE_FNCS -D METRICS_FILE=SGIP1a_metrics.json SGIP1b.glm &> gridlabd1a.log &)"

Any ideas where to start to troubleshoot? Thanks!

Not building tesp ns-3 ,energy plus ,directly from command ./trap.sh

My system is window .I am using Ubuntu 20 version through window subsystem for linux. I have separately installed gridlabd but in tesp repository ,ns-3 is not building. Please suggest how I able to use your gridlabd when working with tesp . Installing of docker is needed to work . I have tried many times bit same problem

v1.0.0 te30/run0.sh and run.sh produce no graphs

Both run0.sh and run.sh run without error on the console but the graphing script produces an error and no graphs

$ python3 plots.py TE_Challenge


File TE_Challenge has baseMVA 100.0

Generator Dictionary:
Unit Bus Type Pnom Pmax Costs[Start Stop C2 C1 C0]
1 1 pv 163.0 247.0 [ 500.0 0.0 0.03 1.3 180.0 ]
2 2 swing 0.0 192.0 [ 2000.0 0.0 0.085 3.0 100.0 ]
3 3 pv 85.0 128.0 [ 3000.0 0.0 0.122 5.0 135.0 ]
4 9 pq 0.0 250.0 [ 3000.0 0.0 3.0 50.0 1500.0 ]
5 7 pq 0.0 0.0 [ 0.0 0.0 0.0 0.0 0.0 ]

DSO Bus Dictionary:
Bus Pnom Qnom ampFactor [GridLAB-D Substations]
7 100.0 35.0 250.0 ['SUBSTATION7']
Traceback (most recent call last):
  File "plots.py", line 14, in <module>
    pmetrics = pp.read_pypower_metrics (rootname)
  File "/usr/local/lib/python3.8/dist-packages/tesp_support/process_pypower.py", line 92, in read_pypower_metrics
    lst_b = json.loads(lp_b)
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

HELICS update from 2.5.2 to the latest version

TESP ships with v2.5.2 of HELICS because later versions were causing some problems. After updating the HELICS version in TESP, the pyhelics version support should also be evaluated:

  • pip3 install helics will install a binary version of the library. This should not be needed, since TESP includes a full HELICS build for EnergyPlus, GridLAB-D, ns-3 and Java federates.
  • helicsInputGetComplex now returns a tuple of 2 floats. In a pre-release candidate it returned a Python complex, and comments in the pyhelics code indicate that a future version it will again return Python complex. See substation.py and fncsPYPOWER.py for the function calls to change

ns-3 example not working in optimized mode on Ubuntu 20.04 LTS

The loadshed/runhpy.sh example works on Ubuntu 18.04 LTS, with ns-3 in either debug or optimized mode

On Ubuntu 20.04 LTS, a coredump occurs in optimized mode, but it runs in debug mode.

This example involves building loadshedCommNetwork with gcc9 on Ubuntu 20.04 LTS, against ns-3 built with gcc7 on Ubuntu 18.04 LTS. On Ubuntu 18.04 LTS, everything was built with the same gcc version and options.

For now, TESP ships with both debug and optimized builds of ns-3, and runhpy.sh configured to run in debug mode. The debug mode enables ns-3 to produce logging output, but the executables are larger and slower than in optimized mode.

JSON files

Hi,

I seem to be having some issue with accessing the JSON files. When I run any of the examples suggested, I end up with the same error. Please see the screenshot below:
image

I looked at the script and it seems like for some reason, it is unable to create and/or open JSON files
Please let me know if I missed something and how can this be resolved.

Thanks,
Rupa

Error when running examples with pypower co-simulated over FNCS

Hi,

This is a strange problem when I trid to use TESP and ran some examples from Running Examples. I mainly focused on loadshed and te30 examples.

This problem is that I was able to run examples with pypower co-simulated over HECLIS successfully, but fail in running examples with pypower co-simulated over FNCS. If the examples do not include pypower federate, I can successfully run them over both HELICS and FNCS. This conclusion comes from many of my experiments following right steps.

First, I want to show my basic settings,
OS: Linux Mint 20.2
User: root
TESP version: 1.0.0
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/tesp:/opt/tesp/bin:/opt/tesp/PreProcess:/opt/tesp/PostProcess
TESP_INSTALL: /opt/tesp

Before executing the run.sh (or other version, e.g., runh.sh, runpp.sh) of each example, I always execute ./clean.sh, ./kill5570.sh, ./kill23404.sh for many times. For te30 example, python3 prepare_case.py is also executed in advance to prepare the case.

Then, I can run successfully the following examples:

  1. loadshed - GridLAB-D and Python over HELICS (without Pypower)
  2. loadshed - GridLAB-D and Python over FNCS (without Pypower)
  3. energyplus - EnergyPlus over HELICS (without Pypower)
  4. energyplus - EnergyPlus over FNCS (without Pypower)
  5. pypower - PYPOWER over HECLIS (include Pypower)
  6. TE30 - case with market over HELICS (include Pypower)

I fail in running the following examples:
7. pypower - PYPOWER over FNCS (include Pypower)
8. TE30 - case with market over FNCS (include Pypower)

For case 7 (pypower - PYPOWER over FNCS), the content in pypower.log is:

cat pypower.log 
unit   2 off from 108000 to 154800
ERROR: could not parse time value
WARNING: fncs is not initialized

For case 8 (TE30 - case with market over FNCS), the content in pypower.log is:

cat pypower.log
unit   2 off from 108000 to 154800
ERROR: could not parse time value
WARNING: fncs is not initialized

There is no content is broker.log and gridlabd.log.

So, I guess it could be some problems in the integration of the pypower federate over FNCS.

I wish I can get reply for this issue.

Many thanks!

v1.0.0 Energy+ using pre-recorded prices

In the v1.0.0 release, the Energy+ agent is subscribing to an player providing the cleared price rather than those provided by the substation agent. This is likely an error in the prepare_case script that was used for debugging and accidentally left in place for the release.

Inconsistent shape of metrics files

(At least) two metrics files have different shapes accounting for the time stamps / hours

The pypower metrics files -- {case}m_dict.json, bus{case}metrics.json, gen{case}_metrics.json -- all have 577 time stamps.
The GLD metrics files -- {case}glm_dict.json, substation{case}metrics.json, house{case}metrics.json, billing_meter{case}metrics.json, inverter{case}metrics.json, capacitor{case}metrics.json, regulator{case}_metrics.json -- all have 576 time stamps.

The inconsistency comes from the GLD metrics files not having an entry for time = '0' (zero), whereas this exists (with content) for the pypower metrics files.

Refactor prep_substation.py to use existing GridLAB-D metadata

prep_substation.py does its own parsing of the GridLAB-D model (.glm) to find the metadata it needs, duplicating the functionality provided by glm_dict.py. We should refactor the code to remove this duplication of functionality, expanding the single implementation so that it provides all necessary metadata from the .glm for all TESP functions.

Document logout/login after installation

ReadTheDocs documentation has a sentence about needing to logout and log back in after installation to have the installation take full affect. This is currently overlooked if the use just downloads the installer and runs it.

Need to find a way to get this requirement more directly in the user's face so they don't overlook it.

Example problems

  1. When running comm: does not generate files and yields "KeyError: 'TimeStep'
  2. When running loadshed (with ns-3): the Makefile is not in the folder, so make does not work.
    Version is the latest: tesp-0.6.0-linux-x64
    Downloaded on 04/28/2020

Move parameters from code to input configuration file

There are several scripts that have many hard-coded parameters scattered through the source code (feeder_generator.py, prep_substation.py). To improve transparency and maintainability, we should move these parameters out of the source code files and codify them in input configuration files. Having them as a separate file in the code base allows for better separation between code and input data as well as provides a more direct way of documenting those input parameters (units, where they came from, why they are needed for certain functions).

Modularize GridLAB-D metrics_collector object

To support dynamic configuration of the metrics collection from GridLAB-D (without having to modify source code), investigate alternative implementations of the metrics collector.

SGIP1 load oscillations

The v1.0.0 implementation of the SGIP1 example shows oscillations in the power system load but not price. These oscillations are only present in the transactive case and are more dominant in the first day of the two-day simulation prior to the outage on day two that drives prices higher.

The energy storage devices show these oscillations as well but are in load-following mode within GridLAB-D and its unclear if these devices are the cause or another indication of a broader problem.

validation_transactive_bus_loads2

validation_transactive_bus_prices

validation_transactive_bus_loads4

v1.0.0 loadshed/runhpy.sh does not produce graphable results

Following the directions on RTD, running loadshed/runhpy.sh and then python3 plot_loadshed.py loadshed produces no graphs.

File loadshed has substation n650 at Matpower bus TBD with 12.0 MVA transformer

Feeder Dictionary:
n650 has 0 houses and 0 inverters

Billing Meter Dictionary:
m675 on phase ABC of n650 with []
m692 on phase ABC of n650 with []

House Dictionary:

Inverter Dictionary:
Traceback (most recent call last):
  File "plot_loadshed.py", line 41, in <module>
    lp_m = open ("billing_meter_" + sys.argv[1] + "_metrics.json").read()
FileNotFoundError: [Errno 2] No such file or directory: 'billing_meter_loadshed_metrics.json'

Te30 example of TESP

I am using aTESP toolbox and I want to implement TESP according to your website guide and documentation through Using Docker and the autotest.py script option. after following the documentation, I received the error about line four of the prepare_case.py file, the error is:

Traceback (most recent call last) :
File "prepare_case.py", line 4, in
tmy_file = os.getenv('TESP_INSTALL') + '/share/support/weather/AZ-Tucson_International_Ap.tmy3'
TypeError: Unsupported operand type(s) for +: 'NoneType' and 'str' .

according to the documentation I install all required support files, However, I deal with this problem, please let me know what is the solution! In addition, there is a YouTube tutorial on the TESP website to install TESP on windows, however, the tesp-0.1.0-windows-installer.exe file does not exist on the GitHub website, is there any other option to install TESP on windows?

-ljsoncpp not found

I get -ljsoncpp not found when executing the "gridlabd --validate" command under the GridLAB-D with Prerequisites section of the instructions for Building on Ubuntu.

I am working on an Ubuntu 16.04.3 LTS virtual machine with GCC/G++ 5.4.0 20160609.

Undefined references in ns3 libs when running loadshed example

/usr/bin/ld: /home/merlin/tesp/lib/libns3-dev-internet-debug.so: undefined reference to typeinfo for ns3::Probe' usr/bin/ld: /home/merlin/tesp/lib/libns3-dev-internet-debug.so: undefined reference to ns3::Probe::~Probe()'
/usr/bin/ld: /home/merlin/tesp/lib/libns3-dev-internet-debug.so: undefined reference to ns3::PacketFilter::~PacketFilter()' /usr/bin/ld: /home/merlin/tesp/lib/libns3-dev-point-to-point-debug.so: undefined reference to vtable for ns3::MpiReceiver'
/usr/bin/ld: /home/merlin/tesp/lib/libns3-dev-internet-debug.so: undefined reference to `ns3::TrafficControlHelper::Install(ns3::Ptrns3::NetDevice)'

The libs are in the TESP_INSTALL/lib folder

Error while loading shared libraries

Hi,
I have installed tesp on my ubuntu virtual machine using the installer, however when I try to run the examples it does not work and the log files have this error "fncs_player: error while loading shared libraries: libfncs.so.1: cannot open shared object file: No such file or directory"
Please what could be the cause for this?

SGIP running issue

When I follow the instruction and installed the software in ubuntu16.04.But I met the issue when I run the sgip examples.
guo@ubuntu:~/tesp/examples/sgip1$ python3 plots.py SGIP1a

File SGIP1a has baseMVA 100.0

Generator Dictionary:
Unit Bus Type Pnom Pmax Costs[Start Stop C2 C1 C0]
1 1 pv 163.0 247.0 [ 500.0 0.0 0.03 1.3 180.0 ]
2 2 swing 0.0 192.0 [ 2000.0 0.0 0.085 3.0 100.0 ]
3 3 pv 85.0 128.0 [ 3000.0 0.0 0.122 5.0 135.0 ]
4 9 pq 0.0 250.0 [ 3000.0 0.0 3.0 50.0 1500.0 ]
5 7 pq 0.0 0.0 [ 0.0 0.0 0.0 0.0 0.0 ]

FNCS Bus Dictionary:
Bus Pnom Qnom ampFactor [GridLAB-D Substations]
7 100.0 35.0 20.0 ['SUBSTATION7']
Traceback (most recent call last):
File "plots.py", line 6, in
pp.process_pypower (rootname)
File "/home/guo/miniconda3/lib/python3.7/site-packages/tesp_support/process_pypower.py", line 61, in process_pypower
lst_b = json.loads(lp_b)
File "/home/guo/miniconda3/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/home/guo/miniconda3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/guo/miniconda3/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

I think it maybe compatible issue.how to fix that?

FATAL error while running 'comm' example

Downloaded 0.6.1 version.
Updated tesp_support and all other libraries (no error so far).
Tried to run the comm example.
Called tesp/Nocomm_base/run.sh script, it yielded:


merlin@merlin-VirtualBox: tesp/share/examples/comm/Nocomm_Base$ sh ./run.sh
merlin@merlin-VirtualBox: tesp/share/examples/comm/Nocomm_Base$ starting FNCS substation loop Nocomm_Base_agent_dict.json Nocomm_Base 48 WithMarket
##,tnow,tclear,ClearType,ClearQ,ClearP,BuyCount,BuyUnresp,BuyResp,SellCount,SellUnresp,SellResp,MargQ,MargFrac,LMP,RefLoad,ConSurplus,AveConSurplus,SupplierSurplus,UnrespSupplierSurplus
unit 2 off from 111600 to 154800
Nocomm_Base.glm(28): property interim is not defined in class metrics_collector_writer
Nocomm_Base.glm(26): load failed at or near 'object metri...'
FATAL [INIT] : shutdown after command line rejected


All logs have ZERO bytes, so I don' t know what is happening.
I searched for a discussion forum before posting here, and didn't find.

some problems when I run plot_loadshed.py

I followed the Tutorial:
cd ~/tesp/examples/loadshed
./clean.sh
./runhpy.sh
python3 plot_loadshed.py loadshed
But the problem occured,
File "plot_loadshed.py", line 49, in
print ("There are", len (times), "sample times beginning with", times[1] - times[0], "second intervals")
IndexError: list index out of range

In plot_loadshed.py, if it has run lst_m.pop('StartTime') and meta_m = lst_m.pop('Metadata'), st_m becomes a empty dict. So, I have a defective billing_meter_loadshed_metrics.json? The data in the file are as follows:

{"Metadata":{"above_RangeA_Count":{"index":22,"units":""},"above_RangeA_Duration":{"index":12,"units":"s"},"above_RangeB_Count":{"index":24,"units":""},"above_RangeB_Duration":{"index":14,"units":"s"},"below_10_percent_NormVol_Count":{"index":27,"units":""},"below_10_percent_NormVol_Duration":{"index":26,"units":"s"},"below_RangeA_Count":{"index":23,"units":""},"below_RangeA_Duration":{"index":13,"units":"s"},"below_RangeB_Count":{"index":25,"units":""},"below_RangeB_Duration":{"index":15,"units":"s"},"bill":{"index":8,"units":"USD"},"reactive_energy":{"index":7,"units":"VARh"},"reactive_power_avg":{"index":5,"units":"VAR"},"reactive_power_max":{"index":4,"units":"VAR"},"reactive_power_min":{"index":3,"units":"VAR"},"real_energy":{"index":6,"units":"Wh"},"real_power_avg":{"index":2,"units":"W"},"real_power_max":{"index":1,"units":"W"},"real_power_min":{"index":0,"units":"W"},"voltage12_avg":{"index":11,"units":"V"},"voltage12_max":{"index":10,"units":"V"},"voltage12_min":{"index":9,"units":"V"},"voltage_avg":{"index":18,"units":"V"},"voltage_max":{"index":17,"units":"V"},"voltage_min":{"index":16,"units":"V"},"voltage_unbalance_avg":{"index":21,"units":"V"},"voltage_unbalance_max":{"index":20,"units":"V"},"voltage_unbalance_min":{"index":19,"units":"V"}},"StartTime":"2000-01-01 00:00:00 EST"}

v1.0.0 loadshed/runhjava.sh does not run

Running the examples/loadshed.runhjava.sh fails:

helicshed.java:1: error: package com.java.helics does not exist
import com.java.helics.helics;
                      ^
helicshed.java:2: error: package com.java.helics does not exist
import com.java.helics.*;
^
helicshed.java:7: error: cannot find symbol
	System.out.println ("HELICS Version: " + helics.helicsGetVersion());
	                                         ^
  symbol:   variable helics
  location: class helicshed
helicshed.java:8: error: cannot find symbol
	SWIGTYPE_p_void fi = helics.helicsCreateFederateInfo();
	^
  symbol:   class SWIGTYPE_p_void
  location: class helicshed
helicshed.java:8: error: cannot find symbol
	SWIGTYPE_p_void fi = helics.helicsCreateFederateInfo();
	                     ^
  symbol:   variable helics
  location: class helicshed

among many others; I assume they are all related

Consider disaggregating generators in the public 8-bus ERCOT example

Code in ercot/bulk_system (make_case8.py, update_gen.py) will separate the aggregate generation into separate units of realistic size, but this is not currently used.

  • The minimum generation is set for correspondence to one component unit, which effectively ignores the startup/shutdown costs within the aggregate
  • The quadratic cost functions are not simple to disaggregate. However, the public version of this example has to linearize the cost functions anyway, so that the problem solves in Octave with GLPK. So the cost function translation may not be of concern to the public example.

SGIP1 overly sensitive agent

The price-responsiveness of the loads during the first day of the SGIP1 simulation is very high, leading to significant deviations in loading as compared to the non-price-responsive case.
validation_transactive_bus_loads2

Github credentials not accepted

A TESP user is trying to install TESP using the shell script:

./tesp.sh <Github user name> <Github email address>

Using credentials that are verified to work on the Github website, they are getting an error message "sorry, try again".

v1.0.0 loadshed/run.sh produces no plottable data

Running loadshed/run.sh appears to run to completion but python3 plot_loadshedpy load shed produces no plots

File loadshed has substation n650 at Matpower bus TBD with 12.0 MVA transformer

Feeder Dictionary:
n650 has 0 houses and 0 inverters

Billing Meter Dictionary:
m675 on phase ABC of n650 with []
m692 on phase ABC of n650 with []

House Dictionary:

Inverter Dictionary:
Traceback (most recent call last):
  File "plot_loadshed.py", line 41, in <module>
    lp_m = open ("billing_meter_" + sys.argv[1] + "_metrics.json").read()
FileNotFoundError: [Errno 2] No such file or directory: 'billing_meter_loadshed_metrics.json'

library libstdc++-6.dll.

image

Hello Tom,
When executing python prepare_case.py, I encountered the problem "The procedure entry point .... dynamic link library libstdc++-6.dll." Any suggestions on tackling it.

Thanks,

Huangjie

Convert data collection from JSON to database

Especially since we're dealing with a wide variety of simulation tools and source datasets, it would be very useful to have a centralized data repository for both input and output datasets. Such a repository would make the post-processing of data much more straightforward and describing the form of the data (the database schema) would also be be standardized. This would be intended to replace the JSON-based data collection which isn't a great fit for the time-series data we're often dealing with.

helics_cli has a database (sqlite) that is uses to store some of the data that flows over the HELICS message bus that we could potentially draft for this purpose as we plan to use helics_cli to run our co-simulations eventually.

Update Documentation

Drawings:

  • overview block diagram with updated federates in HELICS
  • message flows for the MATPOWER/MOST example
  • message flows for the three-building example with consensus mechanism
  • diagram of the relationship between meters, nodes and loads in GridLAB-D, including three-phase commercial transformers
  • update the existing UML
  • Docker image contents

New text:

  • sample results and description for each example in readme; link to RTD
  • jsonschema for the ercot_8.json, case_config.json, eplus_config.json, eplus_msg.json and eplus_agent_msg.json files
  • updated inline comments for Python files that compile into RTD
  • incorporate the table of E+ reference building characteristics and thumbnails
  • link to the summary of PNNL taxonomy feeder characteristics and footprints
  • incorporate table of FNCS vs. HELICS solution times
  • describe how to run the University of Pittsburgh machine learning examples

New introductory video on https://www.youtube.com/channel/UCMKOTNGldZ3OdDzHRJ_myeg

  • install on a VM or Docker
  • configure a case and run it
  • read the metrics and make a custom plot
  • make a new OpenDSS agent

Running examples Problem

Hello,

I am new to tesp. I followed the instructions for installing the software. I checked the paths in the shell and everything is ok.
C:\Users\Samy>set tesp
TESPDIR=C:\Users\Samy\tesp

C:\Users\Samy>set glpath
GLPATH=C:\tesp_exec\bin;C:\tesp_exec\lib\gridlabd;C:\tesp_exec\share\gridlabd

However, for some reason I can not run the given examples and generate the results.
For example, when I tried to run the loadshed example, I noticed that I have lower number of communication connection as follows and I do not get the results:
TCP 0.0.0.0:5570 0.0.0.0:0 LISTENING 3856
TCP 127.0.0.1:5570 127.0.0.1:52217 ESTABLISHED 3856
TCP 127.0.0.1:52217 127.0.0.1:5570 ESTABLISHED 22040

In the generated gridlab-d text, I have error as follow:
ERROR [INIT] : gldcore/module.c(422): module 'connection' load failed - "C:\tesp_exec\lib\gridlabd\connection.dll": The specified module could not be found.
loadshed.glm(17): module 'connection' load failed, No such file or directory
loadshed.glm(17): load failed at or near 'module conne...'
ERROR [INIT] : unable to load 'loadshed.glm': No such file or directory
FATAL [INIT] : shutdown after command line rejected

I double checked the existence of this module and it is there?

Any idea regarding this issue?

error in code in energplus in pnnl/tesb

object src/EnergyPlus/CMakeFiles/energypluslib.dir/DXCoils.cc.o
{standard input}: Assembler messages:
{standard input}:118818: Warning: end of file in string; '"' inserted
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make[2]: *** [src/EnergyPlus/CMakeFiles/energypluslib.dir/build.make:440: src/EnergyPlus/CMakeFiles/energypluslib.dir/DXCoils.cc.o] Error 1
make[2]: *** Deleting file 'src/EnergyPlus/CMakeFiles/energypluslib.dir/DXCoils.cc.o'
make[1]: *** [CMakeFiles/Makefile2:1477: src/EnergyPlus/CMakeFiles/energypluslib.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
karunesh@RADHEYKRISHNA:~/usrc/EnergyPlus/build$

Helics is not building through code &not interfacing with ns-3 & grudlabd

Please check with each installation ,helics is not building from helics code &also not integrating with ns-3 & gridlabd . I have used your response 0.8 version &try to install but there is error in belive building from GMLC/TDC/HELICS in github. Also not integrating with ns-3 with belive using helics-src &ns-3 develop.
Please help
Please run individually with your code &also check your interfacing two at a time

not able to build ns-3 using evolve by direct

git clone -b evolve http:
./tesp.sh
but failed to build & install ns-3 by direct using command
karunesh@RADHEYKRISHNA:/Desktop/tesp$ cd scripts
karunesh@RADHEYKRISHNA:
/Desktop/tesp/scripts$ ./tesp.sh Karuneshm9 [email protected]
Helics, 3.1.0 (2021-11-24)

GridLAB-D 4.1.0-17900 (Lugo [e8ec2c43:HEAD:Mod]) 64-bit LINUX RELEASE

./versions.sh: line 25: energyplus: command not found

NS-3 not installed

Ipopt 3.13.2 (x86_64-pc-linux-gnu), ASL(20190605)

ns-3-helics (optimized build) garbling message in loadshed example

The loadshed example runhpy.sh produced incorrect results because the switch did not open or close in GridLAB-D. The log said keyword 'OPENᄍU' is not valid for property phase_A_state. A temporary workaround was made by appending a null character in helicshed.py as shown below. However, this wasn't required for the 6-character CLOSED message just above it.

        if val == 1:
          logger.info('Switching ' + end_name + ' to CLOSED at second ' + str(t))
          h.helicsEndpointSendMessageRaw(swStatusEp, '', 'CLOSED'.encode())
        elif val == 0:
          logger.info('Switching ' + end_name + ' to OPEN at second ' + str(t))
#          h.helicsEndpointSendMessageRaw(swStatusEp, '', 'OPEN'.encode())
          h.helicsEndpointSendMessageRaw(swStatusEp, '', 'OPEN\0'.encode())

This looks like a memory bug in ns-3-helics that manifests in the optimized build but not in the debug build. When fixed properly, it may also fix issue #32

install/MacOSX missing files

install/MacOSX is missing the files described in the following steps in the readme file:
"
4. Unzip the archive ~/tesp/install/MacOSX/Archive_usr_local_share.zip to /usr/local/share
5a. Manually create the directory /usr/local/opt/jsoncpp
5b. Unzip the archive ~/tesp/install/MacOSX/Archive_usr_local_opt_jsoncpp.zip to /usr/local/opt/jsoncpp
"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.