Comments (2)
Overview over which Villas examples actually work (tested on the reorganization
-Branch (PR #94)):
Python / Jupyter Examples
dpsim-file.py
: Works without any interactiondpsim-mqtt.py
: Works, but explicitly waits for input data from MQTTdpsim-mqtt-import-export.py
: Works, but does not wait for input data from MQTTdpsim-mqtt-import-export-MIMO.py
: Segfaults after about 3 secondsshmem-distributed-reference.py
: Works (but also does not use any interfaces, as intended)shmem-distributed-villas.py
: Runs til the end, but produces an error when stopping villas. All log files remain empty, so no correct results are written:Opening shared memory interface failed (ret=-8): No such file or directory villas-node: /tmp/villasnode/lib/super_node.cpp:436: villas::node::SuperNode::~SuperNode(): Assertion `state == State::INITIALIZED || state == State::PARSED || state == State::CHECKED || state == State::STOPPED || state == State::PREPARED' failed. Traceback (most recent call last): File "/dpsim/examples/villas/shmem-distributed-villas.py", line 170, in <module> p_villas.join()
test_shmem_cigre_mv_pf_profiles.py
: Starts up VillasNode and then immediately segfaultstest_shmem_distributed_direct.py
: Uses the old dpsim-Python interface and therefore does not run at alltest_shmem_import_export.py
: Starts up and segfaults after about a secondShmemExample.ipynb
: The first cell runs but finishes with an error, the following cell cannot find the required log files:12:54:52 info node This is VILLASnode v0.11.0-b94746e-release (built on Jul 5 2022, 15:08:48) 12:54:52 info signals Initialize subsystem 12:54:52 info config Reading configuration from local file: /tmp/tmp.pCdHd59j7J 12:54:52 info memory Initialize memory sub-system: #hugepages=100 12:54:52 warn memory:mmap Running in an unprivileged environment. Hugepages are not used! 12:54:52 warn memory Running in an unprivileged environment. Memory is not locked to RAM! 12:54:52 info kernel:rt Initialize sub-system 12:54:52 warn kernel:rt We recommend to use an PREEMPT_RT patched kernel! 12:54:52 warn kernel:rt You might want to use the 'priority' setting to increase 's process priority 12:54:52 warn kernel:rt You might want to use the 'affinity' setting to pin to dedicate CPU cores 12:54:52 info node:shmem Initialized node type which is used by 1 nodes 12:54:52 info node:file Initialized node type which is used by 2 nodes 12:54:52 info api Starting sub-system 12:54:52 info web Starting sub-system 12:54:52 info api Started worker 12:54:52 err lws ERROR on binding fd 14 to port 80 (-1 98) 12:54:52 err lws init server failed 12:54:52 warn web Failed to setup vhost. Trying another port: 81 12:54:52 err lws ERROR on binding fd 14 to port 81 (-1 98) 12:54:52 err lws init server failed 12:54:52 warn web Failed to setup vhost. Trying another port: 82 12:54:52 info web Started worker Error while terminating subprocess (pid=83557):
ShmemDistributedDirect.ipynb
: Relative paths are wrong so the first cell does not runcigre-mv-pf-profiles-shmem.ipynb
: Simulation setup works, but the kernel crashes onsim.run()
Cpp Examples
FileExample.cpp
: Starts up then throws astd::exception
without any further descriptionMqttExample.cpp
: Works, but explicitly waits for input data from MQTTShmemExample.cpp
Only starts up when run on its own, but then awaits some input. When started viaconfigs/start_ShmemExample.sh
, it runs forever without producing any useful logs, outputting an error on KeyboardInterrupt:13:16:39 err node Opening shared memory interface failed (ret=-8): No such file or directory villas-node: /tmp/villasnode/lib/super_node.cpp:436: villas::node::SuperNode::~SuperNode(): Assertion `state == State::INITIALIZED || state == State::PARSED || state == State::CHECKED || state == State::STOPPED || state == State::PREPARED' failed. 13:16:39 err node Opening shared memory interface failed (ret=-8): No such file or directory villas-node: /tmp/villasnode/lib/super_node.cpp:436: villas::node::SuperNode::~SuperNode(): Assertion `state == State::INITIALIZED || state == State::PARSED || state == State::CHECKED || state == State::STOPPED || state == State::PREPARED' failed. configs/start_ShmemExample.sh: line 69: 108105 Aborted (core dumped) villas-node ${CONFIG}
Shmem_CIGRE_MV_PowerFlowTest_LoadProfiles.cpp
: Immediately crashes with FileNotFound ErrorShmem_CIGRE_MV_PowerFlowTest.cpp
: Immediately crashes with FileNotFound ErrorShmem_WSCC-9bus_Ctrl.cpp
: Immediately crashes with FileNotFound ErrorShmem_WSCC-9bus_CtrlDist.cpp
: Ends immediately with no output whatsoeverShmem_WSCC-9bus.cpp
: Immediately crashes with FileNotFound ErrorShmemControllableFiltSource.cpp
: Immediately crashes with a CPS::TypeException and no further informationShmemControllableSource.cpp
: Opens the interface, then immediately segfaultsShmemDistributedDirect.cpp
: Segfaults immediately for individual runs as well as for the start via theconfigs/start_ShmemDistributedDirect.sh
script.ShmemDistributedReference.cpp
: Works (but also does not use any interfaces, as intended)ShmemDistributedVillas.cpp
: Segfaults immediately for both inputs 0 and 1ShmemExample.cpp
: Segfaults immediately
Summary
4/9 Python, 0/3 Jupyter, and 2/14 Cpp Examples actually work the way they are supposed to (and two of the working ones do not even use the Villas interface).
from dpsim.
I think we might want to close due to:
- PR #94 was merged
Additionally:
- Issue #252 is dealing with examples for VILLAS
from dpsim.
Related Issues (20)
- Compilation warnings and some code improvements HOT 1
- Fix Doxygen documentation HOT 1
- Powerflow improvements and extended validation HOT 1
- Ensure that virtual nodes of subcomponents are created before function `collectVirtualNodes`
- Improve the code checking pipeline to keep sonar up-to-date automatically
- Use higher number of cores for CI build processes
- Building on Ubuntu 22.04 HOT 1
- Pipeline failing for Windows
- Delete stale branches HOT 1
- Configure GitHub repo delete merged branches automatically HOT 2
- Introduce a `CODEOWNERS` file HOT 19
- Reuse conductance stamp code HOT 4
- State Space Group Class
- Fix VILLASnode in Dockerfiles HOT 2
- Log at debug level HOT 1
- CI Flow does not work for Dockerfile changes HOT 3
- Merge MnaSolver and MnaSolverDirect classes HOT 1
- A typo in dpsim_classes_simulation.svg HOT 2
- Allow initialisation of p_inj and q_inj in SP_NetworkInjection
- Heap allocations in real time critical path lead to significant slow down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpsim.