Hello Frank, Thanks for the clarification! Thanks and regards, Alok.
Hello GLD team, Hope you all are keeping well in this challenging COVID-19 situation. I am trying to use smart inverters to be controlled in an optimization and want to explore the built-in GLD optimizer. I tried searching for pevious related posts, but haven't found much information. Is it possible to share an example glm (maybe a 13-node example) of how to use the built-in optimizer by changing smart-inverter parameters? Thanks in advance! Thanks and regards, Alok.
I was able to get the issue resolved with Andy's help, the latest version of develop branch of GLD (The current hash 4c582db…) has some recent bug fixes that help to resolve this issue. Thanks GLD Team!
I was able to get the issue resiled with Andy's help, the latest version of develop branch of GLD (The current hash 4c582db…) has some recent bug fixes that help to resolve this issue. Thanks GLD Team!
In the GLD configuration if I use offset=1, i am able to co-simulate. but I do not want offset in the co-simulation. is there a way out? Thanks!
Hi GLD Team, I am facing issues with co-simulating GLD with delta mode. I am using HELICS. Is there a specific version of GLD that i should be using for this. I am using the develop branch. The normal delta mode simulation works fine for me, only when i try to co-simulate I am runngin into error: ERROR [2018-08-03 00:00:00 MDT] : helics_msg::clock_update: Cannot return the current time or less than the current time. ERROR [2018-08-03 00:00:00 MDT] : exec halted: clock time is negative (global_clock=-1)...
Hi Andy, Thank you for clarifying my doubt. I am trying a python-fncs-GLD co-simulation. Best reagrds, Alok.
Hello Frank, Thanks for your reply. I have one follow up question to understand if I can use GLD properly and not misunderstand its capability. When I try to co-simulate, gridlabd.log shows time_DELTA=1000000000ns (1sec). Does this mean GLD cannot update variables during delta mode for time_delta <1 sec (say 0.1 ms) ? For Example, consider this case: I need to update the substation voltage from tranmission system dynamic solver every 0.1 ms during a dynamic event , say stalling of induciton motor...
Hi GridLAB-D Team, I am trying to run a dynamic co-simulation with GridLAB-D using FNCS. I have built GridLAB-D feature 730with FNCS. The delta mode simulations run fine with induction motor models. But when i try to add object fncs_msg, gridLAB-D starts and nothing happens or proceeds. http://gridlab-d.shoutwiki.com/wiki/Subsecond says GridLAB-D cannot run event mode and delta mode together. Does it mean Delta mode (dynamic simulation) and FNCS cannot run simultaneously? Details: GridLAB-D version...
@Song, sorry for the delay... Frank is correct... Follow the word document it works. The best way is to type out the commands. .. Make sure you have set the path environment variable correctly after setting up MSYS2. As far as the commands go, sometimes, the "space" and "enter" in the source from where you are copying cause issues, so I suggest copying to a notepad first, ensure everything is correct and as intended then copy again from notepad and paste in the terminal (MSYS2). Hope this helps......
Hi Andy, Thank you for the help and recommendations. I was able to build FNCS from scratch and that helped "configure" to detect and enable FNCS. Gridlabd build was not successful with MSYS2: fncs_msg had some errors during make process, but, one positive thing is FNCS_msg was enabled and configured without errors. I tried building it with MINGW and it was successful without errors, however, it needed xerces3.1.1 with MINGW. xerces 3.2.0 (which is currently in the third party folder in the source...
I am relooking at your answer from Aug29 https://github.com/FNCS/fncs/issues/21. I will try building FNCS from scratch and get back to you. Thanks and regards, Alok.
Thank you Andy for clarifying what should be there in fncs and the configure line. I tried both ways of configure line and the result was the same becasue of the/c/ fncs did not having any include folder. I have taken the fncs files from: https://github.com/FNCS/fncs/releases the latest version2.3.2. I have used the Win64-Release-v100-Dynamic-2.3.2.zip to get the .dll and .exe files. I put the dlls in lib and the exe and couple of other files in bin. There is no include folder in there. The source...
Hi Andy, I tried some debugging from my end. When I run configuration command, somewhere in between it says : checking for FNCS... no So I looked into the config.log file: found the following: fncs.hpp not found: checking for FNCSconfigure:10954: g++ -o conftest.exe -O2 -g -w -O2 -g -w -L/c/fncs/lib conftest.cpp -lfncs -lczmq -lzmq >&5conftest.cpp:93:9: fatal error: fncs.hpp: No such file or directory #include<fncs.hpp> ^~~~~~~~~~compilation terminated.</fncs.hpp> Not sure if this gives any clue......
Hi Andy, I tried some debugging from my end. When I run configuration command, somewhere in between it says : checking for FNCS... no So I looked into the config.log file: found the following: fncs.hpp not found: checking for FNCSconfigure:10954: g++ -o conftest.exe -O2 -g -w -O2 -g -w -L/c/fncs/lib conftest.cpp -lfncs -lczmq -lzmq >&5conftest.cpp:93:9: fatal error: fncs.hpp: No such file or directory #include<fncs.hpp> ^~~~~~~~~~compilation terminated.</fncs.hpp> Not sure if this any clue... Thanks...
Hi Andy, I tried some debugging from my end. When I run config, it says : checking for FNCS... no So i looked into the config.log file: found the following: fncs.hpp not found: checking for FNCSconfigure:10954: g++ -o conftest.exe -O2 -g -w -O2 -g -w -L/c/fncs/lib conftest.cpp -lfncs -lczmq -lzmq >&5conftest.cpp:93:9: fatal error: fncs.hpp: No such file or directory #include<fncs.hpp> ^~~~~~~~~~compilation terminated.</fncs.hpp> Not sure if this any clue... Thanks and regards, Alok.
Hi Andy, I tried some debugging from my end. When I run config, it says : checking for FNCS... no So i looked into the config.log file: found the following: fncs.hpp not found: checking for FNCSconfigure:10954: g++ -o conftest.exe -O2 -g -w -O2 -g -w -L/c/fncs/lib conftest.cpp -lfncs -lczmq -lzmq >&5conftest.cpp:93:9: fatal error: fncs.hpp: No such file or directory #include<fncs.hpp> ^~~~~~~~~~compilation terminated.</fncs.hpp> Not sure if this any clue... Thanks and regards, Alok.
Hi Andy, Thanks for your time and patience on this. I looked up some code and searched for HAVE_FNCS on github gridlabd and found some placed it is in lower case and some places it is in upper cases like in configure.ac file, it is in lower case "have_fncs" and many other places it is upper case "HAVE_FNCS". In some files it is both uppercase and lower case. But in make file it is only in upper case. Attaching a screenshot of the search... it says 7 files, but inside the files there are multiple...
Hello again Andy, Thank you for your quick response. The /bin or /lib got me a bit confused and so I tried both the combinations but, the "fncs_msg" did not build in any case during make command. Based on your comments, I did the following: Copied czmq.dll, libfncs.dll, libsodium.dll and libzmq.dll into /c/fncs/lib . Removed these files from /c/fncs location. Kept the other filed as they were in /c/fncs location. Added /c/fncs/lib and /c/fncs to PATH before begining to compile. Also added /C/msys64/mingw64...
Hi Andy, Sorry for the multiple posts in between... I figured out using msys2. Everything works fine but "fncs_msg" is not getting built. I tried feature/730 and the base gridlabd versions as well. The configuration command I used as below: ./configure --build=x86_64-w64-mingw32 --prefix=$PWD/install64 --with-xerces=/mingw64 --with-fncs=/c/fncs --enable-silent-rules 'CFLAGS=-O2 -g -w' 'CXXFLAGS=-O2 -g -w' 'LDFLAGS=-O2 -g -w' I added "/c/fncs" and "/C/msys64/mingw64/bin" to the path before starting...
Hi Andy, I went through some of the posts for building using msys2. I am facing issues by following the word document "BuildingGridlabdOnWindowsWithMsys2" in the cloned repository. My configuration command is: ./configure --build=x86_64-w64-mingw32 --prefix=$PWD/install64 --with-xerces=/mingw64/ --with-fncs=/c/fncs --with-matlab=/c/PROGRA~1/MATLAB/R2016a --enable-silent-rules 'CFLAGS=-O2 -g -w' 'CXXFLAGS=-O2 -g -w' 'LDFLAGS=-O2 -g -w' Attached is the error screenshot. What mistake am I making? Also,...
Hi Andy, I had posted some more issues that I was coming across, I was making a mistake of not using msys2. I am trying it with msys2 right now. Sorry for the empty posts below. Will get back to you if I face any issues. Thanks and regards, Alok.
Hi Andy, The page says to include this in the configuration command: "--with-fncs= location to where FNCS and its third party libraries were installed " my configuration command is: ./configure --build=x86_64-w64-mingw32 --prefix=$PWD/install64 --with-xerces=/opt/windows_64/mingw --with-fncs=/c/fncs --enable-silent-rules 'CFLAGS=-g -O0 -w' 'CXXFLAGS=-g -O0 -w' 'LDFLAGS=-g -O0 -w' /c/fncs is added to the path in environment variables and it has all the fncs_broker.exe, tracer.exe, etc and the czmq.dl,...
Hi Andy, Firstly thank you for your time and patience on this ! Just wanted you to know that I went through some of the other posts, I see some others also faced similar issue but on Mac/Ubuntu. I am using a Windows machine (co-simulating with software that works only on windows). Trying to get some of the TESP examples working with gridlab-d (but including some dynamics of induction motors), so the need for building feature 730 with fncs. Not sure if I have to do anything specific for windows machines?...
Hi Andy, The page says to include this in the configuration command: "--with-fncs=<location and="" third="" installed="" libraries="" to="" fncs="" were="" party="" where="" its="">" my configuration command is:</location> ./configure --build=x86_64-w64-mingw32 --prefix=$PWD/install64 --with-xerces=/opt/windows_64/mingw --with-fncs=/c/fncs --enable-silent-rules 'CFLAGS=-g -O0 -w' 'CXXFLAGS=-g -O0 -w' 'LDFLAGS=-g -O0 -w' /c/fncs is added to the path in environment variables When I include this in...
Hi Andy, Firstly thank you for your time and patience on this ! Just wanted you to know that I went through some of the other posts, I see some others also faced similar issue but on Mac/Ubuntu. I am using a Windows machine (co-simulating with software that works only on windows). Trying to get some of the TESP examples working with gridlab-d (but including some dynamics of induction motors), so the need for building feature 730 with fncs. Not sure if I have to do anything specific for windows machines?...
Hi Andy, Just wanted you to know that I went through some of the other posts, I see some others also faced similar issue but on Mac/Ubuntu. I am using a Windows machine (co-simulating with software that works only on windows). Trying to get some of the TESP examples working with gridlab-d (but including some dynamics of induction motors), so the need for building feature 730 with fncs. Not sure if I have to do anything specific for windows machines? I have followed the steps to install fncs and dependencies...
Should I include any specific flags in the configure command for FNCS ?
Should I include any specific flags in the configure monnand for FNCS ?
Hi Andy, The page says to include this in the configuration command: "--with-fncs=<location and="" third="" installed="" libraries="" to="" fncs="" were="" party="" where="" its="">" my configuration command is:</location> ./configure --build=x86_64-w64-mingw32 --prefix=$PWD/install64 --with-xerces=/opt/windows_64/mingw --with-fncs=/c/fncs --enable-silent-rules 'CFLAGS=-g -O0 -w' 'CXXFLAGS=-g -O0 -w' 'LDFLAGS=-g -O0 -w' I also tried this one: ./configure --build=x86_64-w64-mingw32 --prefix=$PWD/install64...
Hi Andy, Thanks... I'll try it out. Regards, Alok.
I just wanted to clarify one thing.. When i say delta mode, i mean using the dynamic model of the induction motors, inverters and generators... Thanks, Alok.
Hi Gridlab-D Team, I am trying to run delta mode and use FNCS to try and do dynamic co-simulation. But unable to find both working in a single branch of gridab-d. Can you please point to a branch that has both working module or point to a branch for at least a working connection module. I was looking at the TESP examples as a starting point. https://tesp.readthedocs.io/en/latest/TESP_DesignDoc.html#installing-on-windows-linux-or-mac-osx mentions feature/1048 of gridlabd works, but I am getting an...
Thank you Frank.. I'll reach out to authors of buspy. I tried FNCS over a week and figured out how to use it.. I will work with FNCS for the newer versions of GridLAB-D... Thank you for your comments. Alok.
Hi GridLAB-D Team, Request you to kindly share a jason_link example to communicate between a python (.py) file and a GridLAB-D simulation of a .glm file). I am trying to run GridLAB-D as a slave (client mode) and python (.py) file as master. I tried searching the files on GitHub but did not find anything except the json_link_tester files.... If there is one, please point to the location. Thanks, Alok.
I did some additional trials today and found that the Gridlab-d installations without the connection module work well with buspy (client-server mode). What has changed in the way client-server communication works for those versions without connection module and the more newer ones with the connection module? If you can share this then maybe I can modify buspy to communicate with the newer versions of GridLAB-D. Thanks, Alok.
Hi GridLAB team, Can you please point to which branch on GitHub corresponds to version 3.1. I am trying to work with buspy module and it seems to be workingonly with version 3.1. I want to replace some modules and build GridLAB-d from source but, I am in need of the GitHub branch # , version that correspons to the released version 3.1 (https://sourceforge.net/projects/gridlab-d/files/gridlab-d/Old%20releases/ and gridlabd-3.1-x64.exe). Thanks and regards, Alok.
Thank you Frank... I was doing a mistake in connecting the substation object. Thanks for the help. :)
Hi, I want to use a user speficed voltage at substaion (using positive_sequence_voltgae in substation object) and want the network to use that voltage. What to do? When I use voltdump, I see the nominal voltgaes at all the nodes? how do I know that the powerflow is using the positive sequence voltgaes fot its calculations? My substation node: object substation { name Subs; phases "ABCN"; bustype SWING; reference_phase PHASE_A; positive_sequence_voltage 6896.15467346+734.685786003j; nominal_voltage...
Hi GLD and FNCS Team, Do you have a version of FNCS that works on Python 2.7.x? I am in need of working with GLD with Python 2.7.x. If it is not compatible, can you suggest what files in the FNCS package need to be modified so that I can make it work with Python 2.7.x Thanks and regards, Alok.
Thank you Jason for the crisp and clear reply... Is there a plan to develop a gridlab-python link anytime in the future? I read some very old posts in the forum where you were comtemplating whether or not to provide pyhton support? I will try and dirty my hands with the "server mode"... Unfortunately, I do not have any software development background... It will be helpful if you can point to some useful material/ tutorial rearding the GLD "server mode" and provide any tips while working with it.......
Hi Gridlab Team, I am new to Gridlab-D.. I am trying to use Gridlab-D in my transmission and distribution co-simulation using a python interface. Is there a python link for linking Gridlab-d with other software outside of Gridlab-D? I am trying to link Gridlab-D and PSSE using a python interface. I work on Windows platform and am finding it difficult to link Gridlab-D through python for transferring data to and from Gridlab-D during a simulation (update of bus voltages and load powers). Thanks and...