Bug Summary

File:OMCompiler/Compiler/boot/build/HpcOmScheduler.c
Warning:line 17037, column 11
Value stored to '_rootNodes' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "HpcOmScheduler.h"
8#define _OMC_LIT0_data" | " " | "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,3,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " | "
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data" , " " , "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,3,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), " , "
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data"{}" "{}"
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,2,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "{}"
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data"node: " "node: "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,6,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(6)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)6)<<(3))+((1<<(3+3))+5)), "node: "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data" has the " " has the "
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,9,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), " has the "
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data": " ": "
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,2,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ": "
}
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data"\n" "\n"
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,1,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "\n"
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29#define _OMC_LIT7_data"The " "The "
30static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,4,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "The "
}
;
31#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
32#define _OMC_LIT8_data"-----------------------------------------\n" "-----------------------------------------\n"
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,42,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "-----------------------------------------\n"
}
;
34#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
35#define _OMC_LIT9_data"ConvertFixedLevelScheduleToTaskListsForTask can just handle CALCTASK_LEVEL with defined thread idx!\n" "ConvertFixedLevelScheduleToTaskListsForTask can just handle CALCTASK_LEVEL with defined thread idx!\n"
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,100,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(100)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)100)<<(3))+((1<<(3+3))+5)), "ConvertFixedLevelScheduleToTaskListsForTask can just handle CALCTASK_LEVEL with defined thread idx!\n"
}
;
37#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
38static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT10,3,0)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT10
= { (((3) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
39#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
40#define _OMC_LIT11_data"Scheduled task" "Scheduled task"
41static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,14,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "Scheduled task"
}
;
42#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
43#define _OMC_LIT12_data"Calctask" "Calctask"
44static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,8,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "Calctask"
}
;
45#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
46#define _OMC_LIT13_data"Calctask level" "Calctask level"
47static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT13,14,_OMC_LIT13_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT13
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "Calctask level"
}
;
48#define _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT13)((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3))
49#define _OMC_LIT14_data"Deptask" "Deptask"
50static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT14,7,_OMC_LIT14_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT14
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "Deptask"
}
;
51#define _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT14)((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3))
52#define _OMC_LIT15_data"Prefetch task" "Prefetch task"
53static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT15,13,_OMC_LIT15_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT15
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "Prefetch task"
}
;
54#define _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT15)((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3))
55#define _OMC_LIT16_data"Empty task" "Empty task"
56static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT16,10,_OMC_LIT16_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT16
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "Empty task"
}
;
57#define _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT16)((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3))
58#define _OMC_LIT17_data"Unknown" "Unknown"
59static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT17,7,_OMC_LIT17_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT17
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "Unknown"
}
;
60#define _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT17)((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3))
61static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT18,1,8)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT18
= { (((1) << 10) + (((8) & 255) << 2)),
{&HpcOmSimCode_Task_TASKEMPTY__desc,}};
62#define _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT18)((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))
63static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT19,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT19
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3))}};
64#define _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT19)((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3))
65#define _OMC_LIT20_data"computeTimeFinished failed!\n" "computeTimeFinished failed!\n"
66static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT20,28,_OMC_LIT20_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT20
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "computeTimeFinished failed!\n"
}
;
67#define _OMC_LIT20((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT20)((void*)((char*)(&(_OMC_LIT_STRUCT20).header) + 3))
68static const MMC_DEFREALLIT(_OMC_LIT_STRUCT21,0.0)struct mmc_real_lit _OMC_LIT_STRUCT21 = {0,(((8/8) << 10
) + 9),0.0}
;
69#define _OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT21)((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))
70#define _OMC_LIT22_data"getFinishingTimesForSchedule failed\n" "getFinishingTimesForSchedule failed\n"
71static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT22,36,_OMC_LIT22_data)struct { mmc_uint_t header; const char data[(36)+1]; } _OMC_LIT_STRUCT22
= { ((((mmc_uint_t)36)<<(3))+((1<<(3+3))+5)), "getFinishingTimesForSchedule failed\n"
}
;
72#define _OMC_LIT22((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT22)((void*)((char*)(&(_OMC_LIT_STRUCT22).header) + 3))
73#define _OMC_LIT23_data"The predicted SpeedUp with " "The predicted SpeedUp with "
74static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT23,27,_OMC_LIT23_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT23
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "The predicted SpeedUp with "
}
;
75#define _OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT23)((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3))
76#define _OMC_LIT24_data" processors is " " processors is "
77static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT24,15,_OMC_LIT24_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT24
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), " processors is "
}
;
78#define _OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT24)((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3))
79#define _OMC_LIT25_data"%.2f" "%.2f"
80static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT25,4,_OMC_LIT25_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT25
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "%.2f"
}
;
81#define _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT25)((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3))
82#define _OMC_LIT26_data".\n" ".\n"
83static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT26,2,_OMC_LIT26_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT26
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ".\n"
}
;
84#define _OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT26)((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3))
85#define _OMC_LIT27_data"hpcomDump" "hpcomDump"
86static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT27,9,_OMC_LIT27_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT27
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "hpcomDump"
}
;
87#define _OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT27)((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3))
88#define _OMC_LIT28_data"Dumps additional information on the parallel execution with hpcom." "Dumps additional information on the parallel execution with hpcom."
89static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT28,66,_OMC_LIT28_data)struct { mmc_uint_t header; const char data[(66)+1]; } _OMC_LIT_STRUCT28
= { ((((mmc_uint_t)66)<<(3))+((1<<(3+3))+5)), "Dumps additional information on the parallel execution with hpcom."
}
;
90#define _OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT28)((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))
91static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT29,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT29
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT28((void*)((char*)(&(_OMC_LIT_STRUCT28).header) + 3))}};
92#define _OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT29)((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))
93static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT30,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT30
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(97))((void*)(((((mmc_uint_t) (97)) << 1)+0))),_OMC_LIT27((void*)((char*)(&(_OMC_LIT_STRUCT27).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT29((void*)((char*)(&(_OMC_LIT_STRUCT29).header) + 3))}};
94#define _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT30)((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))
95#define _OMC_LIT31_data" processors is: " " processors is: "
96static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT31,16,_OMC_LIT31_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT31
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), " processors is: "
}
;
97#define _OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT31)((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3))
98#define _OMC_LIT32_data" With a theoretical maximmum speedUp of: " " With a theoretical maximmum speedUp of: "
99static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT32,41,_OMC_LIT32_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT32
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), " With a theoretical maximmum speedUp of: "
}
;
100#define _OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT32)((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3))
101#define _OMC_LIT33_data"Something is weird. The predicted SpeedUp is " "Something is weird. The predicted SpeedUp is "
102static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT33,45,_OMC_LIT33_data)struct { mmc_uint_t header; const char data[(45)+1]; } _OMC_LIT_STRUCT33
= { ((((mmc_uint_t)45)<<(3))+((1<<(3+3))+5)), "Something is weird. The predicted SpeedUp is "
}
;
103#define _OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT33)((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3))
104#define _OMC_LIT34_data" and the theoretical maximum speedUp is " " and the theoretical maximum speedUp is "
105static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT34,40,_OMC_LIT34_data)struct { mmc_uint_t header; const char data[(40)+1]; } _OMC_LIT_STRUCT34
= { ((((mmc_uint_t)40)<<(3))+((1<<(3+3))+5)), " and the theoretical maximum speedUp is "
}
;
106#define _OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT34)((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3))
107#define _OMC_LIT35_data"getLevelTaskCosts failed!\n" "getLevelTaskCosts failed!\n"
108static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT35,26,_OMC_LIT35_data)struct { mmc_uint_t header; const char data[(26)+1]; } _OMC_LIT_STRUCT35
= { ((((mmc_uint_t)26)<<(3))+((1<<(3+3))+5)), "getLevelTaskCosts failed!\n"
}
;
109#define _OMC_LIT35((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT35)((void*)((char*)(&(_OMC_LIT_STRUCT35).header) + 3))
110#define _OMC_LIT36_data"getTasksOfTaskList failed! Unsupported task list.\n" "getTasksOfTaskList failed! Unsupported task list.\n"
111static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT36,50,_OMC_LIT36_data)struct { mmc_uint_t header; const char data[(50)+1]; } _OMC_LIT_STRUCT36
= { ((((mmc_uint_t)50)<<(3))+((1<<(3+3))+5)), "getTasksOfTaskList failed! Unsupported task list.\n"
}
;
112#define _OMC_LIT36((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT36)((void*)((char*)(&(_OMC_LIT_STRUCT36).header) + 3))
113#define _OMC_LIT37_data"the serialCosts: " "the serialCosts: "
114static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT37,17,_OMC_LIT37_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT37
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "the serialCosts: "
}
;
115#define _OMC_LIT37((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT37)((void*)((char*)(&(_OMC_LIT_STRUCT37).header) + 3))
116#define _OMC_LIT38_data"the parallelCosts: " "the parallelCosts: "
117static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT38,19,_OMC_LIT38_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT38
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "the parallelCosts: "
}
;
118#define _OMC_LIT38((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT38)((void*)((char*)(&(_OMC_LIT_STRUCT38).header) + 3))
119#define _OMC_LIT39_data"the cpCosts: " "the cpCosts: "
120static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT39,13,_OMC_LIT39_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT39
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "the cpCosts: "
}
;
121#define _OMC_LIT39((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT39)((void*)((char*)(&(_OMC_LIT_STRUCT39).header) + 3))
122#define _OMC_LIT40_data" costs for level " " costs for level "
123static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT40,17,_OMC_LIT40_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT40
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), " costs for level "
}
;
124#define _OMC_LIT40((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT40)((void*)((char*)(&(_OMC_LIT_STRUCT40).header) + 3))
125#define _OMC_LIT41_data" (" " ("
126static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT41,2,_OMC_LIT41_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT41
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), " ("
}
;
127#define _OMC_LIT41((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT41)((void*)((char*)(&(_OMC_LIT_STRUCT41).header) + 3))
128#define _OMC_LIT42_data"%.0f" "%.0f"
129static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT42,4,_OMC_LIT42_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT42
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "%.0f"
}
;
130#define _OMC_LIT42((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT42)((void*)((char*)(&(_OMC_LIT_STRUCT42).header) + 3))
131#define _OMC_LIT43_data"%)\n" "%)\n"
132static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT43,3,_OMC_LIT43_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT43
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "%)\n"
}
;
133#define _OMC_LIT43((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT43)((void*)((char*)(&(_OMC_LIT_STRUCT43).header) + 3))
134#define _OMC_LIT44_data"the number of locks: " "the number of locks: "
135static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT44,21,_OMC_LIT44_data)struct { mmc_uint_t header; const char data[(21)+1]; } _OMC_LIT_STRUCT44
= { ((((mmc_uint_t)21)<<(3))+((1<<(3+3))+5)), "the number of locks: "
}
;
136#define _OMC_LIT44((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT44)((void*)((char*)(&(_OMC_LIT_STRUCT44).header) + 3))
137#define _OMC_LIT45_data"There is no parallel potential in the " "There is no parallel potential in the "
138static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT45,38,_OMC_LIT45_data)struct { mmc_uint_t header; const char data[(38)+1]; } _OMC_LIT_STRUCT45
= { ((((mmc_uint_t)38)<<(3))+((1<<(3+3))+5)), "There is no parallel potential in the "
}
;
139#define _OMC_LIT45((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT45)((void*)((char*)(&(_OMC_LIT_STRUCT45).header) + 3))
140#define _OMC_LIT46_data" model!\n" " model!\n"
141static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT46,8,_OMC_LIT46_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT46
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), " model!\n"
}
;
142#define _OMC_LIT46((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT46)((void*)((char*)(&(_OMC_LIT_STRUCT46).header) + 3))
143#define _OMC_LIT47_data" model is not big enough to perform an effective parallel simulation!\n" " model is not big enough to perform an effective parallel simulation!\n"
144static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT47,70,_OMC_LIT47_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT47
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), " model is not big enough to perform an effective parallel simulation!\n"
}
;
145#define _OMC_LIT47((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT47)((void*)((char*)(&(_OMC_LIT_STRUCT47).header) + 3))
146#define _OMC_LIT48_data"HpcOmScheduler.analyseScheduledTaskGraph failed\n" "HpcOmScheduler.analyseScheduledTaskGraph failed\n"
147static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT48,48,_OMC_LIT48_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT48
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.analyseScheduledTaskGraph failed\n"
}
;
148#define _OMC_LIT48((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT48)((void*)((char*)(&(_OMC_LIT_STRUCT48).header) + 3))
149#define _OMC_LIT49_data"\nDependency tasks: {\n" "\nDependency tasks: {\n"
150static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT49,21,_OMC_LIT49_data)struct { mmc_uint_t header; const char data[(21)+1]; } _OMC_LIT_STRUCT49
= { ((((mmc_uint_t)21)<<(3))+((1<<(3+3))+5)), "\nDependency tasks: {\n"
}
;
151#define _OMC_LIT49((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT49)((void*)((char*)(&(_OMC_LIT_STRUCT49).header) + 3))
152#define _OMC_LIT50_data"" ""
153static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT50,0,_OMC_LIT50_data)struct { mmc_uint_t header; const char data[(0)+1]; } _OMC_LIT_STRUCT50
= { ((((mmc_uint_t)0)<<(3))+((1<<(3+3))+5)), "" }
;
154#define _OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT50)((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3))
155#define _OMC_LIT51_data"}\n" "}\n"
156static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT51,2,_OMC_LIT51_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT51
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "}\n"
}
;
157#define _OMC_LIT51((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT51)((void*)((char*)(&(_OMC_LIT_STRUCT51).header) + 3))
158#define _OMC_LIT52_data"THREADSCHEDULE\n" "THREADSCHEDULE\n"
159static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT52,15,_OMC_LIT52_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT52
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "THREADSCHEDULE\n"
}
;
160#define _OMC_LIT52((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT52)((void*)((char*)(&(_OMC_LIT_STRUCT52).header) + 3))
161#define _OMC_LIT53_data"LEVELSCHEDULE\n" "LEVELSCHEDULE\n"
162static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT53,14,_OMC_LIT53_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT53
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "LEVELSCHEDULE\n"
}
;
163#define _OMC_LIT53((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT53)((void*)((char*)(&(_OMC_LIT_STRUCT53).header) + 3))
164#define _OMC_LIT54_data"TASKDEPSCHEDULE\n" "TASKDEPSCHEDULE\n"
165static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT54,16,_OMC_LIT54_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT54
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "TASKDEPSCHEDULE\n"
}
;
166#define _OMC_LIT54((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT54)((void*)((char*)(&(_OMC_LIT_STRUCT54).header) + 3))
167#define _OMC_LIT55_data"EMPTYSCHEDULE\n" "EMPTYSCHEDULE\n"
168static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT55,14,_OMC_LIT55_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT55
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "EMPTYSCHEDULE\n"
}
;
169#define _OMC_LIT55((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT55)((void*)((char*)(&(_OMC_LIT_STRUCT55).header) + 3))
170static const MMC_DEFREALLIT(_OMC_LIT_STRUCT56,-1.0)struct mmc_real_lit _OMC_LIT_STRUCT56 = {0,(((8/8) << 10
) + 9),-1.0}
;
171#define _OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT56)((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))
172#define _OMC_LIT57_data"computeGraphValuesBottomUp2 failed!\n" "computeGraphValuesBottomUp2 failed!\n"
173static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT57,36,_OMC_LIT57_data)struct { mmc_uint_t header; const char data[(36)+1]; } _OMC_LIT_STRUCT57
= { ((((mmc_uint_t)36)<<(3))+((1<<(3+3))+5)), "computeGraphValuesBottomUp2 failed!\n"
}
;
174#define _OMC_LIT57((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT57)((void*)((char*)(&(_OMC_LIT_STRUCT57).header) + 3))
175static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT58,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT58
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
176#define _OMC_LIT58((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT58)((void*)((char*)(&(_OMC_LIT_STRUCT58).header) + 3))
177static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT59,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT59
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
178#define _OMC_LIT59((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT59)((void*)((char*)(&(_OMC_LIT_STRUCT59).header) + 3))
179#define _OMC_LIT60_data"createSchedulerFromAssignments failed.implement this!\n" "createSchedulerFromAssignments failed.implement this!\n"
180static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT60,54,_OMC_LIT60_data)struct { mmc_uint_t header; const char data[(54)+1]; } _OMC_LIT_STRUCT60
= { ((((mmc_uint_t)54)<<(3))+((1<<(3+3))+5)), "createSchedulerFromAssignments failed.implement this!\n"
}
;
181#define _OMC_LIT60((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT60)((void*)((char*)(&(_OMC_LIT_STRUCT60).header) + 3))
182#define _OMC_LIT61_data"this is not a thread schedule!\n" "this is not a thread schedule!\n"
183static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT61,31,_OMC_LIT61_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT61
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "this is not a thread schedule!\n"
}
;
184#define _OMC_LIT61((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT61)((void*)((char*)(&(_OMC_LIT_STRUCT61).header) + 3))
185#define _OMC_LIT62_data"MCP_getTaskAssignment1 failed!\n" "MCP_getTaskAssignment1 failed!\n"
186static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT62,31,_OMC_LIT62_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT62
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "MCP_getTaskAssignment1 failed!\n"
}
;
187#define _OMC_LIT62((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT62)((void*)((char*)(&(_OMC_LIT_STRUCT62).header) + 3))
188#define _OMC_LIT63_data"number of removed superfluous locks: " "number of removed superfluous locks: "
189static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT63,37,_OMC_LIT63_data)struct { mmc_uint_t header; const char data[(37)+1]; } _OMC_LIT_STRUCT63
= { ((((mmc_uint_t)37)<<(3))+((1<<(3+3))+5)), "number of removed superfluous locks: "
}
;
190#define _OMC_LIT63((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT63)((void*)((char*)(&(_OMC_LIT_STRUCT63).header) + 3))
191static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT64,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT64
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(2))((void*)(((((mmc_uint_t) (2)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
192#define _OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT64)((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))
193static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT65,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT65
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(16))((void*)(((((mmc_uint_t) (16)) << 1)+0))),_OMC_LIT64((void*)((char*)(&(_OMC_LIT_STRUCT64).header) + 3))}};
194#define _OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT65)((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))
195static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT66,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT66
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(15))((void*)(((((mmc_uint_t) (15)) << 1)+0))),_OMC_LIT65((void*)((char*)(&(_OMC_LIT_STRUCT65).header) + 3))}};
196#define _OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT66)((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))
197static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT67,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT67
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(7))((void*)(((((mmc_uint_t) (7)) << 1)+0))),_OMC_LIT66((void*)((char*)(&(_OMC_LIT_STRUCT66).header) + 3))}};
198#define _OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT67)((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))
199static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT68,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT68
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(20))((void*)(((((mmc_uint_t) (20)) << 1)+0))),_OMC_LIT67((void*)((char*)(&(_OMC_LIT_STRUCT67).header) + 3))}};
200#define _OMC_LIT68((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT68)((void*)((char*)(&(_OMC_LIT_STRUCT68).header) + 3))
201static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT69,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT69
= { (((2) << 10) + (((3) & 255) << 2)),
{&HpcOmSimCode_TaskList_PARALLELTASKLIST__desc,MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
202#define _OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT69)((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))
203static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT70,2,6)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT70
= { (((2) << 10) + (((6) & 255) << 2)),
{&HpcOmSimCode_Schedule_EMPTYSCHEDULE__desc,_OMC_LIT69((void*)((char*)(&(_OMC_LIT_STRUCT69).header) + 3))}};
204#define _OMC_LIT70((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT70)((void*)((char*)(&(_OMC_LIT_STRUCT70).header) + 3))
205#define _OMC_LIT71_data"HpcOmScheduler.createPartSchedule failed\n" "HpcOmScheduler.createPartSchedule failed\n"
206static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT71,41,_OMC_LIT71_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT71
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createPartSchedule failed\n"
}
;
207#define _OMC_LIT71((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT71)((void*)((char*)(&(_OMC_LIT_STRUCT71).header) + 3))
208#define _OMC_LIT72_data"failtrace" "failtrace"
209static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT72,9,_OMC_LIT72_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT72
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), "failtrace"
}
;
210#define _OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT72)((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3))
211#define _OMC_LIT73_data"Sets whether to print a failtrace or not." "Sets whether to print a failtrace or not."
212static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT73,41,_OMC_LIT73_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT73
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "Sets whether to print a failtrace or not."
}
;
213#define _OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT73)((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))
214static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT74,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT74
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT73((void*)((char*)(&(_OMC_LIT_STRUCT73).header) + 3))}};
215#define _OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT74)((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))
216static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT75,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT75
= { (((5) << 10) + (((3) & 255) << 2)),
{&Flags_DebugFlag_DEBUG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT72((void*)((char*)(&(_OMC_LIT_STRUCT72).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT74((void*)((char*)(&(_OMC_LIT_STRUCT74).header) + 3))}};
217#define _OMC_LIT75((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT75)((void*)((char*)(&(_OMC_LIT_STRUCT75).header) + 3))
218static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT76,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT76
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
219#define _OMC_LIT76((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT76)((void*)((char*)(&(_OMC_LIT_STRUCT76).header) + 3))
220#define _OMC_LIT77_data"TDS_InitialCluster1 failed\n" "TDS_InitialCluster1 failed\n"
221static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT77,27,_OMC_LIT77_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT77
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "TDS_InitialCluster1 failed\n"
}
;
222#define _OMC_LIT77((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT77)((void*)((char*)(&(_OMC_LIT_STRUCT77).header) + 3))
223static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT78,1,11)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT78
= { (((1) << 10) + (((11) & 255) << 2)),
{&DAE_Type_T__UNKNOWN__desc,}};
224#define _OMC_LIT78((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT78)((void*)((char*)(&(_OMC_LIT_STRUCT78).header) + 3))
225#define _OMC_LIT79_data"implement Jacobian replacement for SES_NONLINEAR in HpcOmScheduler.replaceExpsInSimEqSystems!\n" "implement Jacobian replacement for SES_NONLINEAR in HpcOmScheduler.replaceExpsInSimEqSystems!\n"
226static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT79,94,_OMC_LIT79_data)struct { mmc_uint_t header; const char data[(94)+1]; } _OMC_LIT_STRUCT79
= { ((((mmc_uint_t)94)<<(3))+((1<<(3+3))+5)), "implement Jacobian replacement for SES_NONLINEAR in HpcOmScheduler.replaceExpsInSimEqSystems!\n"
}
;
227#define _OMC_LIT79((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT79)((void*)((char*)(&(_OMC_LIT_STRUCT79).header) + 3))
228#define _OMC_LIT80_data"replaceExpsInSimEqSystem failed\n" "replaceExpsInSimEqSystem failed\n"
229static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT80,32,_OMC_LIT80_data)struct { mmc_uint_t header; const char data[(32)+1]; } _OMC_LIT_STRUCT80
= { ((((mmc_uint_t)32)<<(3))+((1<<(3+3))+5)), "replaceExpsInSimEqSystem failed\n"
}
;
230#define _OMC_LIT80((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT80)((void*)((char*)(&(_OMC_LIT_STRUCT80).header) + 3))
231static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT81,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT81
= { (((8) << 10) + (((3) & 255) << 2)),
{&SourceInfo_SOURCEINFO__desc,_OMC_LIT50((void*)((char*)(&(_OMC_LIT_STRUCT50).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT21((void*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))}};
232#define _OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT81)((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3))
233static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT82,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT82
= { (((1) << 10) + (((4) & 255) << 2)),
{&DAE_ComponentPrefix_NOCOMPPRE__desc,}};
234#define _OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT82)((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3))
235static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT83,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT83
= { (((8) << 10) + (((3) & 255) << 2)),
{&DAE_ElementSource_SOURCE__desc,_OMC_LIT81((void*)((char*)(&(_OMC_LIT_STRUCT81).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),_OMC_LIT82((void*)((char*)(&(_OMC_LIT_STRUCT82).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
236#define _OMC_LIT83((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT83)((void*)((char*)(&(_OMC_LIT_STRUCT83).header) + 3))
237static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT84,1,9)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT84
= { (((1) << 10) + (((9) & 255) << 2)),
{&BackendDAE_EquationKind_UNKNOWN__EQUATION__KIND__desc,}};
238#define _OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT84)((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3))
239static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT85,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT85
= { (((5) << 10) + (((3) & 255) << 2)),
{&BackendDAE_EvaluationStages_EVALUATION__STAGES__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
240#define _OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT85)((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3))
241static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT86,4,3)struct { mmc_uint_t header; const void *data[4]; } _OMC_LIT_STRUCT86
= { (((4) << 10) + (((3) & 255) << 2)),
{&BackendDAE_EquationAttributes_EQUATION__ATTRIBUTES__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT84((void*)((char*)(&(_OMC_LIT_STRUCT84).header) + 3)),_OMC_LIT85((void*)((char*)(&(_OMC_LIT_STRUCT85).header) + 3))}};
242#define _OMC_LIT86((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT86)((void*)((char*)(&(_OMC_LIT_STRUCT86).header) + 3))
243#define _OMC_LIT87_data"_thr" "_thr"
244static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT87,4,_OMC_LIT87_data)struct { mmc_uint_t header; const char data[(4)+1]; } _OMC_LIT_STRUCT87
= { ((((mmc_uint_t)4)<<(3))+((1<<(3+3))+5)), "_thr"
}
;
245#define _OMC_LIT87((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT87)((void*)((char*)(&(_OMC_LIT_STRUCT87).header) + 3))
246#define _OMC_LIT88_data"There are less initial clusters than processors. we need duplication, but since this is a rare case, it is not done. Less processors are used.\n" "There are less initial clusters than processors. we need duplication, but since this is a rare case, it is not done. Less processors are used.\n"
247static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT88,143,_OMC_LIT88_data)struct { mmc_uint_t header; const char data[(143)+1]; } _OMC_LIT_STRUCT88
= { ((((mmc_uint_t)143)<<(3))+((1<<(3+3))+5)), "There are less initial clusters than processors. we need duplication, but since this is a rare case, it is not done. Less processors are used.\n"
}
;
248#define _OMC_LIT88((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT88)((void*)((char*)(&(_OMC_LIT_STRUCT88).header) + 3))
249#define _OMC_LIT89_data"numProcs" "numProcs"
250static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT89,8,_OMC_LIT89_data)struct { mmc_uint_t header; const char data[(8)+1]; } _OMC_LIT_STRUCT89
= { ((((mmc_uint_t)8)<<(3))+((1<<(3+3))+5)), "numProcs"
}
;
251#define _OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT89)((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3))
252#define _OMC_LIT90_data"n" "n"
253static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT90,1,_OMC_LIT90_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT90
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), "n"
}
;
254#define _OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT90)((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3))
255static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT91,1,1)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT91
= { (((1) << 10) + (((1) & 255) << 2)),
{_OMC_LIT90((void*)((char*)(&(_OMC_LIT_STRUCT90).header) + 3))}};
256#define _OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT91)((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3))
257static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT92,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT92
= { (((1) << 10) + (((4) & 255) << 2)),
{&Flags_FlagVisibility_EXTERNAL__desc,}};
258#define _OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT92)((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3))
259static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT93,2,5)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT93
= { (((2) << 10) + (((5) & 255) << 2)),
{&Flags_FlagData_INT__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
260#define _OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT93)((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3))
261#define _OMC_LIT94_data"Sets the number of processors to use (0=default=auto)." "Sets the number of processors to use (0=default=auto)."
262static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT94,54,_OMC_LIT94_data)struct { mmc_uint_t header; const char data[(54)+1]; } _OMC_LIT_STRUCT94
= { ((((mmc_uint_t)54)<<(3))+((1<<(3+3))+5)), "Sets the number of processors to use (0=default=auto)."
}
;
263#define _OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT94)((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3))
264static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT95,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT95
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT94((void*)((char*)(&(_OMC_LIT_STRUCT94).header) + 3))}};
265#define _OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT95)((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3))
266static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT96,8,3)struct { mmc_uint_t header; const void *data[8]; } _OMC_LIT_STRUCT96
= { (((8) << 10) + (((3) & 255) << 2)),
{&Flags_ConfigFlag_CONFIG__FLAG__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(24))((void*)(((((mmc_uint_t) (24)) << 1)+0))),_OMC_LIT89((void*)((char*)(&(_OMC_LIT_STRUCT89).header) + 3)),_OMC_LIT91((void*)((char*)(&(_OMC_LIT_STRUCT91).header) + 3)),_OMC_LIT92((void*)((char*)(&(_OMC_LIT_STRUCT92).header) + 3)),_OMC_LIT93((void*)((char*)(&(_OMC_LIT_STRUCT93).header) + 3)),MMC_REFSTRUCTLIT(mmc_none)((void*)((char*)(&(mmc_none).header) + 3)),_OMC_LIT95((void*)((char*)(&(_OMC_LIT_STRUCT95).header) + 3))}};
267#define _OMC_LIT96((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT96)((void*)((char*)(&(_OMC_LIT_STRUCT96).header) + 3))
268static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT97,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT97
= { (((2) << 10) + (((0) & 255) << 2)),
{_OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
269#define _OMC_LIT97((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT97)((void*)((char*)(&(_OMC_LIT_STRUCT97).header) + 3))
270static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT98,3,0)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT98
= { (((3) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0)))}};
271#define _OMC_LIT98((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT98)((void*)((char*)(&(_OMC_LIT_STRUCT98).header) + 3))
272#define _OMC_LIT99_data"duplicated" "duplicated"
273static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT99,10,_OMC_LIT99_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT99
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "duplicated"
}
;
274#define _OMC_LIT99((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT99)((void*)((char*)(&(_OMC_LIT_STRUCT99).header) + 3))
275static const MMC_DEFREALLIT(_OMC_LIT_STRUCT100,1.0)struct mmc_real_lit _OMC_LIT_STRUCT100 = {0,(((8/8) << 10
) + 9),1.0}
;
276#define _OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3)) MMC_REFREALLIT(_OMC_LIT_STRUCT100)((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3))
277static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT101,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT101
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),_OMC_LIT100((void*)((char*)(&(_OMC_LIT_STRUCT100).header) + 3))}};
278#define _OMC_LIT101((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT101)((void*)((char*)(&(_OMC_LIT_STRUCT101).header) + 3))
279#define _OMC_LIT102_data"TDS_schedule1 failed!\n" "TDS_schedule1 failed!\n"
280static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT102,22,_OMC_LIT102_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT102
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "TDS_schedule1 failed!\n"
}
;
281#define _OMC_LIT102((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT102)((void*)((char*)(&(_OMC_LIT_STRUCT102).header) + 3))
282static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT103,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT103
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
283#define _OMC_LIT103((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT103)((void*)((char*)(&(_OMC_LIT_STRUCT103).header) + 3))
284#define _OMC_LIT104_data"HpcOmScheduler.createExtSchedule1 failed. Tasks in List:\n" "HpcOmScheduler.createExtSchedule1 failed. Tasks in List:\n"
285static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT104,57,_OMC_LIT104_data)struct { mmc_uint_t header; const char data[(57)+1]; } _OMC_LIT_STRUCT104
= { ((((mmc_uint_t)57)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createExtSchedule1 failed. Tasks in List:\n"
}
;
286#define _OMC_LIT104((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT104)((void*)((char*)(&(_OMC_LIT_STRUCT104).header) + 3))
287#define _OMC_LIT105_data"HpcOmScheduler.createExtSchedule not every node has a scheduler-info.\n" "HpcOmScheduler.createExtSchedule not every node has a scheduler-info.\n"
288static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT105,70,_OMC_LIT105_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT105
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createExtSchedule not every node has a scheduler-info.\n"
}
;
289#define _OMC_LIT105((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT105)((void*)((char*)(&(_OMC_LIT_STRUCT105).header) + 3))
290static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT106,2,1)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT106
= { (((2) << 10) + (((1) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
291#define _OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT106)((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3))
292static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT107,5,0)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT107
= { (((5) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(0))((void*)(((((mmc_uint_t) (0)) << 1)+0))),_OMC_LIT106((void*)((char*)(&(_OMC_LIT_STRUCT106).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
293#define _OMC_LIT107((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT107)((void*)((char*)(&(_OMC_LIT_STRUCT107).header) + 3))
294#define _OMC_LIT108_data"Diagnostic length: " "Diagnostic length: "
295static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT108,19,_OMC_LIT108_data)struct { mmc_uint_t header; const char data[(19)+1]; } _OMC_LIT_STRUCT108
= { ((((mmc_uint_t)19)<<(3))+((1<<(3+3))+5)), "Diagnostic length: "
}
;
296#define _OMC_LIT108((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT108)((void*)((char*)(&(_OMC_LIT_STRUCT108).header) + 3))
297#define _OMC_LIT109_data" " " "
298static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT109,1,_OMC_LIT109_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT109
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
299#define _OMC_LIT109((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT109)((void*)((char*)(&(_OMC_LIT_STRUCT109).header) + 3))
300#define _OMC_LIT110_data"l_eint length:" "l_eint length:"
301static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT110,14,_OMC_LIT110_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT110
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "l_eint length:"
}
;
302#define _OMC_LIT110((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT110)((void*)((char*)(&(_OMC_LIT_STRUCT110).header) + 3))
303static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT111,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT111
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
304#define _OMC_LIT111((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT111)((void*)((char*)(&(_OMC_LIT_STRUCT111).header) + 3))
305#define _OMC_LIT112_data"Funktionsaufruf!" "Funktionsaufruf!"
306static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT112,16,_OMC_LIT112_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT112
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Funktionsaufruf!"
}
;
307#define _OMC_LIT112((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT112)((void*)((char*)(&(_OMC_LIT_STRUCT112).header) + 3))
308#define _OMC_LIT113_data"Hier geht MetaModelica los!\n" "Hier geht MetaModelica los!\n"
309static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT113,28,_OMC_LIT113_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT113
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "Hier geht MetaModelica los!\n"
}
;
310#define _OMC_LIT113((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT113)((void*)((char*)(&(_OMC_LIT_STRUCT113).header) + 3))
311#define _OMC_LIT114_data"External scheduling info: " "External scheduling info: "
312static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT114,26,_OMC_LIT114_data)struct { mmc_uint_t header; const char data[(26)+1]; } _OMC_LIT_STRUCT114
= { ((((mmc_uint_t)26)<<(3))+((1<<(3+3))+5)), "External scheduling info: "
}
;
313#define _OMC_LIT114((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT114)((void*)((char*)(&(_OMC_LIT_STRUCT114).header) + 3))
314#define _OMC_LIT115_data"," ","
315static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT115,1,_OMC_LIT115_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT115
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), ","
}
;
316#define _OMC_LIT115((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT115)((void*)((char*)(&(_OMC_LIT_STRUCT115).header) + 3))
317#define _OMC_LIT116_data"HpcOmScheduler.createHMetisSchedule not every node has a scheduler-info.\n" "HpcOmScheduler.createHMetisSchedule not every node has a scheduler-info.\n"
318static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT116,73,_OMC_LIT116_data)struct { mmc_uint_t header; const char data[(73)+1]; } _OMC_LIT_STRUCT116
= { ((((mmc_uint_t)73)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createHMetisSchedule not every node has a scheduler-info.\n"
}
;
319#define _OMC_LIT116((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT116)((void*)((char*)(&(_OMC_LIT_STRUCT116).header) + 3))
320#define _OMC_LIT117_data"HpcOmScheduler.createMetisSchedule not every node has a scheduler-info.\n" "HpcOmScheduler.createMetisSchedule not every node has a scheduler-info.\n"
321static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT117,72,_OMC_LIT117_data)struct { mmc_uint_t header; const char data[(72)+1]; } _OMC_LIT_STRUCT117
= { ((((mmc_uint_t)72)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createMetisSchedule not every node has a scheduler-info.\n"
}
;
322#define _OMC_LIT117((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT117)((void*)((char*)(&(_OMC_LIT_STRUCT117).header) + 3))
323static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT118,2,0)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT118
= { (((2) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0))),MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3))}};
324#define _OMC_LIT118((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT118)((void*)((char*)(&(_OMC_LIT_STRUCT118).header) + 3))
325#define _OMC_LIT119_data"HpcOmScheduler.createTaskDepSchedule failed.\n" "HpcOmScheduler.createTaskDepSchedule failed.\n"
326static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT119,45,_OMC_LIT119_data)struct { mmc_uint_t header; const char data[(45)+1]; } _OMC_LIT_STRUCT119
= { ((((mmc_uint_t)45)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createTaskDepSchedule failed.\n"
}
;
327#define _OMC_LIT119((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT119)((void*)((char*)(&(_OMC_LIT_STRUCT119).header) + 3))
328#define _OMC_LIT120_data"getFirstReadyThread0 failed\n" "getFirstReadyThread0 failed\n"
329static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT120,28,_OMC_LIT120_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT120
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "getFirstReadyThread0 failed\n"
}
;
330#define _OMC_LIT120((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT120)((void*)((char*)(&(_OMC_LIT_STRUCT120).header) + 3))
331static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT121,3,0)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT121
= { (((3) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(-1))((void*)(((((mmc_uint_t) (-1)) << 1)+0))),_OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3)),MMC_IMMEDIATE(MMC_TAGFIXNUM(1))((void*)(((((mmc_uint_t) (1)) << 1)+0)))}};
332#define _OMC_LIT121((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT121)((void*)((char*)(&(_OMC_LIT_STRUCT121).header) + 3))
333#define _OMC_LIT122_data"Parallel Level " "Parallel Level "
334static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT122,15,_OMC_LIT122_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT122
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "Parallel Level "
}
;
335#define _OMC_LIT122((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT122)((void*)((char*)(&(_OMC_LIT_STRUCT122).header) + 3))
336#define _OMC_LIT123_data":\n" ":\n"
337static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT123,2,_OMC_LIT123_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT123
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ":\n"
}
;
338#define _OMC_LIT123((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT123)((void*)((char*)(&(_OMC_LIT_STRUCT123).header) + 3))
339#define _OMC_LIT124_data"Serial Level " "Serial Level "
340static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT124,13,_OMC_LIT124_data)struct { mmc_uint_t header; const char data[(13)+1]; } _OMC_LIT_STRUCT124
= { ((((mmc_uint_t)13)<<(3))+((1<<(3+3))+5)), "Serial Level "
}
;
341#define _OMC_LIT124((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT124)((void*)((char*)(&(_OMC_LIT_STRUCT124).header) + 3))
342#define _OMC_LIT125_data"printLevelSchedule failed!\n" "printLevelSchedule failed!\n"
343static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT125,27,_OMC_LIT125_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT125
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "printLevelSchedule failed!\n"
}
;
344#define _OMC_LIT125((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT125)((void*)((char*)(&(_OMC_LIT_STRUCT125).header) + 3))
345#define _OMC_LIT126_data"BLS_mergeToTargetSize failed!" "BLS_mergeToTargetSize failed!"
346static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT126,29,_OMC_LIT126_data)struct { mmc_uint_t header; const char data[(29)+1]; } _OMC_LIT_STRUCT126
= { ((((mmc_uint_t)29)<<(3))+((1<<(3+3))+5)), "BLS_mergeToTargetSize failed!"
}
;
347#define _OMC_LIT126((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT126)((void*)((char*)(&(_OMC_LIT_STRUCT126).header) + 3))
348#define _OMC_LIT127_data"BLS_getDependentGroups failed!\n" "BLS_getDependentGroups failed!\n"
349static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT127,31,_OMC_LIT127_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT127
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "BLS_getDependentGroups failed!\n"
}
;
350#define _OMC_LIT127((void*)((char*)(&(_OMC_LIT_STRUCT127).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT127)((void*)((char*)(&(_OMC_LIT_STRUCT127).header) + 3))
351#define _OMC_LIT128_data"convertScheduleStrucToInfoLevel failed\n" "convertScheduleStrucToInfoLevel failed\n"
352static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT128,39,_OMC_LIT128_data)struct { mmc_uint_t header; const char data[(39)+1]; } _OMC_LIT_STRUCT128
= { ((((mmc_uint_t)39)<<(3))+((1<<(3+3))+5)), "convertScheduleStrucToInfoLevel failed\n"
}
;
353#define _OMC_LIT128((void*)((char*)(&(_OMC_LIT_STRUCT128).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT128)((void*)((char*)(&(_OMC_LIT_STRUCT128).header) + 3))
354#define _OMC_LIT129_data"HpcOmScheduler.convertScheduleStrucToInfo1 failed. Unknown Task-Type.\n" "HpcOmScheduler.convertScheduleStrucToInfo1 failed. Unknown Task-Type.\n"
355static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT129,70,_OMC_LIT129_data)struct { mmc_uint_t header; const char data[(70)+1]; } _OMC_LIT_STRUCT129
= { ((((mmc_uint_t)70)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.convertScheduleStrucToInfo1 failed. Unknown Task-Type.\n"
}
;
356#define _OMC_LIT129((void*)((char*)(&(_OMC_LIT_STRUCT129).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT129)((void*)((char*)(&(_OMC_LIT_STRUCT129).header) + 3))
357static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT130,3,0)struct { mmc_uint_t header; const void *data[3]; } _OMC_LIT_STRUCT130
= { (((3) << 10) + (((0) & 255) << 2)),
{MMC_IMMEDIATE(MMC_TAGFIXNUM(-1))((void*)(((((mmc_uint_t) (-1)) << 1)+0))),MMC_IMMEDIATE(MMC_TAGFIXNUM(-1))((void*)(((((mmc_uint_t) (-1)) << 1)+0))),_OMC_LIT56((void*)((char*)(&(_OMC_LIT_STRUCT56).header) + 3))}};
358#define _OMC_LIT130((void*)((char*)(&(_OMC_LIT_STRUCT130).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT130)((void*)((char*)(&(_OMC_LIT_STRUCT130).header) + 3))
359#define _OMC_LIT131_data"HpcOmScheduler.convertScheduleStrucToInfo unknown Schedule-Type.\n" "HpcOmScheduler.convertScheduleStrucToInfo unknown Schedule-Type.\n"
360static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT131,65,_OMC_LIT131_data)struct { mmc_uint_t header; const char data[(65)+1]; } _OMC_LIT_STRUCT131
= { ((((mmc_uint_t)65)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.convertScheduleStrucToInfo unknown Schedule-Type.\n"
}
;
361#define _OMC_LIT131((void*)((char*)(&(_OMC_LIT_STRUCT131).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT131)((void*)((char*)(&(_OMC_LIT_STRUCT131).header) + 3))
362#define _OMC_LIT132_data"Scheduled Task (comp: " "Scheduled Task (comp: "
363static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT132,22,_OMC_LIT132_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT132
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "Scheduled Task (comp: "
}
;
364#define _OMC_LIT132((void*)((char*)(&(_OMC_LIT_STRUCT132).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT132)((void*)((char*)(&(_OMC_LIT_STRUCT132).header) + 3))
365#define _OMC_LIT133_data", numThreads: " ", numThreads: "
366static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT133,14,_OMC_LIT133_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT133
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), ", numThreads: "
}
;
367#define _OMC_LIT133((void*)((char*)(&(_OMC_LIT_STRUCT133).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT133)((void*)((char*)(&(_OMC_LIT_STRUCT133).header) + 3))
368#define _OMC_LIT134_data"):\n------------------------------------------------------\n" "):\n------------------------------------------------------\n"
369static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT134,58,_OMC_LIT134_data)struct { mmc_uint_t header; const char data[(58)+1]; } _OMC_LIT_STRUCT134
= { ((((mmc_uint_t)58)<<(3))+((1<<(3+3))+5)), "):\n------------------------------------------------------\n"
}
;
370#define _OMC_LIT134((void*)((char*)(&(_OMC_LIT_STRUCT134).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT134)((void*)((char*)(&(_OMC_LIT_STRUCT134).header) + 3))
371#define _OMC_LIT135_data" " " "
372static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT135,1,_OMC_LIT135_data)struct { mmc_uint_t header; const char data[(1)+1]; } _OMC_LIT_STRUCT135
= { ((((mmc_uint_t)1)<<(3))+((1<<(3+3))+5)), " "
}
;
373#define _OMC_LIT135((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT135)((void*)((char*)(&(_OMC_LIT_STRUCT135).header) + 3))
374#define _OMC_LIT136_data"\n " "\n "
375static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT136,2,_OMC_LIT136_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT136
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), "\n "
}
;
376#define _OMC_LIT136((void*)((char*)(&(_OMC_LIT_STRUCT136).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT136)((void*)((char*)(&(_OMC_LIT_STRUCT136).header) + 3))
377#define _OMC_LIT137_data"------------------------------------------------------\n" "------------------------------------------------------\n"
378static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT137,55,_OMC_LIT137_data)struct { mmc_uint_t header; const char data[(55)+1]; } _OMC_LIT_STRUCT137
= { ((((mmc_uint_t)55)<<(3))+((1<<(3+3))+5)), "------------------------------------------------------\n"
}
;
379#define _OMC_LIT137((void*)((char*)(&(_OMC_LIT_STRUCT137).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT137)((void*)((char*)(&(_OMC_LIT_STRUCT137).header) + 3))
380#define _OMC_LIT138_data"Calculation task with index " "Calculation task with index "
381static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT138,28,_OMC_LIT138_data)struct { mmc_uint_t header; const char data[(28)+1]; } _OMC_LIT_STRUCT138
= { ((((mmc_uint_t)28)<<(3))+((1<<(3+3))+5)), "Calculation task with index "
}
;
382#define _OMC_LIT138((void*)((char*)(&(_OMC_LIT_STRUCT138).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT138)((void*)((char*)(&(_OMC_LIT_STRUCT138).header) + 3))
383#define _OMC_LIT139_data" including the equations: " " including the equations: "
384static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT139,26,_OMC_LIT139_data)struct { mmc_uint_t header; const char data[(26)+1]; } _OMC_LIT_STRUCT139
= { ((((mmc_uint_t)26)<<(3))+((1<<(3+3))+5)), " including the equations: "
}
;
385#define _OMC_LIT139((void*)((char*)(&(_OMC_LIT_STRUCT139).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT139)((void*)((char*)(&(_OMC_LIT_STRUCT139).header) + 3))
386#define _OMC_LIT140_data", " ", "
387static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT140,2,_OMC_LIT140_data)struct { mmc_uint_t header; const char data[(2)+1]; } _OMC_LIT_STRUCT140
= { ((((mmc_uint_t)2)<<(3))+((1<<(3+3))+5)), ", "
}
;
388#define _OMC_LIT140((void*)((char*)(&(_OMC_LIT_STRUCT140).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT140)((void*)((char*)(&(_OMC_LIT_STRUCT140).header) + 3))
389#define _OMC_LIT141_data" is finished at " " is finished at "
390static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT141,17,_OMC_LIT141_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT141
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), " is finished at "
}
;
391#define _OMC_LIT141((void*)((char*)(&(_OMC_LIT_STRUCT141).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT141)((void*)((char*)(&(_OMC_LIT_STRUCT141).header) + 3))
392#define _OMC_LIT142_data"Calculation task (" "Calculation task ("
393static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT142,18,_OMC_LIT142_data)struct { mmc_uint_t header; const char data[(18)+1]; } _OMC_LIT_STRUCT142
= { ((((mmc_uint_t)18)<<(3))+((1<<(3+3))+5)), "Calculation task ("
}
;
394#define _OMC_LIT142((void*)((char*)(&(_OMC_LIT_STRUCT142).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT142)((void*)((char*)(&(_OMC_LIT_STRUCT142).header) + 3))
395#define _OMC_LIT143_data") including the equations: " ") including the equations: "
396static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT143,27,_OMC_LIT143_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT143
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), ") including the equations: "
}
;
397#define _OMC_LIT143((void*)((char*)(&(_OMC_LIT_STRUCT143).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT143)((void*)((char*)(&(_OMC_LIT_STRUCT143).header) + 3))
398#define _OMC_LIT144_data" by thread " " by thread "
399static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT144,11,_OMC_LIT144_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT144
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), " by thread "
}
;
400#define _OMC_LIT144((void*)((char*)(&(_OMC_LIT_STRUCT144).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT144)((void*)((char*)(&(_OMC_LIT_STRUCT144).header) + 3))
401#define _OMC_LIT145_data"Dependency task " "Dependency task "
402static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT145,16,_OMC_LIT145_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT145
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "Dependency task "
}
;
403#define _OMC_LIT145((void*)((char*)(&(_OMC_LIT_STRUCT145).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT145)((void*)((char*)(&(_OMC_LIT_STRUCT145).header) + 3))
404#define _OMC_LIT146_data"(outgoing)" "(outgoing)"
405static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT146,10,_OMC_LIT146_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT146
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "(outgoing)"
}
;
406#define _OMC_LIT146((void*)((char*)(&(_OMC_LIT_STRUCT146).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT146)((void*)((char*)(&(_OMC_LIT_STRUCT146).header) + 3))
407#define _OMC_LIT147_data"(incoming)" "(incoming)"
408static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT147,10,_OMC_LIT147_data)struct { mmc_uint_t header; const char data[(10)+1]; } _OMC_LIT_STRUCT147
= { ((((mmc_uint_t)10)<<(3))+((1<<(3+3))+5)), "(incoming)"
}
;
409#define _OMC_LIT147((void*)((char*)(&(_OMC_LIT_STRUCT147).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT147)((void*)((char*)(&(_OMC_LIT_STRUCT147).header) + 3))
410#define _OMC_LIT148_data" between " " between "
411static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT148,9,_OMC_LIT148_data)struct { mmc_uint_t header; const char data[(9)+1]; } _OMC_LIT_STRUCT148
= { ((((mmc_uint_t)9)<<(3))+((1<<(3+3))+5)), " between "
}
;
412#define _OMC_LIT148((void*)((char*)(&(_OMC_LIT_STRUCT148).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT148)((void*)((char*)(&(_OMC_LIT_STRUCT148).header) + 3))
413#define _OMC_LIT149_data" and " " and "
414static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT149,5,_OMC_LIT149_data)struct { mmc_uint_t header; const char data[(5)+1]; } _OMC_LIT_STRUCT149
= { ((((mmc_uint_t)5)<<(3))+((1<<(3+3))+5)), " and "
}
;
415#define _OMC_LIT149((void*)((char*)(&(_OMC_LIT_STRUCT149).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT149)((void*)((char*)(&(_OMC_LIT_STRUCT149).header) + 3))
416#define _OMC_LIT150_data"empty task\n" "empty task\n"
417static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT150,11,_OMC_LIT150_data)struct { mmc_uint_t header; const char data[(11)+1]; } _OMC_LIT_STRUCT150
= { ((((mmc_uint_t)11)<<(3))+((1<<(3+3))+5)), "empty task\n"
}
;
418#define _OMC_LIT150((void*)((char*)(&(_OMC_LIT_STRUCT150).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT150)((void*)((char*)(&(_OMC_LIT_STRUCT150).header) + 3))
419#define _OMC_LIT151_data"HpcOmScheduler.dumpTask failed\n" "HpcOmScheduler.dumpTask failed\n"
420static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT151,31,_OMC_LIT151_data)struct { mmc_uint_t header; const char data[(31)+1]; } _OMC_LIT_STRUCT151
= { ((((mmc_uint_t)31)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.dumpTask failed\n"
}
;
421#define _OMC_LIT151((void*)((char*)(&(_OMC_LIT_STRUCT151).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT151)((void*)((char*)(&(_OMC_LIT_STRUCT151).header) + 3))
422#define _OMC_LIT152_data"Task: \n" "Task: \n"
423static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT152,7,_OMC_LIT152_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT152
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "Task: \n"
}
;
424#define _OMC_LIT152((void*)((char*)(&(_OMC_LIT_STRUCT152).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT152)((void*)((char*)(&(_OMC_LIT_STRUCT152).header) + 3))
425#define _OMC_LIT153_data"-> Parents: " "-> Parents: "
426static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT153,12,_OMC_LIT153_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT153
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "-> Parents: "
}
;
427#define _OMC_LIT153((void*)((char*)(&(_OMC_LIT_STRUCT153).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT153)((void*)((char*)(&(_OMC_LIT_STRUCT153).header) + 3))
428#define _OMC_LIT154_data"---------------------\n" "---------------------\n"
429static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT154,22,_OMC_LIT154_data)struct { mmc_uint_t header; const char data[(22)+1]; } _OMC_LIT_STRUCT154
= { ((((mmc_uint_t)22)<<(3))+((1<<(3+3))+5)), "---------------------\n"
}
;
430#define _OMC_LIT154((void*)((char*)(&(_OMC_LIT_STRUCT154).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT154)((void*)((char*)(&(_OMC_LIT_STRUCT154).header) + 3))
431#define _OMC_LIT155_data"--------------\n" "--------------\n"
432static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT155,15,_OMC_LIT155_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT155
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "--------------\n"
}
;
433#define _OMC_LIT155((void*)((char*)(&(_OMC_LIT_STRUCT155).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT155)((void*)((char*)(&(_OMC_LIT_STRUCT155).header) + 3))
434#define _OMC_LIT156_data"Thread " "Thread "
435static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT156,7,_OMC_LIT156_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT156
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "Thread "
}
;
436#define _OMC_LIT156((void*)((char*)(&(_OMC_LIT_STRUCT156).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT156)((void*)((char*)(&(_OMC_LIT_STRUCT156).header) + 3))
437#define _OMC_LIT157_data"HpcOmScheduler.compareTaskWithThreadIdx can only compare CALCTASKs!\n" "HpcOmScheduler.compareTaskWithThreadIdx can only compare CALCTASKs!\n"
438static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT157,68,_OMC_LIT157_data)struct { mmc_uint_t header; const char data[(68)+1]; } _OMC_LIT_STRUCT157
= { ((((mmc_uint_t)68)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.compareTaskWithThreadIdx can only compare CALCTASKs!\n"
}
;
439#define _OMC_LIT157((void*)((char*)(&(_OMC_LIT_STRUCT157).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT157)((void*)((char*)(&(_OMC_LIT_STRUCT157).header) + 3))
440static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT158,1,5)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT158
= { (((1) << 10) + (((5) & 255) << 2)),
{&ErrorTypes_MessageType_TRANSLATION__desc,}};
441#define _OMC_LIT158((void*)((char*)(&(_OMC_LIT_STRUCT158).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT158)((void*)((char*)(&(_OMC_LIT_STRUCT158).header) + 3))
442static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT159,1,4)struct { mmc_uint_t header; const void *data[1]; } _OMC_LIT_STRUCT159
= { (((1) << 10) + (((4) & 255) << 2)),
{&ErrorTypes_Severity_ERROR__desc,}};
443#define _OMC_LIT159((void*)((char*)(&(_OMC_LIT_STRUCT159).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT159)((void*)((char*)(&(_OMC_LIT_STRUCT159).header) + 3))
444#define _OMC_LIT160_data"Internal error %s" "Internal error %s"
445static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT160,17,_OMC_LIT160_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT160
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "Internal error %s"
}
;
446#define _OMC_LIT160((void*)((char*)(&(_OMC_LIT_STRUCT160).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT160)((void*)((char*)(&(_OMC_LIT_STRUCT160).header) + 3))
447static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT161,2,3)struct { mmc_uint_t header; const void *data[2]; } _OMC_LIT_STRUCT161
= { (((2) << 10) + (((3) & 255) << 2)),
{&Gettext_TranslatableContent_gettext__desc,_OMC_LIT160((void*)((char*)(&(_OMC_LIT_STRUCT160).header) + 3))}};
448#define _OMC_LIT161((void*)((char*)(&(_OMC_LIT_STRUCT161).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT161)((void*)((char*)(&(_OMC_LIT_STRUCT161).header) + 3))
449static const MMC_DEFSTRUCTLIT(_OMC_LIT_STRUCT162,5,3)struct { mmc_uint_t header; const void *data[5]; } _OMC_LIT_STRUCT162
= { (((5) << 10) + (((3) & 255) << 2)),
{&ErrorTypes_Message_MESSAGE__desc,MMC_IMMEDIATE(MMC_TAGFIXNUM(63))((void*)(((((mmc_uint_t) (63)) << 1)+0))),_OMC_LIT158((void*)((char*)(&(_OMC_LIT_STRUCT158).header) + 3)),_OMC_LIT159((void*)((char*)(&(_OMC_LIT_STRUCT159).header) + 3)),_OMC_LIT161((void*)((char*)(&(_OMC_LIT_STRUCT161).header) + 3))}};
450#define _OMC_LIT162((void*)((char*)(&(_OMC_LIT_STRUCT162).header) + 3)) MMC_REFSTRUCTLIT(_OMC_LIT_STRUCT162)((void*)((char*)(&(_OMC_LIT_STRUCT162).header) + 3))
451#define _OMC_LIT163_data"HpcOmScheduler.compareTasksByEqIdc can only compare CALCTASKs with at least one equation index! Task 1 has type " "HpcOmScheduler.compareTasksByEqIdc can only compare CALCTASKs with at least one equation index! Task 1 has type "
452static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT163,112,_OMC_LIT163_data)struct { mmc_uint_t header; const char data[(112)+1]; } _OMC_LIT_STRUCT163
= { ((((mmc_uint_t)112)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.compareTasksByEqIdc can only compare CALCTASKs with at least one equation index! Task 1 has type "
}
;
453#define _OMC_LIT163((void*)((char*)(&(_OMC_LIT_STRUCT163).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT163)((void*)((char*)(&(_OMC_LIT_STRUCT163).header) + 3))
454#define _OMC_LIT164_data" and task 2 has type " " and task 2 has type "
455static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT164,21,_OMC_LIT164_data)struct { mmc_uint_t header; const char data[(21)+1]; } _OMC_LIT_STRUCT164
= { ((((mmc_uint_t)21)<<(3))+((1<<(3+3))+5)), " and task 2 has type "
}
;
456#define _OMC_LIT164((void*)((char*)(&(_OMC_LIT_STRUCT164).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT164)((void*)((char*)(&(_OMC_LIT_STRUCT164).header) + 3))
457#define _OMC_LIT165_data"HpcOmScheduler.compareTasksByWeighting can only compare CALCTASKs! Task 1 has type " "HpcOmScheduler.compareTasksByWeighting can only compare CALCTASKs! Task 1 has type "
458static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT165,83,_OMC_LIT165_data)struct { mmc_uint_t header; const char data[(83)+1]; } _OMC_LIT_STRUCT165
= { ((((mmc_uint_t)83)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.compareTasksByWeighting can only compare CALCTASKs! Task 1 has type "
}
;
459#define _OMC_LIT165((void*)((char*)(&(_OMC_LIT_STRUCT165).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT165)((void*)((char*)(&(_OMC_LIT_STRUCT165).header) + 3))
460#define _OMC_LIT166_data"HpcOmScheduler.getSuccessorsByTask can only handle CALCTASKs." "HpcOmScheduler.getSuccessorsByTask can only handle CALCTASKs."
461static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT166,61,_OMC_LIT166_data)struct { mmc_uint_t header; const char data[(61)+1]; } _OMC_LIT_STRUCT166
= { ((((mmc_uint_t)61)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.getSuccessorsByTask can only handle CALCTASKs."
}
;
462#define _OMC_LIT166((void*)((char*)(&(_OMC_LIT_STRUCT166).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT166)((void*)((char*)(&(_OMC_LIT_STRUCT166).header) + 3))
463#define _OMC_LIT167_data"HpcOmScheduler.getMaxCommCostsByTaskList2 failed\n" "HpcOmScheduler.getMaxCommCostsByTaskList2 failed\n"
464static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT167,49,_OMC_LIT167_data)struct { mmc_uint_t header; const char data[(49)+1]; } _OMC_LIT_STRUCT167
= { ((((mmc_uint_t)49)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.getMaxCommCostsByTaskList2 failed\n"
}
;
465#define _OMC_LIT167((void*)((char*)(&(_OMC_LIT_STRUCT167).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT167)((void*)((char*)(&(_OMC_LIT_STRUCT167).header) + 3))
466#define _OMC_LIT168_data"HpcOmScheduler.calculateFinishTimeByThreadId can only handle CALCTASKs\n" "HpcOmScheduler.calculateFinishTimeByThreadId can only handle CALCTASKs\n"
467static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT168,71,_OMC_LIT168_data)struct { mmc_uint_t header; const char data[(71)+1]; } _OMC_LIT_STRUCT168
= { ((((mmc_uint_t)71)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.calculateFinishTimeByThreadId can only handle CALCTASKs\n"
}
;
468#define _OMC_LIT168((void*)((char*)(&(_OMC_LIT_STRUCT168).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT168)((void*)((char*)(&(_OMC_LIT_STRUCT168).header) + 3))
469#define _OMC_LIT169_data"HpcOmScheduler.convertNodeToTask failed!\n" "HpcOmScheduler.convertNodeToTask failed!\n"
470static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT169,41,_OMC_LIT169_data)struct { mmc_uint_t header; const char data[(41)+1]; } _OMC_LIT_STRUCT169
= { ((((mmc_uint_t)41)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.convertNodeToTask failed!\n"
}
;
471#define _OMC_LIT169((void*)((char*)(&(_OMC_LIT_STRUCT169).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT169)((void*)((char*)(&(_OMC_LIT_STRUCT169).header) + 3))
472#define _OMC_LIT170_data"HpcOmScheduler.getTaskWithHighestFinishTime failed!\n" "HpcOmScheduler.getTaskWithHighestFinishTime failed!\n"
473static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT170,52,_OMC_LIT170_data)struct { mmc_uint_t header; const char data[(52)+1]; } _OMC_LIT_STRUCT170
= { ((((mmc_uint_t)52)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.getTaskWithHighestFinishTime failed!\n"
}
;
474#define _OMC_LIT170((void*)((char*)(&(_OMC_LIT_STRUCT170).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT170)((void*)((char*)(&(_OMC_LIT_STRUCT170).header) + 3))
475#define _OMC_LIT171_data"CreateDepTaskAndCommunicationInfo failed!\n" "CreateDepTaskAndCommunicationInfo failed!\n"
476static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT171,42,_OMC_LIT171_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT171
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "CreateDepTaskAndCommunicationInfo failed!\n"
}
;
477#define _OMC_LIT171((void*)((char*)(&(_OMC_LIT_STRUCT171).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT171)((void*)((char*)(&(_OMC_LIT_STRUCT171).header) + 3))
478#define _OMC_LIT172_data"HpcOmScheduler.addReleaseLocksToSchedule0 failed\n" "HpcOmScheduler.addReleaseLocksToSchedule0 failed\n"
479static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT172,49,_OMC_LIT172_data)struct { mmc_uint_t header; const char data[(49)+1]; } _OMC_LIT_STRUCT172
= { ((((mmc_uint_t)49)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.addReleaseLocksToSchedule0 failed\n"
}
;
480#define _OMC_LIT172((void*)((char*)(&(_OMC_LIT_STRUCT172).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT172)((void*)((char*)(&(_OMC_LIT_STRUCT172).header) + 3))
481#define _OMC_LIT173_data"HpcOmScheduler.addReleaseLocksToSchedule failed\n" "HpcOmScheduler.addReleaseLocksToSchedule failed\n"
482static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT173,48,_OMC_LIT173_data)struct { mmc_uint_t header; const char data[(48)+1]; } _OMC_LIT_STRUCT173
= { ((((mmc_uint_t)48)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.addReleaseLocksToSchedule failed\n"
}
;
483#define _OMC_LIT173((void*)((char*)(&(_OMC_LIT_STRUCT173).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT173)((void*)((char*)(&(_OMC_LIT_STRUCT173).header) + 3))
484#define _OMC_LIT174_data"HpcOmScheduler.createRandomSchedule1 failed\n" "HpcOmScheduler.createRandomSchedule1 failed\n"
485static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT174,44,_OMC_LIT174_data)struct { mmc_uint_t header; const char data[(44)+1]; } _OMC_LIT_STRUCT174
= { ((((mmc_uint_t)44)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createRandomSchedule1 failed\n"
}
;
486#define _OMC_LIT174((void*)((char*)(&(_OMC_LIT_STRUCT174).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT174)((void*)((char*)(&(_OMC_LIT_STRUCT174).header) + 3))
487#define _OMC_LIT175_data"HpcOmScheduler.createListSchedule1 failed\n" "HpcOmScheduler.createListSchedule1 failed\n"
488static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT175,42,_OMC_LIT175_data)struct { mmc_uint_t header; const char data[(42)+1]; } _OMC_LIT_STRUCT175
= { ((((mmc_uint_t)42)<<(3))+((1<<(3+3))+5)), "HpcOmScheduler.createListSchedule1 failed\n"
}
;
489#define _OMC_LIT175((void*)((char*)(&(_OMC_LIT_STRUCT175).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT175)((void*)((char*)(&(_OMC_LIT_STRUCT175).header) + 3))
490#include "util/modelica.h"
491
492#include "HpcOmScheduler_includes.h"
493
494
495/* default, do not make protected functions static */
496#if !defined(PROTECTED_FUNCTION_STATIC)
497#define PROTECTED_FUNCTION_STATIC
498#endif
499PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_intListListString(threadData_t *threadData, modelica_metatype _lstIn);
500static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_intListListString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_intListListString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_intListListStringomc_HpcOmScheduler_intListListString,0}};
501#define boxvar_HpcOmScheduler_intListListString((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intListListString
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_intListListString)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intListListString
).header) + 3))
502PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_intListString(threadData_t *threadData, modelica_metatype _lstIn);
503static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_intListString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_intListString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_intListStringomc_HpcOmScheduler_intListString,0}};
504#define boxvar_HpcOmScheduler_intListString((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intListString
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_intListString)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intListString
).header) + 3))
505PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_printRealArray1(threadData_t *threadData, modelica_real _inValue, modelica_string _header, modelica_integer _idxIn);
506PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_printRealArray1(threadData_t *threadData, modelica_metatype _inValue, modelica_metatype _header, modelica_metatype _idxIn);
507static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printRealArray1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_printRealArray1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_printRealArray1,0}};
508#define boxvar_HpcOmScheduler_printRealArray1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printRealArray1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printRealArray1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printRealArray1
).header) + 3))
509PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_printRealArray(threadData_t *threadData, modelica_metatype _inArray, modelica_string _header);
510static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printRealArray,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_printRealArray
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_printRealArrayomc_HpcOmScheduler_printRealArray,0}};
511#define boxvar_HpcOmScheduler_printRealArray((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printRealArray
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printRealArray)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printRealArray
).header) + 3))
512PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iThreadTasks);
513static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTaskomc_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask,0}};
514#define boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask
).header) + 3))
515PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_integer _iThreadCount);
516PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iThreadCount);
517static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel,0}};
518#define boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel
).header) + 3))
519PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_findInIntTuple1(threadData_t *threadData, modelica_metatype _liste, modelica_integer _toFind);
520PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_findInIntTuple1(threadData_t *threadData, modelica_metatype _liste, modelica_metatype _toFind);
521static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_findInIntTuple1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_findInIntTuple1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_findInIntTuple1,0}};
522#define boxvar_HpcOmScheduler_findInIntTuple1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_findInIntTuple1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_findInIntTuple1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_findInIntTuple1
).header) + 3))
523PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_findTaskWithLockId(threadData_t *threadData, modelica_metatype _lockIds, modelica_metatype _iTask);
524static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_findTaskWithLockId,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_findTaskWithLockId
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_findTaskWithLockIdomc_HpcOmScheduler_findTaskWithLockId,0}};
525#define boxvar_HpcOmScheduler_findTaskWithLockId((void*)((char*)(&(boxvar_lit_HpcOmScheduler_findTaskWithLockId
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_findTaskWithLockId)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_findTaskWithLockId
).header) + 3))
526PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceDepTasksInListByLockIds(threadData_t *threadData, modelica_metatype _inTask, modelica_metatype _lockIds, modelica_metatype _tmpTaskList);
527static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceDepTasksInListByLockIds,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceDepTasksInListByLockIds
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceDepTasksInListByLockIdsomc_HpcOmScheduler_replaceDepTasksInListByLockIds,0}};
528#define boxvar_HpcOmScheduler_replaceDepTasksInListByLockIds((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceDepTasksInListByLockIds
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceDepTasksInListByLockIds)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceDepTasksInListByLockIds
).header) + 3))
529PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceDepTaskIdsByLockIds(threadData_t *threadData, modelica_metatype _inTasks, modelica_metatype _lockIds, modelica_metatype _iAllThreadTasks);
530static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceDepTaskIdsByLockIds,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceDepTaskIdsByLockIds
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceDepTaskIdsByLockIdsomc_HpcOmScheduler_replaceDepTaskIdsByLockIds,0}};
531#define boxvar_HpcOmScheduler_replaceDepTaskIdsByLockIds((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceDepTaskIdsByLockIds
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceDepTaskIdsByLockIds)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceDepTaskIdsByLockIds
).header) + 3))
532PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_setScheduleLockIds(threadData_t *threadData, modelica_metatype _iSchedule);
533static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setScheduleLockIds,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_setScheduleLockIds
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_setScheduleLockIdsomc_HpcOmScheduler_setScheduleLockIds,0}};
534#define boxvar_HpcOmScheduler_setScheduleLockIds((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setScheduleLockIds
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setScheduleLockIds)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setScheduleLockIds
).header) + 3))
535PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_revertTaskList(threadData_t *threadData, modelica_integer _iCurrentArrayIdx, modelica_metatype _iResultList);
536PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_revertTaskList(threadData_t *threadData, modelica_metatype _iCurrentArrayIdx, modelica_metatype _iResultList);
537static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_revertTaskList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_revertTaskList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_revertTaskList,0}};
538#define boxvar_HpcOmScheduler_revertTaskList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_revertTaskList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_revertTaskList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_revertTaskList
).header) + 3))
539PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_revertTaskLists(threadData_t *threadData, modelica_integer _iCurrentArrayIdx, modelica_metatype _iResultList);
540PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_revertTaskLists(threadData_t *threadData, modelica_metatype _iCurrentArrayIdx, modelica_metatype _iResultList);
541static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_revertTaskLists,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_revertTaskLists
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_revertTaskLists,0}};
542#define boxvar_HpcOmScheduler_revertTaskLists((void*)((char*)(&(boxvar_lit_HpcOmScheduler_revertTaskLists
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_revertTaskLists)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_revertTaskLists
).header) + 3))
543PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *threadData, modelica_metatype _iLevelTasks, modelica_integer _iCurrentThreadIdx, modelica_integer _iModifiedSystemIdx, modelica_metatype _iResultList);
544PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *threadData, modelica_metatype _iLevelTasks, modelica_metatype _iCurrentThreadIdx, modelica_metatype _iModifiedSystemIdx, modelica_metatype _iResultList);
545static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1,0}};
546#define boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1
).header) + 3))
547PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_integer _iNumOfThreads);
548PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iNumOfThreads);
549static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0,0}};
550#define boxvar_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0
).header) + 3))
551PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_isEmptyTask(threadData_t *threadData, modelica_metatype _taskIn);
552PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_isEmptyTask(threadData_t *threadData, modelica_metatype _taskIn);
553static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isEmptyTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_isEmptyTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_isEmptyTask,0}};
554#define boxvar_HpcOmScheduler_isEmptyTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isEmptyTask)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isEmptyTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isEmptyTask)
.header) + 3))
555PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_isCalcTask(threadData_t *threadData, modelica_metatype _taskIn);
556PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_isCalcTask(threadData_t *threadData, modelica_metatype _taskIn);
557static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isCalcTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_isCalcTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_isCalcTask,0}};
558#define boxvar_HpcOmScheduler_isCalcTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isCalcTask).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isCalcTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isCalcTask).
header) + 3))
559PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_getTaskTypeString(threadData_t *threadData, modelica_metatype _iTask);
560static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskTypeString,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTaskTypeString
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTaskTypeStringomc_HpcOmScheduler_getTaskTypeString,0}};
561#define boxvar_HpcOmScheduler_getTaskTypeString((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskTypeString
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskTypeString)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskTypeString
).header) + 3))
562PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getTaskIdx(threadData_t *threadData, modelica_metatype _taskIn);
563PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTaskIdx(threadData_t *threadData, modelica_metatype _taskIn);
564static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskIdx,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTaskIdx
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTaskIdx,0}};
565#define boxvar_HpcOmScheduler_getTaskIdx((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskIdx).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskIdx)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskIdx).
header) + 3))
566PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getThreadId(threadData_t *threadData, modelica_metatype _taskIn);
567PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getThreadId(threadData_t *threadData, modelica_metatype _taskIn);
568static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getThreadId,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getThreadId
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getThreadId,0}};
569#define boxvar_HpcOmScheduler_getThreadId((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getThreadId)
.header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getThreadId)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getThreadId)
.header) + 3))
570PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getTimeFinished(threadData_t *threadData, modelica_metatype _taskIn);
571PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTimeFinished(threadData_t *threadData, modelica_metatype _taskIn);
572static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTimeFinished,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTimeFinished
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTimeFinished,0}};
573#define boxvar_HpcOmScheduler_getTimeFinished((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTimeFinished
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTimeFinished)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTimeFinished
).header) + 3))
574PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateTimeFinished(threadData_t *threadData, modelica_metatype _taskIn, modelica_real _timeFinishedIn);
575PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_updateTimeFinished(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _timeFinishedIn);
576static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateTimeFinished,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_updateTimeFinished
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_updateTimeFinished,0}};
577#define boxvar_HpcOmScheduler_updateTimeFinished((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateTimeFinished
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateTimeFinished)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateTimeFinished
).header) + 3))
578PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getPredecessorCalcTask(threadData_t *threadData, modelica_metatype _threadIn, modelica_integer _indexIn);
579PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getPredecessorCalcTask(threadData_t *threadData, modelica_metatype _threadIn, modelica_metatype _indexIn);
580static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getPredecessorCalcTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getPredecessorCalcTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getPredecessorCalcTask,0}};
581#define boxvar_HpcOmScheduler_getPredecessorCalcTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getPredecessorCalcTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getPredecessorCalcTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getPredecessorCalcTask
).header) + 3))
582PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeFinishingTimeForOneTask(threadData_t *threadData, modelica_metatype _tplIn);
583static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeFinishingTimeForOneTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeFinishingTimeForOneTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeFinishingTimeForOneTaskomc_HpcOmScheduler_computeFinishingTimeForOneTask,0}};
584#define boxvar_HpcOmScheduler_computeFinishingTimeForOneTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeFinishingTimeForOneTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeFinishingTimeForOneTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeFinishingTimeForOneTask
).header) + 3))
585PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateFinishingTime1(threadData_t *threadData, modelica_integer _parentIdx, modelica_metatype _checkedTaskIn, modelica_metatype _tplIn);
586PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_updateFinishingTime1(threadData_t *threadData, modelica_metatype _parentIdx, modelica_metatype _checkedTaskIn, modelica_metatype _tplIn);
587static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateFinishingTime1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_updateFinishingTime1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_updateFinishingTime1,0}};
588#define boxvar_HpcOmScheduler_updateFinishingTime1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateFinishingTime1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateFinishingTime1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateFinishingTime1
).header) + 3))
589PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateFinishingTime(threadData_t *threadData, modelica_metatype _taskIn, modelica_integer _taskIdxIn, modelica_integer _threadIdxIn, modelica_metatype _threadTasksIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_checkedTasksOut, modelica_integer *out_taskIdxOut);
590PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_updateFinishingTime(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _taskIdxIn, modelica_metatype _threadIdxIn, modelica_metatype _threadTasksIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_checkedTasksOut, modelica_metatype *out_taskIdxOut);
591static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateFinishingTime,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_updateFinishingTime
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_updateFinishingTime,0}};
592#define boxvar_HpcOmScheduler_updateFinishingTime((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateFinishingTime
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateFinishingTime)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateFinishingTime
).header) + 3))
593PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getNextThreadIdx(threadData_t *threadData, modelica_integer _threadId, modelica_metatype _closedThreads, modelica_integer _numThreads);
594PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getNextThreadIdx(threadData_t *threadData, modelica_metatype _threadId, modelica_metatype _closedThreads, modelica_metatype _numThreads);
595static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getNextThreadIdx,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getNextThreadIdx
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getNextThreadIdx,0}};
596#define boxvar_HpcOmScheduler_getNextThreadIdx((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getNextThreadIdx
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getNextThreadIdx)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getNextThreadIdx
).header) + 3))
597PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_computeTimeFinished1(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_integer _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_integer _numProc, modelica_metatype _closedThreadsIn, modelica_metatype *out_closedThreadsOut);
598PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_computeTimeFinished1(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_metatype _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype _numProc, modelica_metatype _closedThreadsIn, modelica_metatype *out_closedThreadsOut);
599static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeTimeFinished1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeTimeFinished1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeTimeFinished1,0}};
600#define boxvar_HpcOmScheduler_computeTimeFinished1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeTimeFinished1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeTimeFinished1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeTimeFinished1
).header) + 3))
601PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_computeTimeFinished(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_integer _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_integer _numProc, modelica_metatype _closedThreadsIn);
602PROTECTED_FUNCTION_STATIC void boxptr_HpcOmScheduler_computeTimeFinished(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_metatype _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype _numProc, modelica_metatype _closedThreadsIn);
603static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeTimeFinished,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeTimeFinished
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeTimeFinished,0}};
604#define boxvar_HpcOmScheduler_computeTimeFinished((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeTimeFinished
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeTimeFinished)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeTimeFinished
).header) + 3))
605PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getTimeFinishedOfLastTask(threadData_t *threadData, modelica_metatype _threadTasksIn);
606PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTimeFinishedOfLastTask(threadData_t *threadData, modelica_metatype _threadTasksIn);
607static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTimeFinishedOfLastTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTimeFinishedOfLastTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTimeFinishedOfLastTask,0}};
608#define boxvar_HpcOmScheduler_getTimeFinishedOfLastTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTimeFinishedOfLastTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTimeFinishedOfLastTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTimeFinishedOfLastTask
).header) + 3))
609PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getFinishingTimesForSchedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_integer _numProc, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_real *out_finishingTime);
610PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getFinishingTimesForSchedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_metatype _numProc, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_finishingTime);
611static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getFinishingTimesForSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getFinishingTimesForSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getFinishingTimesForSchedule,0}};
612#define boxvar_HpcOmScheduler_getFinishingTimesForSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getFinishingTimesForSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getFinishingTimesForSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getFinishingTimesForSchedule
).header) + 3))
613PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_printPredictedExeTimeInfo(threadData_t *threadData, modelica_real _serTime, modelica_real _parTime, modelica_real _speedUp, modelica_real _speedUpMax, modelica_integer _numProc);
614PROTECTED_FUNCTION_STATIC void boxptr_HpcOmScheduler_printPredictedExeTimeInfo(threadData_t *threadData, modelica_metatype _serTime, modelica_metatype _parTime, modelica_metatype _speedUp, modelica_metatype _speedUpMax, modelica_metatype _numProc);
615static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printPredictedExeTimeInfo,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_printPredictedExeTimeInfo
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_printPredictedExeTimeInfo,0}};
616#define boxvar_HpcOmScheduler_printPredictedExeTimeInfo((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printPredictedExeTimeInfo
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printPredictedExeTimeInfo)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printPredictedExeTimeInfo
).header) + 3))
617PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getLevelTaskCosts(threadData_t *threadData, modelica_metatype _levelTask, modelica_metatype _iMeta);
618PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getLevelTaskCosts(threadData_t *threadData, modelica_metatype _levelTask, modelica_metatype _iMeta);
619static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelTaskCosts,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLevelTaskCosts
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLevelTaskCosts,0}};
620#define boxvar_HpcOmScheduler_getLevelTaskCosts((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelTaskCosts
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelTaskCosts)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelTaskCosts
).header) + 3))
621PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLevelListTaskCosts(threadData_t *threadData, modelica_metatype _iTaskList, modelica_metatype _iMeta);
622static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelListTaskCosts,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLevelListTaskCosts
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLevelListTaskCostsomc_HpcOmScheduler_getLevelListTaskCosts,0}};
623#define boxvar_HpcOmScheduler_getLevelListTaskCosts((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelListTaskCosts
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelListTaskCosts)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelListTaskCosts
).header) + 3))
624PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getTasksOfTaskList(threadData_t *threadData, modelica_metatype _iTaskList);
625static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTasksOfTaskList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTasksOfTaskList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTasksOfTaskListomc_HpcOmScheduler_getTasksOfTaskList,0}};
626#define boxvar_HpcOmScheduler_getTasksOfTaskList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTasksOfTaskList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTasksOfTaskList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTasksOfTaskList
).header) + 3))
627PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLevelParallelTime1(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iTaskGraphMeta, modelica_metatype _iThreadWorkLoad);
628static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelParallelTime1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLevelParallelTime1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLevelParallelTime1omc_HpcOmScheduler_getLevelParallelTime1,0}};
629#define boxvar_HpcOmScheduler_getLevelParallelTime1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelParallelTime1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelParallelTime1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelParallelTime1
).header) + 3))
630PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getLevelParallelTime(threadData_t *threadData, modelica_metatype _iLevelTaskList, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_integer _iNumProc);
631PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getLevelParallelTime(threadData_t *threadData, modelica_metatype _iLevelTaskList, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype _iNumProc);
632static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelParallelTime,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLevelParallelTime
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLevelParallelTime,0}};
633#define boxvar_HpcOmScheduler_getLevelParallelTime((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelParallelTime
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelParallelTime)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelParallelTime
).header) + 3))
634PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_analyseScheduledTaskGraphLevel(threadData_t *threadData, modelica_metatype _iLevelTasks, modelica_integer _iNumProc, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_fnptr _iParallelSectionCalculator);
635PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_analyseScheduledTaskGraphLevel(threadData_t *threadData, modelica_metatype _iLevelTasks, modelica_metatype _iNumProc, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_fnptr _iParallelSectionCalculator);
636static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_analyseScheduledTaskGraphLevel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_analyseScheduledTaskGraphLevel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_analyseScheduledTaskGraphLevel,0}};
637#define boxvar_HpcOmScheduler_analyseScheduledTaskGraphLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_analyseScheduledTaskGraphLevel
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_analyseScheduledTaskGraphLevel)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_analyseScheduledTaskGraphLevel
).header) + 3))
638PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_dumpSchedule(threadData_t *threadData, modelica_metatype _iSchedule);
639static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_dumpSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_dumpScheduleomc_HpcOmScheduler_dumpSchedule,0}};
640#define boxvar_HpcOmScheduler_dumpSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpSchedule
).header) + 3))
641PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_realSubr(threadData_t *threadData, modelica_real _r1, modelica_real _r2);
642PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_realSubr(threadData_t *threadData, modelica_metatype _r1, modelica_metatype _r2);
643static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_realSubr,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_realSubr
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_realSubr,0}};
644#define boxvar_HpcOmScheduler_realSubr((void*)((char*)(&(boxvar_lit_HpcOmScheduler_realSubr).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_realSubr)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_realSubr).header
) + 3))
645PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeGraphValuesTopDown2(threadData_t *threadData, modelica_metatype _nodesIn, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _alapIn, modelica_metatype _lastIn, modelica_metatype _lactIn, modelica_metatype _tdsLevelIn, modelica_metatype _visitedNodes);
646static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeGraphValuesTopDown2omc_HpcOmScheduler_computeGraphValuesTopDown2,0}};
647#define boxvar_HpcOmScheduler_computeGraphValuesTopDown2((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown2)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown2
).header) + 3))
648PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_computeGraphValuesTopDown1(threadData_t *threadData, modelica_metatype _nodesIn, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _alapIn, modelica_metatype _lastIn, modelica_metatype _lactIn, modelica_metatype _tdsLevelIn, modelica_metatype _visitedNodes);
649static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeGraphValuesTopDown1omc_HpcOmScheduler_computeGraphValuesTopDown1,0}};
650#define boxvar_HpcOmScheduler_computeGraphValuesTopDown1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown1
).header) + 3))
651PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeGraphValuesTopDown(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype *out_lastOut, modelica_metatype *out_lactOut, modelica_metatype *out_tdsLevelOut);
652static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeGraphValuesTopDownomc_HpcOmScheduler_computeGraphValuesTopDown,0}};
653#define boxvar_HpcOmScheduler_computeGraphValuesTopDown((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesTopDown
).header) + 3))
654PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeGraphValuesBottomUp2(threadData_t *threadData, modelica_integer _node, modelica_metatype _graph, modelica_metatype _graphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _asapIn, modelica_metatype _estIn, modelica_metatype _ectIn, modelica_metatype *out_estOut, modelica_metatype *out_ectOut, modelica_metatype *out_children);
655PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_computeGraphValuesBottomUp2(threadData_t *threadData, modelica_metatype _node, modelica_metatype _graph, modelica_metatype _graphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _asapIn, modelica_metatype _estIn, modelica_metatype _ectIn, modelica_metatype *out_estOut, modelica_metatype *out_ectOut, modelica_metatype *out_children);
656static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeGraphValuesBottomUp2,0}};
657#define boxvar_HpcOmScheduler_computeGraphValuesBottomUp2((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp2)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp2
).header) + 3))
658PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeGraphValuesBottomUp1(threadData_t *threadData, modelica_metatype _parentsIn, modelica_metatype _graph, modelica_metatype _graphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _asapIn, modelica_metatype _estIn, modelica_metatype _ectIn, modelica_metatype *out_estOut, modelica_metatype *out_ectOut);
659static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeGraphValuesBottomUp1omc_HpcOmScheduler_computeGraphValuesBottomUp1,0}};
660#define boxvar_HpcOmScheduler_computeGraphValuesBottomUp1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp1
).header) + 3))
661PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeGraphValuesBottomUp(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype *out_estOut, modelica_metatype *out_ectOut);
662static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeGraphValuesBottomUpomc_HpcOmScheduler_computeGraphValuesBottomUp,0}};
663#define boxvar_HpcOmScheduler_computeGraphValuesBottomUp((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeGraphValuesBottomUp
).header) + 3))
664PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getMedian3(threadData_t *threadData, modelica_real _r1, modelica_real _r2, modelica_real _r3, modelica_integer *out_which);
665PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getMedian3(threadData_t *threadData, modelica_metatype _r1, modelica_metatype _r2, modelica_metatype _r3, modelica_metatype *out_which);
666static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMedian3,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getMedian3
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getMedian3,0}};
667#define boxvar_HpcOmScheduler_getMedian3((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMedian3).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMedian3)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMedian3).
header) + 3))
668PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_swapEntriesInList(threadData_t *threadData, modelica_integer _idx1, modelica_integer _idx2, modelica_metatype _lstIn);
669PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_swapEntriesInList(threadData_t *threadData, modelica_metatype _idx1, modelica_metatype _idx2, modelica_metatype _lstIn);
670static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_swapEntriesInList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_swapEntriesInList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_swapEntriesInList,0}};
671#define boxvar_HpcOmScheduler_swapEntriesInList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_swapEntriesInList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_swapEntriesInList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_swapEntriesInList
).header) + 3))
672PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getMemberOnTrueWithIdx1(threadData_t *threadData, modelica_integer _inIdx, modelica_real _inValue, modelica_metatype _inList, modelica_fnptr _inCompFunc, modelica_integer *out_outIdx, modelica_boolean *out_found);
673PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getMemberOnTrueWithIdx1(threadData_t *threadData, modelica_metatype _inIdx, modelica_metatype _inValue, modelica_metatype _inList, modelica_fnptr _inCompFunc, modelica_metatype *out_outIdx, modelica_metatype *out_found);
674static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getMemberOnTrueWithIdx1,0}};
675#define boxvar_HpcOmScheduler_getMemberOnTrueWithIdx1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx1
).header) + 3))
676PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getMemberOnTrueWithIdx(threadData_t *threadData, modelica_real _inValue, modelica_metatype _inList, modelica_fnptr _inCompFunc, modelica_integer *out_outIdx, modelica_boolean *out_found);
677PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getMemberOnTrueWithIdx(threadData_t *threadData, modelica_metatype _inValue, modelica_metatype _inList, modelica_fnptr _inCompFunc, modelica_metatype *out_outIdx, modelica_metatype *out_found);
678static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getMemberOnTrueWithIdx,0}};
679#define boxvar_HpcOmScheduler_getMemberOnTrueWithIdx((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMemberOnTrueWithIdx
).header) + 3))
680PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getNextPivot(threadData_t *threadData, modelica_metatype _lstIn, modelica_metatype _markedLstIn, modelica_integer _pivotIdx);
681PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getNextPivot(threadData_t *threadData, modelica_metatype _lstIn, modelica_metatype _markedLstIn, modelica_metatype _pivotIdx);
682static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getNextPivot,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getNextPivot
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getNextPivot,0}};
683#define boxvar_HpcOmScheduler_getNextPivot((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getNextPivot
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getNextPivot)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getNextPivot
).header) + 3))
684PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_quicksortWithOrder1(threadData_t *threadData, modelica_metatype _lstIn, modelica_metatype _orderIn, modelica_integer _pivotIdx, modelica_metatype _markedIn, modelica_integer _size, modelica_metatype *out_orderOut);
685PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_quicksortWithOrder1(threadData_t *threadData, modelica_metatype _lstIn, modelica_metatype _orderIn, modelica_metatype _pivotIdx, modelica_metatype _markedIn, modelica_metatype _size, modelica_metatype *out_orderOut);
686static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_quicksortWithOrder1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_quicksortWithOrder1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_quicksortWithOrder1,0}};
687#define boxvar_HpcOmScheduler_quicksortWithOrder1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_quicksortWithOrder1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_quicksortWithOrder1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_quicksortWithOrder1
).header) + 3))
688PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_listIndecesForValues(threadData_t *threadData, modelica_integer _idx, modelica_metatype _lstIn, modelica_metatype _arrayIn);
689PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_listIndecesForValues(threadData_t *threadData, modelica_metatype _idx, modelica_metatype _lstIn, modelica_metatype _arrayIn);
690static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_listIndecesForValues,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_listIndecesForValues
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_listIndecesForValues,0}};
691#define boxvar_HpcOmScheduler_listIndecesForValues((void*)((char*)(&(boxvar_lit_HpcOmScheduler_listIndecesForValues
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_listIndecesForValues)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_listIndecesForValues
).header) + 3))
692PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_mapListGet(threadData_t *threadData, modelica_metatype _mapLstIn, modelica_metatype _argLst);
693static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_mapListGet,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_mapListGet
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_mapListGetomc_HpcOmScheduler_mapListGet,0}};
694#define boxvar_HpcOmScheduler_mapListGet((void*)((char*)(&(boxvar_lit_HpcOmScheduler_mapListGet).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_mapListGet)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_mapListGet).
header) + 3))
695PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_lengthNotOne(threadData_t *threadData, modelica_metatype _lstIn);
696PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_lengthNotOne(threadData_t *threadData, modelica_metatype _lstIn);
697static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_lengthNotOne,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_lengthNotOne
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_lengthNotOne,0}};
698#define boxvar_HpcOmScheduler_lengthNotOne((void*)((char*)(&(boxvar_lit_HpcOmScheduler_lengthNotOne
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_lengthNotOne)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_lengthNotOne
).header) + 3))
699PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_removeLatestTaskFromList(threadData_t *threadData, modelica_metatype _taskLstIn, modelica_metatype _taskOrderIn);
700static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_removeLatestTaskFromList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_removeLatestTaskFromList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_removeLatestTaskFromListomc_HpcOmScheduler_removeLatestTaskFromList,0}};
701#define boxvar_HpcOmScheduler_removeLatestTaskFromList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_removeLatestTaskFromList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_removeLatestTaskFromList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_removeLatestTaskFromList
).header) + 3))
702PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getSuperfluousLocks(threadData_t *threadData, modelica_metatype _otherParentsIn, modelica_integer _nodeIn, modelica_metatype _taskAssIn, modelica_metatype _orderIn, modelica_integer _numProc, modelica_metatype _iAllCalcTasks, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _removeLocksIn);
703PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getSuperfluousLocks(threadData_t *threadData, modelica_metatype _otherParentsIn, modelica_metatype _nodeIn, modelica_metatype _taskAssIn, modelica_metatype _orderIn, modelica_metatype _numProc, modelica_metatype _iAllCalcTasks, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _removeLocksIn);
704static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSuperfluousLocks,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getSuperfluousLocks
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getSuperfluousLocks,0}};
705#define boxvar_HpcOmScheduler_getSuperfluousLocks((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSuperfluousLocks
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSuperfluousLocks)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSuperfluousLocks
).header) + 3))
706PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_removeLocksFromThread(threadData_t *threadData, modelica_metatype _threadIn, modelica_metatype _lockLst);
707static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_removeLocksFromThread,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_removeLocksFromThread
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_removeLocksFromThreadomc_HpcOmScheduler_removeLocksFromThread,0}};
708#define boxvar_HpcOmScheduler_removeLocksFromThread((void*)((char*)(&(boxvar_lit_HpcOmScheduler_removeLocksFromThread
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_removeLocksFromThread)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_removeLocksFromThread
).header) + 3))
709PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_removeLocksFromLockList(threadData_t *threadData, modelica_metatype _lockIdsIn, modelica_metatype _lockTasks);
710static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_removeLocksFromLockList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_removeLocksFromLockList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_removeLocksFromLockListomc_HpcOmScheduler_removeLocksFromLockList,0}};
711#define boxvar_HpcOmScheduler_removeLocksFromLockList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_removeLocksFromLockList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_removeLocksFromLockList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_removeLocksFromLockList
).header) + 3))
712PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_tasksEqual(threadData_t *threadData, modelica_metatype _task1, modelica_metatype _task2);
713PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_tasksEqual(threadData_t *threadData, modelica_metatype _task1, modelica_metatype _task2);
714static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_tasksEqual,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_tasksEqual
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_tasksEqual,0}};
715#define boxvar_HpcOmScheduler_tasksEqual((void*)((char*)(&(boxvar_lit_HpcOmScheduler_tasksEqual).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_tasksEqual)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_tasksEqual).
header) + 3))
716PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_setThreadIdxInTask(threadData_t *threadData, modelica_metatype _taskIn, modelica_integer _threadIdx);
717PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_setThreadIdxInTask(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _threadIdx);
718static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setThreadIdxInTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_setThreadIdxInTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_setThreadIdxInTask,0}};
719#define boxvar_HpcOmScheduler_setThreadIdxInTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setThreadIdxInTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setThreadIdxInTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setThreadIdxInTask
).header) + 3))
720PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_setSimEqIdcsInTask(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _SccSimEqMappingIn);
721static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setSimEqIdcsInTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_setSimEqIdcsInTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_setSimEqIdcsInTaskomc_HpcOmScheduler_setSimEqIdcsInTask,0}};
722#define boxvar_HpcOmScheduler_setSimEqIdcsInTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setSimEqIdcsInTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setSimEqIdcsInTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setSimEqIdcsInTask
).header) + 3))
723PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createScheduleFromAssignments(threadData_t *threadData, modelica_metatype _taskAss, modelica_metatype _procAss, modelica_metatype _orderOpt, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype _SccSimEqMappingIn, modelica_metatype _removeLocksIn, modelica_metatype _orderIn, modelica_metatype _iSimVarMapping, modelica_metatype _scheduleIn, modelica_metatype *out_removeLocksOut);
724static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createScheduleFromAssignments,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createScheduleFromAssignments
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createScheduleFromAssignmentsomc_HpcOmScheduler_createScheduleFromAssignments,0}};
725#define boxvar_HpcOmScheduler_createScheduleFromAssignments((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createScheduleFromAssignments
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createScheduleFromAssignments)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createScheduleFromAssignments
).header) + 3))
726PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_traverseAndUpdateThreadsInSchedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_fnptr _funcIn, modelica_metatype _extraArg);
727static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_traverseAndUpdateThreadsInSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_traverseAndUpdateThreadsInSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_traverseAndUpdateThreadsInScheduleomc_HpcOmScheduler_traverseAndUpdateThreadsInSchedule,0}};
728#define boxvar_HpcOmScheduler_traverseAndUpdateThreadsInSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_traverseAndUpdateThreadsInSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_traverseAndUpdateThreadsInSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_traverseAndUpdateThreadsInSchedule
).header) + 3))
729PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateLockIdcsInThreadschedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_fnptr _inFunc, modelica_metatype _extraArg);
730static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateLockIdcsInThreadschedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_updateLockIdcsInThreadschedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_updateLockIdcsInThreadscheduleomc_HpcOmScheduler_updateLockIdcsInThreadschedule,0}};
731#define boxvar_HpcOmScheduler_updateLockIdcsInThreadschedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateLockIdcsInThreadschedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateLockIdcsInThreadschedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateLockIdcsInThreadschedule
).header) + 3))
732PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_MCP__getTaskAssignment1(threadData_t *threadData, modelica_metatype _orderIn, modelica_metatype _taskAssIn, modelica_metatype _procAssIn, modelica_metatype _processorTimeIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_procAssOut);
733static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_MCP__getTaskAssignment1omc_HpcOmScheduler_MCP__getTaskAssignment1,0}};
734#define boxvar_HpcOmScheduler_MCP__getTaskAssignment1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment1
).header) + 3))
735PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_MCP__getTaskAssignment(threadData_t *threadData, modelica_metatype _orderIn, modelica_metatype _alapIn, modelica_integer _numProc, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_procAssOut);
736PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_MCP__getTaskAssignment(threadData_t *threadData, modelica_metatype _orderIn, modelica_metatype _alapIn, modelica_metatype _numProc, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_procAssOut);
737static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_MCP__getTaskAssignment,0}};
738#define boxvar_HpcOmScheduler_MCP__getTaskAssignment((void*)((char*)(&(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_MCP__getTaskAssignment
).header) + 3))
739PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_reassignPartitions(threadData_t *threadData, modelica_metatype _tplIn);
740static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_reassignPartitions,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_reassignPartitions
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_reassignPartitionsomc_HpcOmScheduler_reassignPartitions,0}};
741#define boxvar_HpcOmScheduler_reassignPartitions((void*)((char*)(&(boxvar_lit_HpcOmScheduler_reassignPartitions
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_reassignPartitions)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_reassignPartitions
).header) + 3))
742PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_isUnAssigned(threadData_t *threadData, modelica_integer _task, modelica_metatype _ass);
743PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_isUnAssigned(threadData_t *threadData, modelica_metatype _task, modelica_metatype _ass);
744static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isUnAssigned,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_isUnAssigned
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_isUnAssigned,0}};
745#define boxvar_HpcOmScheduler_isUnAssigned((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isUnAssigned
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isUnAssigned)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isUnAssigned
).header) + 3))
746PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_assignPartitions(threadData_t *threadData, modelica_integer _rootNode, modelica_metatype _graph, modelica_metatype _tplIn);
747PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_assignPartitions(threadData_t *threadData, modelica_metatype _rootNode, modelica_metatype _graph, modelica_metatype _tplIn);
748static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_assignPartitions,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_assignPartitions
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_assignPartitions,0}};
749#define boxvar_HpcOmScheduler_assignPartitions((void*)((char*)(&(boxvar_lit_HpcOmScheduler_assignPartitions
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_assignPartitions)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_assignPartitions
).header) + 3))
750PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_distributePartitions(threadData_t *threadData, modelica_metatype _taskMapIn, modelica_metatype _partMap, modelica_metatype _metaIn, modelica_integer _n, modelica_metatype *out_partitions);
751PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_distributePartitions(threadData_t *threadData, modelica_metatype _taskMapIn, modelica_metatype _partMap, modelica_metatype _metaIn, modelica_metatype _n, modelica_metatype *out_partitions);
752static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_distributePartitions,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_distributePartitions
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_distributePartitions,0}};
753#define boxvar_HpcOmScheduler_distributePartitions((void*)((char*)(&(boxvar_lit_HpcOmScheduler_distributePartitions
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_distributePartitions)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_distributePartitions
).header) + 3))
754PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeFavouritePred1(threadData_t *threadData, modelica_integer _nodeIdx, modelica_metatype _graphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _ect, modelica_metatype _fpredIn);
755PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_computeFavouritePred1(threadData_t *threadData, modelica_metatype _nodeIdx, modelica_metatype _graphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _ect, modelica_metatype _fpredIn);
756static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeFavouritePred1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeFavouritePred1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeFavouritePred1,0}};
757#define boxvar_HpcOmScheduler_computeFavouritePred1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeFavouritePred1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeFavouritePred1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeFavouritePred1
).header) + 3))
758PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeFavouritePred(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype _ect);
759static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeFavouritePred,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_computeFavouritePred
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_computeFavouritePredomc_HpcOmScheduler_computeFavouritePred,0}};
760#define boxvar_HpcOmScheduler_computeFavouritePred((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeFavouritePred
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_computeFavouritePred)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_computeFavouritePred
).header) + 3))
761PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_TDSpredIsCritical(threadData_t *threadData, modelica_integer _node, modelica_integer _pred, modelica_metatype _iTaskGraphMeta, modelica_metatype _lastArrayIn, modelica_metatype _lactArrayIn);
762PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDSpredIsCritical(threadData_t *threadData, modelica_metatype _node, modelica_metatype _pred, modelica_metatype _iTaskGraphMeta, modelica_metatype _lastArrayIn, modelica_metatype _lactArrayIn);
763static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDSpredIsCritical,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDSpredIsCritical
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDSpredIsCritical,0}};
764#define boxvar_HpcOmScheduler_TDSpredIsCritical((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDSpredIsCritical
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDSpredIsCritical)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDSpredIsCritical
).header) + 3))
765PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__InitialCluster1(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _lastArrayIn, modelica_metatype _lactArrayIn, modelica_metatype _fpredArrayIn, modelica_metatype _rootNodes, modelica_metatype _taskAssIn, modelica_integer _currThread, modelica_metatype _queue, modelica_metatype _clustersIn);
766PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDS__InitialCluster1(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _lastArrayIn, modelica_metatype _lactArrayIn, modelica_metatype _fpredArrayIn, modelica_metatype _rootNodes, modelica_metatype _taskAssIn, modelica_metatype _currThread, modelica_metatype _queue, modelica_metatype _clustersIn);
767static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__InitialCluster1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__InitialCluster1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__InitialCluster1,0}};
768#define boxvar_HpcOmScheduler_TDS__InitialCluster1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__InitialCluster1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__InitialCluster1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__InitialCluster1
).header) + 3))
769PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__InitialCluster(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _lastArrayIn, modelica_metatype _lactArrayIn, modelica_metatype _fpredArrayIn, modelica_metatype _queue);
770static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__InitialCluster,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__InitialCluster
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__InitialClusteromc_HpcOmScheduler_TDS__InitialCluster,0}};
771#define boxvar_HpcOmScheduler_TDS__InitialCluster((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__InitialCluster
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__InitialCluster)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__InitialCluster
).header) + 3))
772PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_TDS__computeClusterCosts(threadData_t *threadData, modelica_metatype _clusters, modelica_metatype _iTaskGraphMeta);
773PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDS__computeClusterCosts(threadData_t *threadData, modelica_metatype _clusters, modelica_metatype _iTaskGraphMeta);
774static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__computeClusterCosts,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__computeClusterCosts
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__computeClusterCosts,0}};
775#define boxvar_HpcOmScheduler_TDS__computeClusterCosts((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__computeClusterCosts
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__computeClusterCosts)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__computeClusterCosts
).header) + 3))
776PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__SortCompactClusters(threadData_t *threadData, modelica_metatype _clusterIn, modelica_metatype _tdsLevelIn);
777static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__SortCompactClusters,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__SortCompactClusters
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__SortCompactClustersomc_HpcOmScheduler_TDS__SortCompactClusters,0}};
778#define boxvar_HpcOmScheduler_TDS__SortCompactClusters((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__SortCompactClusters
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__SortCompactClusters)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__SortCompactClusters
).header) + 3))
779PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__CompactClusters(threadData_t *threadData, modelica_metatype _clustersIn, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype _TDSLevel, modelica_integer _numProc);
780PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDS__CompactClusters(threadData_t *threadData, modelica_metatype _clustersIn, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype _TDSLevel, modelica_metatype _numProc);
781static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__CompactClusters,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__CompactClusters
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__CompactClusters,0}};
782#define boxvar_HpcOmScheduler_TDS__CompactClusters((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__CompactClusters
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__CompactClusters)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__CompactClusters
).header) + 3))
783PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_TDS__getTaskAssignment(threadData_t *threadData, modelica_integer _procIdx, modelica_metatype _clusterArrayIn, modelica_metatype _taskAssIn);
784PROTECTED_FUNCTION_STATIC void boxptr_HpcOmScheduler_TDS__getTaskAssignment(threadData_t *threadData, modelica_metatype _procIdx, modelica_metatype _clusterArrayIn, modelica_metatype _taskAssIn);
785static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__getTaskAssignment,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__getTaskAssignment
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__getTaskAssignment,0}};
786#define boxvar_HpcOmScheduler_TDS__getTaskAssignment((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__getTaskAssignment
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__getTaskAssignment)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__getTaskAssignment
).header) + 3))
787PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceInSimJac(threadData_t *threadData, modelica_metatype _simJacRowIn, modelica_metatype _replIn);
788static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceInSimJac,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceInSimJac
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceInSimJacomc_HpcOmScheduler_replaceInSimJac,0}};
789#define boxvar_HpcOmScheduler_replaceInSimJac((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceInSimJac
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceInSimJac)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceInSimJac
).header) + 3))
790PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceCrefInSimVar(threadData_t *threadData, modelica_metatype _simVarIn, modelica_metatype _replIn, modelica_boolean *out_changedOut);
791PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_replaceCrefInSimVar(threadData_t *threadData, modelica_metatype _simVarIn, modelica_metatype _replIn, modelica_metatype *out_changedOut);
792static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceCrefInSimVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceCrefInSimVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceCrefInSimVar,0}};
793#define boxvar_HpcOmScheduler_replaceCrefInSimVar((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceCrefInSimVar
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceCrefInSimVar)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceCrefInSimVar
).header) + 3))
794PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceExpsInSimEqSystem(threadData_t *threadData, modelica_metatype _simEqSysIn, modelica_metatype _replIn, modelica_boolean *out_changedOut);
795PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_replaceExpsInSimEqSystem(threadData_t *threadData, modelica_metatype _simEqSysIn, modelica_metatype _replIn, modelica_metatype *out_changedOut);
796static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceExpsInSimEqSystem,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceExpsInSimEqSystem
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceExpsInSimEqSystem,0}};
797#define boxvar_HpcOmScheduler_replaceExpsInSimEqSystem((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceExpsInSimEqSystem
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceExpsInSimEqSystem)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceExpsInSimEqSystem
).header) + 3))
798PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceInSimEqSystemLst(threadData_t *threadData, modelica_metatype _simEqSysLstIn, modelica_metatype _replIn, modelica_metatype *out_changedOut);
799static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceInSimEqSystemLst,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceInSimEqSystemLst
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceInSimEqSystemLstomc_HpcOmScheduler_replaceInSimEqSystemLst,0}};
800#define boxvar_HpcOmScheduler_replaceInSimEqSystemLst((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceInSimEqSystemLst
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceInSimEqSystemLst)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceInSimEqSystemLst
).header) + 3))
801PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceSystemIndex(threadData_t *threadData, modelica_metatype _simEqSysIn, modelica_metatype _idcsIn, modelica_metatype *out_idcsOut);
802static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceSystemIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceSystemIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceSystemIndexomc_HpcOmScheduler_replaceSystemIndex,0}};
803#define boxvar_HpcOmScheduler_replaceSystemIndex((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceSystemIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceSystemIndex)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceSystemIndex
).header) + 3))
804PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceSimEqSystemWithSameIndex(threadData_t *threadData, modelica_metatype _eqSysIn, modelica_metatype _eqSysLstIn);
805static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceSimEqSystemWithSameIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceSimEqSystemWithSameIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceSimEqSystemWithSameIndexomc_HpcOmScheduler_replaceSimEqSystemWithSameIndex,0}};
806#define boxvar_HpcOmScheduler_replaceSimEqSystemWithSameIndex((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceSimEqSystemWithSameIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceSimEqSystemWithSameIndex)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceSimEqSystemWithSameIndex
).header) + 3))
807PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex(threadData_t *threadData, modelica_metatype _eqSystsIn, modelica_metatype _eqSysLstIn);
808static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_replaceSimEqSystemLstWithSameIndexomc_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex,0}};
809#define boxvar_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_replaceSimEqSystemLstWithSameIndex
).header) + 3))
810PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_makeSEScrefAssignment(threadData_t *threadData, modelica_metatype _lhs, modelica_metatype _rhs, modelica_integer _idx);
811PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_makeSEScrefAssignment(threadData_t *threadData, modelica_metatype _lhs, modelica_metatype _rhs, modelica_metatype _idx);
812static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeSEScrefAssignment,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_makeSEScrefAssignment
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_makeSEScrefAssignment,0}};
813#define boxvar_HpcOmScheduler_makeSEScrefAssignment((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeSEScrefAssignment
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeSEScrefAssignment)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeSEScrefAssignment
).header) + 3))
814PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__duplicateSystemOfEquations(threadData_t *threadData, modelica_metatype _simEqsIn, modelica_integer _simEqSysIdxIn, modelica_metatype _repl, modelica_metatype _simEqsFold, modelica_integer *out_simEqSysIdxOut);
815PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDS__duplicateSystemOfEquations(threadData_t *threadData, modelica_metatype _simEqsIn, modelica_metatype _simEqSysIdxIn, modelica_metatype _repl, modelica_metatype _simEqsFold, modelica_metatype *out_simEqSysIdxOut);
816static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateSystemOfEquations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__duplicateSystemOfEquations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__duplicateSystemOfEquations,0}};
817#define boxvar_HpcOmScheduler_TDS__duplicateSystemOfEquations((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateSystemOfEquations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateSystemOfEquations)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateSystemOfEquations
).header) + 3))
818PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__duplicateTasks2(threadData_t *threadData, modelica_integer _node, modelica_metatype _allCluster, modelica_metatype _replIn, modelica_metatype _taskAssIn, modelica_metatype _procAssIn, modelica_metatype _threadIn, modelica_metatype _idcsIn, modelica_metatype _taskGraphOrig, modelica_metatype _taskGraphTOrig, modelica_metatype _taskGraphIn, modelica_metatype _taskDuplAssIn, modelica_metatype _iTaskGraphMeta, modelica_metatype _simCodeIn, modelica_metatype _sccSimEqMappingIn, modelica_metatype _duplSccSimEqMapIn, modelica_metatype _duplCompsIn, modelica_metatype *out_taskAssOut, modelica_metatype *out_procAssOut, modelica_metatype *out_taskGraphOut, modelica_metatype *out_taskDuplAssOut, modelica_metatype *out_threadOut, modelica_metatype *out_idcsOut, modelica_metatype *out_simCodeOut, modelica_metatype *out_duplSccSimEqMapOut, modelica_metatype *out_duplCompsOut);
819PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDS__duplicateTasks2(threadData_t *threadData, modelica_metatype _node, modelica_metatype _allCluster, modelica_metatype _replIn, modelica_metatype _taskAssIn, modelica_metatype _procAssIn, modelica_metatype _threadIn, modelica_metatype _idcsIn, modelica_metatype _taskGraphOrig, modelica_metatype _taskGraphTOrig, modelica_metatype _taskGraphIn, modelica_metatype _taskDuplAssIn, modelica_metatype _iTaskGraphMeta, modelica_metatype _simCodeIn, modelica_metatype _sccSimEqMappingIn, modelica_metatype _duplSccSimEqMapIn, modelica_metatype _duplCompsIn, modelica_metatype *out_taskAssOut, modelica_metatype *out_procAssOut, modelica_metatype *out_taskGraphOut, modelica_metatype *out_taskDuplAssOut, modelica_metatype *out_threadOut, modelica_metatype *out_idcsOut, modelica_metatype *out_simCodeOut, modelica_metatype *out_duplSccSimEqMapOut, modelica_metatype *out_duplCompsOut);
820static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__duplicateTasks2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__duplicateTasks2,0}};
821#define boxvar_HpcOmScheduler_TDS__duplicateTasks2((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks2)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks2
).header) + 3))
822PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__duplicateTasks1(threadData_t *threadData, modelica_metatype _clusterIn, modelica_metatype _allCluster, modelica_metatype _replIn, modelica_metatype _taskAssIn, modelica_metatype _procAssIn, modelica_metatype _threadIn, modelica_metatype _idcsIn, modelica_metatype _taskGraphOrig, modelica_metatype _taskGraphTOrig, modelica_metatype _taskGraphIn, modelica_metatype _taskDuplAssIn, modelica_metatype _iTaskGraphMeta, modelica_metatype _simCodeIn, modelica_metatype _sccSimEqMappingIn, modelica_metatype _duplSccSimEqMapIn, modelica_metatype _duplCompsIn, modelica_metatype *out_procAssOut, modelica_metatype *out_taskGraphOut, modelica_metatype *out_taskDuplAssOut, modelica_metatype *out_threadOut, modelica_metatype *out_idcsOut, modelica_metatype *out_simCodeOut, modelica_metatype *out_duplSccSimEqMapOut, modelica_metatype *out_duplCompsOut);
823static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__duplicateTasks1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__duplicateTasks1omc_HpcOmScheduler_TDS__duplicateTasks1,0}};
824#define boxvar_HpcOmScheduler_TDS__duplicateTasks1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks1
).header) + 3))
825PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__duplicateTasks(threadData_t *threadData, modelica_metatype _clustersIn, modelica_metatype _taskAssIn, modelica_metatype _procAssIn, modelica_metatype _idcsIn, modelica_metatype _taskGraphOrig, modelica_metatype _taskGraphTOrig, modelica_metatype _taskGraphIn, modelica_metatype _taskDuplAssIn, modelica_metatype _iTaskGraphMeta, modelica_metatype _simCodeIn, modelica_metatype _scheduleIn, modelica_metatype _sccSimEqMappingIn, modelica_metatype _duplSccSimEqMapIn, modelica_metatype _duplCompsIn, modelica_metatype *out_procAssOut, modelica_metatype *out_taskGraphOut, modelica_metatype *out_taskDuplAssOut, modelica_metatype *out_idcsOut, modelica_metatype *out_simCodeOut, modelica_metatype *out_scheduleOut, modelica_metatype *out_duplSccSimEqMapOut, modelica_metatype *out_duplCompsOut);
826static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__duplicateTasks
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__duplicateTasksomc_HpcOmScheduler_TDS__duplicateTasks,0}};
827#define boxvar_HpcOmScheduler_TDS__duplicateTasks((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__duplicateTasks
).header) + 3))
828PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__updateModelInfo(threadData_t *threadData, modelica_metatype _simCodeIn, modelica_metatype _idcs);
829static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__updateModelInfo,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__updateModelInfo
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__updateModelInfoomc_HpcOmScheduler_TDS__updateModelInfo,0}};
830#define boxvar_HpcOmScheduler_TDS__updateModelInfo((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__updateModelInfo
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__updateModelInfo)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__updateModelInfo
).header) + 3))
831PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn(threadData_t *threadData, modelica_metatype _jacIn, modelica_metatype _assIn);
832static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnomc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn,0}};
833#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumn
).header) + 3))
834PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix(threadData_t *threadData, modelica_metatype _jacIn, modelica_metatype _assIn);
835static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixomc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix,0}};
836#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrix
).header) + 3))
837PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate(threadData_t *threadData, modelica_metatype _jacIn, modelica_metatype _tplIn, modelica_metatype *out_tplOut);
838static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdateomc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate,0}};
839#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianColumnWithUpdate
).header) + 3))
840PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate(threadData_t *threadData, modelica_metatype _jacIn, modelica_metatype _tplIn, modelica_metatype *out_tplOut);
841static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdateomc_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate,0}};
842#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxInJacobianMatrixWithUpdate
).header) + 3))
843PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate(threadData_t *threadData, modelica_metatype _simEqIn, modelica_metatype _tplIn, modelica_metatype *out_tplOut);
844static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdateomc_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate,0}};
845#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndexWithUpdate
).header) + 3))
846PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIndex(threadData_t *threadData, modelica_metatype _simEqIn, modelica_metatype _assIn);
847static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIndexomc_HpcOmScheduler_TDS__replaceSimEqSysIndex,0}};
848#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIndex((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndex)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIndex
).header) + 3))
849PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__assignNewSimEqSysIdxs(threadData_t *threadData, modelica_metatype _simCodeIn, modelica_metatype _idxAssIn, modelica_metatype *out_idxAssOut);
850static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__assignNewSimEqSysIdxs,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__assignNewSimEqSysIdxs
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__assignNewSimEqSysIdxsomc_HpcOmScheduler_TDS__assignNewSimEqSysIdxs,0}};
851#define boxvar_HpcOmScheduler_TDS__assignNewSimEqSysIdxs((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__assignNewSimEqSysIdxs
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__assignNewSimEqSysIdxs)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__assignNewSimEqSysIdxs
).header) + 3))
852PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst(threadData_t *threadData, modelica_metatype _taskLstIn, modelica_metatype _assIn);
853static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLstomc_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst,0}};
854#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskLst
).header) + 3))
855PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _assIn);
856static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTaskomc_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask,0}};
857#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInTask
).header) + 3))
858PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_metatype _assIn);
859static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__replaceSimEqSysIdxsInScheduleomc_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule,0}};
860#define boxvar_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__replaceSimEqSysIdxsInSchedule
).header) + 3))
861PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_TDS__schedule1(threadData_t *threadData, modelica_metatype _clustersIn, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _TDSLevel, modelica_integer _numProc, modelica_metatype _iSccSimEqMapping, modelica_metatype _iSimCode, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype *out_oSimCode, modelica_metatype *out_oTaskGraph, modelica_metatype *out_oTaskGraphMeta, modelica_metatype *out_oSccSimEqMapping);
862PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_TDS__schedule1(threadData_t *threadData, modelica_metatype _clustersIn, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_metatype _TDSLevel, modelica_metatype _numProc, modelica_metatype _iSccSimEqMapping, modelica_metatype _iSimCode, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype *out_oSimCode, modelica_metatype *out_oTaskGraph, modelica_metatype *out_oTaskGraphMeta, modelica_metatype *out_oSccSimEqMapping);
863static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__schedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_TDS__schedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_TDS__schedule1,0}};
864#define boxvar_HpcOmScheduler_TDS__schedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__schedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_TDS__schedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_TDS__schedule1
).header) + 3))
865PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_insertLocksInSchedule1(threadData_t *threadData, modelica_metatype _threadsIn, modelica_metatype _iTaskGraphTransposed, modelica_metatype _taskProcAss, modelica_metatype _iAllCalcTasks, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _foldIn);
866static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_insertLocksInSchedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_insertLocksInSchedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_insertLocksInSchedule1omc_HpcOmScheduler_insertLocksInSchedule1,0}};
867#define boxvar_HpcOmScheduler_insertLocksInSchedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_insertLocksInSchedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_insertLocksInSchedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_insertLocksInSchedule1
).header) + 3))
868PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_insertLocksInSchedule(threadData_t *threadData, modelica_metatype _iSchedule, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _taskAss, modelica_metatype _procAss, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
869static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_insertLocksInSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_insertLocksInSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_insertLocksInScheduleomc_HpcOmScheduler_insertLocksInSchedule,0}};
870#define boxvar_HpcOmScheduler_insertLocksInSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_insertLocksInSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_insertLocksInSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_insertLocksInSchedule
).header) + 3))
871PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createExtSchedule1(threadData_t *threadData, modelica_metatype _iNodeList, modelica_metatype _iThreadAssignments, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSccSimEqMapping, modelica_metatype _iSimVarMapping, modelica_fnptr _iLockWithPredecessorHandler, modelica_metatype _iSchedule);
872static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createExtSchedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createExtSchedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createExtSchedule1omc_HpcOmScheduler_createExtSchedule1,0}};
873#define boxvar_HpcOmScheduler_createExtSchedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createExtSchedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createExtSchedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createExtSchedule1
).header) + 3))
874PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_preparehMetis(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype *out_eptr, modelica_metatype *out_eint, modelica_metatype *out_hewgts);
875static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_preparehMetis,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_preparehMetis
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_preparehMetisomc_HpcOmScheduler_preparehMetis,0}};
876#define boxvar_HpcOmScheduler_preparehMetis((void*)((char*)(&(boxvar_lit_HpcOmScheduler_preparehMetis
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_preparehMetis)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_preparehMetis
).header) + 3))
877PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getHedge(threadData_t *threadData, modelica_metatype _childnodes, modelica_metatype _actnode);
878static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getHedge,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getHedge
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getHedgeomc_HpcOmScheduler_getHedge,0}};
879#define boxvar_HpcOmScheduler_getHedge((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getHedge).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getHedge)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getHedge).header
) + 3))
880PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_listNodes(threadData_t *threadData, modelica_integer _node, modelica_metatype _l_eint);
881PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_listNodes(threadData_t *threadData, modelica_metatype _node, modelica_metatype _l_eint);
882static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_listNodes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_listNodes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_listNodes,0}};
883#define boxvar_HpcOmScheduler_listNodes((void*)((char*)(&(boxvar_lit_HpcOmScheduler_listNodes).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_listNodes)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_listNodes).header
) + 3))
884PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_prepareMetis(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphMeta, modelica_metatype *out_adjncy, modelica_metatype *out_vwgt, modelica_metatype *out_adjwgt);
885static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_prepareMetis,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_prepareMetis
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_prepareMetisomc_HpcOmScheduler_prepareMetis,0}};
886#define boxvar_HpcOmScheduler_prepareMetis((void*)((char*)(&(boxvar_lit_HpcOmScheduler_prepareMetis
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_prepareMetis)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_prepareMetis
).header) + 3))
887PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_setVwgt(threadData_t *threadData, modelica_integer _node, modelica_metatype _vwgt, modelica_metatype _iTaskGraphMeta);
888PROTECTED_FUNCTION_STATIC void boxptr_HpcOmScheduler_setVwgt(threadData_t *threadData, modelica_metatype _node, modelica_metatype _vwgt, modelica_metatype _iTaskGraphMeta);
889static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setVwgt,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_setVwgt
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_setVwgt,0}};
890#define boxvar_HpcOmScheduler_setVwgt((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setVwgt).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_setVwgt)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_setVwgt).header
) + 3))
891PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_sortEdge(threadData_t *threadData, modelica_integer _actnode, modelica_metatype _xadj, modelica_metatype _adjncy, modelica_metatype _adjwgt, modelica_metatype _help, modelica_integer _imarker);
892PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_sortEdge(threadData_t *threadData, modelica_metatype _actnode, modelica_metatype _xadj, modelica_metatype _adjncy, modelica_metatype _adjwgt, modelica_metatype _help, modelica_metatype _imarker);
893static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sortEdge,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_sortEdge
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_sortEdge,0}};
894#define boxvar_HpcOmScheduler_sortEdge((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sortEdge).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sortEdge)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sortEdge).header
) + 3))
895PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_sortEdgeHelp(threadData_t *threadData, modelica_metatype _edge, modelica_integer _actnode, modelica_metatype _adjncy, modelica_metatype _adjwgt, modelica_integer _imarker);
896PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_sortEdgeHelp(threadData_t *threadData, modelica_metatype _edge, modelica_metatype _actnode, modelica_metatype _adjncy, modelica_metatype _adjwgt, modelica_metatype _imarker);
897static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sortEdgeHelp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_sortEdgeHelp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_sortEdgeHelp,0}};
898#define boxvar_HpcOmScheduler_sortEdgeHelp((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sortEdgeHelp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sortEdgeHelp)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sortEdgeHelp
).header) + 3))
899PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getRelations(threadData_t *threadData, modelica_metatype _edges, modelica_metatype _iTaskGraphMeta, modelica_metatype _irelations);
900static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getRelations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getRelations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getRelationsomc_HpcOmScheduler_getRelations,0}};
901#define boxvar_HpcOmScheduler_getRelations((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getRelations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getRelations)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getRelations
).header) + 3))
902PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getSingleRelations(threadData_t *threadData, modelica_integer _edge, modelica_integer _n, modelica_metatype _iTaskGraphMeta, modelica_metatype _irelations);
903PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getSingleRelations(threadData_t *threadData, modelica_metatype _edge, modelica_metatype _n, modelica_metatype _iTaskGraphMeta, modelica_metatype _irelations);
904static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSingleRelations,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getSingleRelations
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getSingleRelations,0}};
905#define boxvar_HpcOmScheduler_getSingleRelations((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSingleRelations
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSingleRelations)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSingleRelations
).header) + 3))
906PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_sumEdge(threadData_t *threadData, modelica_metatype _edges, modelica_integer _innumedge);
907PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_sumEdge(threadData_t *threadData, modelica_metatype _edges, modelica_metatype _innumedge);
908static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sumEdge,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_sumEdge
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_sumEdge,0}};
909#define boxvar_HpcOmScheduler_sumEdge((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sumEdge).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sumEdge)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sumEdge).header
) + 3))
910PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_arrayIntIsNotOne(threadData_t *threadData, modelica_integer _idx, modelica_metatype _arr);
911PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_arrayIntIsNotOne(threadData_t *threadData, modelica_metatype _idx, modelica_metatype _arr);
912static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_arrayIntIsNotOne,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_arrayIntIsNotOne
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_arrayIntIsNotOne,0}};
913#define boxvar_HpcOmScheduler_arrayIntIsNotOne((void*)((char*)(&(boxvar_lit_HpcOmScheduler_arrayIntIsNotOne
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_arrayIntIsNotOne)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_arrayIntIsNotOne
).header) + 3))
914PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_createMetisSchedule1(threadData_t *threadData, modelica_metatype _taskIdcs, modelica_metatype _threadIds, modelica_metatype _taskGraph, modelica_metatype _taskGraphT, modelica_metatype _priorityArr);
915static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createMetisSchedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createMetisSchedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createMetisSchedule1omc_HpcOmScheduler_createMetisSchedule1,0}};
916#define boxvar_HpcOmScheduler_createMetisSchedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createMetisSchedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createMetisSchedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createMetisSchedule1
).header) + 3))
917PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_isPrioNode(threadData_t *threadData, modelica_integer _idx, modelica_metatype _prioArr);
918PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_isPrioNode(threadData_t *threadData, modelica_metatype _idx, modelica_metatype _prioArr);
919static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isPrioNode,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_isPrioNode
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_isPrioNode,0}};
920#define boxvar_HpcOmScheduler_isPrioNode((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isPrioNode).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_isPrioNode)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_isPrioNode).
header) + 3))
921PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createMetisSchedule2(threadData_t *threadData, modelica_metatype _levelNodes, modelica_metatype _priorityArr, modelica_metatype _prioLstIn, modelica_metatype _otherLstIn, modelica_metatype *out_otherLstOut);
922static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createMetisSchedule2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createMetisSchedule2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createMetisSchedule2omc_HpcOmScheduler_createMetisSchedule2,0}};
923#define boxvar_HpcOmScheduler_createMetisSchedule2((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createMetisSchedule2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createMetisSchedule2)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createMetisSchedule2
).header) + 3))
924PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_getProcAss(threadData_t *threadData, modelica_integer _idx, modelica_metatype _taskAss, modelica_metatype _procAss);
925PROTECTED_FUNCTION_STATIC void boxptr_HpcOmScheduler_getProcAss(threadData_t *threadData, modelica_metatype _idx, modelica_metatype _taskAss, modelica_metatype _procAss);
926static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getProcAss,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getProcAss
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getProcAss,0}};
927#define boxvar_HpcOmScheduler_getProcAss((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getProcAss).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getProcAss)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getProcAss).
header) + 3))
928PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_filterNodeLevelMapping(threadData_t *threadData, modelica_metatype _iElem);
929static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_filterNodeLevelMapping,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_filterNodeLevelMapping
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_filterNodeLevelMappingomc_HpcOmScheduler_filterNodeLevelMapping,0}};
930#define boxvar_HpcOmScheduler_filterNodeLevelMapping((void*)((char*)(&(boxvar_lit_HpcOmScheduler_filterNodeLevelMapping
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_filterNodeLevelMapping)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_filterNodeLevelMapping
).header) + 3))
931PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_sortNodeLevelMapping(threadData_t *threadData, modelica_metatype _iElem1, modelica_metatype _iElem2);
932PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_sortNodeLevelMapping(threadData_t *threadData, modelica_metatype _iElem1, modelica_metatype _iElem2);
933static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sortNodeLevelMapping,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_sortNodeLevelMapping
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_sortNodeLevelMapping,0}};
934#define boxvar_HpcOmScheduler_sortNodeLevelMapping((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sortNodeLevelMapping
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_sortNodeLevelMapping)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_sortNodeLevelMapping
).header) + 3))
935PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createNodeLevelMapping(threadData_t *threadData, modelica_metatype _iNodeDependenciesT, modelica_metatype _nodeMarks, modelica_metatype _inComps, modelica_metatype _iSccSimEqMapping, modelica_metatype _iNodeInfo);
936static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createNodeLevelMapping,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createNodeLevelMapping
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createNodeLevelMappingomc_HpcOmScheduler_createNodeLevelMapping,0}};
937#define boxvar_HpcOmScheduler_createNodeLevelMapping((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createNodeLevelMapping
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createNodeLevelMapping)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createNodeLevelMapping
).header) + 3))
938PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getFirstReadyThread0(threadData_t *threadData, modelica_real _iThreadReadyTime, modelica_metatype _iFirstReadyThread);
939PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getFirstReadyThread0(threadData_t *threadData, modelica_metatype _iThreadReadyTime, modelica_metatype _iFirstReadyThread);
940static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getFirstReadyThread0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getFirstReadyThread0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getFirstReadyThread0,0}};
941#define boxvar_HpcOmScheduler_getFirstReadyThread0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getFirstReadyThread0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getFirstReadyThread0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getFirstReadyThread0
).header) + 3))
942PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getFirstReadyThread(threadData_t *threadData, modelica_metatype _iThreadReadyList);
943PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getFirstReadyThread(threadData_t *threadData, modelica_metatype _iThreadReadyList);
944static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getFirstReadyThread,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getFirstReadyThread
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getFirstReadyThread,0}};
945#define boxvar_HpcOmScheduler_getFirstReadyThread((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getFirstReadyThread
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getFirstReadyThread)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getFirstReadyThread
).header) + 3))
946PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getBestFittingThread(threadData_t *threadData, modelica_metatype _iAdviceList, modelica_real _iLevelExecCosts, modelica_metatype _iThreadReadyList);
947PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getBestFittingThread(threadData_t *threadData, modelica_metatype _iAdviceList, modelica_metatype _iLevelExecCosts, modelica_metatype _iThreadReadyList);
948static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getBestFittingThread,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getBestFittingThread
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getBestFittingThread,0}};
949#define boxvar_HpcOmScheduler_getBestFittingThread((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getBestFittingThread
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getBestFittingThread)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getBestFittingThread
).header) + 3))
950PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_intTpl22Gt(threadData_t *threadData, modelica_metatype _iTpl1, modelica_metatype _iTpl2);
951PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_intTpl22Gt(threadData_t *threadData, modelica_metatype _iTpl1, modelica_metatype _iTpl2);
952static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_intTpl22Gt,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_intTpl22Gt
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_intTpl22Gt,0}};
953#define boxvar_HpcOmScheduler_intTpl22Gt((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intTpl22Gt).
header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_intTpl22Gt)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intTpl22Gt).
header) + 3))
954PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_arrayToTupleListZeroRemoved(threadData_t *threadData, modelica_metatype _iArray, modelica_integer _iCurrentIdx, modelica_metatype _iTupleList);
955PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_arrayToTupleListZeroRemoved(threadData_t *threadData, modelica_metatype _iArray, modelica_metatype _iCurrentIdx, modelica_metatype _iTupleList);
956static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_arrayToTupleListZeroRemoved,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_arrayToTupleListZeroRemoved
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_arrayToTupleListZeroRemoved,0}};
957#define boxvar_HpcOmScheduler_arrayToTupleListZeroRemoved((void*)((char*)(&(boxvar_lit_HpcOmScheduler_arrayToTupleListZeroRemoved
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_arrayToTupleListZeroRemoved)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_arrayToTupleListZeroRemoved
).header) + 3))
958PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_flattenAdviceListElem(threadData_t *threadData, modelica_integer _iAdviceElem, modelica_metatype _iCounterArray);
959PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_flattenAdviceListElem(threadData_t *threadData, modelica_metatype _iAdviceElem, modelica_metatype _iCounterArray);
960static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_flattenAdviceListElem,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_flattenAdviceListElem
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_flattenAdviceListElem,0}};
961#define boxvar_HpcOmScheduler_flattenAdviceListElem((void*)((char*)(&(boxvar_lit_HpcOmScheduler_flattenAdviceListElem
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_flattenAdviceListElem)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_flattenAdviceListElem
).header) + 3))
962PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_flattenAdviceList(threadData_t *threadData, modelica_metatype _iAdviceList, modelica_integer _iNumOfThreads);
963PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_flattenAdviceList(threadData_t *threadData, modelica_metatype _iAdviceList, modelica_metatype _iNumOfThreads);
964static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_flattenAdviceList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_flattenAdviceList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_flattenAdviceList,0}};
965#define boxvar_HpcOmScheduler_flattenAdviceList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_flattenAdviceList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_flattenAdviceList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_flattenAdviceList
).header) + 3))
966PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createFixedLevelScheduleForTask0(threadData_t *threadData, modelica_integer _iSuccessor, modelica_integer _iThreadAdvice, modelica_metatype _iAdviceList);
967PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createFixedLevelScheduleForTask0(threadData_t *threadData, modelica_metatype _iSuccessor, modelica_metatype _iThreadAdvice, modelica_metatype _iAdviceList);
968static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createFixedLevelScheduleForTask0,0}};
969#define boxvar_HpcOmScheduler_createFixedLevelScheduleForTask0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask0
).header) + 3))
970PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createFixedLevelScheduleForTask(threadData_t *threadData, modelica_integer _iTaskIdx, modelica_real _iLevelExecCosts, modelica_metatype _iAdviceList, modelica_metatype _iThreadReadyList, modelica_metatype _iGraph, modelica_metatype _iMeta, modelica_metatype _iThreadTasks);
971PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createFixedLevelScheduleForTask(threadData_t *threadData, modelica_metatype _iTaskIdx, modelica_metatype _iLevelExecCosts, modelica_metatype _iAdviceList, modelica_metatype _iThreadReadyList, modelica_metatype _iGraph, modelica_metatype _iMeta, modelica_metatype _iThreadTasks);
972static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createFixedLevelScheduleForTask,0}};
973#define boxvar_HpcOmScheduler_createFixedLevelScheduleForTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForTask
).header) + 3))
974PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createFixedLevelScheduleForLevel0(threadData_t *threadData, modelica_metatype _iTaskList, modelica_metatype _iComps, modelica_metatype _iSccSimEqMapping, modelica_metatype _iIdxTaskList);
975static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createFixedLevelScheduleForLevel0omc_HpcOmScheduler_createFixedLevelScheduleForLevel0,0}};
976#define boxvar_HpcOmScheduler_createFixedLevelScheduleForLevel0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel0
).header) + 3))
977PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createFixedLevelScheduleForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iAdviceList, modelica_metatype _iGraph, modelica_metatype _iMeta, modelica_integer _iNumberOfThreads, modelica_metatype _iSccSimEqMapping, modelica_metatype _iLevelTaskLists);
978PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createFixedLevelScheduleForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iAdviceList, modelica_metatype _iGraph, modelica_metatype _iMeta, modelica_metatype _iNumberOfThreads, modelica_metatype _iSccSimEqMapping, modelica_metatype _iLevelTaskLists);
979static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createFixedLevelScheduleForLevel,0}};
980#define boxvar_HpcOmScheduler_createFixedLevelScheduleForLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createFixedLevelScheduleForLevel
).header) + 3))
981PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_dumpLevelSchedule(threadData_t *threadData, modelica_metatype _iLevelInfo, modelica_integer _iLevel, modelica_integer *out_oLevel);
982PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_dumpLevelSchedule(threadData_t *threadData, modelica_metatype _iLevelInfo, modelica_metatype _iLevel, modelica_metatype *out_oLevel);
983static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpLevelSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_dumpLevelSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_dumpLevelSchedule,0}};
984#define boxvar_HpcOmScheduler_dumpLevelSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpLevelSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpLevelSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpLevelSchedule
).header) + 3))
985PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_arrayIntIsNegative(threadData_t *threadData, modelica_integer _node, modelica_metatype _ass);
986PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_arrayIntIsNegative(threadData_t *threadData, modelica_metatype _node, modelica_metatype _ass);
987static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_arrayIntIsNegative,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_arrayIntIsNegative
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_arrayIntIsNegative,0}};
988#define boxvar_HpcOmScheduler_arrayIntIsNegative((void*)((char*)(&(boxvar_lit_HpcOmScheduler_arrayIntIsNegative
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_arrayIntIsNegative)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_arrayIntIsNegative
).header) + 3))
989PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_makeCalcTaskLevel(threadData_t *threadData, modelica_metatype _iNodeIdc, modelica_metatype _iNodeSccMapping, modelica_metatype _iSccSimEqMapping);
990static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeCalcTaskLevel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_makeCalcTaskLevel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_makeCalcTaskLevelomc_HpcOmScheduler_makeCalcTaskLevel,0}};
991#define boxvar_HpcOmScheduler_makeCalcTaskLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeCalcTaskLevel
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeCalcTaskLevel)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeCalcTaskLevel
).header) + 3))
992PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes(threadData_t *threadData, modelica_metatype _iNodeIdc, modelica_metatype _iSccSimEqMapping, modelica_metatype _iNodeSccMapping);
993static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodesomc_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes,0}};
994#define boxvar_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLstForMergedNodes
).header) + 3))
995PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_makeCalcLevelParTaskLst(threadData_t *threadData, modelica_metatype _iNodeIdc, modelica_metatype _iSccSimEqMapping, modelica_metatype _iNodeSccMapping);
996static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLst,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLst
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_makeCalcLevelParTaskLstomc_HpcOmScheduler_makeCalcLevelParTaskLst,0}};
997#define boxvar_HpcOmScheduler_makeCalcLevelParTaskLst((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLst
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLst)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_makeCalcLevelParTaskLst
).header) + 3))
998PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLevelAssignment(threadData_t *threadData, modelica_metatype _level, modelica_metatype _tplIn);
999static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelAssignment,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLevelAssignment
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLevelAssignmentomc_HpcOmScheduler_getLevelAssignment,0}};
1000#define boxvar_HpcOmScheduler_getLevelAssignment((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelAssignment
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLevelAssignment)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLevelAssignment
).header) + 3))
1001PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createLevelScheduleForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iGraph, modelica_metatype _iMeta, modelica_metatype _iSccSimEqMapping, modelica_metatype _iLevelTaskLists);
1002static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createLevelScheduleForLevel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createLevelScheduleForLevel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createLevelScheduleForLevelomc_HpcOmScheduler_createLevelScheduleForLevel,0}};
1003#define boxvar_HpcOmScheduler_createLevelScheduleForLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createLevelScheduleForLevel
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createLevelScheduleForLevel)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createLevelScheduleForLevel
).header) + 3))
1004PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_deleteIntListMembers(threadData_t *threadData, modelica_metatype _lst1, modelica_metatype _lst2);
1005static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_deleteIntListMembers,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_deleteIntListMembers
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_deleteIntListMembersomc_HpcOmScheduler_deleteIntListMembers,0}};
1006#define boxvar_HpcOmScheduler_deleteIntListMembers((void*)((char*)(&(boxvar_lit_HpcOmScheduler_deleteIntListMembers
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_deleteIntListMembers)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_deleteIntListMembers
).header) + 3))
1007PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_realSum(threadData_t *threadData, modelica_metatype _reals);
1008PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_realSum(threadData_t *threadData, modelica_metatype _reals);
1009static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_realSum,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_realSum
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_realSum,0}};
1010#define boxvar_HpcOmScheduler_realSum((void*)((char*)(&(boxvar_lit_HpcOmScheduler_realSum).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_realSum)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_realSum).header
) + 3))
1011PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_BLS__mergeToTargetSize(threadData_t *threadData, modelica_metatype _nodesIn, modelica_metatype _costsIn, modelica_real _targetSize, modelica_metatype _mergedNodesIn, modelica_metatype *out_clusterCostsOut);
1012PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_BLS__mergeToTargetSize(threadData_t *threadData, modelica_metatype _nodesIn, modelica_metatype _costsIn, modelica_metatype _targetSize, modelica_metatype _mergedNodesIn, modelica_metatype *out_clusterCostsOut);
1013static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__mergeToTargetSize,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_BLS__mergeToTargetSize
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_BLS__mergeToTargetSize,0}};
1014#define boxvar_HpcOmScheduler_BLS__mergeToTargetSize((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__mergeToTargetSize
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__mergeToTargetSize)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__mergeToTargetSize
).header) + 3))
1015PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_BLS__getDependentGroups(threadData_t *threadData, modelica_metatype _nodes, modelica_metatype _iGraph, modelica_metatype _iGraphT, modelica_metatype _referenceNodesIn, modelica_metatype _dependentsIn);
1016static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__getDependentGroups,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_BLS__getDependentGroups
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_BLS__getDependentGroupsomc_HpcOmScheduler_BLS__getDependentGroups,0}};
1017#define boxvar_HpcOmScheduler_BLS__getDependentGroups((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__getDependentGroups
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__getDependentGroups)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__getDependentGroups
).header) + 3))
1018PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_BLS__mergeDependentLevelTask(threadData_t *threadData, modelica_metatype _nodesIn, modelica_metatype _iGraph, modelica_metatype _iGraphT, modelica_metatype _sectionsIn);
1019static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__mergeDependentLevelTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_BLS__mergeDependentLevelTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_BLS__mergeDependentLevelTaskomc_HpcOmScheduler_BLS__mergeDependentLevelTask,0}};
1020#define boxvar_HpcOmScheduler_BLS__mergeDependentLevelTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__mergeDependentLevelTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__mergeDependentLevelTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__mergeDependentLevelTask
).header) + 3))
1021PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_BLS__fillParallelSections(threadData_t *threadData, modelica_metatype _levelIn, modelica_metatype _levelAssIn, modelica_metatype _critPathNodes, modelica_integer _levelIdx, modelica_real _targetCosts, modelica_metatype _iGraph, modelica_metatype _iGraphT, modelica_metatype _iMeta, modelica_metatype _unassNodesIn, modelica_metatype _sectionsIn);
1022PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_BLS__fillParallelSections(threadData_t *threadData, modelica_metatype _levelIn, modelica_metatype _levelAssIn, modelica_metatype _critPathNodes, modelica_metatype _levelIdx, modelica_metatype _targetCosts, modelica_metatype _iGraph, modelica_metatype _iGraphT, modelica_metatype _iMeta, modelica_metatype _unassNodesIn, modelica_metatype _sectionsIn);
1023static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__fillParallelSections,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_BLS__fillParallelSections
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_BLS__fillParallelSections,0}};
1024#define boxvar_HpcOmScheduler_BLS__fillParallelSections((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__fillParallelSections
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__fillParallelSections)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__fillParallelSections
).header) + 3))
1025PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_BLS__generateSchedule(threadData_t *threadData, modelica_metatype _level, modelica_metatype _iMeta, modelica_metatype _iSccSimEqMapping);
1026static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__generateSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_BLS__generateSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_BLS__generateScheduleomc_HpcOmScheduler_BLS__generateSchedule,0}};
1027#define boxvar_HpcOmScheduler_BLS__generateSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__generateSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__generateSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__generateSchedule
).header) + 3))
1028PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_BLS__mergeSmallSections(threadData_t *threadData, modelica_metatype _sectionsIn, modelica_metatype _iMeta, modelica_real _targetCosts);
1029PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_BLS__mergeSmallSections(threadData_t *threadData, modelica_metatype _sectionsIn, modelica_metatype _iMeta, modelica_metatype _targetCosts);
1030static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__mergeSmallSections,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_BLS__mergeSmallSections
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_BLS__mergeSmallSections,0}};
1031#define boxvar_HpcOmScheduler_BLS__mergeSmallSections((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__mergeSmallSections
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_BLS__mergeSmallSections)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_BLS__mergeSmallSections
).header) + 3))
1032PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertScheduleStrucToInfoLevel1(threadData_t *threadData, modelica_metatype _tasks, modelica_integer _sectionsNumber, modelica_integer _sectionIdx, modelica_metatype _iScheduleInfo);
1033PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertScheduleStrucToInfoLevel1(threadData_t *threadData, modelica_metatype _tasks, modelica_metatype _sectionsNumber, modelica_metatype _sectionIdx, modelica_metatype _iScheduleInfo);
1034static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertScheduleStrucToInfoLevel1,0}};
1035#define boxvar_HpcOmScheduler_convertScheduleStrucToInfoLevel1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel1
).header) + 3))
1036PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertScheduleStrucToInfoLevel(threadData_t *threadData, modelica_metatype _taskLst, modelica_integer _sectionsNumber, modelica_metatype _iScheduleInfo);
1037PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertScheduleStrucToInfoLevel(threadData_t *threadData, modelica_metatype _taskLst, modelica_metatype _sectionsNumber, modelica_metatype _iScheduleInfo);
1038static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertScheduleStrucToInfoLevel,0}};
1039#define boxvar_HpcOmScheduler_convertScheduleStrucToInfoLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfoLevel
).header) + 3))
1040PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertScheduleStrucToInfo1(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iScheduleInfo);
1041static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertScheduleStrucToInfo1omc_HpcOmScheduler_convertScheduleStrucToInfo1,0}};
1042#define boxvar_HpcOmScheduler_convertScheduleStrucToInfo1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo1
).header) + 3))
1043PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertScheduleStrucToInfo0(threadData_t *threadData, modelica_metatype _iTaskList, modelica_metatype _iScheduleInfo);
1044static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertScheduleStrucToInfo0omc_HpcOmScheduler_convertScheduleStrucToInfo0,0}};
1045#define boxvar_HpcOmScheduler_convertScheduleStrucToInfo0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertScheduleStrucToInfo0
).header) + 3))
1046PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_dumpTask(threadData_t *threadData, modelica_metatype _iTask);
1047static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_dumpTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_dumpTaskomc_HpcOmScheduler_dumpTask,0}};
1048#define boxvar_HpcOmScheduler_dumpTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpTask).header
) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpTask).header
) + 3))
1049PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_dumpTaskList(threadData_t *threadData, modelica_metatype _iTaskList);
1050static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpTaskList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_dumpTaskList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_dumpTaskListomc_HpcOmScheduler_dumpTaskList,0}};
1051#define boxvar_HpcOmScheduler_dumpTaskList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpTaskList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpTaskList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpTaskList
).header) + 3))
1052PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_printTaskList(threadData_t *threadData, modelica_metatype _iTaskList);
1053static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printTaskList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_printTaskList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_printTaskListomc_HpcOmScheduler_printTaskList,0}};
1054#define boxvar_HpcOmScheduler_printTaskList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printTaskList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_printTaskList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printTaskList
).header) + 3))
1055PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_dumpTaskDepSchedule(threadData_t *threadData, modelica_metatype _iTaskInfo);
1056static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpTaskDepSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_dumpTaskDepSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_dumpTaskDepScheduleomc_HpcOmScheduler_dumpTaskDepSchedule,0}};
1057#define boxvar_HpcOmScheduler_dumpTaskDepSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpTaskDepSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpTaskDepSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpTaskDepSchedule
).header) + 3))
1058PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_dumpThreadSchedule(threadData_t *threadData, modelica_metatype _iTaskList, modelica_integer _iThreadIdx, modelica_integer *out_oThreadIdx);
1059PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_dumpThreadSchedule(threadData_t *threadData, modelica_metatype _iTaskList, modelica_metatype _iThreadIdx, modelica_metatype *out_oThreadIdx);
1060static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpThreadSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_dumpThreadSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_dumpThreadSchedule,0}};
1061#define boxvar_HpcOmScheduler_dumpThreadSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpThreadSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_dumpThreadSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_dumpThreadSchedule
).header) + 3))
1062PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_compareTaskWithThreadIdx(threadData_t *threadData, modelica_integer _iThreadIdx, modelica_metatype _iTask1);
1063PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_compareTaskWithThreadIdx(threadData_t *threadData, modelica_metatype _iThreadIdx, modelica_metatype _iTask1);
1064static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_compareTaskWithThreadIdx,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_compareTaskWithThreadIdx
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_compareTaskWithThreadIdx,0}};
1065#define boxvar_HpcOmScheduler_compareTaskWithThreadIdx((void*)((char*)(&(boxvar_lit_HpcOmScheduler_compareTaskWithThreadIdx
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_compareTaskWithThreadIdx)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_compareTaskWithThreadIdx
).header) + 3))
1066PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_compareTasksByEqIdc(threadData_t *threadData, modelica_metatype _iTask1, modelica_metatype _iTask2);
1067PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_compareTasksByEqIdc(threadData_t *threadData, modelica_metatype _iTask1, modelica_metatype _iTask2);
1068static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_compareTasksByEqIdc,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_compareTasksByEqIdc
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_compareTasksByEqIdc,0}};
1069#define boxvar_HpcOmScheduler_compareTasksByEqIdc((void*)((char*)(&(boxvar_lit_HpcOmScheduler_compareTasksByEqIdc
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_compareTasksByEqIdc)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_compareTasksByEqIdc
).header) + 3))
1070PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_compareTasksByWeighting(threadData_t *threadData, modelica_metatype _iTask1, modelica_metatype _iTask2);
1071PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_compareTasksByWeighting(threadData_t *threadData, modelica_metatype _iTask1, modelica_metatype _iTask2);
1072static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_compareTasksByWeighting,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_compareTasksByWeighting
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_compareTasksByWeighting,0}};
1073#define boxvar_HpcOmScheduler_compareTasksByWeighting((void*)((char*)(&(boxvar_lit_HpcOmScheduler_compareTasksByWeighting
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_compareTasksByWeighting)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_compareTasksByWeighting
).header) + 3))
1074PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getTaskByIndex(threadData_t *threadData, modelica_integer _iTaskIdx, modelica_metatype _iAllCalcTasks);
1075PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTaskByIndex(threadData_t *threadData, modelica_metatype _iTaskIdx, modelica_metatype _iAllCalcTasks);
1076static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskByIndex,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTaskByIndex
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTaskByIndex,0}};
1077#define boxvar_HpcOmScheduler_getTaskByIndex((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskByIndex
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskByIndex)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskByIndex
).header) + 3))
1078PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getMaxCommCostsByTaskList2(threadData_t *threadData, modelica_metatype _iCommCosts, modelica_integer _iIdx);
1079PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getMaxCommCostsByTaskList2(threadData_t *threadData, modelica_metatype _iCommCosts, modelica_metatype _iIdx);
1080static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList2,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList2
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getMaxCommCostsByTaskList2,0}};
1081#define boxvar_HpcOmScheduler_getMaxCommCostsByTaskList2((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList2
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList2)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList2
).header) + 3))
1082PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getMaxCommCostsByTaskList1(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iParentTask, modelica_metatype _iCommCosts, modelica_real _iCurrentMax);
1083PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getMaxCommCostsByTaskList1(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iParentTask, modelica_metatype _iCommCosts, modelica_metatype _iCurrentMax);
1084static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getMaxCommCostsByTaskList1,0}};
1085#define boxvar_HpcOmScheduler_getMaxCommCostsByTaskList1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList1
).header) + 3))
1086PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getMaxCommCostsByTaskList(threadData_t *threadData, modelica_metatype _iParentTask, modelica_metatype _iTaskList, modelica_metatype _iCommCosts);
1087PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getMaxCommCostsByTaskList(threadData_t *threadData, modelica_metatype _iParentTask, modelica_metatype _iTaskList, modelica_metatype _iCommCosts);
1088static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getMaxCommCostsByTaskList,0}};
1089#define boxvar_HpcOmScheduler_getMaxCommCostsByTaskList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getMaxCommCostsByTaskList
).header) + 3))
1090PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_calculateFinishTimeByThreadId(threadData_t *threadData, modelica_real _iThreadReadyTime, modelica_real _iPredecessorTaskLastFinished, modelica_integer _iThreadId, modelica_metatype _iTask, modelica_metatype _iPredecessorTasks, modelica_metatype _iCommCosts);
1091PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_calculateFinishTimeByThreadId(threadData_t *threadData, modelica_metatype _iThreadReadyTime, modelica_metatype _iPredecessorTaskLastFinished, modelica_metatype _iThreadId, modelica_metatype _iTask, modelica_metatype _iPredecessorTasks, modelica_metatype _iCommCosts);
1092static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_calculateFinishTimeByThreadId,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_calculateFinishTimeByThreadId
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_calculateFinishTimeByThreadId,0}};
1093#define boxvar_HpcOmScheduler_calculateFinishTimeByThreadId((void*)((char*)(&(boxvar_lit_HpcOmScheduler_calculateFinishTimeByThreadId
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_calculateFinishTimeByThreadId)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_calculateFinishTimeByThreadId
).header) + 3))
1094PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_calculateFinishTimes1(threadData_t *threadData, modelica_real _iPredecessorTaskLastFinished, modelica_metatype _iTask, modelica_metatype _iPredecessorTasks, modelica_metatype _iCommCosts, modelica_metatype _iThreadReadyTimes, modelica_integer _iThreadIdx, modelica_metatype _iFinishTimes);
1095PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_calculateFinishTimes1(threadData_t *threadData, modelica_metatype _iPredecessorTaskLastFinished, modelica_metatype _iTask, modelica_metatype _iPredecessorTasks, modelica_metatype _iCommCosts, modelica_metatype _iThreadReadyTimes, modelica_metatype _iThreadIdx, modelica_metatype _iFinishTimes);
1096static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_calculateFinishTimes1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_calculateFinishTimes1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_calculateFinishTimes1,0}};
1097#define boxvar_HpcOmScheduler_calculateFinishTimes1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_calculateFinishTimes1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_calculateFinishTimes1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_calculateFinishTimes1
).header) + 3))
1098PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_calculateFinishTimes(threadData_t *threadData, modelica_real _iPredecessorTaskLastFinished, modelica_metatype _iTask, modelica_metatype _iPredecessorTasks, modelica_metatype _iCommCosts, modelica_metatype _iThreadReadyTimes);
1099PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_calculateFinishTimes(threadData_t *threadData, modelica_metatype _iPredecessorTaskLastFinished, modelica_metatype _iTask, modelica_metatype _iPredecessorTasks, modelica_metatype _iCommCosts, modelica_metatype _iThreadReadyTimes);
1100static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_calculateFinishTimes,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_calculateFinishTimes
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_calculateFinishTimes,0}};
1101#define boxvar_HpcOmScheduler_calculateFinishTimes((void*)((char*)(&(boxvar_lit_HpcOmScheduler_calculateFinishTimes
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_calculateFinishTimes)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_calculateFinishTimes
).header) + 3))
1102PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertNodeToTaskReverse(threadData_t *threadData, modelica_integer _iNodeIdx, modelica_metatype _iTaskGraphMeta);
1103PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertNodeToTaskReverse(threadData_t *threadData, modelica_metatype _iNodeIdx, modelica_metatype _iTaskGraphMeta);
1104static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertNodeToTaskReverse,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertNodeToTaskReverse
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertNodeToTaskReverse,0}};
1105#define boxvar_HpcOmScheduler_convertNodeToTaskReverse((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertNodeToTaskReverse
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertNodeToTaskReverse)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertNodeToTaskReverse
).header) + 3))
1106PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertNodeToTask(threadData_t *threadData, modelica_integer _iNodeIdx, modelica_metatype _iTaskGraphMeta);
1107PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertNodeToTask(threadData_t *threadData, modelica_metatype _iNodeIdx, modelica_metatype _iTaskGraphMeta);
1108static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertNodeToTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertNodeToTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertNodeToTask,0}};
1109#define boxvar_HpcOmScheduler_convertNodeToTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertNodeToTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertNodeToTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertNodeToTask
).header) + 3))
1110PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertTaskGraphToTasks1(threadData_t *threadData, modelica_metatype _iTaskGraphMeta, modelica_metatype _iTaskGraphT, modelica_integer _iIndex, modelica_fnptr _iConverterFunc, modelica_metatype _iTasks);
1111PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertTaskGraphToTasks1(threadData_t *threadData, modelica_metatype _iTaskGraphMeta, modelica_metatype _iTaskGraphT, modelica_metatype _iIndex, modelica_fnptr _iConverterFunc, modelica_metatype _iTasks);
1112static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertTaskGraphToTasks1,0}};
1113#define boxvar_HpcOmScheduler_convertTaskGraphToTasks1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks1
).header) + 3))
1114PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertTaskGraphToTasks(threadData_t *threadData, modelica_metatype _iTaskGraphT, modelica_metatype _iTaskGraphMeta, modelica_fnptr _iConverterFunc);
1115static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertTaskGraphToTasksomc_HpcOmScheduler_convertTaskGraphToTasks,0}};
1116#define boxvar_HpcOmScheduler_convertTaskGraphToTasks((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertTaskGraphToTasks
).header) + 3))
1117PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getTaskWithHighestFinishTime(threadData_t *threadData, modelica_metatype _iTasks, modelica_metatype _iCurrentTask);
1118static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskWithHighestFinishTime,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getTaskWithHighestFinishTime
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getTaskWithHighestFinishTimeomc_HpcOmScheduler_getTaskWithHighestFinishTime,0}};
1119#define boxvar_HpcOmScheduler_getTaskWithHighestFinishTime((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskWithHighestFinishTime
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getTaskWithHighestFinishTime)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTaskWithHighestFinishTime
).header) + 3))
1120PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getThreadFinishTimesMin(threadData_t *threadData, modelica_integer _iThreadIdx, modelica_metatype _iThreadFinishTimes, modelica_integer _iCurrentMinThreadIdx, modelica_real _iCurrentMinFinishTime);
1121PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getThreadFinishTimesMin(threadData_t *threadData, modelica_metatype _iThreadIdx, modelica_metatype _iThreadFinishTimes, modelica_metatype _iCurrentMinThreadIdx, modelica_metatype _iCurrentMinFinishTime);
1122static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getThreadFinishTimesMin,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getThreadFinishTimesMin
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getThreadFinishTimesMin,0}};
1123#define boxvar_HpcOmScheduler_getThreadFinishTimesMin((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getThreadFinishTimesMin
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getThreadFinishTimesMin)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getThreadFinishTimesMin
).header) + 3))
1124PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateRefCounterBySuccessorIdc(threadData_t *threadData, modelica_metatype _iAllCalcTasks, modelica_metatype _iSuccessorIdc, modelica_metatype _iRefZeroTasks, modelica_metatype *out_oRefZeroTasks);
1125static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateRefCounterBySuccessorIdc,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_updateRefCounterBySuccessorIdc
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_updateRefCounterBySuccessorIdcomc_HpcOmScheduler_updateRefCounterBySuccessorIdc,0}};
1126#define boxvar_HpcOmScheduler_updateRefCounterBySuccessorIdc((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateRefCounterBySuccessorIdc
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_updateRefCounterBySuccessorIdc)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateRefCounterBySuccessorIdc
).header) + 3))
1127PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createDepTaskByTaskIdcR(threadData_t *threadData, modelica_integer _iSourceTaskIdx, modelica_integer _iTargetTaskIdx, modelica_metatype _iAllCalcTasks, modelica_boolean _iOutgoing, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
1128PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createDepTaskByTaskIdcR(threadData_t *threadData, modelica_metatype _iSourceTaskIdx, modelica_metatype _iTargetTaskIdx, modelica_metatype _iAllCalcTasks, modelica_metatype _iOutgoing, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
1129static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdcR,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdcR
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createDepTaskByTaskIdcR,0}};
1130#define boxvar_HpcOmScheduler_createDepTaskByTaskIdcR((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdcR
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdcR)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdcR
).header) + 3))
1131PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createDepTaskByTaskIdc(threadData_t *threadData, modelica_integer _iSourceTaskIdx, modelica_integer _iTargetTaskIdx, modelica_metatype _iAllCalcTasks, modelica_boolean _iOutgoing, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
1132PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createDepTaskByTaskIdc(threadData_t *threadData, modelica_metatype _iSourceTaskIdx, modelica_metatype _iTargetTaskIdx, modelica_metatype _iAllCalcTasks, modelica_metatype _iOutgoing, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
1133static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdc,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdc
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createDepTaskByTaskIdc,0}};
1134#define boxvar_HpcOmScheduler_createDepTaskByTaskIdc((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdc
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdc)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTaskByTaskIdc
).header) + 3))
1135PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createDepTaskAndCommunicationInfo(threadData_t *threadData, modelica_metatype _iSourceTask, modelica_metatype _iTargetTask, modelica_boolean _iOutgoing, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
1136PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createDepTaskAndCommunicationInfo(threadData_t *threadData, modelica_metatype _iSourceTask, modelica_metatype _iTargetTask, modelica_metatype _iOutgoing, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping);
1137static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTaskAndCommunicationInfo,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createDepTaskAndCommunicationInfo
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createDepTaskAndCommunicationInfo,0}};
1138#define boxvar_HpcOmScheduler_createDepTaskAndCommunicationInfo((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTaskAndCommunicationInfo
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTaskAndCommunicationInfo)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTaskAndCommunicationInfo
).header) + 3))
1139PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createDepTask(threadData_t *threadData, modelica_metatype _iSourceTask, modelica_metatype _iTargetTask, modelica_boolean _iOutgoing, modelica_metatype _commInfo);
1140PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createDepTask(threadData_t *threadData, modelica_metatype _iSourceTask, modelica_metatype _iTargetTask, modelica_metatype _iOutgoing, modelica_metatype _commInfo);
1141static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTask,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createDepTask
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createDepTask,0}};
1142#define boxvar_HpcOmScheduler_createDepTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTask
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createDepTask)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createDepTask
).header) + 3))
1143PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertVarIdxToSimVar(threadData_t *threadData, modelica_integer _iVarIdx, modelica_metatype _iSimVarMapping, modelica_metatype _iSimVar);
1144PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertVarIdxToSimVar(threadData_t *threadData, modelica_metatype _iVarIdx, modelica_metatype _iSimVarMapping, modelica_metatype _iSimVar);
1145static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertVarIdxToSimVar,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertVarIdxToSimVar
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertVarIdxToSimVar,0}};
1146#define boxvar_HpcOmScheduler_convertVarIdxToSimVar((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertVarIdxToSimVar
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertVarIdxToSimVar)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertVarIdxToSimVar
).header) + 3))
1147PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertCommunicationToCommInfo(threadData_t *threadData, modelica_metatype _iCommunication, modelica_metatype _iSimVarMapping);
1148static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertCommunicationToCommInfo,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_convertCommunicationToCommInfo
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_convertCommunicationToCommInfoomc_HpcOmScheduler_convertCommunicationToCommInfo,0}};
1149#define boxvar_HpcOmScheduler_convertCommunicationToCommInfo((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertCommunicationToCommInfo
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_convertCommunicationToCommInfo)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertCommunicationToCommInfo
).header) + 3))
1150PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1(threadData_t *threadData, modelica_metatype _parentCommCost, modelica_metatype _tasks, modelica_metatype _iCommunication);
1151static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1omc_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1,0}};
1152#define boxvar_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks1
).header) + 3))
1153PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getCommunicationObjBetweenMergedTasks(threadData_t *threadData, modelica_integer _parentNode, modelica_integer _node, modelica_metatype _inComps, modelica_metatype _inCommCosts);
1154PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getCommunicationObjBetweenMergedTasks(threadData_t *threadData, modelica_metatype _parentNode, modelica_metatype _node, modelica_metatype _inComps, modelica_metatype _inCommCosts);
1155static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getCommunicationObjBetweenMergedTasks,0}};
1156#define boxvar_HpcOmScheduler_getCommunicationObjBetweenMergedTasks((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getCommunicationObjBetweenMergedTasks
).header) + 3))
1157PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLockTasksByPredecessorListReverse0(threadData_t *threadData, modelica_metatype _iPredecessorTask, modelica_metatype _iTask, modelica_integer _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iLockTasks);
1158PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getLockTasksByPredecessorListReverse0(threadData_t *threadData, modelica_metatype _iPredecessorTask, modelica_metatype _iTask, modelica_metatype _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iLockTasks);
1159static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLockTasksByPredecessorListReverse0,0}};
1160#define boxvar_HpcOmScheduler_getLockTasksByPredecessorListReverse0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse0
).header) + 3))
1161PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLockTasksByPredecessorListReverse(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iPredecessorList, modelica_integer _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype *out_oOutgoingDepTasks);
1162PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getLockTasksByPredecessorListReverse(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iPredecessorList, modelica_metatype _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype *out_oOutgoingDepTasks);
1163static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLockTasksByPredecessorListReverse,0}};
1164#define boxvar_HpcOmScheduler_getLockTasksByPredecessorListReverse((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorListReverse
).header) + 3))
1165PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLockTasksByPredecessorList(threadData_t *threadData, modelica_metatype _iPredecessorTask, modelica_metatype _iTask, modelica_integer _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iLockTasks);
1166PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getLockTasksByPredecessorList(threadData_t *threadData, modelica_metatype _iPredecessorTask, modelica_metatype _iTask, modelica_metatype _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iLockTasks);
1167static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLockTasksByPredecessorList,0}};
1168#define boxvar_HpcOmScheduler_getLockTasksByPredecessorList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLockTasksByPredecessorList
).header) + 3))
1169PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getLocksByPredecessorList(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iPredecessorList, modelica_integer _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype *out_oOutgoingDepTasks);
1170PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getLocksByPredecessorList(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iPredecessorList, modelica_metatype _iThreadIdx, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype *out_oOutgoingDepTasks);
1171static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLocksByPredecessorList,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getLocksByPredecessorList
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getLocksByPredecessorList,0}};
1172#define boxvar_HpcOmScheduler_getLocksByPredecessorList((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLocksByPredecessorList
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getLocksByPredecessorList)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getLocksByPredecessorList
).header) + 3))
1173PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getSimEqSysIdcsForCompLst(threadData_t *threadData, modelica_metatype _compIdcs, modelica_metatype _iSccSimEqMapping);
1174static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSimEqSysIdcsForCompLst,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getSimEqSysIdcsForCompLst
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getSimEqSysIdcsForCompLstomc_HpcOmScheduler_getSimEqSysIdcsForCompLst,0}};
1175#define boxvar_HpcOmScheduler_getSimEqSysIdcsForCompLst((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSimEqSysIdcsForCompLst
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSimEqSysIdcsForCompLst)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSimEqSysIdcsForCompLst
).header) + 3))
1176PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getSimEqSysIdxForComp(threadData_t *threadData, modelica_integer _compIdx, modelica_metatype _iSccSimEqMapping);
1177PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getSimEqSysIdxForComp(threadData_t *threadData, modelica_metatype _compIdx, modelica_metatype _iSccSimEqMapping);
1178static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSimEqSysIdxForComp,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_getSimEqSysIdxForComp
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_getSimEqSysIdxForComp,0}};
1179#define boxvar_HpcOmScheduler_getSimEqSysIdxForComp((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSimEqSysIdxForComp
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_getSimEqSysIdxForComp)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getSimEqSysIdxForComp
).header) + 3))
1180PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_addAssignLocksToSchedule(threadData_t *threadData, modelica_metatype _iSuccessorTask, modelica_metatype _iTask, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iReleaseTasks);
1181static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addAssignLocksToSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_addAssignLocksToSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_addAssignLocksToScheduleomc_HpcOmScheduler_addAssignLocksToSchedule,0}};
1182#define boxvar_HpcOmScheduler_addAssignLocksToSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addAssignLocksToSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addAssignLocksToSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addAssignLocksToSchedule
).header) + 3))
1183PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_addReleaseLocksToSchedule(threadData_t *threadData, modelica_metatype _iSuccessorTask, modelica_metatype _iTask, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iReleaseTasks);
1184static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addReleaseLocksToSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_addReleaseLocksToSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_addReleaseLocksToScheduleomc_HpcOmScheduler_addReleaseLocksToSchedule,0}};
1185#define boxvar_HpcOmScheduler_addReleaseLocksToSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addReleaseLocksToSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addReleaseLocksToSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addReleaseLocksToSchedule
).header) + 3))
1186PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_addSuccessorLocksToSchedule1(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iTaskGraph, modelica_metatype _iAllCalcTasks, modelica_metatype _iSimVarMapping, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iThreadIdLockFunction, modelica_metatype _iThreadTasks);
1187static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_addSuccessorLocksToSchedule1omc_HpcOmScheduler_addSuccessorLocksToSchedule1,0}};
1188#define boxvar_HpcOmScheduler_addSuccessorLocksToSchedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule1
).header) + 3))
1189PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_addSuccessorLocksToSchedule0(threadData_t *threadData, modelica_metatype _iThreadTaskList, modelica_metatype _iTaskGraph, modelica_metatype _iAllCalcTasks, modelica_metatype _iSimVarMapping, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_fnptr _iCreateLockFunction, modelica_metatype _iThreadTasks);
1190static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule0,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule0
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_addSuccessorLocksToSchedule0omc_HpcOmScheduler_addSuccessorLocksToSchedule0,0}};
1191#define boxvar_HpcOmScheduler_addSuccessorLocksToSchedule0((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule0
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule0)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule0
).header) + 3))
1192PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_addSuccessorLocksToSchedule(threadData_t *threadData, modelica_metatype _iTaskGraph, modelica_fnptr _iCreateLockFunction, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSimVarMapping, modelica_metatype _iSchedule);
1193static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_addSuccessorLocksToScheduleomc_HpcOmScheduler_addSuccessorLocksToSchedule,0}};
1194#define boxvar_HpcOmScheduler_addSuccessorLocksToSchedule((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_addSuccessorLocksToSchedule
).header) + 3))
1195PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createRandomSchedule1(threadData_t *threadData, modelica_metatype _iNodeList, modelica_metatype _iThreadReadyTimes, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSccSimEqMapping, modelica_metatype _iSimVarMapping, modelica_fnptr _iLockWithPredecessorHandler, modelica_integer _iNumberOfThreads, modelica_metatype _iSchedule, modelica_metatype *out_oThreadReadyTimes);
1196PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_createRandomSchedule1(threadData_t *threadData, modelica_metatype _iNodeList, modelica_metatype _iThreadReadyTimes, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSccSimEqMapping, modelica_metatype _iSimVarMapping, modelica_fnptr _iLockWithPredecessorHandler, modelica_metatype _iNumberOfThreads, modelica_metatype _iSchedule, modelica_metatype *out_oThreadReadyTimes);
1197static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createRandomSchedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createRandomSchedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createRandomSchedule1,0}};
1198#define boxvar_HpcOmScheduler_createRandomSchedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createRandomSchedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createRandomSchedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createRandomSchedule1
).header) + 3))
1199PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_createListSchedule1(threadData_t *threadData, modelica_metatype _iNodeList, modelica_metatype _iThreadReadyTimes, modelica_metatype _iTaskGraph, modelica_metatype _iTaskGraphT, modelica_metatype _iCommCosts, modelica_metatype _iCompTaskMapping, modelica_metatype _iSccSimEqMapping, modelica_metatype _iSimVarMapping, modelica_fnptr _iLockWithPredecessorHandler, modelica_metatype _iSchedule, modelica_metatype *out_oThreadReadyTimes);
1200static const MMC_DEFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createListSchedule1,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_HpcOmScheduler_createListSchedule1
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_HpcOmScheduler_createListSchedule1omc_HpcOmScheduler_createListSchedule1,0}};
1201#define boxvar_HpcOmScheduler_createListSchedule1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createListSchedule1
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_HpcOmScheduler_createListSchedule1)((void*)((char*)(&(boxvar_lit_HpcOmScheduler_createListSchedule1
).header) + 3))
1202
1203DLLExport
1204modelica_metatype omc_HpcOmScheduler_expandSchedule(threadData_t *threadData, modelica_integer _iNumProc, modelica_integer _iNumUsedProc, modelica_metatype _iSchedule)
1205{
1206 modelica_metatype _oSchedule = NULL((void*)0);
1207 modelica_metatype _threadTasks = NULL((void*)0);
1208 modelica_metatype _outgoingDepTasks = NULL((void*)0);
1209 modelica_metatype _scheduledTasks = NULL((void*)0);
1210 modelica_metatype _allCalcTasks = NULL((void*)0);
1211 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1212 MMC_SO()mmc_check_stackoverflow(threadData);
1213 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1214 // _oSchedule has no default value.
1215 // _threadTasks has no default value.
1216 // _outgoingDepTasks has no default value.
1217 // _scheduledTasks has no default value.
1218 // _allCalcTasks has no default value.
1219#line 1219 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1220 { /* match expression */
1221 modelica_metatype tmp3_1;
1222 tmp3_1 = _iSchedule;
1223 {
1224 int tmp3;
1225 {
1226 switch (MMC_SWITCH_CAST(valueConstructor(tmp3_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))) >> 2
) & 255))
) {
1227 case 3: {
1228
1229 /* Pattern matching succeeded */
1230#line 6804 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1231 tmpMeta[0] = _iSchedule;
1232#line 1232 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1233 goto tmp2_done;
1234 }
1235 case 4: {
1236 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1237 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1238 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1239 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1240 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
1241 _threadTasks = tmpMeta[1];
1242 _outgoingDepTasks = tmpMeta[2];
1243 _scheduledTasks = tmpMeta[3];
1244 _allCalcTasks = tmpMeta[4];
1245 /* Pattern matching succeeded */
1246#line 6807 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1247 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1248#line 6807 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1249 _threadTasks = omc_Array_expandToSize(threadData, _iNumProc, _threadTasks, tmpMeta[1]);
1250#line 1250 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1251#line 6808 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1252 tmpMeta[1] = mmc_mk_box5(4, &HpcOmSimCode_Schedule_THREADSCHEDULE__desc, _threadTasks, _outgoingDepTasks, _scheduledTasks, _allCalcTasks);
1253#line 6808 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1254 tmpMeta[0] = tmpMeta[1];
1255#line 1255 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1256 goto tmp2_done;
1257 }
1258 case 5: {
1259
1260 /* Pattern matching succeeded */
1261#line 6810 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1262 tmpMeta[0] = _iSchedule;
1263#line 1263 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1264 goto tmp2_done;
1265 }
1266 case 6: {
1267
1268 /* Pattern matching succeeded */
1269#line 6812 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1270 tmpMeta[0] = _iSchedule;
1271#line 1271 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1272 goto tmp2_done;
1273 }
1274 }
1275 goto tmp2_end;
1276 tmp2_end: ;
1277 }
1278 goto goto_1;
1279 goto_1:;
1280 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1281 goto tmp2_done;
1282 tmp2_done:;
1283 }
1284 }
1285 _oSchedule = tmpMeta[0];
1286 _return: OMC_LABEL_UNUSED__attribute__((unused))
1287 return _oSchedule;
1288}
1289modelica_metatype boxptr_HpcOmScheduler_expandSchedule(threadData_t *threadData, modelica_metatype _iNumProc, modelica_metatype _iNumUsedProc, modelica_metatype _iSchedule)
1290{
1291 modelica_integer tmp1;
1292 modelica_integer tmp2;
1293 modelica_metatype _oSchedule = NULL((void*)0);
1294 tmp1 = mmc_unbox_integer(_iNumProc)(((mmc_sint_t) (_iNumProc)) >> 1);
1295 tmp2 = mmc_unbox_integer(_iNumUsedProc)(((mmc_sint_t) (_iNumUsedProc)) >> 1);
1296 _oSchedule = omc_HpcOmScheduler_expandSchedule(threadData, tmp1, tmp2, _iSchedule);
1297 /* skip box _oSchedule; HpcOmSimCode.Schedule */
1298 return _oSchedule;
1299}
1300
1301PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_intListListString(threadData_t *threadData, modelica_metatype _lstIn)
1302{
1303 modelica_string _s = NULL((void*)0);
1304 MMC_SO()mmc_check_stackoverflow(threadData);
1305 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1306 // _s has no default value.
1307#line 6786 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1308 _s = stringDelimitList(omc_List_map(threadData, _lstIn, boxvar_HpcOmScheduler_intListString((void*)((char*)(&(boxvar_lit_HpcOmScheduler_intListString
).header) + 3))
), _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)));
1309#line 1309 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1310 _return: OMC_LABEL_UNUSED__attribute__((unused))
1311 return _s;
1312}
1313
1314PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_intListString(threadData_t *threadData, modelica_metatype _lstIn)
1315{
1316 modelica_string _s = NULL((void*)0);
1317 MMC_SO()mmc_check_stackoverflow(threadData);
1318 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1319 // _s has no default value.
1320#line 6778 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1321 _s = stringDelimitList(omc_List_map(threadData, _lstIn, boxvar_intString((void*)((char*)(&(boxvar_lit_intString).header) + 3))), _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)));
1322#line 1322 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1323
1324#line 6779 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1325 _s = (listEmpty(_lstIn)((*(mmc_uint_t*)((void*)((char*)(_lstIn) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
?_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)):_s);
1326#line 1326 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1327 _return: OMC_LABEL_UNUSED__attribute__((unused))
1328 return _s;
1329}
1330
1331PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_printRealArray1(threadData_t *threadData, modelica_real _inValue, modelica_string _header, modelica_integer _idxIn)
1332{
1333 modelica_integer _idxOut;
1334 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
1335 MMC_SO()mmc_check_stackoverflow(threadData);
1336 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1337 // _idxOut has no default value.
1338#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1339 tmpMeta[0] = stringAppend(_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)),intString(_idxIn));
1340#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1341 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
1342#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1343 tmpMeta[2] = stringAppend(tmpMeta[1],_header);
1344#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1345 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
1346#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1347 tmpMeta[4] = stringAppend(tmpMeta[3],realString(_inValue));
1348#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1349 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
1350#line 6770 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1351 fputs(MMC_STRINGDATA(tmpMeta[5])(((struct mmc_string*)((void*)((char*)(tmpMeta[5]) - 3)))->
data)
,stdoutstdout);
1352#line 1352 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1353
1354#line 6771 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1355 _idxOut = ((modelica_integer) 1) + _idxIn;
1356#line 1356 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1357 _return: OMC_LABEL_UNUSED__attribute__((unused))
1358 return _idxOut;
1359}
1360PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_printRealArray1(threadData_t *threadData, modelica_metatype _inValue, modelica_metatype _header, modelica_metatype _idxIn)
1361{
1362 modelica_real tmp1;
1363 modelica_integer tmp2;
1364 modelica_integer _idxOut;
1365 modelica_metatype out_idxOut;
1366 tmp1 = mmc_unbox_real(_inValue)mmc_prim_get_real(_inValue);
1367 tmp2 = mmc_unbox_integer(_idxIn)(((mmc_sint_t) (_idxIn)) >> 1);
1368 _idxOut = omc_HpcOmScheduler_printRealArray1(threadData, tmp1, _header, tmp2);
1369 out_idxOut = mmc_mk_icon(_idxOut);
1370 return out_idxOut;
1371}
1372
1373PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_printRealArray(threadData_t *threadData, modelica_metatype _inArray, modelica_string _header)
1374{
1375 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1376 MMC_SO()mmc_check_stackoverflow(threadData);
1377 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1378#line 6758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1379 tmpMeta[0] = stringAppend(_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)),_header);
1380#line 6758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1381 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
1382#line 6758 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1383 fputs(MMC_STRINGDATA(tmpMeta[1])(((struct mmc_string*)((void*)((char*)(tmpMeta[1]) - 3)))->
data)
,stdoutstdout);
1384#line 1384 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1385
1386#line 6759 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1387 fputs(MMC_STRINGDATA(_OMC_LIT8)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT8).header) + 3))) - 3)))->data)
,stdoutstdout);
1388#line 1388 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1389
1390#line 6760 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1391 omc_Array_fold1(threadData, _inArray, boxvar_HpcOmScheduler_printRealArray1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_printRealArray1
).header) + 3))
, _header, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)));
1392#line 1392 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1393
1394#line 6761 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1395 fputs(MMC_STRINGDATA(_OMC_LIT6)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT6).header) + 3))) - 3)))->data)
,stdoutstdout);
1396#line 1396 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1397 _return: OMC_LABEL_UNUSED__attribute__((unused))
1398 return;
1399}
1400
1401PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask(threadData_t *threadData, modelica_metatype _iTask, modelica_metatype _iThreadTasks)
1402{
1403 modelica_metatype _oThreadTasks = NULL((void*)0);
1404 modelica_metatype _tmpTaskLists = NULL((void*)0);
1405 modelica_integer _threadIdx;
1406 modelica_metatype _oldTaskList = NULL((void*)0);
1407 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1408 MMC_SO()mmc_check_stackoverflow(threadData);
1409 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1410 // _oThreadTasks has no default value.
1411 // _tmpTaskLists has no default value.
1412 // _threadIdx has no default value.
1413 // _oldTaskList has no default value.
1414#line 1414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1415 { /* match expression */
1416 modelica_metatype tmp3_1;
1417 tmp3_1 = _iTask;
1418 {
1419 volatile mmc_switch_type tmp3;
1420 int tmp4;
1421 tmp3 = 0;
1422 for (; tmp3 < 2; tmp3++) {
1423 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1424 case 0: {
1425 modelica_integer tmp5;
1426 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,2,3)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((3 +1) <<
10) + (((2 +3) & 255) << 2)))
== 0) goto tmp2_end;
1427 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1428 if (optionNone(tmpMeta[1])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[1]) - 3)))) >> 10)) ? 1 : 0)
) goto tmp2_end;
1429 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1430 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1431 _threadIdx = tmp5 /* pattern as ty=Integer */;
1432 /* Pattern matching succeeded */
1433#line 6743 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1434 _oldTaskList = arrayGet(_iThreadTasks, _threadIdx)nobox_arrayGet(threadData,_iThreadTasks,_threadIdx);
1435#line 1435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1436#line 6744 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1437 tmpMeta[1] = mmc_mk_cons(_iTask, _oldTaskList);
1438#line 6744 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1439 tmpMeta[0] = arrayUpdate(_iThreadTasks, _threadIdx, tmpMeta[1])boxptr_arrayUpdate(threadData,_iThreadTasks,mmc_mk_icon(_threadIdx
),tmpMeta[1])
;
1440#line 1440 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1441 goto tmp2_done;
1442 }
1443 case 1: {
1444
1445 /* Pattern matching succeeded */
1446#line 6748 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1447 fputs(MMC_STRINGDATA(_OMC_LIT9)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT9).header) + 3))) - 3)))->data)
,stdoutstdout);
1448#line 1448 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1449#line 6749 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1450 tmpMeta[0] = _iThreadTasks;
1451#line 1451 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1452 goto tmp2_done;
1453 }
1454 }
1455 goto tmp2_end;
1456 tmp2_end: ;
1457 }
1458 goto goto_1;
1459 goto_1:;
1460 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1461 goto tmp2_done;
1462 tmp2_done:;
1463 }
1464 }
1465 _oThreadTasks = tmpMeta[0];
1466 _return: OMC_LABEL_UNUSED__attribute__((unused))
1467 return _oThreadTasks;
1468}
1469
1470PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_integer _iThreadCount)
1471{
1472 modelica_metatype _oThreadTasks = NULL((void*)0);
1473 modelica_metatype _tmpTaskLists = NULL((void*)0);
1474 modelica_metatype _tasks = NULL((void*)0);
1475 modelica_metatype tmpMeta[2] __attribute__((unused)) = {0};
1476 MMC_SO()mmc_check_stackoverflow(threadData);
1477 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1478 // _oThreadTasks has no default value.
1479 // _tmpTaskLists has no default value.
1480 // _tasks has no default value.
1481#line 1481 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1482 { /* match expression */
1483 modelica_metatype tmp3_1;
1484 tmp3_1 = _iTasksOfLevel;
1485 {
1486 volatile mmc_switch_type tmp3;
1487 int tmp4;
1488 tmp3 = 0;
1489 for (; tmp3 < 2; tmp3++) {
1490 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1491 case 0: {
1492 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,1)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((1 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
1493 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1494 _tasks = tmpMeta[1];
1495 /* Pattern matching succeeded */
1496#line 6717 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1497 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1498#line 6717 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1499 _tmpTaskLists = arrayCreate(_iThreadCount, tmpMeta[1]);
1500#line 1500 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1501
1502#line 6718 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1503 _tmpTaskLists = omc_List_fold(threadData, _tasks, boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForTask
).header) + 3))
, _tmpTaskLists);
1504#line 1504 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1505#line 6719 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1506 tmpMeta[0] = omc_HpcOmScheduler_revertTaskList(threadData, ((modelica_integer) 1), _tmpTaskLists);
1507#line 1507 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1508 goto tmp2_done;
1509 }
1510 case 1: {
1511 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,1,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp2_end;
1512 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1513
1514 _tasks = tmpMeta[1];
1515 /* Pattern matching succeeded */
1516#line 6723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1517 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1518#line 6723 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1519 _tmpTaskLists = arrayCreate(_iThreadCount, tmpMeta[1]);
1520#line 1520 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1521#line 6724 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1522 tmpMeta[0] = arrayUpdate(_tmpTaskLists, ((modelica_integer) 1), _tasks)boxptr_arrayUpdate(threadData,_tmpTaskLists,mmc_mk_icon(((modelica_integer
) 1)),_tasks)
;
1523#line 1523 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1524 goto tmp2_done;
1525 }
1526 }
1527 goto tmp2_end;
1528 tmp2_end: ;
1529 }
1530 goto goto_1;
1531 goto_1:;
1532 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1533 goto tmp2_done;
1534 tmp2_done:;
1535 }
1536 }
1537 _oThreadTasks = tmpMeta[0];
1538 _return: OMC_LABEL_UNUSED__attribute__((unused))
1539 return _oThreadTasks;
1540}
1541PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iThreadCount)
1542{
1543 modelica_integer tmp1;
1544 modelica_metatype _oThreadTasks = NULL((void*)0);
1545 tmp1 = mmc_unbox_integer(_iThreadCount)(((mmc_sint_t) (_iThreadCount)) >> 1);
1546 _oThreadTasks = omc_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel(threadData, _iTasksOfLevel, tmp1);
1547 /* skip box _oThreadTasks; array<list<HpcOmSimCode.Task>> */
1548 return _oThreadTasks;
1549}
1550
1551PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_findInIntTuple1(threadData_t *threadData, modelica_metatype _liste, modelica_integer _toFind)
1552{
1553 modelica_integer _secondElement;
1554 modelica_integer _first;
1555 modelica_integer _second;
1556 modelica_metatype _iter = NULL((void*)0);
1557 modelica_integer tmp1;
1558 modelica_integer tmp2;
1559 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
1560 MMC_SO()mmc_check_stackoverflow(threadData);
1561 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1562 // _secondElement has no default value.
1563 // _first has no default value.
1564 // _second has no default value.
1565 // _iter has no default value.
1566#line 6692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1567 {
1568#line 6692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1569 modelica_metatype _iter;
1570#line 6692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1571 for (tmpMeta[0] = _liste; !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
1572#line 6692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1573 {
1574#line 6692 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1575 _iter = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1576#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1577 /* Pattern-matching assignment */
1578#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1579 tmpMeta[1] = _iter;
1580#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1581 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1582#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1583 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1584#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1585 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1586#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1587 tmp2 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1588#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1589 _first = tmp1 /* pattern as ty=Integer */;
1590#line 6693 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1591 _second = tmp2 /* pattern as ty=Integer */;
1592#line 1592 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1593
1594#line 6694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1595 if((_first == _toFind))
1596#line 6694 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1597 {
1598#line 6696 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1599 _secondElement = _second;
1600#line 1600 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1601
1602#line 6697 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1603 goto _return;
1604#line 1604 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1605 }
1606 }
1607 }
1608 _return: OMC_LABEL_UNUSED__attribute__((unused))
1609 return _secondElement;
1610}
1611PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_findInIntTuple1(threadData_t *threadData, modelica_metatype _liste, modelica_metatype _toFind)
1612{
1613 modelica_integer tmp1;
1614 modelica_integer _secondElement;
1615 modelica_metatype out_secondElement;
1616 tmp1 = mmc_unbox_integer(_toFind)(((mmc_sint_t) (_toFind)) >> 1);
1617 _secondElement = omc_HpcOmScheduler_findInIntTuple1(threadData, _liste, tmp1);
1618 out_secondElement = mmc_mk_icon(_secondElement);
1619 return out_secondElement;
1620}
1621
1622PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_findTaskWithLockId(threadData_t *threadData, modelica_metatype _lockIds, modelica_metatype _iTask)
1623{
1624 modelica_metatype _oTask = NULL((void*)0);
1625 modelica_metatype _tmpTask = NULL((void*)0);
1626 modelica_metatype _sourceTask = NULL((void*)0);
1627 modelica_metatype _targetTask = NULL((void*)0);
1628 modelica_boolean _outgoing;
1629 modelica_integer _lockId;
1630 modelica_integer _sourceTaskId;
1631 modelica_integer _targetTaskId;
1632 modelica_metatype _communicationInfo = NULL((void*)0);
1633 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
1634 MMC_SO()mmc_check_stackoverflow(threadData);
1635 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1636 // _oTask has no default value.
1637 // _tmpTask has no default value.
1638 // _sourceTask has no default value.
1639 // _targetTask has no default value.
1640 // _outgoing has no default value.
1641 // _lockId has no default value.
1642 // _sourceTaskId has no default value.
1643 // _targetTaskId has no default value.
1644 // _communicationInfo has no default value.
1645#line 1645 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1646 { /* match expression */
1647 modelica_metatype tmp3_1;
1648 tmp3_1 = _iTask;
1649 {
1650 volatile mmc_switch_type tmp3;
1651 int tmp4;
1652 tmp3 = 0;
1653 for (; tmp3 < 2; tmp3++) {
1654 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
1655 case 0: {
1656 modelica_integer tmp5;
1657 modelica_integer tmp6;
1658 modelica_integer tmp7;
1659 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,3,5)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((5 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp2_end;
1660 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
1661 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
1662 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
1663 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1664 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
1665 _sourceTask = tmpMeta[1];
1666 _targetTask = tmpMeta[2];
1667 _outgoing = tmp5 /* pattern as ty=Boolean */;
1668 _communicationInfo = tmpMeta[4];
1669 /* Pattern matching succeeded */
1670#line 6672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1671 /* Pattern-matching assignment */
1672#line 6672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1673 tmpMeta[1] = _sourceTask;
1674#line 6672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1675 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,6)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((6 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_1;
1676#line 6672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1677 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1678#line 6672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1679 tmp6 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1680#line 6672 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1681 _sourceTaskId = tmp6 /* pattern as ty=Integer */;
1682#line 1682 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1683
1684#line 6673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1685 /* Pattern-matching assignment */
1686#line 6673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1687 tmpMeta[1] = _targetTask;
1688#line 6673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1689 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,6)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((6 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) goto goto_1;
1690#line 6673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1691 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1692#line 6673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1693 tmp7 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1694#line 6673 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1695 _targetTaskId = tmp7 /* pattern as ty=Integer */;
1696#line 1696 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1697
1698#line 6674 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1699 _lockId = omc_HpcOmScheduler_findInIntTuple1(threadData, arrayGet(_lockIds, _sourceTaskId)nobox_arrayGet(threadData,_lockIds,_sourceTaskId), _targetTaskId);
1700#line 1700 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1701#line 6675 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1702 tmpMeta[1] = mmc_mk_box6(6, &HpcOmSimCode_Task_DEPTASK__desc, _sourceTask, _targetTask, mmc_mk_boolean(_outgoing)((_outgoing) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_integermmc_mk_icon(_lockId), _communicationInfo);
1703#line 6675 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1704 tmpMeta[0] = tmpMeta[1];
1705#line 1705 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1706 goto tmp2_done;
1707 }
1708 case 1: {
1709
1710 /* Pattern matching succeeded */
1711#line 6678 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1712 tmpMeta[0] = _iTask;
1713#line 1713 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1714 goto tmp2_done;
1715 }
1716 }
1717 goto tmp2_end;
1718 tmp2_end: ;
1719 }
1720 goto goto_1;
1721 goto_1:;
1722 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1723 goto tmp2_done;
1724 tmp2_done:;
1725 }
1726 }
1727 _oTask = tmpMeta[0];
1728 _return: OMC_LABEL_UNUSED__attribute__((unused))
1729 return _oTask;
1730}
1731
1732PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceDepTasksInListByLockIds(threadData_t *threadData, modelica_metatype _inTask, modelica_metatype _lockIds, modelica_metatype _tmpTaskList)
1733{
1734 modelica_metatype _oList = NULL((void*)0);
1735 modelica_metatype _tmpTask = NULL((void*)0);
1736 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
1737 MMC_SO()mmc_check_stackoverflow(threadData);
1738 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1739 // _oList has no default value.
1740 // _tmpTask has no default value.
1741#line 6649 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1742 _tmpTask = omc_HpcOmScheduler_findTaskWithLockId(threadData, _lockIds, _inTask);
1743#line 1743 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1744
1745#line 6650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1746 tmpMeta[0] = mmc_mk_cons(_tmpTask, _tmpTaskList);
1747#line 6650 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1748 _oList = tmpMeta[0];
1749#line 1749 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1750 _return: OMC_LABEL_UNUSED__attribute__((unused))
1751 return _oList;
1752}
1753
1754static modelica_metatype closure0_HpcOmScheduler_replaceDepTasksInListByLockIds(threadData_t *thData, modelica_metatype closure, modelica_metatype inTask, modelica_metatype tmpTaskList)
1755{
1756 modelica_metatype lockIds = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
1757 return boxptr_HpcOmScheduler_replaceDepTasksInListByLockIdsomc_HpcOmScheduler_replaceDepTasksInListByLockIds(thData, inTask, lockIds, tmpTaskList);
1758}
1759PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_replaceDepTaskIdsByLockIds(threadData_t *threadData, modelica_metatype _inTasks, modelica_metatype _lockIds, modelica_metatype _iAllThreadTasks)
1760{
1761 modelica_metatype _oTasks = NULL((void*)0);
1762 modelica_metatype _allThreadTasks = NULL((void*)0);
1763 modelica_metatype _tmpList = NULL((void*)0);
1764 modelica_integer _threadId;
1765 modelica_integer tmp1;
1766 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
1767 MMC_SO()mmc_check_stackoverflow(threadData);
1768 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1769 // _oTasks has no default value.
1770 // _allThreadTasks has no default value.
1771 // _tmpList has no default value.
1772 // _threadId has no default value.
1773#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1774 /* Pattern-matching assignment */
1775#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1776 tmpMeta[0] = _iAllThreadTasks;
1777#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1778 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
1779#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1780 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
1781#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1782 tmp1 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
1783#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1784 _allThreadTasks = tmpMeta[1];
1785#line 6635 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1786 _threadId = tmp1 /* pattern as ty=Integer */;
1787#line 1787 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1788
1789#line 6636 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1790 tmpMeta[0] = mmc_mk_box1(0, _lockIds);
1791#line 6636 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1792 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1793#line 6636 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1794 _tmpList = listReverse(omc_List_fold(threadData, _inTasks, (modelica_fnptr) mmc_mk_box2(0,closure0_HpcOmScheduler_replaceDepTasksInListByLockIds,tmpMeta[0]), tmpMeta[1]));
1795#line 1795 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1796
1797#line 6637 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1798 arrayUpdate(_allThreadTasks, _threadId, _tmpList)boxptr_arrayUpdate(threadData,_allThreadTasks,mmc_mk_icon(_threadId
),_tmpList)
;
1799#line 1799 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1800
1801#line 6638 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1802 tmpMeta[0] = mmc_mk_box2(0, _allThreadTasks, mmc_mk_integermmc_mk_icon(((modelica_integer) 1) + _threadId));
1803#line 6638 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1804 _oTasks = tmpMeta[0];
1805#line 1805 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1806 _return: OMC_LABEL_UNUSED__attribute__((unused))
1807 return _oTasks;
1808}
1809
1810static modelica_metatype closure1_HpcOmScheduler_replaceDepTaskIdsByLockIds(threadData_t *thData, modelica_metatype closure, modelica_metatype inTasks, modelica_metatype iAllThreadTasks)
1811{
1812 modelica_metatype lockIds = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
1813 return boxptr_HpcOmScheduler_replaceDepTaskIdsByLockIdsomc_HpcOmScheduler_replaceDepTaskIdsByLockIds(thData, inTasks, lockIds, iAllThreadTasks);
1814}
1815PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_setScheduleLockIds(threadData_t *threadData, modelica_metatype _iSchedule)
1816{
1817 modelica_metatype _oSchedule = NULL((void*)0);
1818 modelica_metatype _allThreadTasks = NULL((void*)0);
1819 modelica_metatype _tmpFoldArray = NULL((void*)0);
1820 modelica_metatype _newAllThreadTasks = NULL((void*)0);
1821 modelica_metatype _scheduledTasks = NULL((void*)0);
1822 modelica_metatype _lockIds = NULL((void*)0);
1823 modelica_metatype _outgoingDepTasks = NULL((void*)0);
1824 modelica_metatype _newOutgoingDepTasks = NULL((void*)0);
1825 modelica_metatype _allCalcTasks = NULL((void*)0);
1826 modelica_metatype _newTuple = NULL((void*)0);
1827 modelica_metatype _sourceTask = NULL((void*)0);
1828 modelica_metatype _targetTask = NULL((void*)0);
1829 modelica_metatype _iterTask = NULL((void*)0);
1830 modelica_integer _counter;
1831 modelica_integer _id;
1832 modelica_integer _sourceTaskId;
1833 modelica_integer _targetTaskId;
1834 modelica_boolean _outgoing;
1835 modelica_metatype _communicationInfo = NULL((void*)0);
1836 modelica_integer tmp1;
1837 modelica_integer tmp2;
1838 modelica_integer tmp3;
1839 modelica_integer tmp4;
1840 modelica_metatype tmpMeta[8] __attribute__((unused)) = {0};
1841 MMC_SO()mmc_check_stackoverflow(threadData);
1842 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
1843 // _oSchedule has no default value.
1844 // _allThreadTasks has no default value.
1845 // _tmpFoldArray has no default value.
1846 // _newAllThreadTasks has no default value.
1847 // _scheduledTasks has no default value.
1848 // _lockIds has no default value.
1849 // _outgoingDepTasks has no default value.
1850 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1851 _newOutgoingDepTasks = tmpMeta[0];
1852 // _allCalcTasks has no default value.
1853 // _newTuple has no default value.
1854 // _sourceTask has no default value.
1855 // _targetTask has no default value.
1856 // _iterTask has no default value.
1857 // _counter has no default value.
1858 // _id has no default value.
1859 // _sourceTaskId has no default value.
1860 // _targetTaskId has no default value.
1861 // _outgoing has no default value.
1862 // _communicationInfo has no default value.
1863#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1864 /* Pattern-matching assignment */
1865#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1866 tmpMeta[1] = _iSchedule;
1867#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1868 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],1,4)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((4 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1869#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1870 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
1871#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1872 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
1873#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1874 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
1875#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1876 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (5)))))
;
1877#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1878 _allThreadTasks = tmpMeta[2];
1879#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1880 _outgoingDepTasks = tmpMeta[3];
1881#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1882 _scheduledTasks = tmpMeta[4];
1883#line 6605 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1884 _allCalcTasks = tmpMeta[5];
1885#line 1885 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1886
1887#line 6606 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1888 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1889#line 6606 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1890 _lockIds = arrayCreate(arrayLength(_allCalcTasks), tmpMeta[1]);
1891#line 1891 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1892
1893#line 6607 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1894 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
1895#line 6607 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1896 _newAllThreadTasks = arrayCreate(arrayLength(_allThreadTasks), tmpMeta[1]);
1897#line 1897 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1898
1899#line 6608 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1900 _counter = ((modelica_integer) 0);
1901#line 1901 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1902
1903#line 6610 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1904 {
1905#line 6610 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1906 modelica_metatype _iterTask;
1907#line 6610 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1908 for (tmpMeta[1] = _outgoingDepTasks; !listEmpty(tmpMeta[1])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[1]=MMC_CDR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
)
1909#line 6610 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1910 {
1911#line 6610 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1912 _iterTask = MMC_CAR(tmpMeta[1])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
1913#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1914 /* Pattern-matching assignment */
1915#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1916 tmpMeta[2] = _iterTask;
1917#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1918 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],3,5)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((5 +1)
<< 10) + (((3 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1919#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1920 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (2)))))
;
1921#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1922 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
1923#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1924 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (4)))))
;
1925#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1926 tmp1 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
1927#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1928 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (5)))))
;
1929#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1930 tmp2 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
1931#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1932 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (6)))))
;
1933#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1934 _sourceTask = tmpMeta[3];
1935#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1936 _targetTask = tmpMeta[4];
1937#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1938 _outgoing = tmp1 /* pattern as ty=Boolean */;
1939#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1940 _id = tmp2 /* pattern as ty=Integer */;
1941#line 6611 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1942 _communicationInfo = tmpMeta[7];
1943#line 1943 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1944
1945#line 6612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1946 /* Pattern-matching assignment */
1947#line 6612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1948 tmpMeta[2] = _sourceTask;
1949#line 6612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1950 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,6)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((6 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1951#line 6612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1952 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
1953#line 6612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1954 tmp3 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1955#line 6612 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1956 _sourceTaskId = tmp3 /* pattern as ty=Integer */;
1957#line 1957 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1958
1959#line 6613 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1960 /* Pattern-matching assignment */
1961#line 6613 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1962 tmpMeta[2] = _targetTask;
1963#line 6613 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1964 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[2],1,6)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))==(((6 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
1965#line 6613 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1966 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (3)))))
;
1967#line 6613 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1968 tmp4 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
1969#line 6613 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1970 _targetTaskId = tmp4 /* pattern as ty=Integer */;
1971#line 1971 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1972
1973#line 6614 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1974 tmpMeta[2] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(_targetTaskId), mmc_mk_integermmc_mk_icon(_counter));
1975#line 6614 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1976 _newTuple = tmpMeta[2];
1977#line 1977 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1978
1979#line 6615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1980 tmpMeta[2] = mmc_mk_cons(_newTuple, MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3)));
1981#line 6615 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1982 arrayUpdate(_lockIds, _sourceTaskId, listAppend(arrayGet(_lockIds, _sourceTaskId), tmpMeta[2]))boxptr_arrayUpdate(threadData,_lockIds,mmc_mk_icon(_sourceTaskId
),listAppend(nobox_arrayGet(threadData,_lockIds,_sourceTaskId
), tmpMeta[2]))
;
1983#line 1983 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1984
1985#line 6616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1986 tmpMeta[3] = mmc_mk_box6(6, &HpcOmSimCode_Task_DEPTASK__desc, _sourceTask, _targetTask, mmc_mk_boolean(_outgoing)((_outgoing) != 0 ? (mmc_mk_icon(1)) : (mmc_mk_icon(0))), mmc_mk_integermmc_mk_icon(_counter), _communicationInfo);
1987#line 6616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1988 tmpMeta[2] = mmc_mk_cons(tmpMeta[3], _newOutgoingDepTasks);
1989#line 6616 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1990 _newOutgoingDepTasks = tmpMeta[2];
1991#line 1991 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1992
1993#line 6617 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
1994 _counter = ((modelica_integer) 1) + _counter;
1995#line 1995 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
1996 }
1997 }
1998
1999#line 6620 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2000 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2001#line 6620 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2002 _tmpFoldArray = arrayCreate(arrayLength(_allThreadTasks), tmpMeta[1]);
2003#line 2003 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2004
2005#line 6621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2006 /* Pattern-matching assignment */
2007#line 6621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2008 tmpMeta[1] = mmc_mk_box1(0, _lockIds);
2009#line 6621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2010 tmpMeta[2] = mmc_mk_box2(0, _tmpFoldArray, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)));
2011#line 6621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2012 tmpMeta[3] = omc_Array_fold(threadData, _allThreadTasks, (modelica_fnptr) mmc_mk_box2(0,closure1_HpcOmScheduler_replaceDepTaskIdsByLockIds,tmpMeta[1]), tmpMeta[2]);
2013#line 6621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2014 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
2015#line 6621 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2016 _newAllThreadTasks = tmpMeta[4];
2017#line 2017 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2018
2019#line 6622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2020 tmpMeta[1] = mmc_mk_box5(4, &HpcOmSimCode_Schedule_THREADSCHEDULE__desc, _newAllThreadTasks, _newOutgoingDepTasks, _scheduledTasks, _allCalcTasks);
2021#line 6622 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2022 _oSchedule = tmpMeta[1];
2023#line 2023 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2024 _return: OMC_LABEL_UNUSED__attribute__((unused))
2025 return _oSchedule;
2026}
2027
2028PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_revertTaskList(threadData_t *threadData, modelica_integer _iCurrentArrayIdx, modelica_metatype _iResultList)
2029{
2030 modelica_metatype _oResultList = NULL((void*)0);
2031 modelica_metatype _entry = NULL((void*)0);
2032 modelica_metatype _tmpResultList = NULL((void*)0);
2033 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2034 MMC_SO()mmc_check_stackoverflow(threadData);
2035 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2036 // _oResultList has no default value.
2037 // _entry has no default value.
2038 // _tmpResultList has no default value.
2039#line 2039 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2040 { /* matchcontinue expression */
2041 {
2042 volatile mmc_switch_type tmp3;
2043 int tmp4;
2044 tmp3 = 0;
2045 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
2046 tmp2_top:
2047 threadData->mmc_jumper = &new_mmc_jumper;
2048 for (; tmp3 < 2; tmp3++) {
2049 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2050 case 0: {
2051 modelica_boolean tmp5;
2052 /* Pattern matching succeeded */
2053#line 6569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2054 /* Pattern-matching assignment */
2055#line 6569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2056 tmp5 = (_iCurrentArrayIdx <= arrayLength(_iResultList));
2057#line 6569 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2058 if (1 != tmp5) goto goto_1;
2059#line 2059 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2060
2061#line 6570 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2062 _entry = arrayGet(_iResultList, _iCurrentArrayIdx)nobox_arrayGet(threadData,_iResultList,_iCurrentArrayIdx);
2063#line 2063 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2064
2065#line 6571 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2066 _entry = listReverse(_entry);
2067#line 2067 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2068#line 6572 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2069 tmpMeta[0] = arrayUpdate(_iResultList, _iCurrentArrayIdx, _entry)boxptr_arrayUpdate(threadData,_iResultList,mmc_mk_icon(_iCurrentArrayIdx
),_entry)
;
2070#line 2070 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2071 goto tmp2_done;
2072 }
2073 case 1: {
2074 /* Pattern matching succeeded */
2075#line 6575 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2076 tmpMeta[0] = _iResultList;
2077#line 2077 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2078 goto tmp2_done;
2079 }
2080 }
2081 goto tmp2_end;
2082 tmp2_end: ;
2083 }
2084 goto goto_1;
2085 tmp2_done:
2086 (void)tmp3;
2087 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2088 goto tmp2_done2;
2089 goto_1:;
2090 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2091 if (++tmp3 < 2) {
2092 goto tmp2_top;
2093 }
2094 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2095 tmp2_done2:;
2096 }
2097 }
2098 _oResultList = tmpMeta[0];
2099 _return: OMC_LABEL_UNUSED__attribute__((unused))
2100 return _oResultList;
2101}
2102PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_revertTaskList(threadData_t *threadData, modelica_metatype _iCurrentArrayIdx, modelica_metatype _iResultList)
2103{
2104 modelica_integer tmp1;
2105 modelica_metatype _oResultList = NULL((void*)0);
2106 tmp1 = mmc_unbox_integer(_iCurrentArrayIdx)(((mmc_sint_t) (_iCurrentArrayIdx)) >> 1);
2107 _oResultList = omc_HpcOmScheduler_revertTaskList(threadData, tmp1, _iResultList);
2108 /* skip box _oResultList; array<list<HpcOmSimCode.Task>> */
2109 return _oResultList;
2110}
2111
2112PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_revertTaskLists(threadData_t *threadData, modelica_integer _iCurrentArrayIdx, modelica_metatype _iResultList)
2113{
2114 modelica_metatype _oResultList = NULL((void*)0);
2115 modelica_metatype _entryOde = NULL((void*)0);
2116 modelica_metatype _entryDae = NULL((void*)0);
2117 modelica_metatype _entryZeroFunc = NULL((void*)0);
2118 modelica_metatype _tmpResultList = NULL((void*)0);
2119 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2120 MMC_SO()mmc_check_stackoverflow(threadData);
2121 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2122 // _oResultList has no default value.
2123 // _entryOde has no default value.
2124 // _entryDae has no default value.
2125 // _entryZeroFunc has no default value.
2126 // _tmpResultList has no default value.
2127#line 2127 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2128 { /* matchcontinue expression */
2129 {
2130 volatile mmc_switch_type tmp3;
2131 int tmp4;
2132 tmp3 = 0;
2133 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
2134 tmp2_top:
2135 threadData->mmc_jumper = &new_mmc_jumper;
2136 for (; tmp3 < 2; tmp3++) {
2137 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2138 case 0: {
2139 modelica_boolean tmp5;
2140 /* Pattern matching succeeded */
2141#line 6546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2142 /* Pattern-matching assignment */
2143#line 6546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2144 tmp5 = (_iCurrentArrayIdx <= arrayLength(_iResultList));
2145#line 6546 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2146 if (1 != tmp5) goto goto_1;
2147#line 2147 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2148
2149#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2150 /* Pattern-matching assignment */
2151#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2152 tmpMeta[1] = arrayGet(_iResultList, _iCurrentArrayIdx)nobox_arrayGet(threadData,_iResultList,_iCurrentArrayIdx);
2153#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2154 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2155#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2156 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2157#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2158 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2159#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2160 _entryOde = tmpMeta[2];
2161#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2162 _entryDae = tmpMeta[3];
2163#line 6547 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2164 _entryZeroFunc = tmpMeta[4];
2165#line 2165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2166
2167#line 6548 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2168 _entryOde = listReverse(_entryOde);
2169#line 2169 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2170
2171#line 6549 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2172 _entryDae = listReverse(_entryDae);
2173#line 2173 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2174
2175#line 6550 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2176 _entryZeroFunc = listReverse(_entryZeroFunc);
2177#line 2177 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2178
2179#line 6551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2180 tmpMeta[1] = mmc_mk_box3(0, _entryOde, _entryDae, _entryZeroFunc);
2181#line 6551 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2182 _tmpResultList = arrayUpdate(_iResultList, _iCurrentArrayIdx, tmpMeta[1])boxptr_arrayUpdate(threadData,_iResultList,mmc_mk_icon(_iCurrentArrayIdx
),tmpMeta[1])
;
2183#line 2183 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2184#line 6552 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2185 tmpMeta[0] = omc_HpcOmScheduler_revertTaskLists(threadData, ((modelica_integer) 1) + _iCurrentArrayIdx, _tmpResultList);
2186#line 2186 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2187 goto tmp2_done;
2188 }
2189 case 1: {
2190 /* Pattern matching succeeded */
2191#line 6554 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2192 tmpMeta[0] = _iResultList;
2193#line 2193 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2194 goto tmp2_done;
2195 }
2196 }
2197 goto tmp2_end;
2198 tmp2_end: ;
2199 }
2200 goto goto_1;
2201 tmp2_done:
2202 (void)tmp3;
2203 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2204 goto tmp2_done2;
2205 goto_1:;
2206 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2207 if (++tmp3 < 2) {
2208 goto tmp2_top;
2209 }
2210 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2211 tmp2_done2:;
2212 }
2213 }
2214 _oResultList = tmpMeta[0];
2215 _return: OMC_LABEL_UNUSED__attribute__((unused))
2216 return _oResultList;
2217}
2218PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_revertTaskLists(threadData_t *threadData, modelica_metatype _iCurrentArrayIdx, modelica_metatype _iResultList)
2219{
2220 modelica_integer tmp1;
2221 modelica_metatype _oResultList = NULL((void*)0);
2222 tmp1 = mmc_unbox_integer(_iCurrentArrayIdx)(((mmc_sint_t) (_iCurrentArrayIdx)) >> 1);
2223 _oResultList = omc_HpcOmScheduler_revertTaskLists(threadData, tmp1, _iResultList);
2224 /* skip box _oResultList; array<tuple<list<list<HpcOmSimCode.Task>>, list<list<HpcOmSimCode.Task>>, list<list<HpcOmSimCode.Task>>>> */
2225 return _oResultList;
2226}
2227
2228PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *threadData, modelica_metatype _iLevelTasks, modelica_integer _iCurrentThreadIdx, modelica_integer _iModifiedSystemIdx, modelica_metatype _iResultList)
2229{
2230 modelica_metatype _oResultList = NULL((void*)0);
2231 modelica_metatype _tmpResultList = NULL((void*)0);
2232 modelica_metatype _entryOde = NULL((void*)0);
2233 modelica_metatype _entryDae = NULL((void*)0);
2234 modelica_metatype _entryZeroFunc = NULL((void*)0);
2235 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
2236 MMC_SO()mmc_check_stackoverflow(threadData);
2237 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2238 // _oResultList has no default value.
2239 // _tmpResultList has no default value.
2240 // _entryOde has no default value.
2241 // _entryDae has no default value.
2242 // _entryZeroFunc has no default value.
2243#line 2243 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2244 { /* matchcontinue expression */
2245 {
2246 volatile mmc_switch_type tmp3;
2247 int tmp4;
2248 tmp3 = 0;
2249 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
2250 tmp2_top:
2251 threadData->mmc_jumper = &new_mmc_jumper;
2252 for (; tmp3 < 2; tmp3++) {
2253 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2254 case 0: {
2255 modelica_boolean tmp5;
2256 /* Pattern matching succeeded */
2257#line 6517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2258 /* Pattern-matching assignment */
2259#line 6517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2260 tmp5 = (_iCurrentThreadIdx <= arrayLength(_iLevelTasks));
2261#line 6517 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2262 if (1 != tmp5) goto goto_1;
2263#line 2263 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2264
2265#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2266 /* Pattern-matching assignment */
2267#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2268 tmpMeta[1] = arrayGet(_iResultList, _iCurrentThreadIdx)nobox_arrayGet(threadData,_iResultList,_iCurrentThreadIdx);
2269#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2270 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (1)))))
;
2271#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2272 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
2273#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2274 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (3)))))
;
2275#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2276 _entryOde = tmpMeta[2];
2277#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2278 _entryDae = tmpMeta[3];
2279#line 6518 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2280 _entryZeroFunc = tmpMeta[4];
2281#line 2281 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2282
2283#line 6519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2284 if((_iModifiedSystemIdx == ((modelica_integer) 0)))
2285#line 6519 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2286 {
2287#line 6520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2288 tmpMeta[1] = mmc_mk_cons(arrayGet(_iLevelTasks, _iCurrentThreadIdx)nobox_arrayGet(threadData,_iLevelTasks,_iCurrentThreadIdx), _entryOde);
2289#line 6520 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2290 _entryOde = tmpMeta[1];
2291#line 2291 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2292 }
2293 else
2294 {
2295#line 6522 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2296 if((_iModifiedSystemIdx == ((modelica_integer) 1)))
2297#line 6522 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2298 {
2299#line 6523 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2300 tmpMeta[1] = mmc_mk_cons(arrayGet(_iLevelTasks, _iCurrentThreadIdx)nobox_arrayGet(threadData,_iLevelTasks,_iCurrentThreadIdx), _entryDae);
2301#line 6523 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2302 _entryDae = tmpMeta[1];
2303#line 2303 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2304 }
2305 else
2306 {
2307#line 6525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2308 tmpMeta[1] = mmc_mk_cons(arrayGet(_iLevelTasks, _iCurrentThreadIdx)nobox_arrayGet(threadData,_iLevelTasks,_iCurrentThreadIdx), _entryZeroFunc);
2309#line 6525 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2310 _entryZeroFunc = tmpMeta[1];
2311#line 2311 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2312 }
2313 }
2314
2315#line 6528 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2316 tmpMeta[1] = mmc_mk_box3(0, _entryOde, _entryDae, _entryZeroFunc);
2317#line 6528 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2318 _tmpResultList = arrayUpdate(_iResultList, _iCurrentThreadIdx, tmpMeta[1])boxptr_arrayUpdate(threadData,_iResultList,mmc_mk_icon(_iCurrentThreadIdx
),tmpMeta[1])
;
2319#line 2319 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2320#line 6529 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2321 tmpMeta[0] = omc_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData, _iLevelTasks, ((modelica_integer) 1) + _iCurrentThreadIdx, _iModifiedSystemIdx, _tmpResultList);
2322#line 2322 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2323 goto tmp2_done;
2324 }
2325 case 1: {
2326 /* Pattern matching succeeded */
2327#line 6531 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2328 tmpMeta[0] = _iResultList;
2329#line 2329 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2330 goto tmp2_done;
2331 }
2332 }
2333 goto tmp2_end;
2334 tmp2_end: ;
2335 }
2336 goto goto_1;
2337 tmp2_done:
2338 (void)tmp3;
2339 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
2340 goto tmp2_done2;
2341 goto_1:;
2342 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
2343 if (++tmp3 < 2) {
2344 goto tmp2_top;
2345 }
2346 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2347 tmp2_done2:;
2348 }
2349 }
2350 _oResultList = tmpMeta[0];
2351 _return: OMC_LABEL_UNUSED__attribute__((unused))
2352 return _oResultList;
2353}
2354PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *threadData, modelica_metatype _iLevelTasks, modelica_metatype _iCurrentThreadIdx, modelica_metatype _iModifiedSystemIdx, modelica_metatype _iResultList)
2355{
2356 modelica_integer tmp1;
2357 modelica_integer tmp2;
2358 modelica_metatype _oResultList = NULL((void*)0);
2359 tmp1 = mmc_unbox_integer(_iCurrentThreadIdx)(((mmc_sint_t) (_iCurrentThreadIdx)) >> 1);
2360 tmp2 = mmc_unbox_integer(_iModifiedSystemIdx)(((mmc_sint_t) (_iModifiedSystemIdx)) >> 1);
2361 _oResultList = omc_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData, _iLevelTasks, tmp1, tmp2, _iResultList);
2362 /* skip box _oResultList; array<tuple<list<list<HpcOmSimCode.Task>>, list<list<HpcOmSimCode.Task>>, list<list<HpcOmSimCode.Task>>>> */
2363 return _oResultList;
2364}
2365
2366static modelica_metatype closure2_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *thData, modelica_metatype closure, modelica_metatype iLevelTasks, modelica_metatype iResultList)
2367{
2368 modelica_metatype iCurrentThreadIdx = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2369 modelica_metatype iModifiedSystemIdx = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
2370 return boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(thData, iLevelTasks, iCurrentThreadIdx, iModifiedSystemIdx, iResultList);
2371}static modelica_metatype closure3_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *thData, modelica_metatype closure, modelica_metatype iLevelTasks, modelica_metatype iResultList)
2372{
2373 modelica_metatype iCurrentThreadIdx = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2374 modelica_metatype iModifiedSystemIdx = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
2375 return boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(thData, iLevelTasks, iCurrentThreadIdx, iModifiedSystemIdx, iResultList);
2376}static modelica_metatype closure4_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(threadData_t *thData, modelica_metatype closure, modelica_metatype iLevelTasks, modelica_metatype iResultList)
2377{
2378 modelica_metatype iCurrentThreadIdx = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2379 modelica_metatype iModifiedSystemIdx = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),2))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (2)))))
;
2380 return boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1(thData, iLevelTasks, iCurrentThreadIdx, iModifiedSystemIdx, iResultList);
2381}
2382DLLExport
2383modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToTaskLists(threadData_t *threadData, modelica_metatype _iOdeSchedule, modelica_metatype _iDaeSchedule, modelica_metatype _iZeroFuncSchedule, modelica_integer _iNumOfThreads)
2384{
2385 modelica_metatype _oThreadLevelTasks = NULL((void*)0);
2386 modelica_metatype _tasksOfLevelsOde = NULL((void*)0);
2387 modelica_metatype _tasksOfLevelsDae = NULL((void*)0);
2388 modelica_metatype _tasksOfLevelsZeroFunc = NULL((void*)0);
2389 modelica_metatype _tmpThreadLevelTasksDae = NULL((void*)0);
2390 modelica_metatype _tmpThreadLevelTasksOde = NULL((void*)0);
2391 modelica_metatype _tmpThreadLevelTasksZeroFunc = NULL((void*)0);
2392 modelica_metatype _tmpResultLists = NULL((void*)0);
2393 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
2394 MMC_SO()mmc_check_stackoverflow(threadData);
2395 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2396 // _oThreadLevelTasks has no default value.
2397 // _tasksOfLevelsOde has no default value.
2398 // _tasksOfLevelsDae has no default value.
2399 // _tasksOfLevelsZeroFunc has no default value.
2400 // _tmpThreadLevelTasksDae has no default value.
2401 // _tmpThreadLevelTasksOde has no default value.
2402 // _tmpThreadLevelTasksZeroFunc has no default value.
2403 // _tmpResultLists has no default value.
2404#line 2404 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2405 { /* match expression */
2406 modelica_metatype tmp3_1;modelica_metatype tmp3_2;modelica_metatype tmp3_3;
2407 tmp3_1 = _iOdeSchedule;
2408 tmp3_2 = _iDaeSchedule;
2409 tmp3_3 = _iZeroFuncSchedule;
2410 {
2411 volatile mmc_switch_type tmp3;
2412 int tmp4;
2413 tmp3 = 0;
2414 for (; tmp3 < 2; tmp3++) {
2415 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2416 case 0: {
2417 modelica_integer tmp5;
2418 modelica_integer tmp6;
2419 modelica_integer tmp7;
2420 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2421 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2422 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2423 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2424 if (1 != tmp5) goto tmp2_end;
2425 if (mmc__uniontype__metarecord__typedef__equal(tmp3_2,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_2) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2426 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(2)))))
;
2427 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_2), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_2) - 3))) +
(3)))))
;
2428 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
2429 if (1 != tmp6) goto tmp2_end;
2430 if (mmc__uniontype__metarecord__typedef__equal(tmp3_3,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_3) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2431 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(2)))))
;
2432 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_3), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_3) - 3))) +
(3)))))
;
2433 tmp7 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
2434 if (1 != tmp7) goto tmp2_end;
2435 _tasksOfLevelsOde = tmpMeta[1];
2436 _tasksOfLevelsDae = tmpMeta[3];
2437 _tasksOfLevelsZeroFunc = tmpMeta[5];
2438 /* Pattern matching succeeded */
2439#line 6483 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2440 _tmpResultLists = arrayCreate(_iNumOfThreads, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
2441#line 2441 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2442
2443#line 6484 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2444 _tmpThreadLevelTasksOde = omc_List_map1(threadData, _tasksOfLevelsOde, boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel
).header) + 3))
, mmc_mk_integermmc_mk_icon(_iNumOfThreads));
2445#line 2445 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2446
2447#line 6485 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2448 _tmpThreadLevelTasksDae = omc_List_map1(threadData, _tasksOfLevelsDae, boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel
).header) + 3))
, mmc_mk_integermmc_mk_icon(_iNumOfThreads));
2449#line 2449 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2450
2451#line 6486 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2452 _tmpThreadLevelTasksZeroFunc = omc_List_map1(threadData, _tasksOfLevelsZeroFunc, boxvar_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel((void*)((char*)(&(boxvar_lit_HpcOmScheduler_convertFixedLevelScheduleToTaskListsForLevel
).header) + 3))
, mmc_mk_integermmc_mk_icon(_iNumOfThreads));
2453#line 2453 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2454
2455#line 6488 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2456 tmpMeta[1] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)), mmc_mk_integermmc_mk_icon(((modelica_integer) 0)));
2457#line 6488 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2458 _tmpResultLists = omc_List_fold(threadData, _tmpThreadLevelTasksOde, (modelica_fnptr) mmc_mk_box2(0,closure2_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1,tmpMeta[1]), _tmpResultLists);
2459#line 2459 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2460
2461#line 6489 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2462 tmpMeta[1] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)), mmc_mk_integermmc_mk_icon(((modelica_integer) 1)));
2463#line 6489 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2464 _tmpResultLists = omc_List_fold(threadData, _tmpThreadLevelTasksDae, (modelica_fnptr) mmc_mk_box2(0,closure3_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1,tmpMeta[1]), _tmpResultLists);
2465#line 2465 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2466
2467#line 6490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2468 tmpMeta[1] = mmc_mk_box2(0, mmc_mk_integermmc_mk_icon(((modelica_integer) 1)), mmc_mk_integermmc_mk_icon(((modelica_integer) 2)));
2469#line 6490 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2470 _tmpResultLists = omc_List_fold(threadData, _tmpThreadLevelTasksZeroFunc, (modelica_fnptr) mmc_mk_box2(0,closure4_HpcOmScheduler_convertFixedLevelScheduleToTaskLists1,tmpMeta[1]), _tmpResultLists);
2471#line 2471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2472#line 6492 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2473 tmpMeta[0] = omc_HpcOmScheduler_revertTaskLists(threadData, ((modelica_integer) 1), _tmpResultLists);
2474#line 2474 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2475 goto tmp2_done;
2476 }
2477 case 1: {
2478
2479 /* Pattern matching succeeded */
2480#line 6497 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2481 tmpMeta[0] = arrayCreate(_iNumOfThreads, _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
2482#line 2482 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2483 goto tmp2_done;
2484 }
2485 }
2486 goto tmp2_end;
2487 tmp2_end: ;
2488 }
2489 goto goto_1;
2490 goto_1:;
2491 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2492 goto tmp2_done;
2493 tmp2_done:;
2494 }
2495 }
2496 _oThreadLevelTasks = tmpMeta[0];
2497 _return: OMC_LABEL_UNUSED__attribute__((unused))
2498 return _oThreadLevelTasks;
2499}
2500modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToTaskLists(threadData_t *threadData, modelica_metatype _iOdeSchedule, modelica_metatype _iDaeSchedule, modelica_metatype _iZeroFuncSchedule, modelica_metatype _iNumOfThreads)
2501{
2502 modelica_integer tmp1;
2503 modelica_metatype _oThreadLevelTasks = NULL((void*)0);
2504 tmp1 = mmc_unbox_integer(_iNumOfThreads)(((mmc_sint_t) (_iNumOfThreads)) >> 1);
2505 _oThreadLevelTasks = omc_HpcOmScheduler_convertFixedLevelScheduleToTaskLists(threadData, _iOdeSchedule, _iDaeSchedule, _iZeroFuncSchedule, tmp1);
2506 /* skip box _oThreadLevelTasks; array<tuple<list<list<HpcOmSimCode.Task>>, list<list<HpcOmSimCode.Task>>, list<list<HpcOmSimCode.Task>>>> */
2507 return _oThreadLevelTasks;
2508}
2509
2510PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_integer _iNumOfThreads)
2511{
2512 modelica_metatype _oLevelThreadLists = NULL((void*)0);
2513 modelica_metatype _tasks = NULL((void*)0);
2514 modelica_metatype _task = NULL((void*)0);
2515 modelica_integer _threadIdx;
2516 modelica_metatype _tmpLevelThreadLists = NULL((void*)0);
2517 modelica_integer tmp1;
2518 modelica_metatype tmpMeta[4] __attribute__((unused)) = {0};
2519 MMC_SO()mmc_check_stackoverflow(threadData);
2520 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2521 // _oLevelThreadLists has no default value.
2522 // _tasks has no default value.
2523 // _task has no default value.
2524 // _threadIdx has no default value.
2525 // _tmpLevelThreadLists has no default value.
2526#line 6458 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2527 _tasks = omc_HpcOmScheduler_getTasksOfTaskList(threadData, _iTasksOfLevel);
2528#line 2528 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2529
2530#line 6459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2531 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2532#line 6459 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2533 _tmpLevelThreadLists = arrayCreate(_iNumOfThreads, tmpMeta[0]);
2534#line 2534 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2535
2536#line 6460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2537 {
2538#line 6460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2539 modelica_metatype _task;
2540#line 6460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2541 for (tmpMeta[0] = listReverse(_tasks); !listEmpty(tmpMeta[0])((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
; tmpMeta[0]=MMC_CDR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
)
2542#line 6460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2543 {
2544#line 6460 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2545 _task = MMC_CAR(tmpMeta[0])(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
2546#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2547 /* Pattern-matching assignment */
2548#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2549 tmpMeta[1] = _task;
2550#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2551 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[1],2,3)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[1]) - 3)))==(((3 +1)
<< 10) + (((2 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2552#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2553 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (4)))))
;
2554#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2555 if (optionNone(tmpMeta[2])(0==((((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2]) - 3)))) &
(7)) == 5)) ? ((((*(mmc_uint_t*)((void*)((char*)(tmpMeta[2])
- 3)))) >> (3+3))) : (((*(mmc_uint_t*)((void*)((char*)
(tmpMeta[2]) - 3)))) >> 10)) ? 1 : 0)
) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2556#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2557 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[2]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[2]) - 3
))) + (1)))))
;
2558#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2559 tmp1 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
2560#line 6461 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2561 _threadIdx = tmp1 /* pattern as ty=Integer */;
2562#line 2562 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2563
2564#line 6462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2565 tmpMeta[1] = mmc_mk_cons(_task, arrayGet(_tmpLevelThreadLists, _threadIdx)nobox_arrayGet(threadData,_tmpLevelThreadLists,_threadIdx));
2566#line 6462 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2567 _tmpLevelThreadLists = arrayUpdate(_tmpLevelThreadLists, _threadIdx, tmpMeta[1])boxptr_arrayUpdate(threadData,_tmpLevelThreadLists,mmc_mk_icon
(_threadIdx),tmpMeta[1])
;
2568#line 2568 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2569 }
2570 }
2571
2572#line 6464 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2573 _oLevelThreadLists = _tmpLevelThreadLists;
2574#line 2574 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2575 _return: OMC_LABEL_UNUSED__attribute__((unused))
2576 return _oLevelThreadLists;
2577}
2578PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(threadData_t *threadData, modelica_metatype _iTasksOfLevel, modelica_metatype _iNumOfThreads)
2579{
2580 modelica_integer tmp1;
2581 modelica_metatype _oLevelThreadLists = NULL((void*)0);
2582 tmp1 = mmc_unbox_integer(_iNumOfThreads)(((mmc_sint_t) (_iNumOfThreads)) >> 1);
2583 _oLevelThreadLists = omc_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(threadData, _iTasksOfLevel, tmp1);
2584 /* skip box _oLevelThreadLists; array<list<HpcOmSimCode.Task>> */
2585 return _oLevelThreadLists;
2586}
2587
2588static modelica_metatype closure5_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(threadData_t *thData, modelica_metatype closure, modelica_metatype iTasksOfLevel)
2589{
2590 modelica_metatype iNumOfThreads = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(closure),1))(*(void**)(((void*)((void**)(((void*)((char*)(closure) - 3)))
+ (1)))))
;
2591 return boxptr_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0(thData, iTasksOfLevel, iNumOfThreads);
2592}
2593DLLExport
2594modelica_metatype omc_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists(threadData_t *threadData, modelica_metatype _iSchedule, modelica_integer _iNumOfThreads)
2595{
2596 modelica_metatype _oLevelThreadLists = NULL((void*)0);
2597 modelica_metatype _tasksOfLevels = NULL((void*)0);
2598 modelica_metatype _tmpLevelThreadLists = NULL((void*)0);
2599 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
2600 MMC_SO()mmc_check_stackoverflow(threadData);
2601 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2602 // _oLevelThreadLists has no default value.
2603 // _tasksOfLevels has no default value.
2604 // _tmpLevelThreadLists has no default value.
2605#line 2605 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2606 { /* match expression */
2607 modelica_metatype tmp3_1;
2608 tmp3_1 = _iSchedule;
2609 {
2610 volatile mmc_switch_type tmp3;
2611 int tmp4;
2612 tmp3 = 0;
2613 for (; tmp3 < 2; tmp3++) {
2614 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
2615 case 0: {
2616 modelica_integer tmp5;
2617 if (mmc__uniontype__metarecord__typedef__equal(tmp3_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp3_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp2_end;
2618 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
2619 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
2620 tmp5 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
2621 if (1 != tmp5) goto tmp2_end;
2622 _tasksOfLevels = tmpMeta[1];
2623 /* Pattern matching succeeded */
2624#line 6441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2625 tmpMeta[1] = mmc_mk_box1(0, mmc_mk_integermmc_mk_icon(_iNumOfThreads));
2626#line 6441 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2627 tmpMeta[0] = omc_List_map(threadData, _tasksOfLevels, (modelica_fnptr) mmc_mk_box2(0,closure5_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists0,tmpMeta[1]));
2628#line 2628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2629 goto tmp2_done;
2630 }
2631 case 1: {
2632
2633 /* Pattern matching succeeded */
2634#line 6444 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2635 tmpMeta[1] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
2636#line 6444 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2637 tmpMeta[0] = tmpMeta[1];
2638#line 2638 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2639 goto tmp2_done;
2640 }
2641 }
2642 goto tmp2_end;
2643 tmp2_end: ;
2644 }
2645 goto goto_1;
2646 goto_1:;
2647 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2648 goto tmp2_done;
2649 tmp2_done:;
2650 }
2651 }
2652 _oLevelThreadLists = tmpMeta[0];
2653 _return: OMC_LABEL_UNUSED__attribute__((unused))
2654 return _oLevelThreadLists;
2655}
2656modelica_metatype boxptr_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists(threadData_t *threadData, modelica_metatype _iSchedule, modelica_metatype _iNumOfThreads)
2657{
2658 modelica_integer tmp1;
2659 modelica_metatype _oLevelThreadLists = NULL((void*)0);
2660 tmp1 = mmc_unbox_integer(_iNumOfThreads)(((mmc_sint_t) (_iNumOfThreads)) >> 1);
2661 _oLevelThreadLists = omc_HpcOmScheduler_convertFixedLevelScheduleToLevelThreadLists(threadData, _iSchedule, tmp1);
2662 /* skip box _oLevelThreadLists; list<array<list<HpcOmSimCode.Task>>> */
2663 return _oLevelThreadLists;
2664}
2665
2666PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_isEmptyTask(threadData_t *threadData, modelica_metatype _taskIn)
2667{
2668 modelica_boolean _isEmpty;
2669 modelica_boolean tmp1 = 0;
2670 MMC_SO()mmc_check_stackoverflow(threadData);
2671 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2672 // _isEmpty has no default value.
2673#line 2673 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2674 { /* match expression */
2675 modelica_metatype tmp4_1;
2676 tmp4_1 = _taskIn;
2677 {
2678 volatile mmc_switch_type tmp4;
2679 int tmp5;
2680 tmp4 = 0;
2681 for (; tmp4 < 2; tmp4++) {
2682 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2683 case 0: {
2684 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,5,0)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((0 +1) <<
10) + (((5 +3) & 255) << 2)))
== 0) goto tmp3_end;
2685 /* Pattern matching succeeded */
2686#line 6422 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2687 tmp1 = 1;
2688#line 2688 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2689 goto tmp3_done;
2690 }
2691 case 1: {
2692
2693 /* Pattern matching succeeded */
2694#line 6424 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2695 tmp1 = 0;
2696#line 2696 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2697 goto tmp3_done;
2698 }
2699 }
2700 goto tmp3_end;
2701 tmp3_end: ;
2702 }
2703 goto goto_2;
2704 goto_2:;
2705 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2706 goto tmp3_done;
2707 tmp3_done:;
2708 }
2709 }
2710 _isEmpty = tmp1;
2711 _return: OMC_LABEL_UNUSED__attribute__((unused))
2712 return _isEmpty;
2713}
2714PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_isEmptyTask(threadData_t *threadData, modelica_metatype _taskIn)
2715{
2716 modelica_boolean _isEmpty;
2717 modelica_metatype out_isEmpty;
2718 _isEmpty = omc_HpcOmScheduler_isEmptyTask(threadData, _taskIn);
2719 out_isEmpty = mmc_mk_icon(_isEmpty);
2720 return out_isEmpty;
2721}
2722
2723PROTECTED_FUNCTION_STATIC modelica_boolean omc_HpcOmScheduler_isCalcTask(threadData_t *threadData, modelica_metatype _taskIn)
2724{
2725 modelica_boolean _isCalc;
2726 modelica_boolean tmp1 = 0;
2727 MMC_SO()mmc_check_stackoverflow(threadData);
2728 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2729 // _isCalc has no default value.
2730#line 2730 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2731 { /* match expression */
2732 modelica_metatype tmp4_1;
2733 tmp4_1 = _taskIn;
2734 {
2735 volatile mmc_switch_type tmp4;
2736 int tmp5;
2737 tmp4 = 0;
2738 for (; tmp4 < 2; tmp4++) {
2739 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2740 case 0: {
2741 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2742
2743 /* Pattern matching succeeded */
2744#line 6409 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2745 tmp1 = 1;
2746#line 2746 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2747 goto tmp3_done;
2748 }
2749 case 1: {
2750
2751 /* Pattern matching succeeded */
2752#line 6411 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2753 tmp1 = 0;
2754#line 2754 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2755 goto tmp3_done;
2756 }
2757 }
2758 goto tmp3_end;
2759 tmp3_end: ;
2760 }
2761 goto goto_2;
2762 goto_2:;
2763 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2764 goto tmp3_done;
2765 tmp3_done:;
2766 }
2767 }
2768 _isCalc = tmp1;
2769 _return: OMC_LABEL_UNUSED__attribute__((unused))
2770 return _isCalc;
2771}
2772PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_isCalcTask(threadData_t *threadData, modelica_metatype _taskIn)
2773{
2774 modelica_boolean _isCalc;
2775 modelica_metatype out_isCalc;
2776 _isCalc = omc_HpcOmScheduler_isCalcTask(threadData, _taskIn);
2777 out_isCalc = mmc_mk_icon(_isCalc);
2778 return out_isCalc;
2779}
2780
2781PROTECTED_FUNCTION_STATIC modelica_string omc_HpcOmScheduler_getTaskTypeString(threadData_t *threadData, modelica_metatype _iTask)
2782{
2783 modelica_string _oTypeString = NULL((void*)0);
2784 modelica_string tmp1 = 0;
2785 MMC_SO()mmc_check_stackoverflow(threadData);
2786 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2787 // _oTypeString has no default value.
2788#line 2788 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2789 { /* match expression */
2790 modelica_metatype tmp4_1;
2791 tmp4_1 = _iTask;
2792 {
2793 int tmp4;
2794 {
2795 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
2796 case 3: {
2797
2798 /* Pattern matching succeeded */
2799#line 6392 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2800 tmp1 = _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3));
2801#line 2801 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2802 goto tmp3_done;
2803 }
2804 case 4: {
2805
2806 /* Pattern matching succeeded */
2807#line 6393 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2808 tmp1 = _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3));
2809#line 2809 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2810 goto tmp3_done;
2811 }
2812 case 5: {
2813
2814 /* Pattern matching succeeded */
2815#line 6394 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2816 tmp1 = _OMC_LIT13((void*)((char*)(&(_OMC_LIT_STRUCT13).header) + 3));
2817#line 2817 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2818 goto tmp3_done;
2819 }
2820 case 6: {
2821
2822 /* Pattern matching succeeded */
2823#line 6395 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2824 tmp1 = _OMC_LIT14((void*)((char*)(&(_OMC_LIT_STRUCT14).header) + 3));
2825#line 2825 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2826 goto tmp3_done;
2827 }
2828 case 7: {
2829
2830 /* Pattern matching succeeded */
2831#line 6396 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2832 tmp1 = _OMC_LIT15((void*)((char*)(&(_OMC_LIT_STRUCT15).header) + 3));
2833#line 2833 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2834 goto tmp3_done;
2835 }
2836 case 8: {
2837
2838 /* Pattern matching succeeded */
2839#line 6397 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2840 tmp1 = _OMC_LIT16((void*)((char*)(&(_OMC_LIT_STRUCT16).header) + 3));
2841#line 2841 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2842 goto tmp3_done;
2843 }
2844 default:
2845 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
2846
2847 /* Pattern matching succeeded */
2848#line 6398 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2849 tmp1 = _OMC_LIT17((void*)((char*)(&(_OMC_LIT_STRUCT17).header) + 3));
2850#line 2850 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2851 goto tmp3_done;
2852 }
2853 }
2854 goto tmp3_end;
2855 tmp3_end: ;
2856 }
2857 goto goto_2;
2858 goto_2:;
2859 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2860 goto tmp3_done;
2861 tmp3_done:;
2862 }
2863 }
2864 _oTypeString = tmp1;
2865 _return: OMC_LABEL_UNUSED__attribute__((unused))
2866 return _oTypeString;
2867}
2868
2869PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getTaskIdx(threadData_t *threadData, modelica_metatype _taskIn)
2870{
2871 modelica_integer _idx;
2872 modelica_integer tmp1 = 0;
2873 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2874 MMC_SO()mmc_check_stackoverflow(threadData);
2875 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2876 // _idx has no default value.
2877#line 2877 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2878 { /* match expression */
2879 modelica_metatype tmp4_1;
2880 tmp4_1 = _taskIn;
2881 {
2882 modelica_integer _taskIdx;
2883 volatile mmc_switch_type tmp4;
2884 int tmp5;
2885 // _taskIdx has no default value.
2886 tmp4 = 0;
2887 for (; tmp4 < 2; tmp4++) {
2888 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2889 case 0: {
2890 modelica_integer tmp6;
2891 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2892 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
2893 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
2894
2895 _taskIdx = tmp6 /* pattern as ty=Integer */;
2896 /* Pattern matching succeeded */
2897#line 6380 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2898 tmp1 = _taskIdx;
2899#line 2899 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2900 goto tmp3_done;
2901 }
2902 case 1: {
2903
2904 /* Pattern matching succeeded */
2905#line 6382 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2906 tmp1 = ((modelica_integer) -1);
2907#line 2907 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2908 goto tmp3_done;
2909 }
2910 }
2911 goto tmp3_end;
2912 tmp3_end: ;
2913 }
2914 goto goto_2;
2915 goto_2:;
2916 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2917 goto tmp3_done;
2918 tmp3_done:;
2919 }
2920 }
2921 _idx = tmp1;
2922 _return: OMC_LABEL_UNUSED__attribute__((unused))
2923 return _idx;
2924}
2925PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTaskIdx(threadData_t *threadData, modelica_metatype _taskIn)
2926{
2927 modelica_integer _idx;
2928 modelica_metatype out_idx;
2929 _idx = omc_HpcOmScheduler_getTaskIdx(threadData, _taskIn);
2930 out_idx = mmc_mk_icon(_idx);
2931 return out_idx;
2932}
2933
2934PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getThreadId(threadData_t *threadData, modelica_metatype _taskIn)
2935{
2936 modelica_integer _threadId;
2937 modelica_integer tmp1 = 0;
2938 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
2939 MMC_SO()mmc_check_stackoverflow(threadData);
2940 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
2941 // _threadId has no default value.
2942#line 2942 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2943 { /* match expression */
2944 modelica_metatype tmp4_1;
2945 tmp4_1 = _taskIn;
2946 {
2947 modelica_integer _threadIdx;
2948 volatile mmc_switch_type tmp4;
2949 int tmp5;
2950 // _threadIdx has no default value.
2951 tmp4 = 0;
2952 for (; tmp4 < 2; tmp4++) {
2953 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
2954 case 0: {
2955 modelica_integer tmp6;
2956 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
2957 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(6)))))
;
2958 tmp6 = mmc_unbox_integer(tmpMeta[0])(((mmc_sint_t) (tmpMeta[0])) >> 1);
2959
2960 _threadIdx = tmp6 /* pattern as ty=Integer */;
2961 /* Pattern matching succeeded */
2962#line 6365 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2963 tmp1 = _threadIdx;
2964#line 2964 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2965 goto tmp3_done;
2966 }
2967 case 1: {
2968
2969 /* Pattern matching succeeded */
2970#line 6367 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
2971 tmp1 = ((modelica_integer) -1);
2972#line 2972 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
2973 goto tmp3_done;
2974 }
2975 }
2976 goto tmp3_end;
2977 tmp3_end: ;
2978 }
2979 goto goto_2;
2980 goto_2:;
2981 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
2982 goto tmp3_done;
2983 tmp3_done:;
2984 }
2985 }
2986 _threadId = tmp1;
2987 _return: OMC_LABEL_UNUSED__attribute__((unused))
2988 return _threadId;
2989}
2990PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getThreadId(threadData_t *threadData, modelica_metatype _taskIn)
2991{
2992 modelica_integer _threadId;
2993 modelica_metatype out_threadId;
2994 _threadId = omc_HpcOmScheduler_getThreadId(threadData, _taskIn);
2995 out_threadId = mmc_mk_icon(_threadId);
2996 return out_threadId;
2997}
2998
2999PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getTimeFinished(threadData_t *threadData, modelica_metatype _taskIn)
3000{
3001 modelica_real _finishingTime;
3002 modelica_real tmp1 = 0;
3003 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3004 MMC_SO()mmc_check_stackoverflow(threadData);
3005 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3006 // _finishingTime has no default value.
3007#line 3007 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3008 { /* match expression */
3009 modelica_metatype tmp4_1;
3010 tmp4_1 = _taskIn;
3011 {
3012 modelica_real _fTime;
3013 int tmp4;
3014 // _fTime has no default value.
3015 {
3016 switch (MMC_SWITCH_CAST(valueConstructor(tmp4_1))(((((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))) >> 2
) & 255))
) {
3017 case 4: {
3018 modelica_real tmp5;
3019 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3020 tmpMeta[0] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
3021 tmp5 = mmc_unbox_real(tmpMeta[0])mmc_prim_get_real(tmpMeta[0]);
3022
3023 _fTime = tmp5 /* pattern as ty=Real */;
3024 /* Pattern matching succeeded */
3025#line 6347 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3026 tmp1 = _fTime;
3027#line 3027 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3028 goto tmp3_done;
3029 }
3030 case 8: {
3031
3032 /* Pattern matching succeeded */
3033#line 6350 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3034 tmp1 = 0.0;
3035#line 3035 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3036 goto tmp3_done;
3037 }
3038 default:
3039 tmp3_default: OMC_LABEL_UNUSED__attribute__((unused)); {
3040
3041 /* Pattern matching succeeded */
3042#line 6352 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3043 tmp1 = -1.0;
3044#line 3044 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3045 goto tmp3_done;
3046 }
3047 }
3048 goto tmp3_end;
3049 tmp3_end: ;
3050 }
3051 goto goto_2;
3052 goto_2:;
3053 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3054 goto tmp3_done;
3055 tmp3_done:;
3056 }
3057 }
3058 _finishingTime = tmp1;
3059 _return: OMC_LABEL_UNUSED__attribute__((unused))
3060 return _finishingTime;
3061}
3062PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTimeFinished(threadData_t *threadData, modelica_metatype _taskIn)
3063{
3064 modelica_real _finishingTime;
3065 modelica_metatype out_finishingTime;
3066 _finishingTime = omc_HpcOmScheduler_getTimeFinished(threadData, _taskIn);
3067 out_finishingTime = mmc_mk_rcon(_finishingTime);
3068 return out_finishingTime;
3069}
3070
3071PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateTimeFinished(threadData_t *threadData, modelica_metatype _taskIn, modelica_real _timeFinishedIn)
3072{
3073 modelica_metatype _taskOut = NULL((void*)0);
3074 modelica_integer _weighting;
3075 modelica_integer _index;
3076 modelica_real _calcTime;
3077 modelica_real _timeFinished;
3078 modelica_integer _threadIdx;
3079 modelica_metatype _eqIdc = NULL((void*)0);
3080 modelica_integer tmp1;
3081 modelica_integer tmp2;
3082 modelica_real tmp3;
3083 modelica_real tmp4;
3084 modelica_integer tmp5;
3085 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
3086 MMC_SO()mmc_check_stackoverflow(threadData);
3087 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3088 // _taskOut has no default value.
3089 // _weighting has no default value.
3090 // _index has no default value.
3091 // _calcTime has no default value.
3092 // _timeFinished has no default value.
3093 // _threadIdx has no default value.
3094 // _eqIdc has no default value.
3095#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3096 /* Pattern-matching assignment */
3097#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3098 tmpMeta[0] = _taskIn;
3099#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3100 if (mmc__uniontype__metarecord__typedef__equal(tmpMeta[0],1,6)((*(mmc_uint_t*)((void*)((char*)(tmpMeta[0]) - 3)))==(((6 +1)
<< 10) + (((1 +3) & 255) << 2)))
== 0) MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3101#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3102 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3103#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3104 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
3105#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3106 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
3107#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3108 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
3109#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3110 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
3111#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3112 tmp3 = mmc_unbox_real(tmpMeta[3])mmc_prim_get_real(tmpMeta[3]);
3113#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3114 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
3115#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3116 tmp4 = mmc_unbox_real(tmpMeta[4])mmc_prim_get_real(tmpMeta[4]);
3117#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3118 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
3119#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3120 tmp5 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
3121#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3122 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
3123#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3124 _weighting = tmp1 /* pattern as ty=Integer */;
3125#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3126 _index = tmp2 /* pattern as ty=Integer */;
3127#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3128 _calcTime = tmp3 /* pattern as ty=Real */;
3129#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3130 _timeFinished = tmp4 /* pattern as ty=Real */;
3131#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3132 _threadIdx = tmp5 /* pattern as ty=Integer */;
3133#line 6334 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3134 _eqIdc = tmpMeta[6];
3135#line 3135 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3136
3137#line 6335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3138 tmpMeta[0] = mmc_mk_box7(4, &HpcOmSimCode_Task_CALCTASK__desc, mmc_mk_integermmc_mk_icon(_weighting), mmc_mk_integermmc_mk_icon(_index), mmc_mk_realmmc_mk_rcon(_calcTime), mmc_mk_realmmc_mk_rcon(_timeFinishedIn), mmc_mk_integermmc_mk_icon(_threadIdx), _eqIdc);
3139#line 6335 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3140 _taskOut = tmpMeta[0];
3141#line 3141 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3142 _return: OMC_LABEL_UNUSED__attribute__((unused))
3143 return _taskOut;
3144}
3145PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_updateTimeFinished(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _timeFinishedIn)
3146{
3147 modelica_real tmp1;
3148 modelica_metatype _taskOut = NULL((void*)0);
3149 tmp1 = mmc_unbox_real(_timeFinishedIn)mmc_prim_get_real(_timeFinishedIn);
3150 _taskOut = omc_HpcOmScheduler_updateTimeFinished(threadData, _taskIn, tmp1);
3151 /* skip box _taskOut; HpcOmSimCode.Task */
3152 return _taskOut;
3153}
3154
3155PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getPredecessorCalcTask(threadData_t *threadData, modelica_metatype _threadIn, modelica_integer _indexIn)
3156{
3157 modelica_metatype _taskOut = NULL((void*)0);
3158 modelica_metatype tmpMeta[1] __attribute__((unused)) = {0};
3159 MMC_SO()mmc_check_stackoverflow(threadData);
3160 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3161 // _taskOut has no default value.
3162#line 3162 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3163 { /* matchcontinue expression */
3164 {
3165 modelica_boolean _isCalc;
3166 modelica_integer _index;
3167 modelica_metatype _preTask = NULL((void*)0);
3168 volatile mmc_switch_type tmp3;
3169 int tmp4;
3170 // _isCalc has no default value.
3171 // _index has no default value.
3172 // _preTask has no default value.
3173 tmp3 = 0;
3174 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
3175 tmp2_top:
3176 threadData->mmc_jumper = &new_mmc_jumper;
3177 for (; tmp3 < 2; tmp3++) {
3178 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3179 case 0: {
3180 modelica_boolean tmp5;
3181 /* Pattern matching succeeded */
3182#line 6306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3183 /* Pattern-matching assignment */
3184#line 6306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3185 tmp5 = (_indexIn == ((modelica_integer) 1));
3186#line 6306 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3187 if (1 != tmp5) goto goto_1;
3188#line 3188 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3189#line 6307 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3190 tmpMeta[0] = _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3));
3191#line 3191 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3192 goto tmp2_done;
3193 }
3194 case 1: {
3195 modelica_boolean tmp6;
3196 /* Pattern matching succeeded */
3197#line 6311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3198 /* Pattern-matching assignment */
3199#line 6311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3200 tmp6 = (_indexIn >= ((modelica_integer) 2));
3201#line 6311 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3202 if (1 != tmp6) goto goto_1;
3203#line 3203 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3204
3205#line 6312 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3206 _index = ((modelica_integer) -1) + _indexIn;
3207#line 3207 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3208
3209#line 6313 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3210 _preTask = listGet(_threadIn, _index)boxptr_listGet(threadData,_threadIn,mmc_mk_icon(_index));
3211#line 3211 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3212
3213#line 6314 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3214 _isCalc = omc_HpcOmScheduler_isCalcTask(threadData, _preTask);
3215#line 3215 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3216#line 6315 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3217 tmpMeta[0] = ((!_isCalc)?omc_HpcOmScheduler_getPredecessorCalcTask(threadData, _threadIn, _index):_preTask);
3218#line 3218 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3219 goto tmp2_done;
3220 }
3221 }
3222 goto tmp2_end;
3223 tmp2_end: ;
3224 }
3225 goto goto_1;
3226 tmp2_done:
3227 (void)tmp3;
3228 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3229 goto tmp2_done2;
3230 goto_1:;
3231 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3232 if (++tmp3 < 2) {
3233 goto tmp2_top;
3234 }
3235 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3236 tmp2_done2:;
3237 }
3238 }
3239 _taskOut = tmpMeta[0];
3240 _return: OMC_LABEL_UNUSED__attribute__((unused))
3241 return _taskOut;
3242}
3243PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getPredecessorCalcTask(threadData_t *threadData, modelica_metatype _threadIn, modelica_metatype _indexIn)
3244{
3245 modelica_integer tmp1;
3246 modelica_metatype _taskOut = NULL((void*)0);
3247 tmp1 = mmc_unbox_integer(_indexIn)(((mmc_sint_t) (_indexIn)) >> 1);
3248 _taskOut = omc_HpcOmScheduler_getPredecessorCalcTask(threadData, _threadIn, tmp1);
3249 /* skip box _taskOut; HpcOmSimCode.Task */
3250 return _taskOut;
3251}
3252
3253PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_computeFinishingTimeForOneTask(threadData_t *threadData, modelica_metatype _tplIn)
3254{
3255 modelica_metatype _tplOut = NULL((void*)0);
3256 modelica_metatype tmpMeta[7] __attribute__((unused)) = {0};
3257 MMC_SO()mmc_check_stackoverflow(threadData);
3258 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3259 // _tplOut has no default value.
3260#line 3260 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3261 { /* matchcontinue expression */
3262 volatile modelica_metatype tmp3_1;
3263 tmp3_1 = _tplIn;
3264 {
3265 modelica_metatype _threadTasks = NULL((void*)0);
3266 modelica_metatype _threadTasksIn = NULL((void*)0);
3267 modelica_metatype _checkedTasksIn = NULL((void*)0);
3268 modelica_metatype _checkedTasks = NULL((void*)0);
3269 modelica_integer _taskIdx;
3270 modelica_integer _taskIdxLatest;
3271 modelica_integer _taskNum;
3272 modelica_integer _threadIdx;
3273 modelica_integer _threadIdxLatest;
3274 modelica_real _commCost;
3275 modelica_real _finishingTime;
3276 modelica_real _finishingTime1;
3277 modelica_real _finishingTimeComm;
3278 modelica_real _exeCost;
3279 modelica_metatype _taskGraphMeta = NULL((void*)0);
3280 modelica_metatype _task = NULL((void*)0);
3281 modelica_metatype _latestTask = NULL((void*)0);
3282 modelica_metatype _preTask = NULL((void*)0);
3283 modelica_metatype _thread = NULL((void*)0);
3284 volatile mmc_switch_type tmp3;
3285 int tmp4;
3286 // _threadTasks has no default value.
3287 // _threadTasksIn has no default value.
3288 // _checkedTasksIn has no default value.
3289 // _checkedTasks has no default value.
3290 // _taskIdx has no default value.
3291 // _taskIdxLatest has no default value.
3292 // _taskNum has no default value.
3293 // _threadIdx has no default value.
3294 // _threadIdxLatest has no default value.
3295 // _commCost has no default value.
3296 // _finishingTime has no default value.
3297 // _finishingTime1 has no default value.
3298 // _finishingTimeComm has no default value.
3299 // _exeCost has no default value.
3300 // _taskGraphMeta has no default value.
3301 // _task has no default value.
3302 // _latestTask has no default value.
3303 // _preTask has no default value.
3304 // _thread has no default value.
3305 tmp3 = 0;
3306 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
3307 tmp2_top:
3308 threadData->mmc_jumper = &new_mmc_jumper;
3309 for (; tmp3 < 2; tmp3++) {
3310 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
3311 case 0: {
3312 modelica_integer tmp5;
3313 modelica_integer tmp6;
3314 modelica_boolean tmp7;
3315 modelica_real tmp8;
3316 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3317 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3318 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3319 tmp5 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3320 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
3321 tmp6 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3322 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
3323 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
3324 _threadTasksIn = tmpMeta[1];
3325 _checkedTasksIn = tmpMeta[2];
3326 _taskNum = tmp5 /* pattern as ty=Integer */;
3327 _threadIdx = tmp6 /* pattern as ty=Integer */;
3328 _latestTask = tmpMeta[5];
3329 _taskGraphMeta = tmpMeta[6];
3330 /* Pattern matching succeeded */
3331#line 6247 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3332 /* Pattern-matching assignment */
3333#line 6247 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3334 tmp7 = omc_HpcOmScheduler_isEmptyTask(threadData, _latestTask);
3335#line 6247 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3336 if (1 != tmp7) goto goto_1;
3337#line 3337 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3338
3339#line 6248 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3340 _thread = arrayGet(_threadTasksIn, _threadIdx)nobox_arrayGet(threadData,_threadTasksIn,_threadIdx);
3341#line 3341 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3342
3343#line 6249 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3344 _task = listGet(_thread, _taskNum)boxptr_listGet(threadData,_thread,mmc_mk_icon(_taskNum));
3345#line 3345 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3346
3347#line 6250 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3348 _threadIdx = omc_HpcOmScheduler_getThreadId(threadData, _task);
3349#line 3349 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3350
3351#line 6251 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3352 _preTask = omc_HpcOmScheduler_getPredecessorCalcTask(threadData, _thread, _taskNum);
3353#line 3353 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3354
3355#line 6252 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3356 _finishingTime = omc_HpcOmScheduler_getTimeFinished(threadData, _preTask);
3357#line 3357 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3358
3359#line 6253 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3360 _taskIdx = omc_HpcOmScheduler_getTaskIdx(threadData, _task);
3361#line 3361 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3362
3363#line 6254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3364 /* Pattern-matching assignment */
3365#line 6254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3366 tmpMeta[1] = omc_HpcOmTaskGraph_getExeCost(threadData, _taskIdx, _taskGraphMeta);
3367#line 6254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3368 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3369#line 6254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3370 tmp8 = mmc_unbox_real(tmpMeta[2])mmc_prim_get_real(tmpMeta[2]);
3371#line 6254 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3372 _exeCost = tmp8 /* pattern as ty=Real */;
3373#line 3373 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3374
3375#line 6255 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3376 _finishingTime = _finishingTime + _exeCost;
3377#line 3377 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3378
3379#line 6256 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3380 _task = omc_HpcOmScheduler_updateTimeFinished(threadData, _task, _finishingTime);
3381#line 3381 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3382
3383#line 6257 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3384 _thread = omc_List_replaceAt(threadData, _task, _taskNum, _thread);
3385#line 3385 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3386
3387#line 6258 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3388 _threadTasks = arrayUpdate(_threadTasksIn, _threadIdx, _thread)boxptr_arrayUpdate(threadData,_threadTasksIn,mmc_mk_icon(_threadIdx
),_thread)
;
3389#line 3389 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3390
3391#line 6259 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3392 _checkedTasks = arrayUpdate(_checkedTasksIn, _taskIdx, _task)boxptr_arrayUpdate(threadData,_checkedTasksIn,mmc_mk_icon(_taskIdx
),_task)
;
3393#line 3393 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3394#line 6260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3395 tmpMeta[1] = mmc_mk_box2(0, _threadTasks, _checkedTasks);
3396#line 6260 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3397 tmpMeta[0] = tmpMeta[1];
3398#line 3398 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3399 goto tmp2_done;
3400 }
3401 case 1: {
3402 modelica_integer tmp9;
3403 modelica_integer tmp10;
3404 modelica_boolean tmp11;
3405 modelica_real tmp12;
3406 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(1)))))
;
3407 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(2)))))
;
3408 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(3)))))
;
3409 tmp9 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3410 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(4)))))
;
3411 tmp10 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
3412 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(5)))))
;
3413 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp3_1), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmp3_1) - 3))) +
(6)))))
;
3414 _threadTasksIn = tmpMeta[1];
3415 _checkedTasksIn = tmpMeta[2];
3416 _taskNum = tmp9 /* pattern as ty=Integer */;
3417 _threadIdx = tmp10 /* pattern as ty=Integer */;
3418 _latestTask = tmpMeta[5];
3419 _taskGraphMeta = tmpMeta[6];
3420 /* Pattern matching succeeded */
3421#line 6265 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3422 /* Pattern-matching assignment */
3423#line 6265 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3424 tmp11 = omc_HpcOmScheduler_isEmptyTask(threadData, _latestTask);
3425#line 6265 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3426 if (0 != tmp11) goto goto_1;
3427#line 3427 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3428
3429#line 6266 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3430 _finishingTime = omc_HpcOmScheduler_getTimeFinished(threadData, _latestTask);
3431#line 3431 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3432
3433#line 6267 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3434 _threadIdxLatest = omc_HpcOmScheduler_getThreadId(threadData, _latestTask);
3435#line 3435 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3436
3437#line 6268 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3438 _taskIdxLatest = omc_HpcOmScheduler_getTaskIdx(threadData, _latestTask);
3439#line 3439 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3440
3441#line 6269 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3442 _thread = arrayGet(_threadTasksIn, _threadIdx)nobox_arrayGet(threadData,_threadTasksIn,_threadIdx);
3443#line 3443 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3444
3445#line 6270 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3446 _task = listGet(_thread, _taskNum)boxptr_listGet(threadData,_thread,mmc_mk_icon(_taskNum));
3447#line 3447 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3448
3449#line 6271 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3450 _taskIdx = omc_HpcOmScheduler_getTaskIdx(threadData, _task);
3451#line 3451 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3452
3453#line 6273 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3454 _commCost = omc_HpcOmTaskGraph_getCommCostTimeBetweenNodes(threadData, _taskIdxLatest, _taskIdx, _taskGraphMeta);
3455#line 3455 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3456
3457#line 6274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3458 /* Pattern-matching assignment */
3459#line 6274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3460 tmpMeta[1] = omc_HpcOmTaskGraph_getExeCost(threadData, _taskIdx, _taskGraphMeta);
3461#line 6274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3462 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[1]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[1]) - 3
))) + (2)))))
;
3463#line 6274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3464 tmp12 = mmc_unbox_real(tmpMeta[2])mmc_prim_get_real(tmpMeta[2]);
3465#line 6274 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3466 _exeCost = tmp12 /* pattern as ty=Real */;
3467#line 3467 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3468
3469#line 6275 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3470 _finishingTime = _finishingTime + _exeCost;
3471#line 3471 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3472
3473#line 6276 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3474 _finishingTimeComm = _finishingTime + _commCost;
3475#line 3475 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3476
3477#line 6277 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3478 _finishingTime = ((_threadIdxLatest == _threadIdx)?_finishingTime:_finishingTimeComm);
3479#line 3479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3480
3481#line 6279 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3482 _preTask = omc_HpcOmScheduler_getPredecessorCalcTask(threadData, _thread, _taskNum);
3483#line 3483 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3484
3485#line 6280 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3486 _finishingTime1 = omc_HpcOmScheduler_getTimeFinished(threadData, _preTask);
3487#line 3487 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3488
3489#line 6281 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3490 _finishingTime1 = _finishingTime1 + _exeCost;
3491#line 3491 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3492
3493#line 6282 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3494 _finishingTime = fmax(_finishingTime,_finishingTime1);
3495#line 3495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3496
3497#line 6284 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3498 _task = omc_HpcOmScheduler_updateTimeFinished(threadData, _task, _finishingTime);
3499#line 3499 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3500
3501#line 6285 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3502 _thread = omc_List_replaceAt(threadData, _task, _taskNum, _thread);
3503#line 3503 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3504
3505#line 6286 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3506 _threadTasks = arrayUpdate(_threadTasksIn, _threadIdx, _thread)boxptr_arrayUpdate(threadData,_threadTasksIn,mmc_mk_icon(_threadIdx
),_thread)
;
3507#line 3507 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3508
3509#line 6287 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3510 _checkedTasks = arrayUpdate(_checkedTasksIn, _taskIdx, _task)boxptr_arrayUpdate(threadData,_checkedTasksIn,mmc_mk_icon(_taskIdx
),_task)
;
3511#line 3511 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3512#line 6288 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3513 tmpMeta[1] = mmc_mk_box2(0, _threadTasks, _checkedTasks);
3514#line 6288 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3515 tmpMeta[0] = tmpMeta[1];
3516#line 3516 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3517 goto tmp2_done;
3518 }
3519 }
3520 goto tmp2_end;
3521 tmp2_end: ;
3522 }
3523 goto goto_1;
3524 tmp2_done:
3525 (void)tmp3;
3526 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
3527 goto tmp2_done2;
3528 goto_1:;
3529 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
3530 if (++tmp3 < 2) {
3531 goto tmp2_top;
3532 }
3533 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3534 tmp2_done2:;
3535 }
3536 }
3537 _tplOut = tmpMeta[0];
3538 _return: OMC_LABEL_UNUSED__attribute__((unused))
3539 return _tplOut;
3540}
3541
3542PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateFinishingTime1(threadData_t *threadData, modelica_integer _parentIdx, modelica_metatype _checkedTaskIn, modelica_metatype _tplIn)
3543{
3544 modelica_metatype _tplOut = NULL((void*)0);
3545 modelica_boolean _isCalc;
3546 modelica_real _finishingTime;
3547 modelica_real _finishingTime1;
3548 modelica_real _finishingTimeIn;
3549 modelica_metatype _parentLst = NULL((void*)0);
3550 modelica_metatype _parentLstIn = NULL((void*)0);
3551 modelica_metatype _task = NULL((void*)0);
3552 modelica_metatype _taskIn = NULL((void*)0);
3553 modelica_boolean tmp1;
3554 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3555 MMC_SO()mmc_check_stackoverflow(threadData);
3556 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3557 // _tplOut has no default value.
3558 // _isCalc has no default value.
3559 // _finishingTime has no default value.
3560 // _finishingTime1 has no default value.
3561 // _finishingTimeIn has no default value.
3562 // _parentLst has no default value.
3563 // _parentLstIn has no default value.
3564 // _task has no default value.
3565 // _taskIn has no default value.
3566#line 6218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3567 /* Pattern-matching assignment */
3568#line 6218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3569 tmpMeta[0] = _tplIn;
3570#line 6218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3571 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
3572#line 6218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3573 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
3574#line 6218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3575 _parentLstIn = tmpMeta[1];
3576#line 6218 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3577 _taskIn = tmpMeta[2];
3578#line 3578 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3579
3580#line 6219 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3581 _finishingTimeIn = omc_HpcOmScheduler_getTimeFinished(threadData, _taskIn);
3582#line 3582 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3583
3584#line 6220 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3585 _task = arrayGet(_checkedTaskIn, _parentIdx)nobox_arrayGet(threadData,_checkedTaskIn,_parentIdx);
3586#line 3586 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3587
3588#line 6221 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3589 _isCalc = omc_HpcOmScheduler_isCalcTask(threadData, _task);
3590#line 3590 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3591
3592#line 6222 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3593 _finishingTime = (_isCalc?omc_HpcOmScheduler_getTimeFinished(threadData, _task):-1.0);
3594#line 3594 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3595
3596#line 6223 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3597 _task = ((_finishingTime > _finishingTimeIn)?_task:_taskIn);
3598#line 3598 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3599
3600#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3601 tmp1 = (modelica_boolean)_isCalc;
3602#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3603 if(tmp1)
3604#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3605 {
3606#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3607 tmpMeta[1] = _parentLstIn;
3608#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3609 }
3610#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3611 else
3612#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3613 {
3614#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3615 tmpMeta[0] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_parentIdx), _parentLstIn);
3616#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3617 tmpMeta[1] = tmpMeta[0];
3618#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3619 }
3620#line 6224 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3621 _parentLst = tmpMeta[1];
3622#line 3622 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3623
3624#line 6225 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3625 tmpMeta[0] = mmc_mk_box2(0, _parentLst, _task);
3626#line 6225 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3627 _tplOut = tmpMeta[0];
3628#line 3628 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3629 _return: OMC_LABEL_UNUSED__attribute__((unused))
3630 return _tplOut;
3631}
3632PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_updateFinishingTime1(threadData_t *threadData, modelica_metatype _parentIdx, modelica_metatype _checkedTaskIn, modelica_metatype _tplIn)
3633{
3634 modelica_integer tmp1;
3635 modelica_metatype _tplOut = NULL((void*)0);
3636 tmp1 = mmc_unbox_integer(_parentIdx)(((mmc_sint_t) (_parentIdx)) >> 1);
3637 _tplOut = omc_HpcOmScheduler_updateFinishingTime1(threadData, tmp1, _checkedTaskIn, _tplIn);
3638 /* skip box _tplOut; tuple<list<#Integer>, HpcOmSimCode.Task> */
3639 return _tplOut;
3640}
3641
3642PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_updateFinishingTime(threadData_t *threadData, modelica_metatype _taskIn, modelica_integer _taskIdxIn, modelica_integer _threadIdxIn, modelica_metatype _threadTasksIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_checkedTasksOut, modelica_integer *out_taskIdxOut)
3643{
3644 modelica_metatype _threadTasksOut = NULL((void*)0);
3645 modelica_metatype _checkedTasksOut = NULL((void*)0);
3646 modelica_integer _taskIdxOut;
3647 modelica_integer tmp1_c2 __attribute__((unused)) = 0;
3648 modelica_metatype tmpMeta[9] __attribute__((unused)) = {0};
3649 MMC_SO()mmc_check_stackoverflow(threadData);
3650 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3651 // _threadTasksOut has no default value.
3652 // _checkedTasksOut has no default value.
3653 // _taskIdxOut has no default value.
3654#line 6177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3655
3656#line 6177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3657
3658#line 6177 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3659
3660#line 3660 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3661 { /* match expression */
3662 modelica_metatype tmp4_1;
3663 tmp4_1 = _taskIn;
3664 {
3665 modelica_boolean _isComputable;
3666 modelica_integer _taskID;
3667 modelica_integer _taskIdxNew;
3668 modelica_metatype _parentLst = NULL((void*)0);
3669 modelica_metatype _latestTask = NULL((void*)0);
3670 modelica_metatype _checkedTasks = NULL((void*)0);
3671 modelica_metatype _threadTasks = NULL((void*)0);
3672 volatile mmc_switch_type tmp4;
3673 int tmp5;
3674 // _isComputable has no default value.
3675 // _taskID has no default value.
3676 // _taskIdxNew has no default value.
3677 // _parentLst has no default value.
3678 // _latestTask has no default value.
3679 // _checkedTasks has no default value.
3680 // _threadTasks has no default value.
3681 tmp4 = 0;
3682 for (; tmp4 < 2; tmp4++) {
3683 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3684 case 0: {
3685 modelica_integer tmp6;
3686 modelica_boolean tmp7;
3687 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,6)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((6 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
3688 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
3689 tmp6 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
3690
3691 _taskID = tmp6 /* pattern as ty=Integer */;
3692 /* Pattern matching succeeded */
3693#line 6188 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3694 _parentLst = arrayGet(_taskGraphTIn, _taskID)nobox_arrayGet(threadData,_taskGraphTIn,_taskID);
3695#line 3695 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3696
3697#line 6190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3698 /* Pattern-matching assignment */
3699#line 6190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3700 tmpMeta[3] = omc_List_fold1(threadData, _parentLst, boxvar_HpcOmScheduler_updateFinishingTime1((void*)((char*)(&(boxvar_lit_HpcOmScheduler_updateFinishingTime1
).header) + 3))
, _checkedTasksIn, _OMC_LIT19((void*)((char*)(&(_OMC_LIT_STRUCT19).header) + 3)));
3701#line 6190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3702 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (1)))))
;
3703#line 6190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3704 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[3]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[3]) - 3
))) + (2)))))
;
3705#line 6190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3706 _parentLst = tmpMeta[4];
3707#line 6190 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3708 _latestTask = tmpMeta[5];
3709#line 3709 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3710
3711#line 6191 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3712 _isComputable = listEmpty(_parentLst)((*(mmc_uint_t*)((void*)((char*)(_parentLst) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
;
3713#line 3713 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3714
3715#line 6192 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3716 _taskIdxNew = (_isComputable?((modelica_integer) 1) + _taskIdxIn:_taskIdxIn);
3717#line 3717 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3718
3719#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3720 /* Pattern-matching assignment */
3721#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3722 tmp7 = (modelica_boolean)_isComputable;
3723#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3724 if(tmp7)
3725#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3726 {
3727#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3728 tmpMeta[3] = mmc_mk_box6(0, _threadTasksIn, _checkedTasksIn, mmc_mk_integermmc_mk_icon(_taskIdxIn), mmc_mk_integermmc_mk_icon(_threadIdxIn), _latestTask, _taskGraphMetaIn);
3729#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3730 tmpMeta[5] = omc_HpcOmScheduler_computeFinishingTimeForOneTask(threadData, tmpMeta[3]);
3731#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3732 }
3733#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3734 else
3735#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3736 {
3737#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3738 tmpMeta[4] = mmc_mk_box2(0, _threadTasksIn, _checkedTasksIn);
3739#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3740 tmpMeta[5] = tmpMeta[4];
3741#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3742 }
3743#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3744 tmpMeta[6] = tmpMeta[5];
3745#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3746 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (1)))))
;
3747#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3748 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[6]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[6]) - 3
))) + (2)))))
;
3749#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3750 _threadTasks = tmpMeta[7];
3751#line 6194 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3752 _checkedTasks = tmpMeta[8];
3753#line 3753 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3754#line 6195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3755 tmpMeta[0+0] = _threadTasks;
3756#line 6195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3757 tmpMeta[0+1] = _checkedTasks;
3758#line 6195 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3759 tmp1_c2 = _taskIdxNew;
3760#line 3760 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3761 goto tmp3_done;
3762 }
3763 case 1: {
3764 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,5)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((5 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
3765
3766 /* Pattern matching succeeded */
3767#line 6200 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3768 _taskIdxNew = ((modelica_integer) 1) + _taskIdxIn;
3769#line 3769 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3770#line 6201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3771 tmpMeta[0+0] = _threadTasksIn;
3772#line 6201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3773 tmpMeta[0+1] = _checkedTasksIn;
3774#line 6201 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3775 tmp1_c2 = _taskIdxNew;
3776#line 3776 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3777 goto tmp3_done;
3778 }
3779 }
3780 goto tmp3_end;
3781 tmp3_end: ;
3782 }
3783 goto goto_2;
3784 goto_2:;
3785 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
3786 goto tmp3_done;
3787 tmp3_done:;
3788 }
3789 }
3790 _threadTasksOut = tmpMeta[0+0];
3791 _checkedTasksOut = tmpMeta[0+1];
3792 _taskIdxOut = tmp1_c2;
3793 _return: OMC_LABEL_UNUSED__attribute__((unused))
3794 if (out_checkedTasksOut) { *out_checkedTasksOut = _checkedTasksOut; }
3795 if (out_taskIdxOut) { *out_taskIdxOut = _taskIdxOut; }
3796 return _threadTasksOut;
3797}
3798PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_updateFinishingTime(threadData_t *threadData, modelica_metatype _taskIn, modelica_metatype _taskIdxIn, modelica_metatype _threadIdxIn, modelica_metatype _threadTasksIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_checkedTasksOut, modelica_metatype *out_taskIdxOut)
3799{
3800 modelica_integer tmp1;
3801 modelica_integer tmp2;
3802 modelica_integer _taskIdxOut;
3803 modelica_metatype _threadTasksOut = NULL((void*)0);
3804 tmp1 = mmc_unbox_integer(_taskIdxIn)(((mmc_sint_t) (_taskIdxIn)) >> 1);
3805 tmp2 = mmc_unbox_integer(_threadIdxIn)(((mmc_sint_t) (_threadIdxIn)) >> 1);
3806 _threadTasksOut = omc_HpcOmScheduler_updateFinishingTime(threadData, _taskIn, tmp1, tmp2, _threadTasksIn, _checkedTasksIn, _taskGraphTIn, _taskGraphMetaIn, out_checkedTasksOut, &_taskIdxOut);
3807 /* skip box _threadTasksOut; array<list<HpcOmSimCode.Task>> */
3808 /* skip box _checkedTasksOut; array<HpcOmSimCode.Task> */
3809 if (out_taskIdxOut) { *out_taskIdxOut = mmc_mk_icon(_taskIdxOut); }
3810 return _threadTasksOut;
3811}
3812
3813PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_getNextThreadIdx(threadData_t *threadData, modelica_integer _threadId, modelica_metatype _closedThreads, modelica_integer _numThreads)
3814{
3815 modelica_integer _nextThreadOut;
3816 modelica_boolean _isLastThread;
3817 modelica_boolean _isClosed;
3818 modelica_integer _nextThread;
3819 modelica_boolean tmp1;
3820 modelica_integer tmp2;
3821 MMC_SO()mmc_check_stackoverflow(threadData);
3822 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3823 // _nextThreadOut has no default value.
3824 // _isLastThread has no default value.
3825 // _isClosed has no default value.
3826 // _nextThread has no default value.
3827#line 6158 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3828 _isLastThread = (_threadId == _numThreads);
3829#line 3829 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3830
3831#line 6159 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3832 _nextThread = (_isLastThread?((modelica_integer) 1):((modelica_integer) 1) + _threadId);
3833#line 3833 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3834
3835#line 6160 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3836 _isClosed = omc_List_isMemberOnTrue(threadData, mmc_mk_integermmc_mk_icon(_nextThread), _closedThreads, boxvar_intEq((void*)((char*)(&(boxvar_lit_intEq).header) + 3)));
3837#line 3837 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3838
3839#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3840 tmp1 = (modelica_boolean)_isClosed;
3841#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3842 if(tmp1)
3843#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3844 {
3845#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3846 /* Tail recursive call */
3847#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3848 _threadId = _nextThread;
3849#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3850 goto _tailrecursive;
3851#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3852 /* TODO: Make sure any eventual dead code below is never generated */
3853#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3854 }
3855#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3856 else
3857#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3858 {
3859#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3860 tmp2 = _nextThread;
3861#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3862 }
3863#line 6161 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3864 _nextThreadOut = tmp2;
3865#line 3865 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3866 _return: OMC_LABEL_UNUSED__attribute__((unused))
3867 return _nextThreadOut;
3868}
3869PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getNextThreadIdx(threadData_t *threadData, modelica_metatype _threadId, modelica_metatype _closedThreads, modelica_metatype _numThreads)
3870{
3871 modelica_integer tmp1;
3872 modelica_integer tmp2;
3873 modelica_integer _nextThreadOut;
3874 modelica_metatype out_nextThreadOut;
3875 tmp1 = mmc_unbox_integer(_threadId)(((mmc_sint_t) (_threadId)) >> 1);
3876 tmp2 = mmc_unbox_integer(_numThreads)(((mmc_sint_t) (_numThreads)) >> 1);
3877 _nextThreadOut = omc_HpcOmScheduler_getNextThreadIdx(threadData, tmp1, _closedThreads, tmp2);
3878 out_nextThreadOut = mmc_mk_icon(_nextThreadOut);
3879 return out_nextThreadOut;
3880}
3881
3882PROTECTED_FUNCTION_STATIC modelica_integer omc_HpcOmScheduler_computeTimeFinished1(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_integer _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_integer _numProc, modelica_metatype _closedThreadsIn, modelica_metatype *out_closedThreadsOut)
3883{
3884 modelica_integer _threadIdxOut;
3885 modelica_metatype _closedThreadsOut = NULL((void*)0);
3886 modelica_integer tmp1_c0 __attribute__((unused)) = 0;
3887 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
3888 MMC_SO()mmc_check_stackoverflow(threadData);
3889 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
3890 // _threadIdxOut has no default value.
3891 // _closedThreadsOut has no default value.
3892#line 6093 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3893
3894#line 6093 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3895
3896#line 3896 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3897 { /* matchcontinue expression */
3898 {
3899 modelica_integer _taskIdx;
3900 modelica_integer _nextThreadIdx;
3901 modelica_integer _nextTaskIdx;
3902 modelica_metatype _closedThreads1 = NULL((void*)0);
3903 modelica_metatype _task = NULL((void*)0);
3904 modelica_metatype _thread = NULL((void*)0);
3905 volatile mmc_switch_type tmp4;
3906 int tmp5;
3907 // _taskIdx has no default value.
3908 // _nextThreadIdx has no default value.
3909 // _nextTaskIdx has no default value.
3910 // _closedThreads1 has no default value.
3911 // _task has no default value.
3912 // _thread has no default value.
3913 tmp4 = 0;
3914 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
3915 tmp3_top:
3916 threadData->mmc_jumper = &new_mmc_jumper;
3917 for (; tmp4 < 4; tmp4++) {
3918 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
3919 case 0: {
3920 modelica_boolean tmp6;
3921 modelica_boolean tmp7;
3922 /* Pattern matching succeeded */
3923#line 6106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3924 /* Pattern-matching assignment */
3925#line 6106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3926 tmp6 = (_threadIdxIn <= arrayLength(_taskIdcsIn));
3927#line 6106 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3928 if (1 != tmp6) goto goto_2;
3929#line 3929 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3930
3931#line 6107 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3932 _taskIdx = mmc_unbox_integer(arrayGet(_taskIdcsIn, _threadIdxIn))(((mmc_sint_t) (nobox_arrayGet(threadData,_taskIdcsIn,_threadIdxIn
))) >> 1)
;
3933#line 3933 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3934
3935#line 6108 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3936 _thread = arrayGet(_threadTasksIn, _threadIdxIn)nobox_arrayGet(threadData,_threadTasksIn,_threadIdxIn);
3937#line 3937 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3938
3939#line 6109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3940 /* Pattern-matching assignment */
3941#line 6109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3942 tmp7 = (_taskIdx <= listLength(_thread));
3943#line 6109 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3944 if (1 != tmp7) goto goto_2;
3945#line 3945 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3946
3947#line 6110 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3948 _task = listGet(_thread, _taskIdx)boxptr_listGet(threadData,_thread,mmc_mk_icon(_taskIdx));
3949#line 3949 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3950
3951#line 6112 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3952 omc_HpcOmScheduler_updateFinishingTime(threadData, _task, _taskIdx, _threadIdxIn, _threadTasksIn, _checkedTasksIn, _taskGraphTIn, _taskGraphMetaIn ,NULL((void*)0) ,&_nextTaskIdx);
3953#line 3953 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3954
3955#line 6113 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3956 arrayUpdate(_taskIdcsIn, _threadIdxIn, mmc_mk_integer(_nextTaskIdx))boxptr_arrayUpdate(threadData,_taskIdcsIn,mmc_mk_icon(_threadIdxIn
),mmc_mk_icon(_nextTaskIdx))
;
3957#line 3957 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3958
3959#line 6114 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3960 _nextThreadIdx = omc_HpcOmScheduler_getNextThreadIdx(threadData, _threadIdxIn, _closedThreadsIn, _numProc);
3961#line 3961 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3962#line 6116 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3963 tmp1_c0 = _nextThreadIdx;
3964#line 6116 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3965 tmpMeta[0+1] = _closedThreadsIn;
3966#line 3966 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3967 goto tmp3_done;
3968 }
3969 case 1: {
3970 modelica_boolean tmp8;
3971 /* Pattern matching succeeded */
3972#line 6121 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3973 /* Pattern-matching assignment */
3974#line 6121 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3975 tmp8 = (_threadIdxIn > arrayLength(_taskIdcsIn));
3976#line 6121 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3977 if (1 != tmp8) goto goto_2;
3978#line 3978 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3979
3980#line 6122 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3981 _nextThreadIdx = ((_threadIdxIn >= _numProc)?((modelica_integer) 1):((modelica_integer) 1) + _threadIdxIn);
3982#line 3982 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3983#line 6124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3984 tmp1_c0 = _nextThreadIdx;
3985#line 6124 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3986 tmpMeta[0+1] = _closedThreadsIn;
3987#line 3987 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
3988 goto tmp3_done;
3989 }
3990 case 2: {
3991 modelica_boolean tmp9;
3992 modelica_boolean tmp10;
3993 /* Pattern matching succeeded */
3994#line 6129 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3995 /* Pattern-matching assignment */
3996#line 6129 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3997 tmp9 = (_threadIdxIn <= arrayLength(_taskIdcsIn));
3998#line 6129 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
3999 if (1 != tmp9) goto goto_2;
4000#line 4000 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4001
4002#line 6130 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4003 _taskIdx = mmc_unbox_integer(arrayGet(_taskIdcsIn, _threadIdxIn))(((mmc_sint_t) (nobox_arrayGet(threadData,_taskIdcsIn,_threadIdxIn
))) >> 1)
;
4004#line 4004 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4005
4006#line 6131 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4007 _thread = arrayGet(_threadTasksIn, _threadIdxIn)nobox_arrayGet(threadData,_threadTasksIn,_threadIdxIn);
4008#line 4008 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4009
4010#line 6132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4011 /* Pattern-matching assignment */
4012#line 6132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4013 tmp10 = (_taskIdx > listLength(_thread));
4014#line 6132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4015 if (1 != tmp10) goto goto_2;
4016#line 4016 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4017
4018#line 6133 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4019 _nextThreadIdx = ((_threadIdxIn >= _numProc)?((modelica_integer) 1):((modelica_integer) 1) + _threadIdxIn);
4020#line 4020 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4021
4022#line 6134 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4023 tmpMeta[2] = mmc_mk_cons(mmc_mk_integermmc_mk_icon(_threadIdxIn), _closedThreadsIn);
4024#line 6134 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4025 _closedThreads1 = tmpMeta[2];
4026#line 4026 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4027
4028#line 6135 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4029 _closedThreads1 = omc_List_unique(threadData, _closedThreads1);
4030#line 4030 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4031#line 6137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4032 tmp1_c0 = _nextThreadIdx;
4033#line 6137 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4034 tmpMeta[0+1] = _closedThreads1;
4035#line 4035 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4036 goto tmp3_done;
4037 }
4038 case 3: {
4039 /* Pattern matching succeeded */
4040#line 6141 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4041 fputs(MMC_STRINGDATA(_OMC_LIT20)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT20).header) + 3))) - 3)))->data)
,stdoutstdout);
4042#line 4042 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4043#line 6142 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4044 goto goto_2;
4045#line 4045 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4046 goto tmp3_done;
4047 }
4048 }
4049 goto tmp3_end;
4050 tmp3_end: ;
4051 }
4052 goto goto_2;
4053 tmp3_done:
4054 (void)tmp4;
4055 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4056 goto tmp3_done2;
4057 goto_2:;
4058 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4059 if (++tmp4 < 4) {
4060 goto tmp3_top;
4061 }
4062 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4063 tmp3_done2:;
4064 }
4065 }
4066 _threadIdxOut = tmp1_c0;
4067 _closedThreadsOut = tmpMeta[0+1];
4068 _return: OMC_LABEL_UNUSED__attribute__((unused))
4069 if (out_closedThreadsOut) { *out_closedThreadsOut = _closedThreadsOut; }
4070 return _threadIdxOut;
4071}
4072PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_computeTimeFinished1(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_metatype _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype _numProc, modelica_metatype _closedThreadsIn, modelica_metatype *out_closedThreadsOut)
4073{
4074 modelica_integer tmp1;
4075 modelica_integer tmp2;
4076 modelica_integer _threadIdxOut;
4077 modelica_metatype out_threadIdxOut;
4078 tmp1 = mmc_unbox_integer(_threadIdxIn)(((mmc_sint_t) (_threadIdxIn)) >> 1);
4079 tmp2 = mmc_unbox_integer(_numProc)(((mmc_sint_t) (_numProc)) >> 1);
4080 _threadIdxOut = omc_HpcOmScheduler_computeTimeFinished1(threadData, _threadTasksIn, _taskIdcsIn, tmp1, _checkedTasksIn, _taskGraphIn, _taskGraphTIn, _taskGraphMetaIn, tmp2, _closedThreadsIn, out_closedThreadsOut);
4081 out_threadIdxOut = mmc_mk_icon(_threadIdxOut);
4082 /* skip box _closedThreadsOut; list<#Integer> */
4083 return out_threadIdxOut;
4084}
4085
4086PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_computeTimeFinished(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_integer _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_integer _numProc, modelica_metatype _closedThreadsIn)
4087{
4088 modelica_boolean _isCalc;
4089 modelica_boolean _isComputable;
4090 modelica_integer _taskIdx;
4091 modelica_integer _nextTaskIdx;
4092 modelica_integer _threadIdx;
4093 modelica_metatype _taskIdcs = NULL((void*)0);
4094 modelica_metatype _closedThreads = NULL((void*)0);
4095 modelica_metatype _task = NULL((void*)0);
4096 modelica_metatype _threadTasks = NULL((void*)0);
4097 modelica_metatype _checkedTasks = NULL((void*)0);
4098 modelica_metatype _thread = NULL((void*)0);
4099 MMC_SO()mmc_check_stackoverflow(threadData);
4100 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4101 // _isCalc has no default value.
4102 // _isComputable has no default value.
4103 // _taskIdx has no default value.
4104 // _nextTaskIdx has no default value.
4105 _threadIdx = _threadIdxIn;
4106 // _taskIdcs has no default value.
4107 _closedThreads = _closedThreadsIn;
4108 // _task has no default value.
4109 _threadTasks = _threadTasksIn;
4110 // _checkedTasks has no default value.
4111 // _thread has no default value.
4112#line 6074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4113 while(1)
4114#line 6074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4115 {
4116#line 6074 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4117 if(!(!(listLength(_closedThreads) == _numProc))) break;
4118#line 6075 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4119 _threadIdx = omc_HpcOmScheduler_computeTimeFinished1(threadData, _threadTasks, _taskIdcsIn, _threadIdx, _checkedTasksIn, _taskGraphIn, _taskGraphTIn, _taskGraphMetaIn, _numProc, _closedThreads ,&_closedThreads);
4120#line 4120 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4121 }
4122 _return: OMC_LABEL_UNUSED__attribute__((unused))
4123 return;
4124}
4125PROTECTED_FUNCTION_STATIC void boxptr_HpcOmScheduler_computeTimeFinished(threadData_t *threadData, modelica_metatype _threadTasksIn, modelica_metatype _taskIdcsIn, modelica_metatype _threadIdxIn, modelica_metatype _checkedTasksIn, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphTIn, modelica_metatype _taskGraphMetaIn, modelica_metatype _numProc, modelica_metatype _closedThreadsIn)
4126{
4127 modelica_integer tmp1;
4128 modelica_integer tmp2;
4129 tmp1 = mmc_unbox_integer(_threadIdxIn)(((mmc_sint_t) (_threadIdxIn)) >> 1);
4130 tmp2 = mmc_unbox_integer(_numProc)(((mmc_sint_t) (_numProc)) >> 1);
4131 omc_HpcOmScheduler_computeTimeFinished(threadData, _threadTasksIn, _taskIdcsIn, tmp1, _checkedTasksIn, _taskGraphIn, _taskGraphTIn, _taskGraphMetaIn, tmp2, _closedThreadsIn);
4132 return;
4133}
4134
4135PROTECTED_FUNCTION_STATIC modelica_real omc_HpcOmScheduler_getTimeFinishedOfLastTask(threadData_t *threadData, modelica_metatype _threadTasksIn)
4136{
4137 modelica_real _finTimeOut;
4138 modelica_real tmp1 = 0;
4139 MMC_SO()mmc_check_stackoverflow(threadData);
4140 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4141 // _finTimeOut has no default value.
4142#line 4142 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4143 { /* matchcontinue expression */
4144 volatile modelica_metatype tmp4_1;
4145 tmp4_1 = _threadTasksIn;
4146 {
4147 modelica_metatype _lastTask = NULL((void*)0);
4148 volatile mmc_switch_type tmp4;
4149 int tmp5;
4150 // _lastTask has no default value.
4151 tmp4 = 0;
4152 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
4153 tmp3_top:
4154 threadData->mmc_jumper = &new_mmc_jumper;
4155 for (; tmp4 < 2; tmp4++) {
4156 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4157 case 0: {
4158
4159 /* Pattern matching succeeded */
4160#line 6041 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4161 _lastTask = omc_List_last(threadData, _threadTasksIn);
4162#line 4162 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4163#line 6042 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4164 tmp1 = omc_HpcOmScheduler_getTimeFinished(threadData, _lastTask);
4165#line 4165 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4166 goto tmp3_done;
4167 }
4168 case 1: {
4169 if (!listEmpty(tmp4_1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3))) == (((0) <<
10) + (((0) & 255) << 2)))
) goto tmp3_end;
4170 /* Pattern matching succeeded */
4171#line 6047 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4172 tmp1 = -1.0;
4173#line 4173 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4174 goto tmp3_done;
4175 }
4176 }
4177 goto tmp3_end;
4178 tmp3_end: ;
4179 }
4180 goto goto_2;
4181 tmp3_done:
4182 (void)tmp4;
4183 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4184 goto tmp3_done2;
4185 goto_2:;
4186 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4187 if (++tmp4 < 2) {
4188 goto tmp3_top;
4189 }
4190 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4191 tmp3_done2:;
4192 }
4193 }
4194 _finTimeOut = tmp1;
4195 _return: OMC_LABEL_UNUSED__attribute__((unused))
4196 return _finTimeOut;
4197}
4198PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getTimeFinishedOfLastTask(threadData_t *threadData, modelica_metatype _threadTasksIn)
4199{
4200 modelica_real _finTimeOut;
4201 modelica_metatype out_finTimeOut;
4202 _finTimeOut = omc_HpcOmScheduler_getTimeFinishedOfLastTask(threadData, _threadTasksIn);
4203 out_finTimeOut = mmc_mk_rcon(_finTimeOut);
4204 return out_finTimeOut;
4205}
4206
4207PROTECTED_FUNCTION_STATIC modelica_metatype omc_HpcOmScheduler_getFinishingTimesForSchedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_integer _numProc, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_real *out_finishingTime)
4208{
4209 modelica_metatype _scheduleOut = NULL((void*)0);
4210 modelica_real _finishingTime;
4211 modelica_real tmp1_c1 __attribute__((unused)) = 0;
4212 modelica_metatype tmpMeta[5] __attribute__((unused)) = {0};
4213 MMC_SO()mmc_check_stackoverflow(threadData);
4214 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4215 // _scheduleOut has no default value.
4216 // _finishingTime has no default value.
4217#line 5987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4218
4219#line 5987 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4220
4221#line 4221 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4222 { /* matchcontinue expression */
4223 volatile modelica_metatype tmp4_1;
4224 tmp4_1 = _scheduleIn;
4225 {
4226 modelica_real _finTime;
4227 modelica_metatype _taskIdcs = NULL((void*)0);
4228 modelica_metatype _finTimes = NULL((void*)0);
4229 modelica_metatype _taskGraphT = NULL((void*)0);
4230 modelica_metatype _checkedTasks = NULL((void*)0);
4231 modelica_metatype _threadTasks = NULL((void*)0);
4232 modelica_metatype _outgoingDepTasks = NULL((void*)0);
4233 modelica_metatype _schedule = NULL((void*)0);
4234 modelica_metatype _allCalcTasks = NULL((void*)0);
4235 volatile mmc_switch_type tmp4;
4236 int tmp5;
4237 // _finTime has no default value.
4238 // _taskIdcs has no default value.
4239 // _finTimes has no default value.
4240 // _taskGraphT has no default value.
4241 // _checkedTasks has no default value.
4242 // _threadTasks has no default value.
4243 // _outgoingDepTasks has no default value.
4244 // _schedule has no default value.
4245 // _allCalcTasks has no default value.
4246 tmp4 = 0;
4247 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
4248 tmp3_top:
4249 threadData->mmc_jumper = &new_mmc_jumper;
4250 for (; tmp4 < 4; tmp4++) {
4251 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
4252 case 0: {
4253 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,1,4)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((4 +1) <<
10) + (((1 +3) & 255) << 2)))
== 0) goto tmp3_end;
4254 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(2)))))
;
4255 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(3)))))
;
4256 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmp4_1), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmp4_1) - 3))) +
(5)))))
;
4257 _threadTasks = tmpMeta[2];
4258 _outgoingDepTasks = tmpMeta[3];
4259 _allCalcTasks = tmpMeta[4];
4260 tmp4 += 2; /* Pattern matching succeeded; we may skip some cases if we fail */
4261#line 6002 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4262 _taskIdcs = arrayCreate(arrayLength(_threadTasks), mmc_mk_integermmc_mk_icon(((modelica_integer) 1)));
4263#line 4263 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4264
4265#line 6003 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4266 _taskGraphT = omc_AdjacencyMatrix_transposeAdjacencyMatrix(threadData, _taskGraphIn, arrayLength(_taskGraphIn));
4267#line 4267 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4268
4269#line 6004 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4270 _checkedTasks = arrayCreate(arrayLength(_taskGraphIn), _OMC_LIT18((void*)((char*)(&(_OMC_LIT_STRUCT18).header) + 3)));
4271#line 4271 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4272
4273#line 6005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4274 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4275#line 6005 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4276 omc_HpcOmScheduler_computeTimeFinished(threadData, _threadTasks, _taskIdcs, ((modelica_integer) 1), _checkedTasks, _taskGraphIn, _taskGraphT, _taskGraphMetaIn, _numProc, tmpMeta[2]);
4277#line 4277 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4278
4279#line 6006 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4280 _finTimes = omc_Array_map(threadData, _threadTasks, boxvar_HpcOmScheduler_getTimeFinishedOfLastTask((void*)((char*)(&(boxvar_lit_HpcOmScheduler_getTimeFinishedOfLastTask
).header) + 3))
);
4281#line 4281 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4282
4283#line 6007 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4284 _finTime = mmc_unbox_real(omc_Array_fold(threadData, _finTimes, boxvar_realMax, _OMC_LIT21))mmc_prim_get_real(omc_Array_fold(threadData, _finTimes, ((void
*)((char*)(&(boxvar_lit_realMax).header) + 3)), ((void*)(
(char*)(&(_OMC_LIT_STRUCT21).header) + 3))))
;
4285#line 4285 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4286
4287#line 6008 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4288 tmpMeta[2] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4289#line 6008 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4290 tmpMeta[3] = mmc_mk_box5(4, &HpcOmSimCode_Schedule_THREADSCHEDULE__desc, _threadTasks, _outgoingDepTasks, tmpMeta[2], _allCalcTasks);
4291#line 6008 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4292 _schedule = tmpMeta[3];
4293#line 4293 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4294#line 6009 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4295 tmpMeta[0+0] = _schedule;
4296#line 6009 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4297 tmp1_c1 = _finTime;
4298#line 4298 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4299 goto tmp3_done;
4300 }
4301 case 1: {
4302 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,0,2)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((2 +1) <<
10) + (((0 +3) & 255) << 2)))
== 0) goto tmp3_end;
4303
4304 tmp4 += 1; /* Pattern matching succeeded; we may skip some cases if we fail */
4305#line 6013 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4306 _schedule = _scheduleIn;
4307#line 4307 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4308
4309#line 6014 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4310 _finTime = 0.0;
4311#line 4311 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4312#line 6015 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4313 tmpMeta[0+0] = _schedule;
4314#line 6015 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4315 tmp1_c1 = _finTime;
4316#line 4316 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4317 goto tmp3_done;
4318 }
4319 case 2: {
4320 if (mmc__uniontype__metarecord__typedef__equal(tmp4_1,3,1)((*(mmc_uint_t*)((void*)((char*)(tmp4_1) - 3)))==(((1 +1) <<
10) + (((3 +3) & 255) << 2)))
== 0) goto tmp3_end;
4321
4322 /* Pattern matching succeeded */
4323#line 6019 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4324 _schedule = _scheduleIn;
4325#line 4325 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4326
4327#line 6020 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4328 _finTime = -1.0;
4329#line 4329 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4330#line 6021 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4331 tmpMeta[0+0] = _schedule;
4332#line 6021 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4333 tmp1_c1 = _finTime;
4334#line 4334 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4335 goto tmp3_done;
4336 }
4337 case 3: {
4338
4339 /* Pattern matching succeeded */
4340#line 6025 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4341 fputs(MMC_STRINGDATA(_OMC_LIT22)(((struct mmc_string*)((void*)((char*)(((void*)((char*)(&
(_OMC_LIT_STRUCT22).header) + 3))) - 3)))->data)
,stdoutstdout);
4342#line 4342 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4343#line 6026 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4344 goto goto_2;
4345#line 4345 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4346 goto tmp3_done;
4347 }
4348 }
4349 goto tmp3_end;
4350 tmp3_end: ;
4351 }
4352 goto goto_2;
4353 tmp3_done:
4354 (void)tmp4;
4355 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4356 goto tmp3_done2;
4357 goto_2:;
4358 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4359 if (++tmp4 < 4) {
4360 goto tmp3_top;
4361 }
4362 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4363 tmp3_done2:;
4364 }
4365 }
4366 _scheduleOut = tmpMeta[0+0];
4367 _finishingTime = tmp1_c1;
4368 _return: OMC_LABEL_UNUSED__attribute__((unused))
4369 if (out_finishingTime) { *out_finishingTime = _finishingTime; }
4370 return _scheduleOut;
4371}
4372PROTECTED_FUNCTION_STATIC modelica_metatype boxptr_HpcOmScheduler_getFinishingTimesForSchedule(threadData_t *threadData, modelica_metatype _scheduleIn, modelica_metatype _numProc, modelica_metatype _taskGraphIn, modelica_metatype _taskGraphMetaIn, modelica_metatype *out_finishingTime)
4373{
4374 modelica_integer tmp1;
4375 modelica_real _finishingTime;
4376 modelica_metatype _scheduleOut = NULL((void*)0);
4377 tmp1 = mmc_unbox_integer(_numProc)(((mmc_sint_t) (_numProc)) >> 1);
4378 _scheduleOut = omc_HpcOmScheduler_getFinishingTimesForSchedule(threadData, _scheduleIn, tmp1, _taskGraphIn, _taskGraphMetaIn, &_finishingTime);
4379 /* skip box _scheduleOut; HpcOmSimCode.Schedule */
4380 if (out_finishingTime) { *out_finishingTime = mmc_mk_rcon(_finishingTime); }
4381 return _scheduleOut;
4382}
4383
4384DLLExport
4385modelica_real omc_HpcOmScheduler_getSerialExecutionTime(threadData_t *threadData, modelica_metatype _taskGraphMetaIn)
4386{
4387 modelica_real _serialTimeOut;
4388 modelica_metatype _odeComps = NULL((void*)0);
4389 modelica_metatype _exeCostsReal = NULL((void*)0);
4390 modelica_metatype _exeCosts1 = NULL((void*)0);
4391 modelica_metatype _inComps = NULL((void*)0);
4392 modelica_metatype _exeCosts = NULL((void*)0);
4393 modelica_metatype tmpMeta[3] __attribute__((unused)) = {0};
4394 MMC_SO()mmc_check_stackoverflow(threadData);
4395 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4396 // _serialTimeOut has no default value.
4397 // _odeComps has no default value.
4398 // _exeCostsReal has no default value.
4399 // _exeCosts1 has no default value.
4400 // _inComps has no default value.
4401 // _exeCosts has no default value.
4402#line 5971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4403 /* Pattern-matching assignment */
4404#line 5971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4405 tmpMeta[0] = _taskGraphMetaIn;
4406#line 5971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4407 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
4408#line 5971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4409 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
4410#line 5971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4411 _inComps = tmpMeta[1];
4412#line 5971 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4413 _exeCosts = tmpMeta[2];
4414#line 4414 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4415
4416#line 5972 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4417 tmpMeta[0] = MMC_REFSTRUCTLIT(mmc_nil)((void*)((char*)(&(mmc_nil).header) + 3));
4418#line 5972 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4419 _odeComps = omc_Array_fold(threadData, _inComps, boxvar_listAppend((void*)((char*)(&(boxvar_lit_listAppend).header) + 3)), tmpMeta[0]);
4420#line 4420 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4421
4422#line 5973 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4423 _exeCosts1 = omc_Array_map(threadData, _exeCosts, boxvar_Util_tuple22((void*)((char*)(&(boxvar_lit_Util_tuple22).header) + 3)));
4424#line 4424 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4425
4426#line 5974 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4427 _exeCostsReal = omc_List_map1(threadData, _odeComps, boxvar_Array_getIndexFirst((void*)((char*)(&(boxvar_lit_Array_getIndexFirst).header
) + 3))
, _exeCosts1);
4428#line 4428 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4429
4430#line 5975 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4431 _serialTimeOut = mmc_unbox_real(omc_List_fold(threadData, _exeCostsReal, boxvar_realAdd, _OMC_LIT21))mmc_prim_get_real(omc_List_fold(threadData, _exeCostsReal, ((
void*)((char*)(&(boxvar_lit_realAdd).header) + 3)), ((void
*)((char*)(&(_OMC_LIT_STRUCT21).header) + 3))))
;
4432#line 4432 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4433 _return: OMC_LABEL_UNUSED__attribute__((unused))
4434 return _serialTimeOut;
4435}
4436modelica_metatype boxptr_HpcOmScheduler_getSerialExecutionTime(threadData_t *threadData, modelica_metatype _taskGraphMetaIn)
4437{
4438 modelica_real _serialTimeOut;
4439 modelica_metatype out_serialTimeOut;
4440 _serialTimeOut = omc_HpcOmScheduler_getSerialExecutionTime(threadData, _taskGraphMetaIn);
4441 out_serialTimeOut = mmc_mk_rcon(_serialTimeOut);
4442 return out_serialTimeOut;
4443}
4444
4445PROTECTED_FUNCTION_STATIC void omc_HpcOmScheduler_printPredictedExeTimeInfo(threadData_t *threadData, modelica_real _serTime, modelica_real _parTime, modelica_real _speedUp, modelica_real _speedUpMax, modelica_integer _numProc)
4446{
4447 modelica_metatype tmpMeta[6] __attribute__((unused)) = {0};
4448 MMC_SO()mmc_check_stackoverflow(threadData);
4449 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
4450#line 4450 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4451 { /* matchcontinue expression */
4452 volatile modelica_real tmp3_1;
4453 tmp3_1 = _speedUpMax;
4454 {
4455 volatile mmc_switch_type tmp3;
4456 int tmp4;
4457 tmp3 = 0;
4458 MMC_TRY_INTERNAL(mmc_jumper){ jmp_buf new_mmc_jumper, *old_jumper __attribute__((unused))
= threadData->mmc_jumper; threadData->mmc_jumper = &
new_mmc_jumper; if (_setjmp (new_mmc_jumper) == 0) {
4459 tmp2_top:
4460 threadData->mmc_jumper = &new_mmc_jumper;
4461 for (; tmp3 < 3; tmp3++) {
4462 switch (MMC_SWITCH_CAST(tmp3)(tmp3)) {
4463 case 0: {
4464 if (0.0 != tmp3_1) goto tmp2_end;
4465 /* Pattern matching succeeded */
4466#line 4466 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4467 goto tmp2_done;
4468 }
4469 case 1: {
4470 modelica_boolean tmp5;
4471
4472 /* Pattern matching succeeded */
4473#line 5940 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4474 /* Pattern-matching assignment */
4475#line 5940 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4476 tmp5 = (_speedUpMax == -1.0);
4477#line 5940 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4478 if (1 != tmp5) goto goto_1;
4479#line 4479 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4480
4481#line 5941 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4482 if(omc_Flags_isSet(threadData, _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))))
4483#line 5941 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4484 {
4485#line 5942 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4486 tmpMeta[0] = stringAppend(_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)),intString(_numProc));
4487#line 5942 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4488 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT24((void*)((char*)(&(_OMC_LIT_STRUCT24).header) + 3)));
4489#line 5942 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4490 tmpMeta[2] = stringAppend(tmpMeta[1],omc_System_snprintff(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), ((modelica_integer) 25), _speedUp));
4491#line 5942 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4492 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT26((void*)((char*)(&(_OMC_LIT_STRUCT26).header) + 3)));
4493#line 5942 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4494 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
4495#line 4495 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4496 }
4497#line 4497 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4498 goto tmp2_done;
4499 }
4500 case 2: {
4501
4502 /* Pattern matching succeeded */
4503#line 5948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4504 if(omc_Flags_isSet(threadData, _OMC_LIT30((void*)((char*)(&(_OMC_LIT_STRUCT30).header) + 3))))
4505#line 5948 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4506 {
4507#line 5949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4508 if((_speedUp > _speedUpMax))
4509#line 5949 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4510 {
4511#line 5950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4512 tmpMeta[0] = stringAppend(_OMC_LIT33((void*)((char*)(&(_OMC_LIT_STRUCT33).header) + 3)),omc_System_snprintff(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), ((modelica_integer) 25), _speedUp));
4513#line 5950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4514 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT34((void*)((char*)(&(_OMC_LIT_STRUCT34).header) + 3)));
4515#line 5950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4516 tmpMeta[2] = stringAppend(tmpMeta[1],omc_System_snprintff(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), ((modelica_integer) 25), _speedUpMax));
4517#line 5950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4518 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
4519#line 5950 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4520 fputs(MMC_STRINGDATA(tmpMeta[3])(((struct mmc_string*)((void*)((char*)(tmpMeta[3]) - 3)))->
data)
,stdoutstdout);
4521#line 4521 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4522 }
4523 else
4524 {
4525 if((_speedUp <= _speedUpMax))
4526 {
4527#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4528 tmpMeta[0] = stringAppend(_OMC_LIT23((void*)((char*)(&(_OMC_LIT_STRUCT23).header) + 3)),intString(_numProc));
4529#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4530 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT31((void*)((char*)(&(_OMC_LIT_STRUCT31).header) + 3)));
4531#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4532 tmpMeta[2] = stringAppend(tmpMeta[1],omc_System_snprintff(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), ((modelica_integer) 25), _speedUp));
4533#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4534 tmpMeta[3] = stringAppend(tmpMeta[2],_OMC_LIT32((void*)((char*)(&(_OMC_LIT_STRUCT32).header) + 3)));
4535#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4536 tmpMeta[4] = stringAppend(tmpMeta[3],omc_System_snprintff(threadData, _OMC_LIT25((void*)((char*)(&(_OMC_LIT_STRUCT25).header) + 3)), ((modelica_integer) 25), _speedUpMax));
4537#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4538 tmpMeta[5] = stringAppend(tmpMeta[4],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
4539#line 5952 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/BackEnd/HpcOmScheduler.mo"
4540 fputs(MMC_STRINGDATA(tmpMeta[5])(((struct mmc_string*)((void*)((char*)(tmpMeta[5]) - 3)))->
data)
,stdoutstdout);
4541#line 4541 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4542 }
4543 }
4544 }
4545#line 4545 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/HpcOmScheduler.c"
4546 goto tmp2_done;
4547 }
4548 }
4549 goto tmp2_end;
4550 tmp2_end: ;
4551 }
4552 goto goto_1;
4553 tmp2_done:
4554 (void)tmp3;
4555 MMC_RESTORE_INTERNAL(mmc_jumper)threadData->mmc_jumper = old_jumper;;
4556 goto tmp2_done2;
4557 goto_1:;
4558 MMC_CATCH_INTERNAL(mmc_jumper)} threadData->mmc_jumper = old_jumper;mmc_catch_dummy_fn()
;}
;
4559 if (++tmp3 < 3) {
4560 goto tmp2_top;
4561 }
4562 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
4563 tmp2_done2:;
4564 }
4565 }
4566 ;