Regression
simulation_modelica_external_functions.ts.mos (from (result.xml))
Stacktrace
Output mismatch (see stdout for details)
Standard Output
+ ts.mos [ExternalMedia Test] ... equation mismatch [time: 17] ==== Log C:\Windows\TEMP/omc-rtest-OpenModelica/simulation/modelica/external_functions/ts.mos_temp4553/log-ts.mos true "Notification: Automatically loaded package Complex 3.2.1 due to uses annotation from Modelica. " "function ExternalMedia.Test.TestMedium.TestState.Medium.FluidConstants \"Automatically generated record constructor for ExternalMedia.Test.TestMedium.TestState.Medium.FluidConstants\" input String iupacName; input String casRegistryNumber; input String chemicalFormula; input String structureFormula; input Real molarMass(min = 0.001, max = 0.25, nominal = 0.032, quantity = \"MolarMass\", unit = \"kg/mol\"); input Real criticalTemperature(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); input Real criticalPressure(min = 0.0, max = 1e8, nominal = 1e5, start = 1e5, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); input Real criticalMolarVolume(min = 1e-6, max = 1e6, nominal = 1.0, quantity = \"MolarVolume\", unit = \"m3/mol\"); input Real acentricFactor; input Real triplePointTemperature(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); input Real triplePointPressure(min = 0.0, max = 1e8, nominal = 1e5, start = 1e5, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); input Real meltingPoint(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); input Real normalBoilingPoint(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); input Real dipoleMoment(min = 0.0, max = 2.0, unit = \"debye\", quantity = \"ElectricDipoleMoment\"); input Boolean hasIdealGasHeatCapacity = false; input Boolean hasCriticalData = false; input Boolean hasDipoleMoment = false; input Boolean hasFundamentalEquation = false; input Boolean hasLiquidHeatCapacity = false; input Boolean hasSolidHeatCapacity = false; input Boolean hasAccurateViscosityData = false; input Boolean hasAccurateConductivityData = false; input Boolean hasVapourPressureCurve = false; input Boolean hasAcentricFactor = false; input Real HCRIT0(min = -1e10, max = 1e10, nominal = 1e6, quantity = \"SpecificEnergy\", unit = \"J/kg\") = 0.0; input Real SCRIT0(min = -1e7, max = 1e7, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\") = 0.0; input Real deltah(min = -1e10, max = 1e10, nominal = 1e6, quantity = \"SpecificEnergy\", unit = \"J/kg\") = 0.0; input Real deltas(min = -1e7, max = 1e7, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\") = 0.0; output FluidConstants res; end ExternalMedia.Test.TestMedium.TestState.Medium.FluidConstants; function ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState \"Automatically generated record constructor for ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState\" input Real T(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); input Real a(min = 0.0, max = 1e5, nominal = 1000.0, start = 1000.0, quantity = \"Velocity\", unit = \"m/s\"); input Real beta(quantity = \"CubicExpansionCoefficient\", unit = \"1/K\"); input Real cp(min = 0.0, max = 1e7, nominal = 1000.0, start = 1000.0, quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\"); input Real cv(min = 0.0, max = 1e7, nominal = 1000.0, start = 1000.0, quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\"); input Real d(min = 0.0, max = 1e5, nominal = 1.0, start = 1.0, quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\"); input Real ddhp(unit = \"kg.s2/m5\"); input Real ddph(unit = \"s2/m2\"); input Real eta(min = 0.0, max = 1e8, nominal = 0.001, start = 0.001, quantity = \"DynamicViscosity\", unit = \"Pa.s\"); input Real h(min = -1e10, max = 1e10, nominal = 1e6, quantity = \"SpecificEnergy\", unit = \"J/kg\"); input Real kappa(quantity = \"Compressibility\", unit = \"1/Pa\"); input Real lambda(min = 0.0, max = 500.0, nominal = 1.0, start = 1.0, quantity = \"ThermalConductivity\", unit = \"W/(m.K)\"); input Real p(min = 0.0, max = 1e8, nominal = 1e5, start = 1e5, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); input Integer phase(min = 0, max = 2); input Real s(min = -1e7, max = 1e7, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\"); output ThermodynamicState res; end ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState; function ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalMolarVolume output Real vc(quantity = \"MolarVolume\", unit = \"m3/mol\", min = 1e-6, max = 1e6, nominal = 1.0) \"Critical molar volume\"; external \"C\" vc = TwoPhaseMedium_getCriticalMolarVolume_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalMolarVolume; function ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalPressure output Real pc(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Critical temperature\"; external \"C\" pc = TwoPhaseMedium_getCriticalPressure_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalPressure; function ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalTemperature output Real Tc(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 1.0, max = 1e4, start = 300.0, nominal = 300.0) \"Critical temperature\"; external \"C\" Tc = TwoPhaseMedium_getCriticalTemperature_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalTemperature; function ExternalMedia.Test.TestMedium.TestState.Medium.getMolarMass output Real MM(quantity = \"MolarMass\", unit = \"kg/mol\", min = 0.001, max = 0.25, nominal = 0.032) \"molar mass\"; external \"C\" MM = TwoPhaseMedium_getMolarMass_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getMolarMass; function ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph \"Return thermodynamic state record from p and h\" input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"pressure\"; input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"specific enthalpy\"; input Integer phase(min = 0, max = 2) = 0 \"2 for two-phase, 1 for one-phase, 0 if not known\"; output ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState state; external \"C\" TwoPhaseMedium_setState_ph_C_impl(p, h, phase, state, \"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph; class ExternalMedia.Test.TestMedium.TestState \"Test case using TestMedium with a single state record\" Real state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 1.0, max = 1e4, start = 300.0, nominal = 300.0) \"temperature\"; Real state.a(quantity = \"Velocity\", unit = \"m/s\", min = 0.0, max = 1e5, start = 1000.0, nominal = 1000.0) \"velocity of sound\"; Real state.beta(quantity = \"CubicExpansionCoefficient\", unit = \"1/K\") \"isobaric expansion coefficient\"; Real state.cp(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"specific heat capacity cp\"; Real state.cv(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"specific heat capacity cv\"; Real state.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"density\"; Real state.ddhp(unit = \"kg.s2/m5\") \"derivative of density wrt enthalpy at constant pressure\"; Real state.ddph(unit = \"s2/m2\") \"derivative of density wrt pressure at constant enthalpy\"; Real state.eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"dynamic viscosity\"; Real state.h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"specific enthalpy\"; Real state.kappa(quantity = \"Compressibility\", unit = \"1/Pa\") \"compressibility\"; Real state.lambda(quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"thermal conductivity\"; Real state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"pressure\"; Integer state.phase(min = 0, max = 2) \"phase flag: 2 for two-phase, 1 for one-phase\"; Real state.s(quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\", min = -1e7, max = 1e7, nominal = 1000.0) \"specific entropy\"; equation state = ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph(1e5, 1e5 + 1e5 * time, 0); end ExternalMedia.Test.TestMedium.TestState; " "" record SimulationResult resultFile = "", simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'ExternalMedia.Test.TestMedium.TestState', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", messages = "Failed to build model: ExternalMedia.Test.TestMedium.TestState" end SimulationResult; "Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/EXTERN~1/TSF884~1.MOS' clang -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_Test_TestMedium_TestState -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia.Test.TestMedium.TestState.o ExternalMedia.Test.TestMedium.TestState.c LLVM ERROR: out of memory Allocation failed PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0.Program arguments: C:\\\\OMDevUCRT\\\\tools\\\\msys\\\\ucrt64\\\\bin\\\\clang.exe -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_Test_TestMedium_TestState -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia.Test.TestMedium.TestState.o ExternalMedia.Test.TestMedium.TestState.c 1.C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c/util/simulation_options.h:311:10: current parser token ',' Exception Code: 0xC000001D #0 0x00007ffa0a2ab736 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1b736) #1 0x00007ffa8954e695 (C:\\Windows\\System32\\ucrtbase.dll+0x7e695) #2 0x00007ffa8954f6a1 (C:\\Windows\\System32\\ucrtbase.dll+0x7f6a1) #3 0x00007ffa0c268d08 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1fd8d08) #4 0x00007ffa0a6d7962 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x447962) #5 0x00007ffa3d9d1f4c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libstdc++-6.dll+0x131f4c) #6 0x00007ffa02a08be2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x718be2) #7 0x00007ffa030a9746 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xdb9746) #8 0x00007ffa03d4c819 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a5c819) #9 0x00007ffa03d43f5d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a53f5d) #10 0x00007ffa040cdc9b (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1dddc9b) #11 0x00007ffa040e4bef (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1df4bef) #12 0x00007ffa04134bc4 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e44bc4) #13 0x00007ffa04157a0f (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e67a0f) #14 0x00007ffa041735d1 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e835d1) #15 0x00007ffa04122943 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e32943) #16 0x00007ffa040e08a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1df08a8) #17 0x00007ffa046e1d4e (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x23f1d4e) #18 0x00007ffa02f7d078 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xc8d078) #19 0x00007ffa0309f0c4 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xdaf0c4) #20 0x00007ffa03cc247c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x19d247c) #21 0x00007ff7fc13f4a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xf4a8) #22 0x00007ff7fc13fada (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xfada) #23 0x00007ffa0296ed4d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x67ed4d) #24 0x00007ffa0c140154 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1eb0154) #25 0x00007ffa04aab954 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27bb954) #26 0x00007ffa04ae8ab5 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f8ab5) #27 0x00007ffa04ae876f (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f876f) #28 0x00007ffa0421729b (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1f2729b) #29 0x00007ff7fc13c1b8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xc1b8) #30 0x00007ff7fc144eb9 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x14eb9) #31 0x00007ff7fc1312ee (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x12ee) #32 0x00007ff7fc131406 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x1406) #33 0x00007ffa8a39257d (C:\\Windows\\System32\\KERNEL32.DLL+0x1257d) #34 0x00007ffa8c20aa48 (C:\\Windows\\SYSTEM32\\ntdll.dll+0x5aa48) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 17.0.6 Target: x86_64-w64-windows-gnu Thread model: posix InstalledDir: C:/OMDevUCRT/tools/msys/ucrt64/bin clang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: clang: note: diagnostic msg: C:/Windows/TEMP/ExternalMedia-ec6706.c clang: note: diagnostic msg: C:/Windows/TEMP/ExternalMedia-ec6706.sh clang: note: diagnostic msg: ******************** make: *** [<builtin>: ExternalMedia.Test.TestMedium.TestState.o] Error 1 make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/EXTERN~1/TSF884~1.MOS' RESULT: 2 " "State at 0" "State at 1" '' Equation mismatch: diff says: --- "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/external_functions/ts.mos_temp4553/equations-expected"2024-05-08 14:59:39.326034200 +0200 +++ "C:\\Windows\\TEMP/omc-rtest-OpenModelica/simulation/modelica/external_functions/ts.mos_temp4553/equations-got"2024-05-08 14:59:56.490543100 +0200 @@ -5,18 +5,18 @@ input String iupacName; input String casRegistryNumber; input String chemicalFormula; input String structureFormula; input Real molarMass(min = 0.001, max = 0.25, nominal = 0.032, quantity = \"MolarMass\", unit = \"kg/mol\"); -input Real criticalTemperature(min = 1.0, max = 10000.0, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); -input Real criticalPressure(min = 0.0, max = 100000000.0, nominal = 100000.0, start = 100000.0, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); -input Real criticalMolarVolume(min = 1e-06, max = 1000000.0, nominal = 1.0, quantity = \"MolarVolume\", unit = \"m3/mol\"); +input Real criticalTemperature(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); +input Real criticalPressure(min = 0.0, max = 1e8, nominal = 1e5, start = 1e5, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); +input Real criticalMolarVolume(min = 1e-6, max = 1e6, nominal = 1.0, quantity = \"MolarVolume\", unit = \"m3/mol\"); input Real acentricFactor; -input Real triplePointTemperature(min = 1.0, max = 10000.0, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); -input Real triplePointPressure(min = 0.0, max = 100000000.0, nominal = 100000.0, start = 100000.0, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); -input Real meltingPoint(min = 1.0, max = 10000.0, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); -input Real normalBoilingPoint(min = 1.0, max = 10000.0, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); +input Real triplePointTemperature(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); +input Real triplePointPressure(min = 0.0, max = 1e8, nominal = 1e5, start = 1e5, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); +input Real meltingPoint(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); +input Real normalBoilingPoint(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); input Real dipoleMoment(min = 0.0, max = 2.0, unit = \"debye\", quantity = \"ElectricDipoleMoment\"); input Boolean hasIdealGasHeatCapacity = false; input Boolean hasCriticalData = false; input Boolean hasDipoleMoment = false; input Boolean hasFundamentalEquation = false; @@ -24,50 +24,50 @@ input Boolean hasSolidHeatCapacity = false; input Boolean hasAccurateViscosityData = false; input Boolean hasAccurateConductivityData = false; input Boolean hasVapourPressureCurve = false; input Boolean hasAcentricFactor = false; -input Real HCRIT0(min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0, quantity = \"SpecificEnergy\", unit = \"J/kg\") = 0.0; -input Real SCRIT0(min = -10000000.0, max = 10000000.0, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\") = 0.0; -input Real deltah(min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0, quantity = \"SpecificEnergy\", unit = \"J/kg\") = 0.0; -input Real deltas(min = -10000000.0, max = 10000000.0, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\") = 0.0; +input Real HCRIT0(min = -1e10, max = 1e10, nominal = 1e6, quantity = \"SpecificEnergy\", unit = \"J/kg\") = 0.0; +input Real SCRIT0(min = -1e7, max = 1e7, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\") = 0.0; +input Real deltah(min = -1e10, max = 1e10, nominal = 1e6, quantity = \"SpecificEnergy\", unit = \"J/kg\") = 0.0; +input Real deltas(min = -1e7, max = 1e7, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\") = 0.0; output FluidConstants res; end ExternalMedia.Test.TestMedium.TestState.Medium.FluidConstants; function ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState \"Automatically generated record constructor for ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState\" -input Real T(min = 1.0, max = 10000.0, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); -input Real a(min = 0.0, max = 100000.0, nominal = 1000.0, start = 1000.0, quantity = \"Velocity\", unit = \"m/s\"); +input Real T(min = 1.0, max = 1e4, nominal = 300.0, start = 300.0, quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\"); +input Real a(min = 0.0, max = 1e5, nominal = 1000.0, start = 1000.0, quantity = \"Velocity\", unit = \"m/s\"); input Real beta(quantity = \"CubicExpansionCoefficient\", unit = \"1/K\"); -input Real cp(min = 0.0, max = 10000000.0, nominal = 1000.0, start = 1000.0, quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\"); -input Real cv(min = 0.0, max = 10000000.0, nominal = 1000.0, start = 1000.0, quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\"); -input Real d(min = 0.0, max = 100000.0, nominal = 1.0, start = 1.0, quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\"); +input Real cp(min = 0.0, max = 1e7, nominal = 1000.0, start = 1000.0, quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\"); +input Real cv(min = 0.0, max = 1e7, nominal = 1000.0, start = 1000.0, quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\"); +input Real d(min = 0.0, max = 1e5, nominal = 1.0, start = 1.0, quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\"); input Real ddhp(unit = \"kg.s2/m5\"); input Real ddph(unit = \"s2/m2\"); -input Real eta(min = 0.0, max = 100000000.0, nominal = 0.001, start = 0.001, quantity = \"DynamicViscosity\", unit = \"Pa.s\"); -input Real h(min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0, quantity = \"SpecificEnergy\", unit = \"J/kg\"); +input Real eta(min = 0.0, max = 1e8, nominal = 0.001, start = 0.001, quantity = \"DynamicViscosity\", unit = \"Pa.s\"); +input Real h(min = -1e10, max = 1e10, nominal = 1e6, quantity = \"SpecificEnergy\", unit = \"J/kg\"); input Real kappa(quantity = \"Compressibility\", unit = \"1/Pa\"); input Real lambda(min = 0.0, max = 500.0, nominal = 1.0, start = 1.0, quantity = \"ThermalConductivity\", unit = \"W/(m.K)\"); -input Real p(min = 0.0, max = 100000000.0, nominal = 100000.0, start = 100000.0, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); +input Real p(min = 0.0, max = 1e8, nominal = 1e5, start = 1e5, quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\"); input Integer phase(min = 0, max = 2); -input Real s(min = -10000000.0, max = 10000000.0, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\"); +input Real s(min = -1e7, max = 1e7, nominal = 1000.0, quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\"); output ThermodynamicState res; end ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState; function ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalMolarVolume -output Real vc(quantity = \"MolarVolume\", unit = \"m3/mol\", min = 1e-06, max = 1000000.0, nominal = 1.0) \"Critical molar volume\"; +output Real vc(quantity = \"MolarVolume\", unit = \"m3/mol\", min = 1e-6, max = 1e6, nominal = 1.0) \"Critical molar volume\"; external \"C\" vc = TwoPhaseMedium_getCriticalMolarVolume_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalMolarVolume; function ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalPressure -output Real pc(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"Critical temperature\"; +output Real pc(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"Critical temperature\"; external \"C\" pc = TwoPhaseMedium_getCriticalPressure_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalPressure; function ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalTemperature -output Real Tc(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 1.0, max = 10000.0, start = 300.0, nominal = 300.0) \"Critical temperature\"; +output Real Tc(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 1.0, max = 1e4, start = 300.0, nominal = 300.0) \"Critical temperature\"; external \"C\" Tc = TwoPhaseMedium_getCriticalTemperature_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getCriticalTemperature; function ExternalMedia.Test.TestMedium.TestState.Medium.getMolarMass @@ -75,72 +75,132 @@ external \"C\" MM = TwoPhaseMedium_getMolarMass_C_impl(\"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.getMolarMass; function ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph \"Return thermodynamic state record from p and h\" -input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"pressure\"; -input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"specific enthalpy\"; +input Real p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"pressure\"; +input Real h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"specific enthalpy\"; input Integer phase(min = 0, max = 2) = 0 \"2 for two-phase, 1 for one-phase, 0 if not known\"; output ExternalMedia.Test.TestMedium.TestState.Medium.ThermodynamicState state; external \"C\" TwoPhaseMedium_setState_ph_C_impl(p, h, phase, state, \"TestMedium\", \"TestMedium\", \"TestMedium\"); end ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph; class ExternalMedia.Test.TestMedium.TestState \"Test case using TestMedium with a single state record\" -Real state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 1.0, max = 10000.0, start = 300.0, nominal = 300.0) \"temperature\"; -Real state.a(quantity = \"Velocity\", unit = \"m/s\", min = 0.0, max = 100000.0, start = 1000.0, nominal = 1000.0) \"velocity of sound\"; +Real state.T(quantity = \"ThermodynamicTemperature\", unit = \"K\", displayUnit = \"degC\", min = 1.0, max = 1e4, start = 300.0, nominal = 300.0) \"temperature\"; +Real state.a(quantity = \"Velocity\", unit = \"m/s\", min = 0.0, max = 1e5, start = 1000.0, nominal = 1000.0) \"velocity of sound\"; Real state.beta(quantity = \"CubicExpansionCoefficient\", unit = \"1/K\") \"isobaric expansion coefficient\"; -Real state.cp(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0) \"specific heat capacity cp\"; -Real state.cv(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 10000000.0, start = 1000.0, nominal = 1000.0) \"specific heat capacity cv\"; -Real state.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 100000.0, start = 1.0, nominal = 1.0) \"density\"; +Real state.cp(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"specific heat capacity cp\"; +Real state.cv(quantity = \"SpecificHeatCapacity\", unit = \"J/(kg.K)\", min = 0.0, max = 1e7, start = 1000.0, nominal = 1000.0) \"specific heat capacity cv\"; +Real state.d(quantity = \"Density\", unit = \"kg/m3\", displayUnit = \"g/cm3\", min = 0.0, max = 1e5, start = 1.0, nominal = 1.0) \"density\"; Real state.ddhp(unit = \"kg.s2/m5\") \"derivative of density wrt enthalpy at constant pressure\"; Real state.ddph(unit = \"s2/m2\") \"derivative of density wrt pressure at constant enthalpy\"; -Real state.eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 100000000.0, start = 0.001, nominal = 0.001) \"dynamic viscosity\"; -Real state.h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -10000000000.0, max = 10000000000.0, nominal = 1000000.0) \"specific enthalpy\"; +Real state.eta(quantity = \"DynamicViscosity\", unit = \"Pa.s\", min = 0.0, max = 1e8, start = 0.001, nominal = 0.001) \"dynamic viscosity\"; +Real state.h(quantity = \"SpecificEnergy\", unit = \"J/kg\", min = -1e10, max = 1e10, nominal = 1e6) \"specific enthalpy\"; Real state.kappa(quantity = \"Compressibility\", unit = \"1/Pa\") \"compressibility\"; Real state.lambda(quantity = \"ThermalConductivity\", unit = \"W/(m.K)\", min = 0.0, max = 500.0, start = 1.0, nominal = 1.0) \"thermal conductivity\"; -Real state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 100000000.0, start = 100000.0, nominal = 100000.0) \"pressure\"; +Real state.p(quantity = \"Pressure\", unit = \"Pa\", displayUnit = \"bar\", min = 0.0, max = 1e8, start = 1e5, nominal = 1e5) \"pressure\"; Integer state.phase(min = 0, max = 2) \"phase flag: 2 for two-phase, 1 for one-phase\"; -Real state.s(quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\", min = -10000000.0, max = 10000000.0, nominal = 1000.0) \"specific entropy\"; +Real state.s(quantity = \"SpecificEntropy\", unit = \"J/(kg.K)\", min = -1e7, max = 1e7, nominal = 1000.0) \"specific entropy\"; equation -state = ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph(100000.0, 100000.0 + 100000.0 * time, 0); +state = ExternalMedia.Test.TestMedium.TestState.Medium.setState_ph(1e5, 1e5 + 1e5 * time, 0); end ExternalMedia.Test.TestMedium.TestState; " "" record SimulationResult -resultFile = "ExternalMedia.Test.TestMedium.TestState_res.mat", -simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'ExternalMedia.Test.TestMedium.TestState', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", -messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method. -LOG_SUCCESS | info | The simulation finished successfully. -" +resultFile = "", +simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'ExternalMedia.Test.TestMedium.TestState', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", +messages = "Failed to build model: ExternalMedia.Test.TestMedium.TestState" end SimulationResult; -"" +"Error: Error building simulator. Build log: make: Entering directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/EXTERN~1/TSF884~1.MOS' +clang -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c\" -I\"C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc\" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_Test_TestMedium_TestState -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia.Test.TestMedium.TestState.o ExternalMedia.Test.TestMedium.TestState.c +LLVM ERROR: out of memory +Allocation failed +PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script. +Stack dump: +0. Program arguments: C:\\\\OMDevUCRT\\\\tools\\\\msys\\\\ucrt64\\\\bin\\\\clang.exe -municode -O0 -DOM_HAVE_PTHREADS -Wno-parentheses-equality -falign-functions -mstackrealign -msse2 -mfpmath=sse -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c -IC:/dev/jenkins/ws/Windows/OM_Win/build/include/omc -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_Test_TestMedium_TestState -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia.Test.TestMedium.TestState.o ExternalMedia.Test.TestMedium.TestState.c +1. C:/dev/jenkins/ws/Windows/OM_Win/build/include/omc/c/util/simulation_options.h:311:10: current parser token ',' +Exception Code: 0xC000001D +#0 0x00007ffa0a2ab736 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1b736) +#1 0x00007ffa8954e695 (C:\\Windows\\System32\\ucrtbase.dll+0x7e695) +#2 0x00007ffa8954f6a1 (C:\\Windows\\System32\\ucrtbase.dll+0x7f6a1) +#3 0x00007ffa0c268d08 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1fd8d08) +#4 0x00007ffa0a6d7962 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x447962) +#5 0x00007ffa3d9d1f4c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libstdc++-6.dll+0x131f4c) +#6 0x00007ffa02a08be2 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x718be2) +#7 0x00007ffa030a9746 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xdb9746) +#8 0x00007ffa03d4c819 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a5c819) +#9 0x00007ffa03d43f5d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1a53f5d) +#10 0x00007ffa040cdc9b (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1dddc9b) +#11 0x00007ffa040e4bef (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1df4bef) +#12 0x00007ffa04134bc4 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e44bc4) +#13 0x00007ffa04157a0f (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e67a0f) +#14 0x00007ffa041735d1 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e835d1) +#15 0x00007ffa04122943 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1e32943) +#16 0x00007ffa040e08a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1df08a8) +#17 0x00007ffa046e1d4e (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x23f1d4e) +#18 0x00007ffa02f7d078 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xc8d078) +#19 0x00007ffa0309f0c4 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0xdaf0c4) +#20 0x00007ffa03cc247c (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x19d247c) +#21 0x00007ff7fc13f4a8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xf4a8) +#22 0x00007ff7fc13fada (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xfada) +#23 0x00007ffa0296ed4d (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x67ed4d) +#24 0x00007ffa0c140154 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libLLVM-17.dll+0x1eb0154) +#25 0x00007ffa04aab954 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27bb954) +#26 0x00007ffa04ae8ab5 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f8ab5) +#27 0x00007ffa04ae876f (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x27f876f) +#28 0x00007ffa0421729b (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\libclang-cpp.dll+0x1f2729b) +#29 0x00007ff7fc13c1b8 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0xc1b8) +#30 0x00007ff7fc144eb9 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x14eb9) +#31 0x00007ff7fc1312ee (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x12ee) +#32 0x00007ff7fc131406 (C:\\OMDevUCRT\\tools\\msys\\ucrt64\\bin\\clang.exe+0x1406) +#33 0x00007ffa8a39257d (C:\\Windows\\System32\\KERNEL32.DLL+0x1257d) +#34 0x00007ffa8c20aa48 (C:\\Windows\\SYSTEM32\\ntdll.dll+0x5aa48) +clang: error: clang frontend command failed due to signal (use -v to see invocation) +clang version 17.0.6 +Target: x86_64-w64-windows-gnu +Thread model: posix +InstalledDir: C:/OMDevUCRT/tools/msys/ucrt64/bin +clang: note: diagnostic msg: +******************** + +PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: +Preprocessed source(s) and associated run script(s) are located at: +clang: note: diagnostic msg: C:/Windows/TEMP/ExternalMedia-ec6706.c +clang: note: diagnostic msg: C:/Windows/TEMP/ExternalMedia-ec6706.sh +clang: note: diagnostic msg: + +******************** +make: *** [<builtin>: ExternalMedia.Test.TestMedium.TestState.o] Error 1 +make: Leaving directory '/c/dev/jenkins/ws/Windows/OM_Win/TESTSU~1/SIMULA~1/modelica/EXTERN~1/TSF884~1.MOS' +RESULT: 2 +" "State at 0" -100.5 -0.6 -0.7 -0.8 -0.9 -1.11 -1.1 -1.2 -1.3 -1.4 -1.5 -1.6 -1.7 -2.1 + + + + + + + + + + + + + + "State at 1" -100.5 -0.6 -0.7 -0.8 -0.9 -1.11 -1.1 -1.2 -1.3 -1.4 -1.5 -1.6 -1.7 -2.1 + + + + + + + + + + + + + + '' Equation mismatch: omc-diff says: Failed 'E' '"' Line 110: Text differs: expected: resultFile = "ExternalMedia.Test.TestMedium.TestState_res.mat", got: resultFile = "", == 1 out of 1 tests failed [simulation/modelica/external_functions/ts.mos_temp4553, time: 32]