Comments (6)
Hi, if the idea is to run the model in a separate processor localhost, do this:
cosim run-single "proxyfmu://localhost?file=MyModel.fmu"
That should work, and proxyfmu_booter
is not needed.
I see, however, that this executable is not shipped with cosim cli 0.7.1, but you could fetch it from 0.7.0 release if you need it (to host the model on a different location than localhost).
However, the error you get suggest that cosim cli is built without proxyfmu support. I tested the release of cosim CLI 0.7.1 just now, and that worked.
from proxy-fmu.
Ok, it's been a long time since I worked on this. It seems I was wrong. The FMU needs to be located on the PC that runs the CLI. It is then transmitted to the booter application.
And to answer your initial question regarding the booter. The answer is that the booter no longer exists. proxyfmu
is the only executable needed. To use it as a remote host, use the command:
proxyfmu boot --port<port>
from proxy-fmu.
Thank you for your help. With your assistance, I have successfully run cosim CLI 0.7.0 release. However, I have encountered another issue now. I want to try using distributed devices for co-simulation.
Scenario:
One host and one laptop, with the host connected via Ethernet and the laptop via WiFi. Their IP addresses in the local network are 192.168.2.243 and 192.168.2.185 respectively. After disabling the firewall, they can ping each other.
Both devices have started the proxyfmu_booter (obtained from cosim 0.7.0), using the dp ship example(in demo cases master), and configured OspStructureStructure.xml. NLPobserver.fmu is obtained from 192.168.2.185.
<Simulator name="Observer" source="proxyfmu://192.168.2.185:1234?file=file:///C:\Users\vone\Downloads\demo-cases-master\dp-ship\NLPobserver.fmu"/>
Running
in the terminal of 192.168.2.243
.\cosim.exe run C:\Users\Administrator\Downloads\cosim_file\dp-ship\proxyfmu\OspSystemStructure.xml --output-dir=../output -v
Error
encountered problems on 192.168.2.243.
error: Bad file: No such file: C:\Users\vone\Downloads\demo-cases-master\dp-ship\NLPobserver.fmu
from proxy-fmu.
If I remember correctly, NLPobserver.fmu
needs to be located on the other computer (with the booter). You likely also need to use a relative path for the name. So try placing the FMU together with the booter.
<Simulator name="Observer" source="proxyfmu://192.168.2.185:1234?file=NLPobserver.fmu"/>
from proxy-fmu.
Thank you! I have followed your suggestion, but here is the problem i have occured:
I copied the files needed to D:, and run cosim.
192.168.2.243
192.168.2.185
At the same time, I can run other localhost
test cases on two different computers, proving that there is no issue with cosim cli and proxyfmu. How can I solve this distributed co-simulation problem?
from proxy-fmu.
Thank you! Have solved the problem with your help, now I can run Cosimulation distributedly^ ^
from proxy-fmu.
Related Issues (20)
- Thrift 1.14.x eventually throws an exception
- logging that proxies start
- Incorrectly assumes proxyfmu.exe in working directory HOT 2
- Conanify
- proxyfmu fails when there are white space in path HOT 2
- proxyfmu process fails to terminate when running specific FMU HOT 1
- Print proxyfmu version on usage
- proxyfmu seems to not retry new ports HOT 2
- Enable FMU logging to stdout
- Consider using thread::detach
- Fails when using proxyfmu_booter HOT 4
- Introduce proper logging
- Linker issue VS2019 Release
- Can't find thrift executable
- Remote connection attempts has no timeout
- Can't handle FMUs with parantheses in name on Linux/WSL
- Compilation error: fmicontext.hpp HOT 3
- conan2 (from branch) + visual studio HOT 4
- Exceptions are not always propagated to client code
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 proxy-fmu.