Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » nils.hjelte
  • » Profile

Posts

Posts

Apr-23-14 11:05:29
Unable to set the input parameters of my FMU

I currently get my CoSimulation FMU from another non-modelica export tool. But I am also very interested in exporting CoSimulation modules from OpenModelica when this is available.

Mar-18-14 18:45:29
Unable to set the input parameters of my FMU

I see these declarations in the equation section

Code:


  flowControl = fmi1Functions.fmi1DoStep(fmi1cs, time, communicationStepSize, true);
  {theOutput} = fmi1Functions.fmi1GetReal(fmi1cs, {1.0}, flowControl);

but no fmi1Set*

Here is the imported modeldescription.xml

http://pastebin.com/cn2yb2kt

and here is the generated .mo-file from the import

http://pastebin.com/W9MSYQWc

Mar-18-14 18:26:11
Unable to set the input parameters of my FMU

I am trying to setup/run an FMU in OpenModelica (r19572), and I have problems attaching source signals to my input variables.

I create a new model and load an instance of my FMU using the "Import FMU" functionality. I'm trying to connect a step source signal to my input variable, which is "continous". When I run the simulation I can plot the values from the FMU output variable, and I can verify that these values are fetched using fmiGetReal. But I never get a call to fmiSetReal for the input which is connected to the step source signal.

What am I doing wrong here?

Nov-27-13 18:54:12
Installation on mac 10.9 using macports fails

Actually I have /usr/lib/liblapack.dylib and /usr/lib/libblas.dylib
I searched for the libraries using spotlight

Code:


mdfind -name liblapack

and this did not list those files, but I have them

Nov-27-13 13:10:16
Installation on mac 10.9 using macports fails

Yup, I have the command line tools installed. LAPACK is available here

Code:


/usr/local/lib/liblapack.a
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib

and blas

Code:


/usr/local/lib/libblas.a
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib

Nov-27-13 12:23:01
Installation on mac 10.9 using macports fails

I have also tried building with +rml argument, but then I get

Code:


:info:configure checking for rml includefiles in /opt/local... configure: error: rml headers not found

even though rml-mmc was detected as a dependency and being built and installed by macports

Update:
Indeed, the rml package does not contain any headers

Code:


[nils@elMaco:~]$ port contents rml-mmc
Port rml-mmc contains:
  /opt/local/bin/rml
  /opt/local/bin/rmlc
  /opt/local/lib/rml.x86-darwin

Nov-27-13 12:15:40
Installation on mac 10.9 using macports fails

I also have problems installing OpenModelica on OS X 10.9, but it seem to be a different problem. This is what I get:

Error: Failed to configure openmodelica-devel, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/work/openmodelica_18299/config.log
Error: org.macports.configure for port openmodelica-devel returned: configure failure: command execution failed
Please see the log file for port openmodelica-devel for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_build.openmodelica.org_macports_lang_openmodelica-devel/openmodelica-devel/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Here is the full main.log: http://pastebin.com/AQHBkTRg
and here is the full config.log: http://pastebin.com/GNaNV8u3

The failing entry in main.log is this

Code:


:info:configure checking LAPACK/BLAS flags... configure: error: dgesv (LAPACK) linking failed using -llapack -lblas

  • Index
  • » Users
  • » nils.hjelte
  • » Profile
You are here: