Running FMU generated by Scilab on FMU SDK - scilab

I have successfully exported an FMU from Scilab, and I want to simulate it via FMU SDK. But when I run it, it says:
bin/fmusim_cs:symbol lookup error:PD_Controller.so:undefined symbol: summation
...and the simulation was stopped.
So what should I do now?

Related

extract_table function causes R to Crash

I am simply using:
extract_tables('/Users/ben/OneDrive/Utah Local Governments Trust/Underwriting - Documents/Data Analysis/Emod Calculation/Expected Loss Rates, D-Ratio, Etc.pdf')
after loading:
library(tabulizer)
library(tabulizerjars)
It says it needs to use Java SE 6 to open Rstudio but I can open it just fine with the latest java before running the funciton.

Unable to deploy R model using Rstudio on google cloud platform

I am using Rstudio on Google cloud Compute engine and using examples on
https://tensorflow.rstudio.com/keras/
My final objective is to be able to deploy R - model to AI platform and get predictions out of it. I have tried many examples using keras,tfestimators,tensorflow but none of them are able to run completely. All of the only run till training but when Its time to export_savemodel() they all fail. Local prediction,evaluation works fine.
model %>% evaluate(x_test, y_test) # work fine in Rstudio
model %>% predict_classes(x_test) # work fine in Rstudio
Want my model version to appear here.
Issues:
After completing the training , I am unable to export model to GCS bucket as command for this is failing.
export_savedmodel(model, "savedmodel")
Error message:
Error in export_savedmodel.keras.engine.training.Model(model,"savedmodel") :
'export_savedmodel()' is currently unsupported under the TensorFlow
Keras implementation, consider using 'tfestimators::keras_model_to_estimator()'.
Then I changed my code to below but still get error message:
library(tfestimators)
tfe_model <- tfestimators::keras_model_to_estimator(model)
export_savedmodel(tfe_model, "savedmodel")
Error:
Error in export_savedmodel.tf_estimator(tfe_model, "savedmodel") :
Currently only classifier and regressor are supported. Please specify a
custom serving_input_receiver_fn.
What I need:
How can I fix the issue ?
Or any guidance on how to deploy R packages on Google cloud platform will be appreciated.

Julia error loading Ipopt from offline installation

I have a cluster with one master and 3 compute nodes. computes have restricted access to the internet.
I installed Julia and Ipopt on the master node. then copied the entire installation to the compute nodes. Ipopt is added and built on the master.
On the master:
/share/apps/Julia/julia-903644385b/
Pkg.dir(): "/home/user1/.julia/v0.6"
On the compute:
partition1/apps/Julia/julia-903644385b/
Pkg.dir(): "/partition1/apps/Julia/julia-903644385b/share/julia/site/v0.6"
base=/partition1
export JULIADIR=$base/apps/Julia/julia-903644385b/
export JULIA_HOME=$JULIADIR/bin
export JULIA_PKGDIR="/partition1/apps/Julia/julia-903644385b/share/julia/site/v0.6"
export LD_LIBRARY_PATH=$JULIADIR/lib/julia:$JULIA_PKGDIR/v0.6/Ipopt/deps/usr/lib/:$LD_LIBRARY_PATH
export PATH=$JULIADIR/bin:$PATH
running a sample Ipopt script is resulting in an error:
ERROR: LoadError: LoadError: Unable to load
libipopt (/share/apps/Julia/julia-903644385b/share/julia/site/v0.6/Ipopt/deps/usr/lib/libipopt.so)
Julia on compute node is trying to pickup Ipopt from the master node. Is this matter of clearing any cache or a missing env variable?
Thanks
On the compute node, locate the file Ipopt/deps/deps.jl, and adapt the path where to find the libipopt.so:
# Load dependencies
#checked_lib libipopt "/full/path/to/v0.6/Ipopt/deps/usr/lib/libipopt.so"

failed to precompile Gurobi (on Windows, using Julia)?

I am trying to run a Julia program using Gurobi solver on Windows.
I have already set up my GUROBI_HOME in windows as C:\gurobi701\win64.
Here is the error message in Atom:
error msg
I have done the following in Julia interactive shell:
Pkg.add("Gurobi")
also
Pkg.update()
Also, I checked whether or not my gurobi license file is not properly set up by running their example:
> gurobi_cl C:\gurobi701\win64\examples\data\coins.lp
The output seems fine: output for gurobi command line
What is the possible error here?
Thanks a lot for help!!!

runApp through application

I using ArcGIS system for spatial analysis. The system calling to R-script via "arcgisbinding" package.
I tried to Integrate into the R script command line which calling to "shiny" app. Something like:
tool_exec <- function(in_param, out_param)
{…
runApp(appDir = '~/General/PROCESS/R/RB/newdir')
…}
As long as I run the script from R (I'm using R 3.2.5 32 bit with Rstudio) everything works well. But wean I'm performed the script from arcGIS Tool, I received the following message
Listening on http://127.0.0.1:3519
and the process stopped (It looks to me like a kind of circular loop).
I did not found any relevant documentation to this error, do you know what is the problem?

Resources