Skip to content

Commit 9bd9cc3

Browse files
Merge branch 'master' of https://github.com/ModiaSim/Modia.jl
2 parents a0a96a5 + 0785292 commit 9bd9cc3

File tree

10 files changed

+365
-333
lines changed

10 files changed

+365
-333
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ os:
55
# - osx
66

77
julia:
8-
- 1.0
8+
- 1.1
99
# - 0.7
1010
# - 0.6
1111

Manifest.toml

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# This file is machine-generated - editing it directly is not advised
2+
3+
[[ArrayInterface]]
4+
deps = ["Requires", "Test"]
5+
git-tree-sha1 = "6a1a371393e56f5e8d5657fe4da4b11aea0bfbae"
6+
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
7+
version = "0.1.1"
8+
19
[[Base64]]
210
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
311

@@ -15,21 +23,21 @@ version = "0.5.2"
1523

1624
[[CodecZlib]]
1725
deps = ["BinaryProvider", "Libdl", "Test", "TranscodingStreams"]
18-
git-tree-sha1 = "e3df104c84dfc108f0ca203fd7f5bbdc98641ae9"
26+
git-tree-sha1 = "36bbf5374c661054d41410dc53ff752972583b9b"
1927
uuid = "944b1d66-785c-5afd-91f1-9de20f533193"
20-
version = "0.5.1"
28+
version = "0.5.2"
2129

2230
[[Compat]]
2331
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
24-
git-tree-sha1 = "ec61a16eed883ad0cfa002d7489b3ce6d039bb9a"
32+
git-tree-sha1 = "84aa74986c5b9b898b0d1acaf3258741ee64754f"
2533
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
26-
version = "1.4.0"
34+
version = "2.1.0"
2735

2836
[[DataFrames]]
2937
deps = ["CategoricalArrays", "CodecZlib", "Compat", "DataStreams", "Dates", "InteractiveUtils", "IteratorInterfaceExtensions", "LinearAlgebra", "Missings", "Printf", "Random", "Reexport", "SortingAlgorithms", "Statistics", "StatsBase", "TableTraits", "Tables", "Test", "TranscodingStreams", "Unicode", "WeakRefStrings"]
30-
git-tree-sha1 = "af5c8a233b838076947ef0c8f882f732ad578112"
38+
git-tree-sha1 = "9cfed75401d25d281076eb5d82de148ac2933f9e"
3139
uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
32-
version = "0.17.0"
40+
version = "0.17.1"
3341

3442
[[DataStreams]]
3543
deps = ["Dates", "Missings", "Test", "WeakRefStrings"]
@@ -53,20 +61,20 @@ uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
5361

5462
[[DiffEqBase]]
5563
deps = ["Compat", "IteratorInterfaceExtensions", "LinearAlgebra", "RecipesBase", "RecursiveArrayTools", "Requires", "Roots", "SparseArrays", "StaticArrays", "Statistics", "SuiteSparse", "TableTraits", "Test", "TreeViews"]
56-
git-tree-sha1 = "9b077135e38482dcf74daf2406b9da4dc4dcb0ca"
64+
git-tree-sha1 = "69e00a95b2686c182a3a733e375a3c28c307be65"
5765
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
58-
version = "4.31.2"
66+
version = "5.5.1"
5967

6068
[[Distributed]]
61-
deps = ["LinearAlgebra", "Random", "Serialization", "Sockets"]
69+
deps = ["Random", "Serialization", "Sockets"]
6270
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
6371

6472
[[Future]]
6573
deps = ["Random"]
6674
uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820"
6775

6876
[[InteractiveUtils]]
69-
deps = ["LinearAlgebra", "Markdown"]
77+
deps = ["Markdown"]
7078
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
7179

7280
[[IteratorInterfaceExtensions]]
@@ -109,9 +117,9 @@ uuid = "a63ad114-7e13-5084-954f-fe012c677804"
109117

110118
[[ModiaMath]]
111119
deps = ["DataFrames", "DataStructures", "LinearAlgebra", "Pkg", "Printf", "Requires", "StaticArrays", "Sundials", "Test", "Unitful"]
112-
git-tree-sha1 = "0eeaa3dbb6f52fac01f60ed999a59ea1f32d4b12"
120+
git-tree-sha1 = "5e4b7ee84dd2b77df137e2e5d024f1015fa161df"
113121
uuid = "67ccffd1-116d-535b-ad39-76a8fd0cbf71"
114-
version = "0.3.1"
122+
version = "0.5.0"
115123

116124
[[OrderedCollections]]
117125
deps = ["Random", "Serialization", "Test"]
@@ -142,10 +150,10 @@ uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
142150
version = "0.6.0"
143151

144152
[[RecursiveArrayTools]]
145-
deps = ["RecipesBase", "Requires", "StaticArrays", "Statistics", "Test"]
146-
git-tree-sha1 = "c8f4e17fc7113ef7243450a8bba79981542175b6"
153+
deps = ["ArrayInterface", "RecipesBase", "Requires", "StaticArrays", "Statistics", "Test"]
154+
git-tree-sha1 = "187ea7dd541955102c7035a6668613bdf52022ca"
147155
uuid = "731186ca-8d62-57ce-b412-fbd966d074cd"
148-
version = "0.18.6"
156+
version = "0.20.0"
149157

150158
[[Reexport]]
151159
deps = ["Pkg"]
@@ -160,10 +168,10 @@ uuid = "ae029012-a4dd-5104-9daa-d747884805df"
160168
version = "0.5.2"
161169

162170
[[Roots]]
163-
deps = ["Compat", "Printf"]
164-
git-tree-sha1 = "2e7171b6f3b58b81201ba37d9e1220aff6d904a1"
171+
deps = ["Printf", "Statistics", "Test"]
172+
git-tree-sha1 = "c25321e281c2aa5c8ea965bfa5fa27b98a5f4601"
165173
uuid = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
166-
version = "0.7.4"
174+
version = "0.8.0"
167175

168176
[[SHA]]
169177
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
@@ -190,29 +198,29 @@ uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
190198

191199
[[StaticArrays]]
192200
deps = ["InteractiveUtils", "LinearAlgebra", "Random", "Statistics", "Test"]
193-
git-tree-sha1 = "1eb114d6e23a817cd3e99abc3226190876d7c898"
201+
git-tree-sha1 = "3841b39ed5f047db1162627bf5f80a9cd3e39ae2"
194202
uuid = "90137ffa-7385-5640-81b9-e52037218182"
195-
version = "0.10.2"
203+
version = "0.10.3"
196204

197205
[[Statistics]]
198206
deps = ["LinearAlgebra", "SparseArrays"]
199207
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
200208

201209
[[StatsBase]]
202210
deps = ["DataStructures", "DelimitedFiles", "LinearAlgebra", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics", "Test"]
203-
git-tree-sha1 = "7b596062316c7d846b67bf625d5963a832528598"
211+
git-tree-sha1 = "435707791dc85a67d98d671c1c3fcf1b20b00f94"
204212
uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
205-
version = "0.27.0"
213+
version = "0.29.0"
206214

207215
[[SuiteSparse]]
208216
deps = ["Libdl", "LinearAlgebra", "SparseArrays"]
209217
uuid = "4607b0f0-06f3-5cda-b6b1-a6196a1729e9"
210218

211219
[[Sundials]]
212220
deps = ["BinaryProvider", "DataStructures", "DiffEqBase", "Libdl", "LinearAlgebra", "Reexport", "SparseArrays", "Test"]
213-
git-tree-sha1 = "e9fa38fe7c7d0ef3c8306bba462c048d4e71bf5b"
221+
git-tree-sha1 = "b3dc62f5b06f621816ab30ef3db5dbf0d3fdd364"
214222
uuid = "c3572dad-4567-51f8-b174-8c6c989267f4"
215-
version = "2.7.0"
223+
version = "3.3.0"
216224

217225
[[TableTraits]]
218226
deps = ["IteratorInterfaceExtensions", "Test"]
@@ -221,20 +229,20 @@ uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
221229
version = "0.4.1"
222230

223231
[[Tables]]
224-
deps = ["IteratorInterfaceExtensions", "Requires", "TableTraits", "Test"]
225-
git-tree-sha1 = "89f8fde6394579580fb75088e45ad95551199c7c"
232+
deps = ["IteratorInterfaceExtensions", "LinearAlgebra", "Requires", "TableTraits", "Test"]
233+
git-tree-sha1 = "719d5be11e89ae29d79b469c4238b63b53544d38"
226234
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
227-
version = "0.1.14"
235+
version = "0.1.18"
228236

229237
[[Test]]
230238
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
231239
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
232240

233241
[[TranscodingStreams]]
234242
deps = ["Pkg", "Random", "Test"]
235-
git-tree-sha1 = "a34a2d588e2d2825602bf14a24216d5c8b0921ec"
243+
git-tree-sha1 = "f42956022d8084539f1d7219f632542b0ea686ce"
236244
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
237-
version = "0.8.1"
245+
version = "0.9.3"
238246

239247
[[TreeViews]]
240248
deps = ["Test"]
@@ -243,20 +251,20 @@ uuid = "a2a6695c-b41b-5b7d-aed9-dbfdeacea5d7"
243251
version = "0.3.0"
244252

245253
[[UUIDs]]
246-
deps = ["Random"]
254+
deps = ["Random", "SHA"]
247255
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
248256

249257
[[Unicode]]
250258
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
251259

252260
[[Unitful]]
253261
deps = ["LinearAlgebra", "Random", "Test"]
254-
git-tree-sha1 = "ba654182cad07cd6c1f3ae969475e556db3283ea"
262+
git-tree-sha1 = "94736a38908c6b43d22e1abffc4f72ab19dabbc1"
255263
uuid = "1986cc42-f94f-5a68-af5c-568840ba703d"
256-
version = "0.14.0"
264+
version = "0.15.0"
257265

258266
[[WeakRefStrings]]
259267
deps = ["Missings", "Random", "Test"]
260-
git-tree-sha1 = "1a9511b00152bbecaf3cd59d1fadd5d23e7bb1f9"
268+
git-tree-sha1 = "960639a12ffd223ee463e93392aeb260fa325566"
261269
uuid = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"
262-
version = "0.5.4"
270+
version = "0.5.8"

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Modia"
22
uuid = "cb905087-75eb-5f27-8515-1ce0ec8e839e"
33
authors = ["Hilding Elmqvist <[email protected]>"]
4-
version = "0.2.4-dev"
4+
version = "0.3.0"
55

66
[deps]
77
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ Component models are defined by `@model` macros. Such models contain definition
2323
## Installation
2424

2525
**Modia** is registered in METADATA.jl and can be installed with Pkg.add.
26-
The latest released version (0.2.3) is the last one with support for Julia >= 0.6. Trunk and later versions support Julia >=1.0.
26+
Version (0.2.3) is the last one with support for Julia >= 0.6. Trunk and later versions support Julia >=1.0.
2727

2828
```julia
2929
# Julia >= 0.6:
3030
julia> Pkg.add("Modia")
31+
julia> Pkg.add("ModiaMath")
3132

3233
# Julia >= 0.7:
33-
julia> ]add Modia
34+
julia> ]add Modia ModiaMath
3435
```
3536

3637
Modia uses [PyPlot](https://github.com/JuliaPy/PyPlot.jl) for plotting.

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
julia 1.0
22
DataStructures
33
JSON
4-
ModiaMath 0.3.1
4+
ModiaMath 0.5.0
55
StaticArrays
66
Unitful

examples/SynchronousExamples.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ end
7373
end
7474
end
7575

76-
result = simulate(SpeedControl, 5.0, storeEliminated=false, logSimulation=false)
76+
result = simulate(SpeedControl, 5.0, storeEliminated=false, logSimulation=true)
7777
plot(result, ("v", "fobs"), heading="SpeedControl", figure=15)
7878
@test result["v"][end] == 98.03921568627446
7979

@@ -108,7 +108,7 @@ end
108108
result = simulate(SpeedControlPI, 5.0, storeEliminated=false, logSimulation=false)
109109
plot(result, ("v", "fobs"), heading="SpeedControlPI", figure=16)
110110
@show result["v"][end]
111-
@test isapprox(result["v"][end], 100.2849917097788; atol=1e-8)
111+
@test isapprox(result["v"][end], 100.2849917097788; atol=1e-3)
112112

113113
@model ControlledMassBasic begin
114114
@extends MassWithSpringDamper(k=0) # k=100

src/Modia.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Modia main module.
66
* License: MIT (expat)
77
=#
88

9-
9+
1010
#import ModiaMath
1111

1212
"""
@@ -45,8 +45,8 @@ For more information, see (https://github.com/ModiaSim/Modia.jl/blob/master/READ
4545
"""
4646
module Modia
4747

48-
const Version = "0.2.4-dev"
49-
const Date = "2019-02-24"
48+
const Version = "0.3.0"
49+
const Date = "2019-04-07"
5050

5151

5252
#println(" \n\nWelcome to Modia - Dynamic MODeling and Simulation in julIA")

0 commit comments

Comments
 (0)