-
Notifications
You must be signed in to change notification settings - Fork 5
/
1.6.0-DEV-0669b64613.log
1643 lines (1439 loc) · 80.5 KB
/
1.6.0-DEV-0669b64613.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Julia Version 1.6.0-DEV.1153
Commit 0669b64613 (2020-10-07 09:01 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: AMD EPYC 7502 32-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-10.0.1 (ORCJIT, znver2)
Environment:
JULIA_DEPOT_PATH = ::/usr/local/share/julia
JULIA_NUM_THREADS = 2
Resolving package versions...
Installed SortingAlgorithms ──────────── v0.3.1
Installed SuiteSparse_jll ────────────── v5.4.0+9
Installed ConstructionBase ───────────── v1.0.0
Installed Compat ─────────────────────── v3.18.0
Installed Tables ─────────────────────── v1.1.0
Installed IterativeSolvers ───────────── v0.8.4
Installed DataFrames ─────────────────── v0.21.7
Installed DataAPI ────────────────────── v1.3.0
Installed RecipesBase ────────────────── v1.1.0
Installed Sundials_jll ───────────────── v5.2.0+1
Installed FunctionWrappers ───────────── v1.1.1
Installed IteratorInterfaceExtensions ── v1.0.0
Installed SIMDPirates ────────────────── v0.8.25
Installed Parameters ─────────────────── v0.12.1
Installed Modia ──────────────────────── v0.3.0
Installed MacroTools ─────────────────── v0.5.5
Installed CategoricalArrays ──────────── v0.8.3
Installed Reexport ───────────────────── v0.2.0
Installed PooledArrays ───────────────── v0.5.3
Installed TreeViews ──────────────────── v0.3.0
Installed MuladdMacro ────────────────── v0.2.2
Installed ArrayInterface ─────────────── v2.13.3
Installed DataStructures ─────────────── v0.18.7
Installed ChainRulesCore ─────────────── v0.9.13
Installed LabelledArrays ─────────────── v1.3.0
Installed RecursiveFactorization ─────── v0.1.4
Installed Roots ──────────────────────── v1.0.5
Installed Unitful ────────────────────── v0.18.0
Installed Missings ───────────────────── v0.4.4
Installed OrderedCollections ─────────── v1.3.1
Installed ModiaMath ──────────────────── v0.5.2
Installed StaticArrays ───────────────── v0.12.4
Installed CompilerSupportLibraries_jll ─ v0.3.3+0
Installed METIS_jll ──────────────────── v5.1.0+4
Installed Parsers ────────────────────── v1.0.11
Installed RecursiveArrayTools ────────── v2.7.1
Installed InvertedIndices ────────────── v1.0.0
Installed DataValueInterfaces ────────── v1.0.0
Installed JSON ───────────────────────── v0.21.1
Installed StructTypes ────────────────── v1.1.0
Installed OffsetArrays ───────────────── v1.3.0
Installed OpenBLAS_jll ───────────────── v0.3.10+0
Installed TableTraits ────────────────── v1.0.0
Installed DocStringExtensions ────────── v0.8.3
Installed Requires ───────────────────── v1.1.0
Installed CpuId ──────────────────────── v0.2.2
Installed ZygoteRules ────────────────── v0.2.0
Installed SLEEFPirates ───────────────── v0.5.5
Installed CEnum ──────────────────────── v0.4.1
Installed DiffEqBase ─────────────────── v6.48.0
Installed VectorizationBase ──────────── v0.12.33
Installed LoopVectorization ──────────── v0.8.26
Installed UnPack ─────────────────────── v1.0.2
Installed Sundials ───────────────────── v4.3.0
Updating `~/.julia/environments/v1.6/Project.toml`
[cb905087] + Modia v0.3.0
Updating `~/.julia/environments/v1.6/Manifest.toml`
[4fba245c] + ArrayInterface v2.13.3
[fa961155] + CEnum v0.4.1
[324d7699] + CategoricalArrays v0.8.3
[d360d2e6] + ChainRulesCore v0.9.13
[34da2185] + Compat v3.18.0
[e66e0078] + CompilerSupportLibraries_jll v0.3.3+0
[187b0558] + ConstructionBase v1.0.0
[adafc99b] + CpuId v0.2.2
[9a962f9c] + DataAPI v1.3.0
[a93c6f00] + DataFrames v0.21.7
[864edb3b] + DataStructures v0.18.7
[e2d170a0] + DataValueInterfaces v1.0.0
[2b5f629d] + DiffEqBase v6.48.0
[ffbed154] + DocStringExtensions v0.8.3
[069b7b12] + FunctionWrappers v1.1.1
[41ab1584] + InvertedIndices v1.0.0
[42fd0dbc] + IterativeSolvers v0.8.4
[82899510] + IteratorInterfaceExtensions v1.0.0
[682c06a0] + JSON v0.21.1
[2ee39098] + LabelledArrays v1.3.0
[bdcacae8] + LoopVectorization v0.8.26
[d00139f3] + METIS_jll v5.1.0+4
[1914dd2f] + MacroTools v0.5.5
[e1d29d7a] + Missings v0.4.4
[cb905087] + Modia v0.3.0
[67ccffd1] + ModiaMath v0.5.2
[46d2c3a1] + MuladdMacro v0.2.2
[6fe1bfb0] + OffsetArrays v1.3.0
[4536629a] + OpenBLAS_jll v0.3.10+0
[bac558e1] + OrderedCollections v1.3.1
[d96e819e] + Parameters v0.12.1
[69de0a69] + Parsers v1.0.11
[2dfb63ee] + PooledArrays v0.5.3
[3cdcf5f2] + RecipesBase v1.1.0
[731186ca] + RecursiveArrayTools v2.7.1
[f2c3362d] + RecursiveFactorization v0.1.4
[189a3867] + Reexport v0.2.0
[ae029012] + Requires v1.1.0
[f2b01f46] + Roots v1.0.5
[21efa798] + SIMDPirates v0.8.25
[476501e8] + SLEEFPirates v0.5.5
[a2af1166] + SortingAlgorithms v0.3.1
[90137ffa] + StaticArrays v0.12.4
[856f2bd8] + StructTypes v1.1.0
[bea87d4a] + SuiteSparse_jll v5.4.0+9
[c3572dad] + Sundials v4.3.0
[fb77eaff] + Sundials_jll v5.2.0+1
[3783bdb8] + TableTraits v1.0.0
[bd369af6] + Tables v1.1.0
[a2a6695c] + TreeViews v0.3.0
[3a884ed6] + UnPack v1.0.2
[1986cc42] + Unitful v0.18.0
[3d5dd08c] + VectorizationBase v0.12.33
[700de1a5] + ZygoteRules v0.2.0
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[8bb1440f] + DelimitedFiles
[8ba89e20] + Distributed
[9fa8497b] + Future
[b77e0a4c] + InteractiveUtils
[76f85450] + LibGit2
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[44cfe95a] + Pkg
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[1a1011a3] + SharedArrays
[6462fe0b] + Sockets
[2f01184e] + SparseArrays
[10745b16] + Statistics
[4607b0f0] + SuiteSparse
[fa267f1f] + TOML
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
Building SLEEFPirates → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/67ae90a18aa8c22bf159318300e765fbd89ddf6e/build.log`
Testing Modia
Status `/tmp/jl_WOqwq0/Project.toml`
[864edb3b] DataStructures v0.18.7
[682c06a0] JSON v0.21.1
[cb905087] Modia v0.3.0
[67ccffd1] ModiaMath v0.5.2
[90137ffa] StaticArrays v0.12.4
[1986cc42] Unitful v0.18.0
[ade2ca70] Dates
[37e2e46d] LinearAlgebra
[d6f4376e] Markdown
[de0858da] Printf
[2f01184e] SparseArrays
[8dfed614] Test
Status `/tmp/jl_WOqwq0/Manifest.toml`
[4fba245c] ArrayInterface v2.13.3
[fa961155] CEnum v0.4.1
[324d7699] CategoricalArrays v0.8.3
[d360d2e6] ChainRulesCore v0.9.13
[34da2185] Compat v3.18.0
[e66e0078] CompilerSupportLibraries_jll v0.3.3+0
[187b0558] ConstructionBase v1.0.0
[adafc99b] CpuId v0.2.2
[9a962f9c] DataAPI v1.3.0
[a93c6f00] DataFrames v0.21.7
[864edb3b] DataStructures v0.18.7
[e2d170a0] DataValueInterfaces v1.0.0
[2b5f629d] DiffEqBase v6.48.0
[ffbed154] DocStringExtensions v0.8.3
[069b7b12] FunctionWrappers v1.1.1
[41ab1584] InvertedIndices v1.0.0
[42fd0dbc] IterativeSolvers v0.8.4
[82899510] IteratorInterfaceExtensions v1.0.0
[682c06a0] JSON v0.21.1
[2ee39098] LabelledArrays v1.3.0
[bdcacae8] LoopVectorization v0.8.26
[d00139f3] METIS_jll v5.1.0+4
[1914dd2f] MacroTools v0.5.5
[e1d29d7a] Missings v0.4.4
[cb905087] Modia v0.3.0
[67ccffd1] ModiaMath v0.5.2
[46d2c3a1] MuladdMacro v0.2.2
[6fe1bfb0] OffsetArrays v1.3.0
[4536629a] OpenBLAS_jll v0.3.10+0
[bac558e1] OrderedCollections v1.3.1
[d96e819e] Parameters v0.12.1
[69de0a69] Parsers v1.0.11
[2dfb63ee] PooledArrays v0.5.3
[3cdcf5f2] RecipesBase v1.1.0
[731186ca] RecursiveArrayTools v2.7.1
[f2c3362d] RecursiveFactorization v0.1.4
[189a3867] Reexport v0.2.0
[ae029012] Requires v1.1.0
[f2b01f46] Roots v1.0.5
[21efa798] SIMDPirates v0.8.25
[476501e8] SLEEFPirates v0.5.5
[a2af1166] SortingAlgorithms v0.3.1
[90137ffa] StaticArrays v0.12.4
[856f2bd8] StructTypes v1.1.0
[bea87d4a] SuiteSparse_jll v5.4.0+9
[c3572dad] Sundials v4.3.0
[fb77eaff] Sundials_jll v5.2.0+1
[3783bdb8] TableTraits v1.0.0
[bd369af6] Tables v1.1.0
[a2a6695c] TreeViews v0.3.0
[3a884ed6] UnPack v1.0.2
[1986cc42] Unitful v0.18.0
[3d5dd08c] VectorizationBase v0.12.33
[700de1a5] ZygoteRules v0.2.0
[56f22d72] Artifacts
[2a0f44e3] Base64
[ade2ca70] Dates
[8bb1440f] DelimitedFiles
[8ba89e20] Distributed
[9fa8497b] Future
[b77e0a4c] InteractiveUtils
[76f85450] LibGit2
[8f399da3] Libdl
[37e2e46d] LinearAlgebra
[56ddb016] Logging
[d6f4376e] Markdown
[a63ad114] Mmap
[44cfe95a] Pkg
[de0858da] Printf
[3fa0cd96] REPL
[9a3f8284] Random
[ea8e919c] SHA
[9e88b42a] Serialization
[1a1011a3] SharedArrays
[6462fe0b] Sockets
[2f01184e] SparseArrays
[10745b16] Statistics
[4607b0f0] SuiteSparse
[fa267f1f] TOML
[8dfed614] Test
[cf7118a7] UUIDs
[4ec0a83e] Unicode
Testing Running tests...
Welcome to Modia - Dynamic Modeling and Simulation with Julia
Version 0.3.0 (2019-04-07)
Type "?Modia" for help.
Importing ModiaMath Version 0.5.2 (2019-07-10)
PyPlot not available (plot commands will be ignored).
Try to install PyPlot. See hints here:
https://github.com/ModiaSim/ModiaMath.jl/wiki/Installing-PyPlot-in-a-robust-way.
Test match
assign = [8, 1, 2, 7, 4, 5, 3, 0]
Singular system
assign = [0, 3, 1, 0]
(invAssign, unAssignedVariables) = ([3, 0, 2], [1, 4])
(ass, unAssignedEquations) = ([0, 3, 1, 0], [2])
Test Tarjans strong connect
components = Any[Any[6], Any[7, 5, 4, 3], Any[8, 2, 1]]
Fixed-length pendulum
assign = [5, 4, 1, 2, 0, 0, 3, 0, 0]
Assigned original equations:
Test diagnostics for too many equations
Gbig = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 10], [2, 10]]
EGbig = Any[[3, 5, 11], [4, 6, 11], [1, 7, 9, 11], [2, 8, 9, 11], [1, 2, 11], [1, 10, 11], [2, 10, 11], [1, 5, 11], [2, 6, 11], [3, 7, 11], [4, 8, 11]]
componentsBig = Any[Any[5, 10, 3, 4, 11, 2, 9, 7, 6, 8, 1]]
Test diagnostics for too many variables
Gbig = Any[[3, 5], [4, 6], [1, 7, 9], [10, 8, 9], [1, 10]]
EGbig = Any[[3, 5], [4, 6], [1, 7, 9], [10, 8, 9], [1, 10], [1, 5], [2, 6], [3, 7], [4, 8], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]]
componentsBig = Any[Any[5, 4, 9, 2, 7, 10, 6, 3, 8, 1]]
Test diagnostics for too few equations
Gbig = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9]]
EGbig = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 5], [2, 6], [3, 7], [4, 8], [1, 2, 3, 4, 5, 6, 7, 8, 9]]
componentsBig = Any[Any[6, 2, 8, 4, 9, 7, 3, 5, 1]]
Check consistency of equations by matching extended equation set
EG = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 5], [2, 6], [3, 7], [4, 8]]
assign = [5, 7, 1, 9, 6, 2, 8, 4, 3]
Perform index reduction
G = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 2, 5, 6], [3, 5, 7, 10], [4, 6, 8, 11], [1, 2, 5, 6, 10, 11]]
assign = [0, 0, 0, 0, 1, 2, 7, 4, 3, 9, 8]
A = [5, 6, 7, 8, 10, 11, 0, 0, 0, 0, 0]
B = [7, 8, 0, 0, 6, 9, 0, 0, 0]
------------------------------------------------------
vActive = Bool[0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1]
assign = [0, 5, 0, 2, 1, 6, 7, 4, 3, 9, 8]
components = Any[Any[1], Any[5], Any[6], Any[2], Any[4, 8, 9, 7, 3]]
------------------------------------------------------
All unknowns:
All equations:
Assigned equations:
Sorted equations:
Build augmented system.
AG = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 2, 5, 6], [3, 5, 7, 10], [4, 6, 8, 11], [1, 2, 5, 6, 10, 11], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]]
assignAG = [5, 4, 1, 2, 6, 8, 3, 10, 11, 7, 9]
componentsAG = Any[Any[11, 3, 7, 9, 8, 2, 10, 4, 5, 6, 1]]
Assigned augmented equations:
Sorted augmented equations:
Set initial conditions on x and y. Should fail.
IG1 = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 2, 5, 6], [3, 5, 7, 10], [4, 6, 8, 11], [1, 2, 5, 6, 10, 11], [1], [2]]
assignIG1 = [10, 5, 1, 2, 6, 8, 3, 4, 0, 7, 9]
componentsIG1 = Any[Any[10], Any[5], Any[4], Any[3], Any[7, 9, 2, 8, 6, 1], Any[11]]
Set initial conditions on x and w.
IG2 = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 2, 5, 6], [3, 5, 7, 10], [4, 6, 8, 11], [1, 2, 5, 6, 10, 11], [1], [3]]
assignIG2 = [10, 5, 11, 2, 1, 6, 3, 8, 4, 7, 9]
componentsIG2 = Any[Any[11], Any[1], Any[10], Any[5], Any[6], Any[2], Any[7, 9, 8, 4, 3]]
Sorted IG2 equations:
Set initial conditions on w and z.
IG3 = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 2, 5, 6], [3, 5, 7, 10], [4, 6, 8, 11], [1, 2, 5, 6, 10, 11], [3], [4]]
assignIG3 = [6, 5, 10, 11, 1, 2, 3, 8, 4, 7, 9]
componentsIG3 = Any[Any[10], Any[1], Any[11], Any[2], Any[5, 6], Any[7, 9, 8, 4, 3]]
Sorted IG3 equations:
Fixed-length pendulum
Perform index reduction
Set initial conditions on x and w.
IG = Any[[3, 5], [4, 6], [1, 7, 9], [2, 8, 9], [1, 2], [1, 2, 5, 6], [3, 5, 7, 10], [4, 6, 8, 11], [1, 2, 5, 6, 10, 11], [1], [3]]
assignIG = [10, 5, 11, 2, 1, 6, 3, 8, 4, 7, 9]
componentsIG = Any[Any[11], Any[1], Any[10], Any[5], Any[6], Any[2], Any[7, 9, 8, 4, 3]]
Exothermic Reactor Model
assign = [0, 0, 1, 7, 3, 2, 8, 6]
A = [3, 4, 7, 0, 8, 0, 0, 0]
B = [6, 0, 7, 5, 8, 0, 0, 0]
components = Any[Any[3], Any[1], Any[8], Any[6], Any[7], Any[2], Any[4], Any[5]]
----------------------
----------------------
Big tests, n = 5000
Big test: diagonal
0.175501 seconds (76.44 k allocations: 51.765 MiB, 12.12% gc time)
Big test: band
0.144018 seconds (112.88 k allocations: 52.218 MiB, 3.90% gc time)
Big test: full, n=1000
0.312994 seconds (4.80 M allocations: 106.005 MiB, 5.76% gc time)
Test solve
Solve: x from: y = x
x = y
Solve: x from: y = x + z
x = y - z
Solve: x from: y = x + z + v + w
x = y - (z + v + w)
Solve: z from: y = x + z + v + w
z = (y - x) - (v + w)
Solve: v from: y = x + z + v + w
v = ((y - x) - z) - w
Solve: w from: y = x + z + v + w
w = ((y - x) - z) - v
Solve: x from: y = x - z
x = y + z
Solve: x from: y = (x - z) - w
x = (y + w) + z
Solve: x from: y = -(x, z, v, w)
x = y + (z + v + w)
Solve: v from: y = -(x, z, v, w)
v = ((x - y) - z) - w
Solve: x from: y = z - x
x = z - y
Solve: x from: y = x * z
x = y / z
Solve: x from: y = x * z * z * z
x = y / (z * z * z)
Solve: x from: y = /(x, z, w)
x = y * (z * w)
Solve: z from: y = /(x, z, w)
z = (x / y) / w
Solve: x from: y = x / z
x = y * z
Solve: z from: y = x / z
z = x / y
Solve: x from: y = x \ z
NOT SOLVED
x \ z = y
----------------------
Test differentiate
Equation: x + 5 + z = w
Differentiated: der(x) + der(z) = der(w)
Equation: der(x) + der(z) = der(w)
Differentiated: der(der(x)) + der(der(z)) = der(der(w))
Equation: +x = w
Differentiated: der(x) = der(w)
Equation: 2 + 3 = w
Differentiated: 0.0 = der(w)
Equation: -x = w
Differentiated: -(der(x)) = der(w)
Equation: (x - 5) - z = w
Differentiated: der(x) - der(z) = der(w)
Equation: 5x = w
Differentiated: 5 * der(x) = der(w)
Equation: x * 5 * z = w
Differentiated: der(x) * 5 * z + x * 5 * der(z) = der(w)
Equation: 4 * 5 * 6 = w
Differentiated: 0.0 = der(w)
Equation: y = x / y
Differentiated: der(y) = der(x) / y + (x / y ^ 2) * der(y)
Equation: y = x / 5
Differentiated: der(y) = der(x) / 5
Equation: y = 5 / y
Differentiated: der(y) = (5 / y ^ 2) * der(y)
Equation: y = [1, x]
Differentiated: der(y) = [0.0, der(x)]
Equation: y = [2x 3x; 4x 5x]
Differentiated: der(y) = [2 * der(x) 3 * der(x); 4 * der(x) 5 * der(x)]
Equation: y = [2x 3x; 4x 5x] * [1, x]
Differentiated: der(y) = [2 * der(x) 3 * der(x); 4 * der(x) 5 * der(x)] * [1, x] + [2x 3x; 4x 5x] * [0.0, der(x)]
Equation: y = transpose(B) + B´
Differentiated: der(y) = transpose(der(B)) + der(B´)
Equation: y = x[5, 6]
Differentiated: der(y) = (der(x))[5, 6]
Equation: y = x[5:7]
Differentiated: der(y) = (der(x))[5:7]
Equation: y = sin(x)
Differentiated: der(y) = cos(x) * der(x)
Equation: y = cos(x)
Differentiated: der(y) = -(sin(x)) * der(x)
Equation: y = tan(x)
Differentiated: der(y) = (1 / cos(x) ^ 2) * der(x)
Equation: y = exp(x)
Differentiated: der(y) = exp(x) * der(x)
Equation: y = x ^ y
Differentiated: der(y) = y * x ^ (y - 1) * der(x) + x ^ y * log(x) * der(y)
Equation: y = log(x)
Differentiated: der(y) = (1 / x) * der(x)
Equation: y = asin(x)
Differentiated: der(y) = (1 / sqrt(1 - x ^ 2)) * der(x)
Equation: y = acos(x)
Differentiated: der(y) = (-1 / sqrt(1 - x ^ 2)) * der(x)
Equation: y = atan(x)
Differentiated: der(y) = (1 / (1 + x ^ 2)) * der(x)
Equation: y = f(x, 5, z)
Derivative function f_der_1 not found.
Derivative function f_der_3 not found.
Differentiated: der(y) = f_der_1(x, 5, z) * der(x) + f_der_3(x, 5, z) * der(z)
Equation: y = f(x, 5, g(z))
Derivative function f_der_1 not found.
Derivative function g_der_1 not found.
Derivative function f_der_3 not found.
Differentiated: der(y) = f_der_1(x, 5, g(z)) * der(x) + f_der_3(x, 5, g(z)) * (g_der_1(z) * der(z))
Equation: y = if true
x
else
y
end
Differentiated: der(y) = if true
der(x)
else
der(y)
end
Equation: y = time
Differentiated: der(y) = 1.0
Equation: y = a * x
Differentiated: der(y) = a * der(x)
----------------------
... Test two coupled inertias (all unknowns can be solved for)
Variables of _x vector (length=2):
_x[1]: J1_phi
_x[2]: der(J1_phi) # = der(_x[1])
Variables of _der_x vector (length=2):
_der_x[1]: --- # = _x[2] = der(J1_phi)
_der_x[2]: der2(J1_phi)
Sorted equations (length(_r) = 2, nc = 0):
_r[1] = _der_x[1] - _x[2]
J2_phi = < solved from eq.5 >
der(J2_phi) = < solved from eq.7 = der(eq.5) >
J1_w = < solved from eq.1 >
J2_w = < solved from eq.3 >
der2(J2_phi) = < solved from eq.10 = der2(eq.5) >
der(J1_w) = < solved from eq.8 = der(eq.1) >
der(J2_w) = < solved from eq.9 = der(eq.3) >
J2_tau = < solved from eq.4 >
J1_tau = < solved from eq.6 >
_r[2] = < residue of eq.2 >
... Test two coupled inertias (only a subset of unknowns can be solved for)
Variables of _x vector (length=2):
_x[1]: J2_phi
_x[2]: der(J2_phi) # = der(_x[1])
Variables of _der_x vector (length=2):
_der_x[1]: --- # = _x[2] = der(J2_phi)
_der_x[2]: der2(J2_phi)
Sorted equations (length(_r) = 2, nc = 0):
_r[1] = _der_x[1] - _x[2]
J1_phi = < solved from eq.5 >
der(J1_phi) = < solved from eq.7 = der(eq.5) >
J1_w = < solved from eq.1 >
J2_w = < solved from eq.3 >
der2(J1_phi) = < solved from eq.10 = der2(eq.5) >
der(J1_w) = < solved from eq.8 = der(eq.1) >
der(J2_w) = < solved from eq.9 = der(eq.3) >
J2_tau = < solved from eq.4 >
J1_tau = < solved from eq.6 >
_r[2] = < residue of eq.2 >
... Test two coupled inertias (no unknowns can be solved for)
Variables of _x vector (length=9):
_x[1]: J1_phi
_x[2]: J2_phi
_x[3]: der(J1_phi) # = der(_x[1])
_x[4]: der(J2_phi) # = der(_x[2])
_x[5]: J2_w
_x[6]: J1_w
_x[7]: --- # integral of lambda variable
_x[8]: --- # integral of lambda variable
_x[9]: --- # integral of mue variable
Variables of _der_x vector (length=9):
_der_x[1]: --- # = _x[3] = der(J1_phi)
_der_x[2]: --- # = _x[4] = der(J2_phi)
_der_x[3]: der2(J1_phi)
_der_x[4]: der2(J2_phi)
_der_x[5]: der(J2_w)
_der_x[6]: der(J1_w)
_der_x[7]: J2_tau # lambda variable
_der_x[8]: J1_tau # lambda variable
_der_x[9]: --- # mue variable associated with equation eq.7 = der(eq.5)
Sorted equations (length(_r) = 9, nc = 4):
_r[1] = _der_x[1] - _x[3]
_r[2] = _der_x[2] - _x[4]
_r[6] = < residue of eq.5 >
_r[7] = < residue of eq.1 >
_r[9] = < residue of eq.7 = der(eq.5) >
_r[8] = < residue of eq.3 >
_r[3] = < residue of eq.4 >
_r[4] = < residue of eq.6 >
_r[5] = < residue of eq.2 >
... Test simple sliding mass model with Tearing
Variables of _x vector (length=3):
_x[1]: s
_x[2]: der(s) # = der(_x[1])
_x[3]: sf
Variables of _der_x vector (length=3):
_der_x[1]: --- # = _x[2] = der(s)
_der_x[2]: der2(s)
_der_x[3]: der(sf)
Sorted equations (length(_r) = 3, nc = 0):
_r[1] = _der_x[1] - _x[2]
r = < solved from eq.1 >
der(r) = < solved from eq.6 = der(eq.1) >
v = < solved from eq.2 >
der2(r) = < solved from eq.7 = der2(eq.1) >
der(v) = < solved from eq.8 = der(eq.2) >
u = < solved from eq.5 >
_r[2] = < residue of eq.9 >
f = < solved from eq.3 >
_r[3] = < residue of eq.4 >
... Test Multi-Index DAE without tearing
Variables of _x vector (length=21):
_x[1]: x7
_x[2]: x6
_x[3]: der(x7) # = der(_x[1])
_x[4]: der(x6) # = der(_x[2])
_x[5]: der2(x7) # = der(_x[3])
_x[6]: der2(x6) # = der(_x[4])
_x[7]: x1
_x[8]: x2
_x[9]: x3
_x[10]: der(x1) # = der(_x[7])
_x[11]: der(x2) # = der(_x[8])
_x[12]: der(x3) # = der(_x[9])
_x[13]: x4
_x[14]: x8 # algebraic variable
_x[15]: --- # integral of lambda variable
_x[16]: --- # integral of mue variable
_x[17]: --- # integral of mue variable
_x[18]: --- # integral of mue variable
_x[19]: --- # integral of mue variable
_x[20]: --- # integral of mue variable
_x[21]: --- # integral of mue variable
Variables of _der_x vector (length=21):
_der_x[1]: --- # = _x[3] = der(x7)
_der_x[2]: --- # = _x[4] = der(x6)
_der_x[3]: --- # = _x[5] = der2(x7)
_der_x[4]: --- # = _x[6] = der2(x6)
_der_x[5]: der3(x7)
_der_x[6]: der3(x6)
_der_x[7]: --- # = _x[10] = der(x1)
_der_x[8]: --- # = _x[11] = der(x2)
_der_x[9]: --- # = _x[12] = der(x3)
_der_x[10]: der2(x1)
_der_x[11]: der2(x2)
_der_x[12]: der2(x3)
_der_x[13]: der(x4)
_der_x[14]: --- # derivative of algebraic variable
_der_x[15]: x5 # lambda variable
_der_x[16]: --- # mue variable associated with equation eq.14 = der(eq.6)
_der_x[17]: --- # mue variable associated with equation eq.15 = der(eq.7)
_der_x[18]: --- # mue variable associated with equation eq.16 = der2(eq.6)
_der_x[19]: --- # mue variable associated with equation eq.17 = der2(eq.7)
_der_x[20]: --- # mue variable associated with equation eq.9 = der(eq.1)
_der_x[21]: --- # mue variable associated with equation eq.11 = der(eq.2)
Sorted equations (length(_r) = 21, nc = 12):
_r[1] = _der_x[1] - _x[3]
_r[2] = _der_x[2] - _x[4]
_r[3] = _der_x[3] - _x[5]
_r[4] = _der_x[4] - _x[6]
_r[5] = _der_x[7] - _x[10]
_r[6] = _der_x[8] - _x[11]
_r[7] = _der_x[9] - _x[12]
_r[11] = < residue of eq.6 >
_r[12] = < residue of eq.7 >
_r[16] = < residue of eq.14 = der(eq.6) >
_r[17] = < residue of eq.15 = der(eq.7) >
_r[18] = < residue of eq.16 = der2(eq.6) >
_r[19] = < residue of eq.17 = der2(eq.7) >
_r[13] = < residue of eq.1 >
_r[14] = < residue of eq.2 >
_r[20] = < residue of eq.9 = der(eq.1) >
_r[21] = < residue of eq.11 = der(eq.2) >
_r[15] = < residue of eq.3 >
_r[10] = < residue of eq.8 >
_r[8] = < residue of eq.4 >
_r[9] = < residue of eq.5 >
... Test Multi-Index DAE WITH tearing
Variables of _x vector (length=8):
_x[1]: x7
_x[2]: der(x7) # = der(_x[1])
_x[3]: der2(x7) # = der(_x[2])
_x[4]: x2
_x[5]: der(x2) # = der(_x[4])
_x[6]: x8 # algebraic variable
_x[7]: --- # integral of mue variable
_x[8]: --- # integral of mue variable
Variables of _der_x vector (length=8):
_der_x[1]: --- # = _x[2] = der(x7)
_der_x[2]: --- # = _x[3] = der2(x7)
_der_x[3]: der3(x7)
_der_x[4]: --- # = _x[5] = der(x2)
_der_x[5]: der2(x2)
_der_x[6]: --- # derivative of algebraic variable
_der_x[7]: --- # mue variable associated with equation eq.15 = der(eq.7)
_der_x[8]: --- # mue variable associated with equation eq.17 = der2(eq.7)
Sorted equations (length(_r) = 8, nc = 4):
_r[1] = _der_x[1] - _x[2]
_r[2] = _der_x[2] - _x[3]
_r[3] = _der_x[4] - _x[5]
x6 = < solved from eq.6 >
_r[6] = < residue of eq.7 >
der(x6) = < solved from eq.14 = der(eq.6) >
_r[7] = < residue of eq.15 = der(eq.7) >
der2(x6) = < solved from eq.16 = der2(eq.6) >
_r[8] = < residue of eq.17 = der2(eq.7) >
x1 = < solved from eq.1 >
x3 = < solved from eq.2 >
der(x1) = < solved from eq.9 = der(eq.1) >
der(x3) = < solved from eq.11 = der(eq.2) >
x4 = < solved from eq.3 >
der3(x6) = < solved from eq.18 = der3(eq.6) >
der2(x1) = < solved from eq.10 = der2(eq.1) >
der2(x3) = < solved from eq.12 = der2(eq.2) >
der(x4) = < solved from eq.13 = der(eq.3) >
x5 = < solved from eq.5 >
_r[5] = < residue of eq.8 >
_r[4] = < residue of eq.4 >
TestVariableTypes: Demonstrating the handling of various variable types
Simulating model: TestVariableTypes1
Number of equations: 9
Number of variables: 11
Number of continuous states: 2
----------------------
Simulation FAILED:
could not load symbol "jl_function_ptr":
/opt/julia/bin/julia: undefined symbol: jl_function_ptr
----------------------
Stack trace: ------------------------------------------------
old_cfunction(f::Function, r::Type, a::Type) at sundials_kinsol.jl:20
solveNonlinearEquations!(eqInfo::ModiaMath.NonlinearEquations.KINSOL.NonlinearEquationsInfo, y::Vector{Float64}; FTOL::Float64, yScale::Vector{Float64}, rScale::Vector{Float64}) at sundials_kinsol.jl:132
solveNonlinearEquations! at sundials_kinsol.jl:120 [inlined]
reinitialize!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, tev::Float64) at simulationState.jl:683
eventIteration!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, tev::Float64) at simulationState.jl:775
initialize!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, t0::Float64, nt::Int64, tolerance::Float64) at simulationState.jl:843
simulate!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel; tolerance::Float64, startTime::Float64, stopTime::Float64, interval::Float64, maxStepSize::Float64, maxNumberOfSteps::Missing, log::Bool, KLUorderingChoice::Int64) at simulate.jl:157
simulate! at simulate.jl:113 [inlined]
#simulate#11 at ModiaToModiaMath.jl:180 [inlined]
simulate at ModiaToModiaMath.jl:176 [inlined]
simulate_ida(instance::Modia.Instantiation.Instance, t::Vector{Float64}, jac::Nothing; log::Bool, relTol::Float64, hev::Float64, maxSparsity::Float64, store_eliminated::Bool) at Execution.jl:664
(::Modia.Execution.var"#simulate_ida##kw")(::NamedTuple{(:log, :relTol, :hev), Tuple{Bool, Float64, Float64}}, ::typeof(Modia.Execution.simulate_ida), instance::Modia.Instantiation.Instance, t::Vector{Float64}, jac::Nothing) at Execution.jl:595
#simulate_ida#11 at Execution.jl:587 [inlined]
simulate_ida at Execution.jl:587 [inlined]
simulateModelWithOptions(model::Modia.Instantiation.Model, t::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}}; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) at ModelElaboration.jl:395
simulateModelWithOptions at ModelElaboration.jl:272 [inlined]
checkSimulation(mod::Modia.Instantiation.Model, stopTime::Int64, observer::String, finalSolution::Int64; startTime::Int64, options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) at ModelElaboration.jl:459
checkSimulation(mod::Modia.Instantiation.Model, stopTime::Int64, observer::String, finalSolution::Int64) at ModelElaboration.jl:450
top-level scope at TestVariableTypes.jl:87
top-level scope at Test.jl:1144
top-level scope at TestVariableTypes.jl:48
eval at boot.jl:360 [inlined]
include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String) at loading.jl:1051
_include(mapexpr::Function, mod::Module, _path::String) at loading.jl:1105
include(fname::String) at client.jl:444
top-level scope at runsimulationtests.jl:18
top-level scope at Test.jl:1144
top-level scope at runsimulationtests.jl:16
eval at boot.jl:360 [inlined]
include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String) at loading.jl:1051
_include(mapexpr::Function, mod::Module, _path::String) at loading.jl:1105
include(fname::String) at client.jl:444
top-level scope at runtests.jl:18
top-level scope at Test.jl:1144
top-level scope at runtests.jl:16
eval at boot.jl:360 [inlined]
include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String) at loading.jl:1051
_include(mapexpr::Function, mod::Module, _path::String) at loading.jl:1105
include(fname::String) at client.jl:444
top-level scope at none:6
eval(m::Module, e::Any) at boot.jl:360
exec_options(opts::Base.JLOptions) at client.jl:261
_start() at client.jl:485
End stack trace: --------------- ----------------------------
VariableTypes: Test Failed at /home/pkgeval/.julia/packages/Modia/D0Mdu/src/symbolic/ModelElaboration.jl:485
Expression: false
Stacktrace:
[1] checkSimulation(mod::Modia.Instantiation.Model, stopTime::Int64, observer::String, finalSolution::Int64; startTime::Int64, options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Modia.ModelElaboration ~/.julia/packages/Modia/D0Mdu/src/symbolic/ModelElaboration.jl:485
[2] checkSimulation(mod::Modia.Instantiation.Model, stopTime::Int64, observer::String, finalSolution::Int64)
@ Modia.ModelElaboration ~/.julia/packages/Modia/D0Mdu/src/symbolic/ModelElaboration.jl:450
[3] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/models/TestVariableTypes.jl:87
[4] top-level scope
@ /workspace/srcdir/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1144
[5] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/models/TestVariableTypes.jl:48
VariableTypes: Error During Test at /home/pkgeval/.julia/packages/Modia/D0Mdu/test/models/TestVariableTypes.jl:43
Got exception outside of a @test
KeyError: key "f" not found
Stacktrace:
[1] getindex(h::Dict{Symbol, AbstractVector{T} where T}, key::String)
@ Base ./dict.jl:482
[2] top-level scope
@ show.jl:895
[3] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/models/TestVariableTypes.jl:88
[4] top-level scope
@ /workspace/srcdir/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1144
[5] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/models/TestVariableTypes.jl:48
[6] include(fname::String)
@ Base.MainInclude ./client.jl:444
[7] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runsimulationtests.jl:18
[8] top-level scope
@ /workspace/srcdir/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1144
[9] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runsimulationtests.jl:16
[10] include(fname::String)
@ Base.MainInclude ./client.jl:444
[11] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runtests.jl:18
[12] top-level scope
@ /workspace/srcdir/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1144
[13] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runtests.jl:16
[14] include(fname::String)
@ Base.MainInclude ./client.jl:444
[15] top-level scope
@ none:6
[16] eval(m::Module, e::Any)
@ Core ./boot.jl:360
[17] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:261
[18] _start()
@ Base ./client.jl:485
logTranslation = true
removeSingularities = false
storeEliminated = false
Log file: /home/pkgeval/ModiaResults/Test.txt
Simulating model: Test
Number of equations: 9
Number of variables: 10
Number of continuous states: 1
Time=0.0: size of u: (10, 10)
Time=0.0: size of u: (10, 10)
RunSimulations: Error During Test at /home/pkgeval/.julia/packages/Modia/D0Mdu/test/runsimulationtests.jl:14
Got exception outside of a @test
LoadError: could not load symbol "jl_function_ptr":
/opt/julia/bin/julia: undefined symbol: jl_function_ptr
Stacktrace:
[1] old_cfunction(f::Function, r::Type, a::Type)
@ ModiaMath.NonlinearEquations.KINSOL ~/.julia/packages/ModiaMath/xaGiR/src/NonlinearEquations/sundials_kinsol.jl:20
[2] solveNonlinearEquations!(eqInfo::ModiaMath.NonlinearEquations.KINSOL.NonlinearEquationsInfo, y::Vector{Float64}; FTOL::Float64, yScale::Vector{Float64}, rScale::Vector{Float64})
@ ModiaMath.NonlinearEquations.KINSOL ~/.julia/packages/ModiaMath/xaGiR/src/NonlinearEquations/sundials_kinsol.jl:132
[3] reinitialize!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, tev::Float64)
@ ModiaMath.DAE ~/.julia/packages/ModiaMath/xaGiR/src/DAE/simulationState.jl:683
[4] eventIteration!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, tev::Float64)
@ ModiaMath.DAE ~/.julia/packages/ModiaMath/xaGiR/src/DAE/simulationState.jl:775
[5] initialize!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, t0::Float64, nt::Int64, tolerance::Float64)
@ ModiaMath.DAE ~/.julia/packages/ModiaMath/xaGiR/src/DAE/simulationState.jl:843
[6] simulate!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel; tolerance::Float64, startTime::Float64, stopTime::Float64, interval::Float64, maxStepSize::Float64, maxNumberOfSteps::Missing, log::Bool, KLUorderingChoice::Int64)
@ ModiaMath.SimulationEngine ~/.julia/packages/ModiaMath/xaGiR/src/SimulationEngine/simulate.jl:157
[7] #simulate#11
@ ~/.julia/packages/ModiaMath/xaGiR/src/ModiaToModiaMath.jl:180 [inlined]
[8] simulate_ida(instance::Modia.Instantiation.Instance, t::Vector{Float64}, jac::Nothing; log::Bool, relTol::Float64, hev::Float64, maxSparsity::Float64, store_eliminated::Bool)
@ Modia.Execution ~/.julia/packages/Modia/D0Mdu/src/language/Execution.jl:664
[9] #simulate_ida#11
@ ~/.julia/packages/Modia/D0Mdu/src/language/Execution.jl:587 [inlined]
[10] simulateModelWithOptions(model::Modia.Instantiation.Model, t::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}}; options::Base.Iterators.Pairs{Symbol, Bool, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:storeEliminated, :logTranslation, :removeSingularities), Tuple{Bool, Bool, Bool}}})
@ Modia.ModelElaboration ~/.julia/packages/Modia/D0Mdu/src/symbolic/ModelElaboration.jl:395
[11] #simulate#9
@ ~/.julia/packages/Modia/D0Mdu/src/symbolic/ModelElaboration.jl:432 [inlined]
[12] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/models/TestEquations.jl:49
[13] include(fname::String)
@ Base.MainInclude ./client.jl:444
[14] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runsimulationtests.jl:19
[15] top-level scope
@ /workspace/srcdir/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1144
[16] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runsimulationtests.jl:16
[17] include(fname::String)
@ Base.MainInclude ./client.jl:444
[18] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runtests.jl:18
[19] top-level scope
@ /workspace/srcdir/usr/share/julia/stdlib/v1.6/Test/src/Test.jl:1144
[20] top-level scope
@ ~/.julia/packages/Modia/D0Mdu/test/runtests.jl:16
[21] include(fname::String)
@ Base.MainInclude ./client.jl:444
[22] top-level scope
@ none:6
[23] eval(m::Module, e::Any)
@ Core ./boot.jl:360
[24] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:261
[25] _start()
@ Base ./client.jl:485
in expression starting at /home/pkgeval/.julia/packages/Modia/D0Mdu/test/models/TestEquations.jl:1
CurrentController: Demonstrating the ability to simulate mixed domain models
removeSingularities = false
tearing = true
Simulating model: CurrentController
Number of equations: 83
Number of variables: 91
Number of continuous states: 8
Number of non states: 2
----------------------
Simulation FAILED:
could not load symbol "jl_function_ptr":
/opt/julia/bin/julia: undefined symbol: jl_function_ptr
----------------------
Stack trace: ------------------------------------------------
old_cfunction(f::Function, r::Type, a::Type) at sundials_kinsol.jl:20
solveNonlinearEquations!(eqInfo::ModiaMath.NonlinearEquations.KINSOL.NonlinearEquationsInfo, y::Vector{Float64}; FTOL::Float64, yScale::Vector{Float64}, rScale::Vector{Float64}) at sundials_kinsol.jl:132
solveNonlinearEquations! at sundials_kinsol.jl:120 [inlined]
reinitialize!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, tev::Float64) at simulationState.jl:683
eventIteration!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, tev::Float64) at simulationState.jl:775
initialize!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel, sim::ModiaMath.DAE.SimulationState, t0::Float64, nt::Int64, tolerance::Float64) at simulationState.jl:843
simulate!(model::ModiaMath.ModiaToModiaMath.ModiaSimulationModel; tolerance::Float64, startTime::Float64, stopTime::Float64, interval::Float64, maxStepSize::Float64, maxNumberOfSteps::Missing, log::Bool, KLUorderingChoice::Int64) at simulate.jl:157
simulate! at simulate.jl:113 [inlined]