Failed
tests / 06 testsuite-clang 3/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: 6] ==== Log /tmp/omc-rtest-omtmpuser/openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp1389/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 "" "" "[BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type Real has no default start value. Error: No system for the symbolic initialization was generated " unzip: cannot find or open CSTRModel.fmu, CSTRModel.fmu.zip or CSTRModel.fmu.ZIP. 1 "" Equation mismatch: diff says: --- /tmp/omc-rtest-omtmpuser/openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp1389/equations-expected2024-04-20 01:42:30.438126640 +0000 +++ /tmp/omc-rtest-omtmpuser/openmodelica/cppruntime/fmu/modelExchange/2.0/testCSTR.mos_temp1389/equations-got2024-04-20 01:42:36.669970759 +0000 @@ -9,505 +9,12 @@ " 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. -" -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\" stepSize=\"0.002\"/> -<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> +"" +"[BackEnd/Initialization.mo:0:0-0:0:writable] Error: Internal error DAEUtil.getStartAttr failed because type Real has no default start value. +Error: No system for the symbolic initialization was generated " +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_temp1389, time: 6]