Directory testsuite/libraries/msl31/media/

Directory Created:
2011-07-04 23:01
Directory Deleted:
2012-10-08 11:17
Total Files:
0
Deleted Files:
37
Lines of Code:
0

[root]/testsuite/libraries/msl31/media
                    Folder removed from repo simulate (0 files, 0 lines)

Lines of Code

testsuite/libraries/msl31/media/ Lines of Code

Developers

Author Changes Lines of Code Lines per Change
Totals 710 (100.0%) 61559 (100.0%) 86.7
perost 283 (39.9%) 41119 (66.8%) 145.2
adrpo 211 (29.7%) 16539 (26.9%) 78.3
sjoelund.se 162 (22.8%) 3853 (6.3%) 23.7
mahge930 1 (0.1%) 31 (0.1%) 31.0
Frenkel TUD 16 (2.3%) 17 (0.0%) 1.0
alash325 37 (5.2%) 0 (0.0%) 0.0

Most Recent Commits

alash325 2012-10-08 11:17 Rev.: 13242

-- testsuite/3rdparty/AVM + testsuite/3rdparty/ThermoSysPro are temporarily moved to testsuite directory + testsiuite/Libraries + testsuite/mofiles + testsuite/3rdparty are deleted from SVN

0 lines of code changed in 37 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (del), Examples.IdealGasH2O.mos (del), Examples.MixtureGases.mos (del), Examples.MoistAir.mos (del), Examples.SimpleLiquidWater.mos (del), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (del), Examples.SolveOneNonlinearEquation.Inverse_sine.mos (del), Examples.TestOnly.FlueGas.mos (del), Examples.TestOnly.IdealGasN2.mos (del), Examples.TestOnly.IdealGasN2Mix.mos (del), Examples.TestOnly.MixIdealGasAir.mos (del), Examples.TestOnly.N2AsMix.mos (del), Examples.TestOnly.TestMedia.TemplateMedium.mos (del), Examples.Tests.Components.mos (del), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (del), Examples.Tests.MediaTestModels.Air.MoistAir.mos (del), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (del), Examples.Tests.MediaTestModels.IdealGases.Air.mos (del), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (del), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (del), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (del), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (del), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (del), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (del), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (del), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (del), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (del), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (del), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (del), Examples.TwoPhaseWater.ExtendedProperties.mos (del), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (del), Examples.TwoPhaseWater.mos (del), Examples.WaterIF97.mos (del), Incompressible.Examples.Glycol47.mos (del), Incompressible.Examples.TestGlycol.mos (del), Makefile (del), Water.StandardWater.mos (del)
perost 2012-09-27 17:35 Rev.: 13078

- Changed Util.swap to work as expected (i.e. swap on true).

18 lines of code changed in 6 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+2 -2), Examples.MoistAir.mos (+1 -1), Examples.TestOnly.FlueGas.mos (+3 -3), Examples.TestOnly.IdealGasN2Mix.mos (+2 -2), Examples.TestOnly.MixIdealGasAir.mos (+3 -3), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+7 -7)
sjoelund.se 2012-09-20 10:43 Rev.: 12989

- Expected output

70 lines of code changed in 8 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+6 -10), Examples.MoistAir.mos (+10 -14), Examples.TestOnly.FlueGas.mos (+6 -10), Examples.TestOnly.IdealGasN2Mix.mos (+6 -10), Examples.TestOnly.MixIdealGasAir.mos (+6 -10), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+20 -24), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+8 -12), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+8 -12)
sjoelund.se 2012-09-12 15:00 Rev.: 12890

#1801
- Fix problem with matrix-vector operations being converted into array-multiplication of vector and scalar
- All tests that worked still work except for one: ./libraries/msl31/simulate/Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.mos, presumably because of a better solution now

18 lines of code changed in 6 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+2 -2), Examples.MoistAir.mos (+1 -1), Examples.TestOnly.FlueGas.mos (+3 -3), Examples.TestOnly.IdealGasN2Mix.mos (+2 -2), Examples.TestOnly.MixIdealGasAir.mos (+3 -3), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+7 -7)
sjoelund.se 2012-08-28 13:46 Rev.: 12703

- Fixed MSL 3.1 warning from not-yet-commited changes for #1776
* [IF97_Utilities.mo:4942:9-4959:18:writable] Warning: found was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed.

6 lines of code changed in 6 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+1 -1), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+1 -1), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+1 -1), Examples.TwoPhaseWater.ExtendedProperties.mos (+1 -1), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+1 -1), Examples.WaterIF97.mos (+1 -1)
perost 2012-08-28 11:43 Rev.: 12702

- Removed space after first parenthesis when dumping asserts in DAEDump, to ease
the transition to a template based dumper.

238 lines of code changed in 11 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+1 -1), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+1 -1), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+35 -35), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+32 -32), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+17 -17), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+32 -32), Examples.TwoPhaseWater.ExtendedProperties.mos (+43 -43), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+43 -43), Examples.WaterIF97.mos (+32 -32), Incompressible.Examples.Glycol47.mos (+1 -1), Incompressible.Examples.TestGlycol.mos (+1 -1)
perost 2012-08-24 16:07 Rev.: 12666

Fix for bug #1774:
- Better sorting of elements in Inst.instElementList by considering qualified crefs.
- Added testcase Modelica.StateGraph.Examples.ControlledTanks.
- Enabled the forgotten Modelica.Blocks.Continuous testcase.

213 lines of code changed in 25 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+1 -1), Examples.MixtureGases.mos (+2 -2), Examples.MoistAir.mos (+2 -2), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+2 -2), Examples.TestOnly.FlueGas.mos (+4 -4), Examples.TestOnly.IdealGasN2.mos (+1 -1), Examples.TestOnly.IdealGasN2Mix.mos (+1 -1), Examples.TestOnly.N2AsMix.mos (+1 -1), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+7 -7), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+11 -11), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+7 -7), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+7 -7), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+7 -7), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+27 -27), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+27 -27), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+31 -31), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+31 -31), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+7 -7), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+7 -7), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+7 -7), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+7 -7), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+7 -7), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+7 -7), Examples.TwoPhaseWater.mos (+1 -1), Water.StandardWater.mos (+1 -1)
sjoelund.se 2012-08-22 16:42 Rev.: 12636

- Updated MSL 3.1 to latest SIunits.mo; disabled Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.mos due to simulation failing to solve a nonlinear equation now

2520 lines of code changed in 35 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+1 -1), Examples.IdealGasH2O.mos (+12 -12), Examples.MixtureGases.mos (+34 -34), Examples.MoistAir.mos (+43 -43), Examples.SimpleLiquidWater.mos (+7 -7), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+22 -22), Examples.TestOnly.FlueGas.mos (+23 -23), Examples.TestOnly.IdealGasN2.mos (+14 -14), Examples.TestOnly.IdealGasN2Mix.mos (+20 -20), Examples.TestOnly.MixIdealGasAir.mos (+27 -27), Examples.TestOnly.N2AsMix.mos (+4 -4), Examples.TestOnly.TestMedia.TemplateMedium.mos (+1 -1), Examples.Tests.Components.mos (+5 -5), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+37 -37), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+218 -218), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+13 -13), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+37 -37), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+37 -37), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+58 -58), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+40 -40), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+86 -86), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+86 -86), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+13 -13), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+287 -287), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+37 -37), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+231 -231), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+77 -77), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+231 -231), Examples.TwoPhaseWater.ExtendedProperties.mos (+290 -290), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+290 -290), Examples.TwoPhaseWater.mos (+1 -1), Examples.WaterIF97.mos (+219 -219), Incompressible.Examples.Glycol47.mos (+1 -1), Incompressible.Examples.TestGlycol.mos (+17 -17), Water.StandardWater.mos (+1 -1)
Frenkel TUD 2012-08-16 15:49 Rev.: 12551

- move libraries_msl31_media_simulate.Modelica.Media.Examples.SimpleLiquidWater.mos failing test because failed because medium.T is not as potential state marked and as state selected, so a function call has to be solved implicit

1 lines of code changed in 1 file:

  • testsuite/libraries/msl31/media: Makefile (+1 -2)
Frenkel TUD 2012-08-16 15:21 Rev.: 12550

- move linearize.test_01.mos to failing test because failed to generated derived algorithm because algorithm outputs not equal and known variables are assigned in algorithm
- move 3rdParty_PlanarMechanics.PlanarMechanicsForTesting.Examples.KinematicLoop.mos failing test because failed because of wrong initial values
- move libraries_msl31_media_simulate.Modelica.Media.Examples.SimpleLiquidWater.mos failing test because failed because medium.T is not as potential state marked and as state selected, so a function call has to be solved implicit
- move libraries_msl31_simulate.Modelica.Mechanics.Translational.Examples.Friction.mos failing test until it is fixed

2 lines of code changed in 1 file:

  • testsuite/libraries/msl31/media: Makefile (+2 -1)
sjoelund.se 2012-08-13 16:04 Rev.: 12495

#1764
- Improve sorting of package.order elements
+ Actually sorted now
+ Handle MSL 3.2-style Math.mo where elements may be inserted in the middle of the package.mo

0 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (-6), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (-6)
sjoelund.se 2012-08-13 07:47 Rev.: 12483

- Removed Absyn.ELEMENT.name (redundant and wrong)
#1764
- Changed ClassLoader to respect package.order
+ This means most packages are parsed differently than before and many tests (especially Media) changed

12 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+6), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+6)
sjoelund.se 2012-08-03 13:30 Rev.: 12421

#1767
- Marked strings for translation in Error.mo
- Removed some useless whitespace from a few error-messages

0 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.MoistAir.mos (-4), Examples.Tests.MediaTestModels.Air.MoistAir.mos (-12)
Frenkel TUD 2012-06-28 18:05 Rev.: 12234

- fix tests

12 lines of code changed in 12 files:

  • testsuite/libraries/msl31/media: Examples.IdealGasH2O.mos (+1 -1), Examples.MixtureGases.mos (+1 -1), Examples.MoistAir.mos (+1 -1), Examples.SimpleLiquidWater.mos (+1 -1), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+1 -1), Examples.TestOnly.FlueGas.mos (+1 -1), Examples.TestOnly.IdealGasN2.mos (+1 -1), Examples.TestOnly.IdealGasN2Mix.mos (+1 -1), Examples.TestOnly.MixIdealGasAir.mos (+1 -1), Examples.TestOnly.TestMedia.TemplateMedium.mos (+1 -1), Examples.WaterIF97.mos (+1 -1), Incompressible.Examples.TestGlycol.mos (+1 -1)
Frenkel TUD 2012-06-28 16:38 Rev.: 12231

- fix tests

2 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.TwoPhaseWater.ExtendedProperties.mos (+1 -1), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+1 -1)
perost 2012-05-10 14:06 Rev.: 11885

- Implemented a new template based expression dumping.
- Updated test suite.

3114 lines of code changed in 30 files:

  • testsuite/libraries/msl31/media: Examples.IdealGasH2O.mos (+11 -11), Examples.MixtureGases.mos (+87 -87), Examples.MoistAir.mos (+42 -42), Examples.SimpleLiquidWater.mos (+15 -15), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+41 -41), Examples.TestOnly.FlueGas.mos (+30 -30), Examples.TestOnly.IdealGasN2.mos (+11 -11), Examples.TestOnly.IdealGasN2Mix.mos (+19 -19), Examples.TestOnly.MixIdealGasAir.mos (+57 -57), Examples.Tests.Components.mos (+2 -2), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+51 -51), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+213 -213), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+25 -25), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+51 -51), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+51 -51), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+110 -110), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+92 -92), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+232 -232), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+232 -232), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+33 -33), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+274 -274), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+51 -51), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+233 -233), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+100 -100), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+230 -230), Examples.TwoPhaseWater.ExtendedProperties.mos (+262 -262), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+262 -262), Examples.WaterIF97.mos (+188 -188), Incompressible.Examples.Glycol47.mos (+34 -34), Incompressible.Examples.TestGlycol.mos (+75 -75)
perost 2012-05-04 13:28 Rev.: 11848

Fix for bug #1731:
- Fixed connection of arrays with subscripts.
- Updated testsuit due to changed equation order for connects.

15 lines of code changed in 1 file:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+15 -15)
perost 2012-04-05 13:50 Rev.: 11673

- Fixed correct types on array-scalar and scalar-array operations.
- Updated test cases due to changed operation order.

956 lines of code changed in 29 files:

  • testsuite/libraries/msl31/media: Examples.IdealGasH2O.mos (+9 -9), Examples.MixtureGases.mos (+28 -28), Examples.MoistAir.mos (+18 -18), Examples.SimpleLiquidWater.mos (+6 -6), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+14 -14), Examples.TestOnly.FlueGas.mos (+14 -14), Examples.TestOnly.IdealGasN2.mos (+9 -9), Examples.TestOnly.IdealGasN2Mix.mos (+10 -10), Examples.TestOnly.MixIdealGasAir.mos (+22 -22), Examples.Tests.Components.mos (+2 -2), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+26 -26), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+87 -87), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+9 -9), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+26 -26), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+26 -26), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+43 -43), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+37 -37), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+7 -7), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+7 -7), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+19 -19), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+73 -73), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+26 -26), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+73 -73), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+44 -44), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+73 -73), Examples.TwoPhaseWater.ExtendedProperties.mos (+87 -87), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+87 -87), Examples.WaterIF97.mos (+67 -67), Incompressible.Examples.TestGlycol.mos (+7 -7)
sjoelund.se 2012-04-04 11:47 Rev.: 11650

- Changed the Dependency+SCode+Inst calls everywhere to:
+ CevalScript.runFrontEnd(...), which does more error-checking
- Removed Inst.{instantiate,instProgram} as they are not needed (they were used to inst the last class of the program; which can be performed by asking for the last class of the program and instantiating that)

14 lines of code changed in 5 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+2 -4), Examples.TestOnly.N2AsMix.mos (+9 -11), Examples.TwoPhaseWater.mos (+1 -3), Incompressible.Examples.Glycol47.mos (+1 -3), Water.StandardWater.mos (+1 -3)
adrpo 2012-03-08 00:36 Rev.: 11336

- MAKE CLEAN is highly recommended!

Modelica.Media:
- fix some Modelica.Media code generation issues in CodegenC.expTypeFlag.
- fix a Modelica.Media bug in the library, see ticket: https://trac.modelica.org/Modelica/ticket/710
in libraries/Modelica 3.1/Media/IdealGases/Common/package.mo and updated libraries/README.
- add 2 more models that simulate now to the testsuite/libraries/msl31/media/simulate/Makefile (1 more to have full Modelica.Media)

Bootstrapping:
- collect inputs/outputs temps into tmpMeta.
- added System.tmpTickIndexReserve to get the index and reserve N.
- some preliminary changes to the GC (not ON yet), more updates to come.
- circumvent MinGW GCC 4.4.0 -O2/-O3 optimization issues via making the for iterator in matchcontinue be float (see meta_modelica.h)
note that if you use -O3 you will also need -fno-inline-functions (see testsuite/bootstrapping/LinkMain.makefile.mingw)

11 lines of code changed in 4 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+3 -4), Examples.TestOnly.FlueGas.mos (+2 -2), Examples.TestOnly.IdealGasN2Mix.mos (+2 -2), Examples.TestOnly.MixIdealGasAir.mos (+4 -5)
adrpo 2012-03-07 19:32 Rev.: 11330

- replace array constants with their binding (maybe we should only do that for package constants).
- added testsuite/3rdParty/TestMedia [from Francesco Casella] which now works to simulate too.
- 17 more Modelica.Media models now work, 3 left.
NOTE HOWEVER that simulation fails in some cases due to
divisions by zero or other issues, but at
least the models compile.

98 lines of code changed in 12 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+26 -26), Examples.TestOnly.FlueGas.mos (+6 -6), Examples.TestOnly.IdealGasN2Mix.mos (+5 -5), Examples.TestOnly.MixIdealGasAir.mos (+21 -21), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+7 -7), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+7 -7), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+4 -4), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+4 -4), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+4 -4), Examples.TwoPhaseWater.ExtendedProperties.mos (+5 -5), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+5 -5), Examples.WaterIF97.mos (+4 -4)
adrpo 2012-03-04 19:50 Rev.: 11283

- expected output.

3 lines of code changed in 3 files:

  • testsuite/libraries/msl31/media: Examples.TwoPhaseWater.ExtendedProperties.mos (+1 -1), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+1 -1), Examples.WaterIF97.mos (+1 -1)
adrpo 2012-03-03 11:51 Rev.: 11280

- expected output

1 lines of code changed in 1 file:

  • testsuite/libraries/msl31/media: Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+1 -1)
adrpo 2012-03-03 11:35 Rev.: 11279

- expected output
- 3 media/simulate models fail now!

2 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.TwoPhaseWater.ExtendedProperties.mos (+1 -1), Examples.WaterIF97.mos (+1 -1)
mahge930 2012-03-01 22:48 Rev.: 11260

+ The test-suite makefile now contain DEPENDENCIES. This are the files that are needed for the test cases.
+ "make clean" or (make -j clean) will clean the test-suite. i.e. all files that are not listed as DEPENDENCIES will be cleaned.
For OMDEV/MINGW ppl (linux already has partest)
+ "make threaded" will clean and then run the test-suite with 5 threads (my pc has 4 cores so :) ). (or just use "make -jN")
- 'msl31simulation.log' and 'msl31mediasimulation.log' still give problems with multiple threads. Very strange problem since the
output matches exactly with the expected but for some reason it is compared with outputs from another file. But For now this might help a bit.

Normal test-suite operation is not affected in anyway as far as I can tell. (Just some additions)

31 lines of code changed in 1 file:

  • testsuite/libraries/msl31/media: Makefile (+31 -2)
sjoelund.se 2012-02-25 12:31 Rev.: 11205

- Added rule exp[] => exp (ASUB'ing nothing does nothing)
Finds diff like the following for Modelica.Media
- 190.56[],0.01604246[],9.86e-05[],0.011[],0.0[]
+ 190.56,0.01604246,0.0000986,0.011,0.0

39 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+22 -28), Examples.TestOnly.MixIdealGasAir.mos (+17 -20)
sjoelund.se 2012-01-18 11:02 Rev.: 10918

- Set svn-eol-style on a few files

37 lines of code changed in 37 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+1), Examples.IdealGasH2O.mos (+1), Examples.MixtureGases.mos (+1), Examples.MoistAir.mos (+1), Examples.SimpleLiquidWater.mos (+1), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+1), Examples.SolveOneNonlinearEquation.Inverse_sine.mos (+1), Examples.TestOnly.FlueGas.mos (+1), Examples.TestOnly.IdealGasN2.mos (+1), Examples.TestOnly.IdealGasN2Mix.mos (+1), Examples.TestOnly.MixIdealGasAir.mos (+1), Examples.TestOnly.N2AsMix.mos (+1), Examples.TestOnly.TestMedia.TemplateMedium.mos (+1), Examples.Tests.Components.mos (+1), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+1), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+1), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+1), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+1), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+1), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+1), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+1), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+1), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+1), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+1), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+1), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+1), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+1), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+1), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+1), Examples.TwoPhaseWater.ExtendedProperties.mos (+1), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+1), Examples.TwoPhaseWater.mos (+1), Examples.WaterIF97.mos (+1), Incompressible.Examples.Glycol47.mos (+1), Incompressible.Examples.TestGlycol.mos (+1), Makefile (+1), Water.StandardWater.mos (+1)
sjoelund.se 2011-11-30 14:09 Rev.: 10608

- Avoid failure to reach fixpoint for some simplifications

6 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+4 -56), Examples.TestOnly.MixIdealGasAir.mos (+2 -28)
adrpo 2011-11-30 07:11 Rev.: 10604

HUGE update to SVN with *a lot* of changes: DO MAKE CLEAN!
==========================================================
- The DAE.ExpType is *no more*
- The BackendDAE.Type is *no more*
Both got replaced by DAE.Type!
- The DAE.ExpVar is *no more*
It got replaced by DAE.Var!
Now we have *ONLY ONE* type in the compiler: DAE.Type!


Just to know why I got this done:

BEFORE, the model HumMod took 6m51 seconds to instantiate
adrpo@ida-liu050 ~/dev/OpenModelica/doc/performance/benchmarks/tests
$ time /c/OpenModelica1.8.0-r10584/bin/omc instHumMod.mos > trace.txt 2>&1
real 6m51.354s
user 0m0.000s
sys 0m0.015s

AFTER, the model HumMod takes 47 seconds to instantiate
adrpo@ida-liu050 ~/dev/OpenModelica/doc/performance/benchmarks/tests
$ time ../../../../build/bin/omc instHumMod.mos > mytrace.txt 2>&1
real 0m47.248s
user 0m0.000s
sys 0m0.000s

Is about 8,74468085106383 times faster now.
Basically, before, we were doing DAE.T_*
-> DAE.ET_* translation for 6 minutes!

I started this work on Friday after the OpenModelica 1.8.0
got released, so for 4+ days of work I think the result is
quite OK.



Crash course into the new types (actually old ones from DAE.Type):
==================================================================

1. DAE.Type is not a tuple anymore, instead the optional path
became DAE.TypeSource which is a list of paths and is now
part of *all* the records in DAE.Type.

The needed types from DAE.ExpType got merged into DAE.Type:
DAE.ET_METATYPE -> DAE.T_METATYPE
DAE.ET_FUNCTION_REFERENCE_VAR -> DAE.T_FUNCTION_REFERENCE_VAR
DAE.ET_FUNCTION_REFERENCE_FUNC -> DAE.T_FUNCTION_REFERENCE_FUNC

Some DAE.Type types got split:
DAE.T_COMPLEX split into DAE.T_COMPLEX for types not extending
basic types and DAE.T_SUBTYPE_BASIC is now used for types
extending basic types.

Some DAE.Type types changed name:
DAE.T_NOTYPE -> DAE.T_UNKNOWN
Renamed also the meta-types a bit to make them more homogeneous.

Some DAE.ExpType are gone:
DAE.ET_OTHER is gone, use DAE.T_UNKNOWN instead!

Some DAE.Type types changed structure (besides the DAE.TypeSource addition):
(DAE.T_ARRAY(dim, ty), optPath) -> DAE.T_ARRAY(ty, list<dim>, list<Path>)
so we now have similar structure for DAE.T_ARRAY and the previous DAE.ET_ARRAY.


2. In cases, when matching:
Instead of | Use now:
-------------------------------------------------------
DAE.ET_INT() | DAE.T_INTEGER(source = _)
DAE.ET_REAL() | DAE.T_REAL(source = _)
DAE.ET_BOOL() | DAE.T_BOOL(source = _)
DAE.ET_STRING() | DAE.T_STRING(source = _)
DAE.ET_ENUMERATION(...) | DAE.T_ENUMERATION(...)
DAE.ET_COMPLEX(...) | DAE.T_COMPLEX(...)
DAE.ET_OTHER(...) | DAE.T_UNKNOWN(source = _)
DAE.ET_ARRAY(...) | DAE.T_ARRAY(...)
-------------------------------------------------------

3. When constructing values, in the then part or in right
hand side in equations:
Instead of | Use now:
-------------------------------------------------------
DAE.ET_INT() | DAE.T_INTEGER_DEFAULT
DAE.ET_REAL() | DAE.T_REAL_DEFAULT
DAE.ET_BOOL() | DAE.T_BOOL_DEFAULT
DAE.ET_STRING() | DAE.T_STRING_DEFAULT
DAE.ET_ENUMERATION(...) | DAE.T_ENUMERATION(...)
DAE.ET_COMPLEX(...) | DAE.T_COMPLEX(...)
DAE.ET_OTHER(...) | DAE.T_UNKNOWN(source = _)
DAE.ET_ARRAY(...) | DAE.T_ARRAY(...)
-------------------------------------------------------

4. Types.elabType got renamed to Types.simplifyType
and does some type simplification (instead of the
previous DAE.T_* -> DAE.ET_* translation).

Feel free to ask me anything if something is unclear.

The code can be further improved (we need better handling
of DAE.T_ARRAY that has several dimensions instead of one)
by getting rid of Types.simplifyType/Types.expTypetoTypesType,
but for now is good enough. Also, functionality for the old
DAE.ET_* handling from Expression*.mo can be merged with the
DAE.T_ handling from Types so we can get rid of duplicate
code too.

24 lines of code changed in 3 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+8 -8), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+8 -8), Incompressible.Examples.TestGlycol.mos (+8 -8)
sjoelund.se 2011-11-29 16:01 Rev.: 10601

- Expected output

493 lines of code changed in 34 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+1 -1), Examples.IdealGasH2O.mos (+7 -7), Examples.MixtureGases.mos (+14 -14), Examples.MoistAir.mos (+17 -17), Examples.SimpleLiquidWater.mos (+3 -3), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+13 -13), Examples.TestOnly.FlueGas.mos (+6 -6), Examples.TestOnly.IdealGasN2.mos (+7 -7), Examples.TestOnly.IdealGasN2Mix.mos (+3 -3), Examples.TestOnly.MixIdealGasAir.mos (+9 -9), Examples.TestOnly.N2AsMix.mos (+7 -7), Examples.Tests.Components.mos (+2 -2), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+15 -15), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+88 -88), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+5 -5), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+15 -15), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+15 -15), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+20 -20), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+20 -20), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+6 -6), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+6 -6), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+8 -8), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+23 -23), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+15 -15), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+17 -17), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+5 -5), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+17 -17), Examples.TwoPhaseWater.ExtendedProperties.mos (+26 -26), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+26 -26), Examples.TwoPhaseWater.mos (+1 -1), Examples.WaterIF97.mos (+72 -72), Incompressible.Examples.Glycol47.mos (+1 -1), Incompressible.Examples.TestGlycol.mos (+2 -2), Water.StandardWater.mos (+1 -1)
sjoelund.se 2011-11-29 15:10 Rev.: 10599

- ExpressionSimplify: Added new rules:
- a^e*b^e => (a*b)^e
- a^e/b^e => (a/b)^e

242 lines of code changed in 5 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+68 -16), Examples.TestOnly.MixIdealGasAir.mos (+35 -9), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+1 -1), Examples.TwoPhaseWater.ExtendedProperties.mos (+69 -69), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+69 -69)
perost 2011-11-28 14:58 Rev.: 10587

- Changed nX to : in some functions in PartialTwoPhaseMedium to make them work
as intended.

261 lines of code changed in 4 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+64 -64), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+73 -73), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+51 -51), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+73 -73)
adrpo 2011-11-19 18:43 Rev.: 10556

Error.mo
- typo fix

DAEUtil.mo
- better error messages

Inst.mo
- sort innerouter after the element dependency analysis
- add record constructors that are function inputs to the DAE (IdealGasH2O now compiles but has dassl issues)
- speedup Inst.makeFullyQualified a bit

InstExtends.mo
- more fix* calls which were missed

Interactive.mo
- use System.get/setPartialInst instead of RTOpts debug flags as they are REALLY slow
- this will speed up the MSL query for qt & java clients a bit.

SimCodeC.tpl
- use -O0 when running the testsuite.

Derive.mo
- better printout for derivative function error message

testsuite/
- update tests (more record constructors now)
- add one more to Media simulation and 2 more to Fluid flattening

mingw makefiles
- use wget (will be replaced by svn put into OMDev later)
to fetch revision number and put it part of the OMC version



660 lines of code changed in 21 files:

  • testsuite/libraries/msl31/media: Examples.IdealGasH2O.mos (+14), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+14), Examples.TestOnly.IdealGasN2.mos (+14), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+29), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+21), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+8), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+29), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+29), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+19), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+19), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+8), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+8), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+8), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+66), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+29), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+66), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+54), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+66), Examples.TwoPhaseWater.ExtendedProperties.mos (+53), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+53), Examples.WaterIF97.mos (+53)
adrpo 2011-11-15 12:44 Rev.: 10515

- include the modifiers and dimensions in the dependency analysis in Inst.instElementList
- move annotation checking functions from DAEUtil to SCode.
- convert type of the Value in the binding if needed (to get rid of things like min = 0, instead of min = 0.0)
- in partial instantiation disregard parameters, instantiate only constants.
- rename the really bad name "subs" to restCref in Static.elabCrefSubs.
- clear errors when loadingFileInteractiveQualified API and parseFile API
- added vaporizing.mo test

- a LOT of tests have changed
- small fixes to tools/validatetest/validatetest.pl

3868 lines of code changed in 35 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+16 -16), Examples.IdealGasH2O.mos (+21 -21), Examples.MixtureGases.mos (+123 -123), Examples.MoistAir.mos (+56 -56), Examples.SimpleLiquidWater.mos (+26 -26), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+29 -29), Examples.TestOnly.FlueGas.mos (+44 -44), Examples.TestOnly.IdealGasN2.mos (+20 -20), Examples.TestOnly.IdealGasN2Mix.mos (+27 -27), Examples.TestOnly.MixIdealGasAir.mos (+78 -78), Examples.TestOnly.N2AsMix.mos (+33 -33), Examples.TestOnly.TestMedia.TemplateMedium.mos (+15 -15), Examples.Tests.Components.mos (+11 -11), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+128 -128), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+282 -282), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+94 -94), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+128 -128), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+128 -128), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+262 -262), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+190 -190), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+171 -171), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+171 -171), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+115 -115), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+242 -242), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+128 -128), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+256 -256), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+201 -201), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+256 -256), Examples.TwoPhaseWater.ExtendedProperties.mos (+217 -217), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+217 -217), Examples.TwoPhaseWater.mos (+17 -17), Examples.WaterIF97.mos (+108 -108), Incompressible.Examples.Glycol47.mos (+19 -19), Incompressible.Examples.TestGlycol.mos (+22 -22), Water.StandardWater.mos (+17 -17)
sjoelund.se 2011-11-09 17:33 Rev.: 10363

- Ceval the cref without subscripts if we have variable subscripts

176 lines of code changed in 4 files:

  • testsuite/libraries/msl31/media: Examples.MixtureGases.mos (+22 -22), Examples.TestOnly.MixIdealGasAir.mos (+12 -12), Examples.TwoPhaseWater.ExtendedProperties.mos (+71 -71), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+71 -71)
perost 2011-11-07 11:05 Rev.: 10313

- Fixed spelling in testcases too.

10 lines of code changed in 2 files:

  • testsuite/libraries/msl31/media: Examples.SolveOneNonlinearEquation.Inverse_sine.mos (+2 -2), Examples.Tests.Components.mos (+8 -8)
adrpo 2011-10-31 06:42 Rev.: 10254

- re-enable the SCode.DERIVED case in the Inst.instClassdef2 as it gives way better function names (correct environment) and error locations.
also, we would have a function name clash in the function tree if we have two short class definitions with the same
name, same base class, but different modifiers!
- for SCode.DERIVED elaborate the modifiers in the parent scope both for full and partial inst!
this fixes the error for derived functions with modifiers.
- better location in call to Inst.matchModificationToComponents.
- get rid of some commented unused code.

1399 lines of code changed in 35 files:

  • testsuite/libraries/msl31/media: Air.SimpleAir.mos (+13 -13), Examples.IdealGasH2O.mos (+21 -21), Examples.MixtureGases.mos (+105 -105), Examples.MoistAir.mos (+56 -56), Examples.SimpleLiquidWater.mos (+26 -26), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+29 -29), Examples.TestOnly.FlueGas.mos (+44 -44), Examples.TestOnly.IdealGasN2.mos (+20 -20), Examples.TestOnly.IdealGasN2Mix.mos (+27 -27), Examples.TestOnly.MixIdealGasAir.mos (+68 -68), Examples.TestOnly.N2AsMix.mos (+11 -11), Examples.TestOnly.TestMedia.TemplateMedium.mos (+15 -15), Examples.Tests.Components.mos (+9 -9), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+16 -80), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+60 -279), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+6 -36), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+16 -80), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+16 -80), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+21 -85), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+21 -85), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+47 -111), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+47 -111), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+9 -61), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+63 -115), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+16 -80), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+60 -135), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+38 -113), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+60 -135), Examples.TwoPhaseWater.ExtendedProperties.mos (+152 -152), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+152 -152), Examples.TwoPhaseWater.mos (+11 -11), Examples.WaterIF97.mos (+108 -108), Incompressible.Examples.Glycol47.mos (+9 -9), Incompressible.Examples.TestGlycol.mos (+16 -34), Water.StandardWater.mos (+11 -11)
perost 2011-10-27 16:22 Rev.: 10239

Fix for function modifiers:
- Added source info to unbound parameter warning in Static.elabCref2, since it
doesn't cause any real problems anymore.
- Added a case to DAEUtil.bindingExp to use the evaluated expression if it's
available.
- Commented out the case for derived classes without array dims in
Inst.instClassdef2, since it solves some problems and makes the compiler
faster.
- Added test case mofiles/ModifyFunction1 to test function modifiers.
- Updated test suite.

3998 lines of code changed in 16 files:

  • testsuite/libraries/msl31/media: Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+188 -124), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+535 -316), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+110 -80), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+188 -124), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+188 -124), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+291 -227), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+255 -191), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+236 -172), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+236 -172), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+156 -104), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+337 -285), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+188 -124), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+371 -296), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+294 -219), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+371 -296), Incompressible.Examples.TestGlycol.mos (+54 -36)
adrpo 2011-10-27 11:11 Rev.: 10235

- do not evaluate functions if we do partial instantiation
- handle smooth in Derive.mo (needed for Modelica.Media)
- replace constant with binding even if you cannot constant evaluate
- BackEnd/BackendDAECreate.mo (fixes to make some Media models simulate)
+ force inline of record = functionCall(...) in complex equations
+ handle normal equations in extendRecordEqns (as we have a recursive call)
- split function evaluation/generation outside of Ceval.cevalCallFunction
to be easier to manage.


- FUTURE: we should treat the constant evaluation of subscripts and constant evaluation of component reference
separately in Static.elabCref1 to be sure we always replace constants with their bindings (this will
get Modelica.Electrical.Digital going and maybe others).

144 lines of code changed in 21 files:

  • testsuite/libraries/msl31/media: Examples.Tests.Components.mos (-1), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+3 -5), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+2 -4), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+9 -11), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+3 -5), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+3 -5), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+2 -4), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+2 -4), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+32 -36), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+32 -36), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+3 -5), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+19 -53), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+3 -5), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+3 -5), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+3 -5), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+3 -5), Examples.TwoPhaseWater.ExtendedProperties.mos (+1 -1), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+1 -1), Examples.WaterIF97.mos (+1 -1), Incompressible.Examples.Glycol47.mos (+1 -1), Incompressible.Examples.TestGlycol.mos (+18 -18)
adrpo 2011-10-21 05:04 Rev.: 10184

- chain the redeclares.

3924 lines of code changed in 20 files:

  • testsuite/libraries/msl31/media: Examples.SimpleLiquidWater.mos (+4 -6), Examples.SolveOneNonlinearEquation.Inverse_sh_T.mos (+12 -12), Examples.Tests.MediaTestModels.Air.DryAirNasa.mos (+53 -9), Examples.Tests.MediaTestModels.Air.MoistAir.mos (+1914 -6), Examples.Tests.MediaTestModels.Air.SimpleAir.mos (+11 -35), Examples.Tests.MediaTestModels.IdealGases.Air.mos (+53 -9), Examples.Tests.MediaTestModels.IdealGases.Nitrogen.mos (+53 -9), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.mos (+940 -6), Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.mos (+57 -13), Examples.Tests.MediaTestModels.Incompressible.Essotherm650.mos (+171 -31), Examples.Tests.MediaTestModels.Incompressible.Glycol47.mos (+171 -31), Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.mos (+24 -4), Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.mos (+28 -4), Examples.Tests.MediaTestModels.Water.IdealSteam.mos (+53 -9), Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.mos (+81 -15), Examples.Tests.MediaTestModels.Water.WaterIF97_pT.mos (+81 -15), Examples.Tests.MediaTestModels.Water.WaterIF97_ph.mos (+81 -15), Examples.TwoPhaseWater.ExtendedProperties.mos (+68 -68), Examples.TwoPhaseWater.TestTwoPhaseStates.mos (+68 -68), Makefile (+1 -1)

(21 more)

Generated by StatSVN 0.7.0