Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run with larger modelica model fails #119

Open
FelixSchloms opened this issue Jul 9, 2024 · 2 comments
Open

run with larger modelica model fails #119

FelixSchloms opened this issue Jul 9, 2024 · 2 comments

Comments

@FelixSchloms
Copy link

Running the SuctionFlow example works just fine, so I tried the same procedure on the JetPumpCFDValdiationScenario.
However this fails with the following output. I checked the Scenario_02_flat.mo model and there is a semicolon in line 189.
So I cannot retrace what the issue here is.

`[ Info: Profile Scenario_02.Scenario_02
ERROR: Failed to load file "c:/Users/LSF5FE/01_Julia/JetPumpModel/bosch-realtime-jet-pump-model/julia/algLoopRepl/symReg/data/sims/Scenario_02_100000/Scenario_02_flat.mo".
[c:/Users/LSF5FE/01_Julia/JetPumpModel/bosch-realtime-jet-pump-model/julia/algLoopRepl/symReg/data/sims/Scenario_02_100000/Scenario_02_flat.mo:189:18-189:18:writable] Error: Missing token: SEMICOLON

Stacktrace:
[1]
@ OMJulia.API C:\Users\LSF5FE.julia\packages\OMJulia\9Imtq\src\api.jl:130
[2] loadFile
@ C:\Users\LSF5FE.julia\packages\OMJulia\9Imtq\src\api.jl:118 [inlined]
[3] simulateWithProfiling(modelName::String, moFiles::Vector{String}; options::OMOptions)
@ NonLinearSystemNeuralNetworkFMU C:\Users\LSF5FE\01_Julia\JetPumpModel\NonLinearSystemNeuralNetworkFMU.jl\src\profiling.jl:56
[4] simulateWithProfiling
@ C:\Users\LSF5FE\01_Julia\JetPumpModel\NonLinearSystemNeuralNetworkFMU.jl\src\profiling.jl:32 [inlined]
[5] profiling(modelName::String, moFiles::Vector{String}; options::OMOptions, threshold::Int64, ignoreInit::Bool)
@ NonLinearSystemNeuralNetworkFMU C:\Users\LSF5FE\01_Julia\JetPumpModel\NonLinearSystemNeuralNetworkFMU.jl\src\profiling.jl:335
[6] profiling
@ C:\Users\LSF5FE\01_Julia\JetPumpModel\NonLinearSystemNeuralNetworkFMU.jl\src\profiling.jl:329 [inlined]
[7] main(modelName::String, moFiles::Vector{…}; omOptions::OMOptions, dataGenOptions::DataGenOptions, reuseArtifacts::Bool)
@ NonLinearSystemNeuralNetworkFMU C:\Users\LSF5FE\01_Julia\JetPumpModel\NonLinearSystemNeuralNetworkFMU.jl\src\main.jl:72
[8] main
@ C:\Users\LSF5FE\01_Julia\JetPumpModel\NonLinearSystemNeuralNetworkFMU.jl\src\main.jl:51 [inlined]
[9] genData(flatModelName::String, moFiles::Vector{String}, n::Int64)
@ Main c:\Users\LSF5FE\01_Julia\JetPumpModel\bosch-realtime-jet-pump-model\julia\algLoopRepl\symReg\scripts\genAllData.jl:31
[10] top-level scope
@ c:\Users\LSF5FE\01_Julia\JetPumpModel\bosch-realtime-jet-pump-model\julia\algLoopRepl\symReg\scripts\genAllData.jl:34
Some type information was truncated. Use show(err) to see complete types.`

@AnHeuermann
Copy link
Collaborator

Sounds like an issue with OpenModelica's Base Modelica output / flattening. Open an issue on OpenModelica/OpenModelica and provide a minimal reproducible example.

@olivleno
Copy link
Contributor

See: issue #12709

Is there an old version of OpenModelica where this wasn't an issue?
I recall that we had tried successfully tried the symbolic regression on the JetPumpForward model before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants