1

 This file has been generated by CoCoSim2.

2


3

 Compiler: Lustre compiler 2 (ToLustre.m)

4

 Time: 03Dec2018 22:40:27

5

(*

6

Original block name: Gain_PP/Gain

7

*)

8

node Gain_42_310(u_1 : real;

9

u_2 : real;

10

u_3 : real;

11

u_4 : real;

12

u_5 : real;

13

u_6 : real;

14

__time_step : real;

15

__nb_step : int;)

16

returns(Out1_1 : real;

17

Out1_2 : real;

18

Out1_3 : real;

19

Out1_4 : real;);

20

var K_1 : real;

21

K_2 : real;

22

K_3 : real;

23

K_4 : real;

24

K_5 : real;

25

K_6 : real;

26

Product_1 : real;

27

Product_2 : real;

28

Product_3 : real;

29

Product_4 : real;

30

let

31

K_1 = 1.000000000000000;

32

K_2 = 4.000000000000000;

33

K_3 = 2.000000000000000;

34

K_4 = 5.000000000000000;

35

K_5 = 3.000000000000000;

36

K_6 = 6.000000000000000;

37

Product_1 = 0.0 + (K_1 * u_1) + (K_3 * u_2) + (K_5 * u_3);

38

Product_3 = 0.0 + (K_1 * u_4) + (K_3 * u_5) + (K_5 * u_6);

39

Product_2 = 0.0 + (K_2 * u_1) + (K_4 * u_2) + (K_6 * u_3);

40

Product_4 = 0.0 + (K_2 * u_4) + (K_4 * u_5) + (K_6 * u_6);

41

Out1_1 = Product_1;

42

Out1_2 = Product_2;

43

Out1_3 = Product_3;

44

Out1_4 = Product_4;

45

tel

46


47

(*

48

Original block name: Gain_PP/Gain1

49

*)

50

node Gain1_43_538(u_1 : real;

51

u_2 : real;

52

u_3 : real;

53

u_4 : real;

54

u_5 : real;

55

u_6 : real;

56

__time_step : real;

57

__nb_step : int;)

58

returns(Out1_1 : real;

59

Out1_2 : real;

60

Out1_3 : real;

61

Out1_4 : real;

62

Out1_5 : real;

63

Out1_6 : real;

64

Out1_7 : real;

65

Out1_8 : real;

66

Out1_9 : real;);

67

var K_1 : real;

68

K_2 : real;

69

K_3 : real;

70

K_4 : real;

71

K_5 : real;

72

K_6 : real;

73

Product_1 : real;

74

Product_2 : real;

75

Product_3 : real;

76

Product_4 : real;

77

Product_5 : real;

78

Product_6 : real;

79

Product_7 : real;

80

Product_8 : real;

81

Product_9 : real;

82

let

83

K_1 = 1.000000000000000;

84

K_2 = 4.000000000000000;

85

K_3 = 2.000000000000000;

86

K_4 = 5.000000000000000;

87

K_5 = 3.000000000000000;

88

K_6 = 6.000000000000000;

89

Product_1 = 0.0 + (u_1 * K_1) + (u_4 * K_2);

90

Product_4 = 0.0 + (u_1 * K_3) + (u_4 * K_4);

91

Product_7 = 0.0 + (u_1 * K_5) + (u_4 * K_6);

92

Product_2 = 0.0 + (u_2 * K_1) + (u_5 * K_2);

93

Product_5 = 0.0 + (u_2 * K_3) + (u_5 * K_4);

94

Product_8 = 0.0 + (u_2 * K_5) + (u_5 * K_6);

95

Product_3 = 0.0 + (u_3 * K_1) + (u_6 * K_2);

96

Product_6 = 0.0 + (u_3 * K_3) + (u_6 * K_4);

97

Product_9 = 0.0 + (u_3 * K_5) + (u_6 * K_6);

98

Out1_1 = Product_1;

99

Out1_2 = Product_2;

100

Out1_3 = Product_3;

101

Out1_4 = Product_4;

102

Out1_5 = Product_5;

103

Out1_6 = Product_6;

104

Out1_7 = Product_7;

105

Out1_8 = Product_8;

106

Out1_9 = Product_9;

107

tel

108


109

(*

110

Original block name: Gain_PP/Gain2

111

*)

112

node Gain2_44_297(u_1 : real;

113

u_2 : real;

114

u_3 : real;

115

__time_step : real;

116

__nb_step : int;)

117

returns(Out1_1 : real;

118

Out1_2 : real;);

119

var K_1 : real;

120

K_2 : real;

121

K_3 : real;

122

K_4 : real;

123

K_5 : real;

124

K_6 : real;

125

Product_1 : real;

126

Product_2 : real;

127

let

128

K_1 = 1.000000000000000;

129

K_2 = 4.000000000000000;

130

K_3 = 2.000000000000000;

131

K_4 = 5.000000000000000;

132

K_5 = 3.000000000000000;

133

K_6 = 6.000000000000000;

134

Product_1 = 0.0 + (K_1 * u_1) + (K_3 * u_2) + (K_5 * u_3);

135

Product_2 = 0.0 + (K_2 * u_1) + (K_4 * u_2) + (K_6 * u_3);

136

Out1_1 = Product_1;

137

Out1_2 = Product_2;

138

tel

139


140

(*

141

Original block name: Gain_PP/Gain3

142

*)

143

node Gain3_45_300(u_1 : real;

144

u_2 : real;

145

u_3 : real;

146

u_4 : real;

147

u_5 : real;

148

u_6 : real;

149

__time_step : real;

150

__nb_step : int;)

151

returns(Out1_1 : real;

152

Out1_2 : real;

153

Out1_3 : real;

154

Out1_4 : real;

155

Out1_5 : real;

156

Out1_6 : real;);

157

var K_1 : real;

158

K_2 : real;

159

K_3 : real;

160

K_4 : real;

161

K_5 : real;

162

K_6 : real;

163

Product_1 : real;

164

Product_2 : real;

165

Product_3 : real;

166

Product_4 : real;

167

Product_5 : real;

168

Product_6 : real;

169

let

170

K_1 = 1.000000000000000;

171

K_2 = 4.000000000000000;

172

K_3 = 2.000000000000000;

173

K_4 = 5.000000000000000;

174

K_5 = 3.000000000000000;

175

K_6 = 6.000000000000000;

176

Product_1 = 1.0 * u_1 * K_1;

177

Product_2 = 1.0 * u_2 * K_2;

178

Product_3 = 1.0 * u_3 * K_3;

179

Product_4 = 1.0 * u_4 * K_4;

180

Product_5 = 1.0 * u_5 * K_5;

181

Product_6 = 1.0 * u_6 * K_6;

182

Out1_1 = Product_1;

183

Out1_2 = Product_2;

184

Out1_3 = Product_3;

185

Out1_4 = Product_4;

186

Out1_5 = Product_5;

187

Out1_6 = Product_6;

188

tel

189


190

(*

191

Original block name: Gain_PP

192

*)

193

node Gain_PP(In1_1 : real;

194

In1_2 : real;

195

In1_3 : real;

196

In1_4 : real;

197

In1_5 : real;

198

In1_6 : real;

199

In2_1 : real;

200

In2_2 : real;

201

In2_3 : real;

202

In2_4 : real;

203

In2_5 : real;

204

In2_6 : real;

205

In3_1 : real;

206

In3_2 : real;

207

In3_3 : real;

208

In4_1 : real;

209

In4_2 : real;

210

In4_3 : real;

211

In4_4 : real;

212

In4_5 : real;

213

In4_6 : real;)

214

returns(Out8_1 : real;

215

Out8_2 : real;

216

Out8_3 : real;

217

Out8_4 : real;

218

Out1_1 : real;

219

Out1_2 : real;

220

Out1_3 : real;

221

Out1_4 : real;

222

Out1_5 : real;

223

Out1_6 : real;

224

Out1_7 : real;

225

Out1_8 : real;

226

Out1_9 : real;

227

Out2_1 : real;

228

Out2_2 : real;

229

Out3_1 : real;

230

Out3_2 : real;

231

Out3_3 : real;

232

Out3_4 : real;

233

Out3_5 : real;

234

Out3_6 : real;);

235

var Gain_1 : real;

236

Gain_2 : real;

237

Gain_3 : real;

238

Gain_4 : real;

239

Gain1_1 : real;

240

Gain1_2 : real;

241

Gain1_3 : real;

242

Gain1_4 : real;

243

Gain1_5 : real;

244

Gain1_6 : real;

245

Gain1_7 : real;

246

Gain1_8 : real;

247

Gain1_9 : real;

248

Gain2_1 : real;

249

Gain2_2 : real;

250

Gain3_1 : real;

251

Gain3_2 : real;

252

Gain3_3 : real;

253

Gain3_4 : real;

254

Gain3_5 : real;

255

Gain3_6 : real;

256

__time_step : real;

257

__nb_step : int;

258

let

259

(Gain_1, Gain_2, Gain_3, Gain_4) = Gain_42_310(In1_1, In1_2, In1_3, In1_4, In1_5, In1_6, __time_step, __nb_step);

260

(Gain1_1, Gain1_2, Gain1_3, Gain1_4, Gain1_5, Gain1_6, Gain1_7, Gain1_8, Gain1_9) = Gain1_43_538(In2_1, In2_2, In2_3, In2_4, In2_5, In2_6, __time_step, __nb_step);

261

(Gain2_1, Gain2_2) = Gain2_44_297(In3_1, In3_2, In3_3, __time_step, __nb_step);

262

(Gain3_1, Gain3_2, Gain3_3, Gain3_4, Gain3_5, Gain3_6) = Gain3_45_300(In4_1, In4_2, In4_3, In4_4, In4_5, In4_6, __time_step, __nb_step);

263

Out8_1 = Gain_1;

264

Out8_2 = Gain_2;

265

Out8_3 = Gain_3;

266

Out8_4 = Gain_4;

267

Out1_1 = Gain1_1;

268

Out1_2 = Gain1_2;

269

Out1_3 = Gain1_3;

270

Out1_4 = Gain1_4;

271

Out1_5 = Gain1_5;

272

Out1_6 = Gain1_6;

273

Out1_7 = Gain1_7;

274

Out1_8 = Gain1_8;

275

Out1_9 = Gain1_9;

276

Out2_1 = Gain2_1;

277

Out2_2 = Gain2_2;

278

Out3_1 = Gain3_1;

279

Out3_2 = Gain3_2;

280

Out3_3 = Gain3_3;

281

Out3_4 = Gain3_4;

282

Out3_5 = Gain3_5;

283

Out3_6 = Gain3_6;

284

__time_step = (0.0 > ((pre __time_step) + 0.200000000000000));

285

__nb_step = (0 > ((pre __nb_step) + 1));

286

tel

287

