Failed
tests / 01 testsuite-gcc 1/3 / openmodelica_cppruntime_fmu_modelExchange_2.0.testCSTR.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ testCSTR ... equation mismatch [time: 4] ==== Log /tmp/omc-rtest-unknown/openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp8636/log-testCSTR.mos true true true "" true "Notification: Automatically loaded package Modelica 3.2.2 due to uses annotation from CSTR. Notification: Automatically loaded package Complex 3.2.2 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 3.2.2 due to uses annotation from Modelica. " true "" true "" "" "[openmodelica/cppruntime/fmu/modelExchange/2.0/CSTR.mo:24:3-28:72:writable] Warning: Variable cA has attribute stateSelect=StateSelect.always, but can't be selected as a state. [openmodelica/cppruntime/fmu/modelExchange/2.0/CSTR.mo:24:3-28:72:writable] Warning: Variable $outputAlias_cA.$pDERFMIDER.dummyVarFMIDER has attribute stateSelect=StateSelect.always, but can't be selected as a state. Error: Error building simulator. Build log: g++ -std=c++17 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I\"/var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp\" -I\".\" -I\"/var/lib/jenkins3/ws/OpenModelica_PR-10488/build/include/omc/sundials\" -I\".\" -DUSE_LOGGER -c -o OMCppCSTRModelCalcHelperMain.o OMCppCSTRModelCalcHelperMain.cpp In file included from OMCppCSTRModelAlgLoopMain.cpp:11, from OMCppCSTRModelCalcHelperMain.cpp:28: OMCppCSTRModelAlgloop51.cpp: In member function 'virtual void CSTRModelAlgloop51::evaluate()': OMCppCSTRModelAlgloop51.cpp:84:28: error: 'clockIndex' was not declared in this scope 84 | if (_system->_clockStart[clockIndex - 1] || _system->_clockSubactive[clockIndex - 1]) { | ^~~~~~~~~~ OMCppCSTRModelAlgloop51.cpp:92:50: error: 'clockIndex' was not declared in this scope 92 | __A(13,1)=division(1.0,_system->_clockInterval[clockIndex - 1],!_system->_initial,\"interval()\"); | ^~~~~~~~~~ In file included from /var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44, from /var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37, from OMCppCSTRModelFMU.cpp:11, from OMCppCSTRModelCalcHelperMain.cpp:37: /var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h: In member function 'virtual const string& FMU2GlobalSettings::getVariableFilter()': /var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to temporary [-Wreturn-local-addr] 65 | virtual const string& getVariableFilter() { return \"\";} | ^~ make: *** [<builtin>: OMCppCSTRModelCalcHelperMain.o] Error 1 " unzip: cannot find or open CSTRModel.fmu, CSTRModel.fmu.zip or CSTRModel.fmu.ZIP. 1 "" Equation mismatch: diff says: --- /tmp/omc-rtest-unknown/openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp8636/equations-expected2024-01-13 02:53:25.364958727 +0000 +++ /tmp/omc-rtest-unknown/openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp8636/equations-got2024-01-13 02:53:29.536992396 +0000 @@ -9,505 +9,31 @@ " true "" true "" -"CSTRModel.fmu" +"" "[openmodelica/cppruntime/fmu/modelExchange/2.0/CSTR.mo:24:3-28:72:writable] Warning: Variable cA has attribute stateSelect=StateSelect.always, but can't be selected as a state. [openmodelica/cppruntime/fmu/modelExchange/2.0/CSTR.mo:24:3-28:72:writable] Warning: Variable $outputAlias_cA.$pDERFMIDER.dummyVarFMIDER has attribute stateSelect=StateSelect.always, but can't be selected as a state. +Error: Error building simulator. Build log: g++ -std=c++17 -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I\"/var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp\" -I\".\" -I\"/var/lib/jenkins3/ws/OpenModelica_PR-10488/build/include/omc/sundials\" -I\".\" -DUSE_LOGGER -c -o OMCppCSTRModelCalcHelperMain.o OMCppCSTRModelCalcHelperMain.cpp +In file included from OMCppCSTRModelAlgLoopMain.cpp:11, +from OMCppCSTRModelCalcHelperMain.cpp:28: +OMCppCSTRModelAlgloop51.cpp: In member function 'virtual void CSTRModelAlgloop51::evaluate()': +OMCppCSTRModelAlgloop51.cpp:84:28: error: 'clockIndex' was not declared in this scope +84 | if (_system->_clockStart[clockIndex - 1] || _system->_clockSubactive[clockIndex - 1]) { +| ^~~~~~~~~~ +OMCppCSTRModelAlgloop51.cpp:92:50: error: 'clockIndex' was not declared in this scope +92 | __A(13,1)=division(1.0,_system->_clockInterval[clockIndex - 1],!_system->_initial,\"interval()\"); +| ^~~~~~~~~~ +In file included from /var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44, +from /var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37, +from OMCppCSTRModelFMU.cpp:11, +from OMCppCSTRModelCalcHelperMain.cpp:37: +/var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h: In member function 'virtual const string& FMU2GlobalSettings::getVariableFilter()': +/var/lib/jenkins/ws/OpenModelica_PR-10488/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to temporary [-Wreturn-local-addr] +65 | virtual const string& getVariableFilter() { return \"\";} +| ^~ +make: *** [<builtin>: OMCppCSTRModelCalcHelperMain.o] Error 1 " -0 -"<?xml version=\"1.0\" encoding=\"UTF-8\"?> -<fmiModelDescription -fmiVersion=\"2.0\" -modelName=\"CSTRModel\" -description=\"\" -variableNamingConvention=\"structured\" -numberOfEventIndicators=\"0\"> -<ModelExchange -modelIdentifier=\"CSTRModel\" providesDirectionalDerivative=\"true\"> -</ModelExchange> -<UnitDefinitions> -<Unit name=\"s\"> -<BaseUnit s=\"1\" /> -</Unit> -<Unit name=\"kg/m3\"> -<BaseUnit m=\"-3\" kg=\"1\" /> -</Unit> -<Unit name=\"kg\"> -<BaseUnit kg=\"1\" /> -</Unit> -<Unit name=\"W/(m2.K)\"> -<BaseUnit s=\"-3\" K=\"-1\" kg=\"1\" /> -</Unit> -<Unit name=\"m3\"> -<BaseUnit m=\"3\" /> -</Unit> -<Unit name=\"J/mol\"> -<BaseUnit mol=\"-1\" m=\"2\" s=\"-2\" kg=\"1\" /> -</Unit> -<Unit name=\"J/(kg.K)\"> -<BaseUnit m=\"2\" s=\"-2\" K=\"-1\" /> -</Unit> -<Unit name=\"m2\"> -<BaseUnit m=\"2\" /> -</Unit> -<Unit name=\"1/h\"> -<BaseUnit s=\"-1\" factor=\"0.0002777777777777778\" /> -</Unit> -<Unit name=\"kJ/h\"> -<BaseUnit m=\"2\" s=\"-3\" kg=\"1\" factor=\"0.2777777777777778\" /> -</Unit> -<Unit name=\"mol/l\"> -<BaseUnit mol=\"1\" m=\"-3\" factor=\"1000.0\" /> -</Unit> -<Unit name=\"degC\"> -<BaseUnit K=\"1\" /> -</Unit> -</UnitDefinitions> -<TypeDefinitions> -<Clocks> -<Clock><Inferred -interval=\"20.0\" -/></Clock> -</Clocks> -</TypeDefinitions> -<LogCategories> -<Category name=\"logEvents\" /> -<Category name=\"logSingularLinearSystems\" /> -<Category name=\"logNonlinearSystems\" /> -<Category name=\"logDynamicStateSelection\" /> -<Category name=\"logStatusWarning\" /> -<Category name=\"logStatusDiscard\" /> -<Category name=\"logStatusError\" /> -<Category name=\"logStatusFatal\" /> -<Category name=\"logStatusPending\" /> -<Category name=\"logAll\" /> -<Category name=\"logFmi2Call\" /> -</LogCategories> -<DefaultExperiment startTime=\"0.0\" stopTime=\"1.0\" tolerance=\"1e-06\"/> -<ModelVariables> -<!-- Index of variable = \"1\" --> -<ScalarVariable -name=\"previous(_D_outputAlias_TK)\" -valueReference=\"0\" -description=\"Coolant temperature\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real nominal=\"100.0\" unit=\"degC\"/> -</ScalarVariable> -<!-- Index of variable = \"2\" --> -<ScalarVariable -name=\"previous(_D_outputAlias_cA)\" -valueReference=\"1\" -description=\"Concentration\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"3\" --> -<ScalarVariable -name=\"previous(_D_outputAlias_cB)\" -valueReference=\"2\" -description=\"Concentration\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"4\" --> -<ScalarVariable -name=\"previous(T)\" -valueReference=\"3\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real nominal=\"100.0\" unit=\"degC\"/> -</ScalarVariable> -<!-- Index of variable = \"5\" --> -<ScalarVariable -name=\"der(_D_outputAlias_TK)\" -valueReference=\"4\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"6\" --> -<ScalarVariable -name=\"der(_D_outputAlias_cA)\" -valueReference=\"5\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"7\" --> -<ScalarVariable -name=\"der(_D_outputAlias_cB)\" -valueReference=\"6\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"8\" --> -<ScalarVariable -name=\"der(T)\" -valueReference=\"7\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"9\" --> -<ScalarVariable -name=\"_D_outputAlias_TK\" -valueReference=\"11\" -description=\"Coolant temperature\" -variability=\"discrete\" -clockIndex=\"1\" -previous=\"1\" -initial=\"exact\"> -<Real start=\"112.9\" nominal=\"100.0\" unit=\"degC\"/> -</ScalarVariable> -<!-- Index of variable = \"10\" --> -<ScalarVariable -name=\"_D_outputAlias_cA\" -valueReference=\"12\" -description=\"Concentration\" -variability=\"discrete\" -clockIndex=\"1\" -previous=\"2\" -initial=\"exact\"> -<Real start=\"2.14\" unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"11\" --> -<ScalarVariable -name=\"_D_outputAlias_cB\" -valueReference=\"13\" -description=\"Concentration\" -variability=\"discrete\" -clockIndex=\"1\" -previous=\"3\" -initial=\"exact\"> -<Real start=\"1.09\" unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"12\" --> -<ScalarVariable -name=\"QK_flow\" -valueReference=\"14\" -description=\"Heat flow rate\" -causality=\"input\" -> -<Real start=\"-1113.5\" nominal=\"1000.0\" unit=\"kJ/h\"/> -</ScalarVariable> -<!-- Index of variable = \"13\" --> -<ScalarVariable -name=\"QK_flow_sampled\" -valueReference=\"15\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"14\" --> -<ScalarVariable -name=\"T\" -valueReference=\"16\" -variability=\"discrete\" -clockIndex=\"1\" -previous=\"4\" -initial=\"exact\"> -<Real start=\"114.2\" nominal=\"100.0\" unit=\"degC\"/> -</ScalarVariable> -<!-- Index of variable = \"15\" --> -<ScalarVariable -name=\"TF\" -valueReference=\"17\" -description=\"Feed temperature\" -causality=\"input\" -> -<Real start=\"104.9\" unit=\"degC\"/> -</ScalarVariable> -<!-- Index of variable = \"16\" --> -<ScalarVariable -name=\"TK\" -valueReference=\"18\" -description=\"Coolant temperature\" -variability=\"discrete\" -causality=\"output\" -clockIndex=\"1\" -> -<Real nominal=\"100.0\" unit=\"degC\"/> -</ScalarVariable> -<!-- Index of variable = \"17\" --> -<ScalarVariable -name=\"VF_flow\" -valueReference=\"19\" -description=\"Feed flow rate\" -causality=\"input\" -> -<Real start=\"14.19\" unit=\"1/h\"/> -</ScalarVariable> -<!-- Index of variable = \"18\" --> -<ScalarVariable -name=\"cA\" -valueReference=\"20\" -description=\"Concentration\" -variability=\"discrete\" -causality=\"output\" -clockIndex=\"1\" -> -<Real unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"19\" --> -<ScalarVariable -name=\"cB\" -valueReference=\"21\" -description=\"Concentration\" -variability=\"discrete\" -causality=\"output\" -clockIndex=\"1\" -> -<Real unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"20\" --> -<ScalarVariable -name=\"k[1]\" -valueReference=\"22\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"21\" --> -<ScalarVariable -name=\"k[2]\" -valueReference=\"23\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"22\" --> -<ScalarVariable -name=\"k[3]\" -valueReference=\"24\" -variability=\"discrete\" -clockIndex=\"1\" -> -<Real/> -</ScalarVariable> -<!-- Index of variable = \"23\" --> -<ScalarVariable -name=\"AR\" -valueReference=\"25\" -description=\"reactor surface area\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"0.215\" unit=\"m2\"/> -</ScalarVariable> -<!-- Index of variable = \"24\" --> -<ScalarVariable -name=\"Cp\" -valueReference=\"26\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"3010.0\" unit=\"J/(kg.K)\"/> -</ScalarVariable> -<!-- Index of variable = \"25\" --> -<ScalarVariable -name=\"CpK\" -valueReference=\"27\" -description=\"coolant heat capacity\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"2000.0\" unit=\"J/(kg.K)\"/> -</ScalarVariable> -<!-- Index of variable = \"26\" --> -<ScalarVariable -name=\"E[1]\" -valueReference=\"28\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"-9758.299999999999\"/> -</ScalarVariable> -<!-- Index of variable = \"27\" --> -<ScalarVariable -name=\"E[2]\" -valueReference=\"29\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"-9758.299999999999\"/> -</ScalarVariable> -<!-- Index of variable = \"28\" --> -<ScalarVariable -name=\"E[3]\" -valueReference=\"30\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"-8560.0\"/> -</ScalarVariable> -<!-- Index of variable = \"29\" --> -<ScalarVariable -name=\"H[1]\" -valueReference=\"31\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"4200.0\" nominal=\"20000.0\" unit=\"J/mol\"/> -</ScalarVariable> -<!-- Index of variable = \"30\" --> -<ScalarVariable -name=\"H[2]\" -valueReference=\"32\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"-11000.0\" nominal=\"20000.0\" unit=\"J/mol\"/> -</ScalarVariable> -<!-- Index of variable = \"31\" --> -<ScalarVariable -name=\"H[3]\" -valueReference=\"33\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"-41850.0\" nominal=\"20000.0\" unit=\"J/mol\"/> -</ScalarVariable> -<!-- Index of variable = \"32\" --> -<ScalarVariable -name=\"VR\" -valueReference=\"34\" -description=\"reactor volume\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"0.01\" unit=\"m3\"/> -</ScalarVariable> -<!-- Index of variable = \"33\" --> -<ScalarVariable -name=\"cAF\" -valueReference=\"35\" -description=\"Concentration of substance A in feed\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"5.1\" unit=\"mol/l\"/> -</ScalarVariable> -<!-- Index of variable = \"34\" --> -<ScalarVariable -name=\"k0[1]\" -valueReference=\"36\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"357500000.0\"/> -</ScalarVariable> -<!-- Index of variable = \"35\" --> -<ScalarVariable -name=\"k0[2]\" -valueReference=\"37\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"357500000.0\"/> -</ScalarVariable> -<!-- Index of variable = \"36\" --> -<ScalarVariable -name=\"k0[3]\" -valueReference=\"38\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"2511944.444444444\"/> -</ScalarVariable> -<!-- Index of variable = \"37\" --> -<ScalarVariable -name=\"kw\" -valueReference=\"39\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"1120.0\" unit=\"W/(m2.K)\"/> -</ScalarVariable> -<!-- Index of variable = \"38\" --> -<ScalarVariable -name=\"mK\" -valueReference=\"40\" -description=\"coolant mass\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"5.0\" min=\"0.0\" unit=\"kg\"/> -</ScalarVariable> -<!-- Index of variable = \"39\" --> -<ScalarVariable -name=\"rho\" -valueReference=\"41\" -variability=\"fixed\" -causality=\"parameter\" -> -<Real start=\"934.2\" min=\"0.0\" unit=\"kg/m3\"/> -</ScalarVariable> -<!-- Index of variable = \"40\" --> -<ScalarVariable -name=\"samplePeriod\" -valueReference=\"42\" -description=\"Period of clock\" -variability=\"fixed\" -causality=\"calculatedParameter\" -> -<Real unit=\"s\"/> -</ScalarVariable> -<!-- Index of variable = \"41\" --> -<ScalarVariable -name=\"fixedInitial\" -valueReference=\"0\" -description=\"=false to free reactor states\" -variability=\"fixed\" -causality=\"calculatedParameter\" -> -<Boolean/> -</ScalarVariable> -<!-- Index of variable = \"42\" --> -<ScalarVariable -name=\"solverMethod\" -valueReference=\"0\" -variability=\"fixed\" -causality=\"calculatedParameter\" -> -<String/> -</ScalarVariable> -</ModelVariables> -<ModelStructure> -<Outputs> -<Unknown index=\"16\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -<Unknown index=\"18\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -<Unknown index=\"19\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -</Outputs> -<DiscreteStates> -<Unknown index=\"9\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -<Unknown index=\"10\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -<Unknown index=\"11\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -<Unknown index=\"14\" dependencies=\"1 2 3 4 12 15 17\" dependenciesKind=\"dependent dependent dependent dependent dependent dependent dependent\" /> -</DiscreteStates> -<InitialUnknowns> -<Unknown index=\"16\" dependencies=\"\" dependenciesKind=\"\" /> -<Unknown index=\"18\" dependencies=\"\" dependenciesKind=\"\" /> -<Unknown index=\"19\" dependencies=\"\" dependenciesKind=\"\" /> -<Unknown index=\"40\" dependencies=\"\" dependenciesKind=\"\" /> -<Unknown index=\"41\" dependencies=\"\" dependenciesKind=\"\" /> -<Unknown index=\"42\" dependencies=\"\" dependenciesKind=\"\" /> -</InitialUnknowns> -</ModelStructure> -</fmiModelDescription> -" +unzip: cannot find or open CSTRModel.fmu, CSTRModel.fmu.zip or CSTRModel.fmu.ZIP. +1 +"" Equation mismatch: omc-diff says: Failed 'C' '"' Line 14: Text differs: expected: "CSTRModel.fmu" got: "" == 1 out of 1 tests failed [openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp8636, time: 4]