Project

General

Profile

Bug #76 ยป ap_12BAdaptedInlined.LUSTREC.lus

Hamza Bourbouh, 04/03/2019 04:00 AM

 
1
-- This file has been generated by CoCoSim2.
2

    
3
-- Compiler: Lustre compiler 2 (nasa_toLustre.ToLustre.m)
4
-- Time: 02-Apr-2019 18:58:49
5
#open <conv>
6
#open <lustrec_math>
7
node  real_to_bool(x : real;)
8
returns(y : bool;);
9
let
10
	y = (x <> 0.0);
11
tel
12

    
13
node  _inv_M_3x3(a11 : real;
14
	a21 : real;
15
	a31 : real;
16
	a12 : real;
17
	a22 : real;
18
	a32 : real;
19
	a13 : real;
20
	a23 : real;
21
	a33 : real;)
22
returns(ai11 : real;
23
	ai21 : real;
24
	ai31 : real;
25
	ai12 : real;
26
	ai22 : real;
27
	ai32 : real;
28
	ai13 : real;
29
	ai23 : real;
30
	ai33 : real;);
31
var det : real;
32
	adj11 : real;
33
	adj12 : real;
34
	adj13 : real;
35
	adj21 : real;
36
	adj22 : real;
37
	adj23 : real;
38
	adj31 : real;
39
	adj32 : real;
40
	adj33 : real;
41
let
42
	assert (det <> 0.0);
43
	det = (((a11 * adj11) + (a12 * adj21)) + (a13 * adj31));
44
	adj11 = ((a22 * a33) - (a23 * a32));
45
	adj21 = ((a23 * a31) - (a21 * a33));
46
	adj31 = ((a21 * a32) - (a31 * a22));
47
	adj12 = ((a13 * a32) - (a33 * a12));
48
	adj22 = ((a11 * a33) - (a13 * a31));
49
	adj32 = ((a12 * a31) - (a32 * a11));
50
	adj13 = ((a12 * a23) - (a22 * a13));
51
	adj23 = ((a13 * a21) - (a23 * a11));
52
	adj33 = ((a11 * a22) - (a21 * a12));
53
	ai11 = (adj11 / det);
54
	ai12 = (adj12 / det);
55
	ai13 = (adj13 / det);
56
	ai21 = (adj21 / det);
57
	ai22 = (adj22 / det);
58
	ai23 = (adj23 / det);
59
	ai31 = (adj31 / det);
60
	ai32 = (adj32 / det);
61
	ai33 = (adj33 / det);
62
tel
63

    
64
node  _max_real(x : real;
65
	y : real;)
66
returns(z : real;);
67
let
68
	z = if (x > y) then
69
		x
70
	    else y;
71
tel
72

    
73
node  _min_real(x : real;
74
	y : real;)
75
returns(z : real;);
76
let
77
	z = if (x < y) then
78
		x
79
	    else y;
80
tel
81

    
82
node  abs_real(x : real;)
83
returns(y : real;);
84
let
85
	y = if (x >= 0.0) then
86
		x
87
	    else (- x);
88
tel
89

    
90

    
91
(*
92
Original block name: ap_12BAdaptedInlined/BasicYawDamper/RudLimit
93
*)
94
node  RudLimit_23_005(In_1 : real;
95
	__time_step : real;
96
	__nb_step : int;)
97
returns(Out_1 : real;);
98
var lower_1 : real;
99
	lower_limit_1 : real;
100
	upper_1 : real;
101
	upper_limit_1 : real;
102
let
103
	lower_1 = _max_real(upper_1, lower_limit_1);
104
	lower_limit_1 = -25.0;
105
	upper_1 = _min_real(upper_limit_1, In_1);
106
	upper_limit_1 = 25.0;
107
	Out_1 = lower_1;
108
tel
109

    
110
(*
111
Original block name: ap_12BAdaptedInlined/BasicYawDamper
112
*)
113
node  BasicYawDamper_13_004(Phi__1 : real;
114
	R_1 : real;
115
	TAS_1 : real;
116
	__time_step : real;
117
	__nb_step : int;)
118
returns(RudCmd_1 : real;);
119
var Constant_1 : real;
120
	MinMax_1 : real;
121
	Product_1 : real;
122
	RateGain_1 : real;
123
	RudLimit_1 : real;
124
	Sum1_1 : real;
125
	gravity_1 : real;
126
	sin_1 : real;
127
let
128
	Constant_1 = 100.0;
129
	MinMax_1 = _max_real(TAS_1, Constant_1);
130
	Product_1 = 1.0 * gravity_1 / MinMax_1;
131
	RateGain_1 = (Sum1_1 * 1.0);
132
	RudLimit_1 = RudLimit_23_005(RateGain_1, __time_step, __nb_step);
133
	Sum1_1 = 0.0 + Product_1 - R_1;
134
	gravity_1 = (sin_1 * 32.200000000000003);
135
	sin_1 = sin(Phi__1);
136
	RudCmd_1 = RudLimit_1;
137
tel
138

    
139
(*
140
Original block name: ap_12BAdaptedInlined/CmdLimit
141
*)
142
node  CmdLimit_1024_019(In_1 : real;
143
	__time_step : real;
144
	__nb_step : int;)
145
returns(Out_1 : real;);
146
var lower_1 : real;
147
	lower_limit_1 : real;
148
	upper_1 : real;
149
	upper_limit_1 : real;
150
let
151
	lower_1 = _max_real(upper_1, lower_limit_1);
152
	lower_limit_1 = -20.0;
153
	upper_1 = _min_real(upper_limit_1, In_1);
154
	upper_limit_1 = 20.0;
155
	Out_1 = lower_1;
156
tel
157

    
158
(*
159
Original block name: ap_12BAdaptedInlined/CmdLimit1
160
*)
161
node  CmdLimit1_1036_019(In_1 : real;
162
	__time_step : real;
163
	__nb_step : int;)
164
returns(Out_1 : real;);
165
var lower_1 : real;
166
	lower_limit_1 : real;
167
	upper_1 : real;
168
	upper_limit_1 : real;
169
let
170
	lower_1 = _max_real(upper_1, lower_limit_1);
171
	lower_limit_1 = -15.0;
172
	upper_1 = _min_real(upper_limit_1, In_1);
173
	upper_limit_1 = 15.0;
174
	Out_1 = lower_1;
175
tel
176

    
177
(*
178
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/CG_minus_CPTransformation
179
*)
180
node  CG_minus_CPTransformation_1100_019(Vb_1 : real;
181
	In_1 : real;
182
	In_2 : real;
183
	In_3 : real;
184
	__time_step : real;
185
	__nb_step : int;)
186
returns(Out_1 : real;
187
	Out_2 : real;
188
	Out_3 : real;);
189
let
190
	Out_1 = In_1;
191
	Out_2 = In_2;
192
	Out_3 = In_3;
193
tel
194

    
195
(*
196
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Create3x3Matrix
197
*)
198
node  Create3x3Matrix_1180_019(M11_1 : real;
199
	M12_1 : real;
200
	M13_1 : real;
201
	M21_1 : real;
202
	M22_1 : real;
203
	M23_1 : real;
204
	M31_1 : real;
205
	M32_1 : real;
206
	M33_1 : real;
207
	__time_step : real;
208
	__nb_step : int;)
209
returns(Matrix_1 : real;
210
	Matrix_2 : real;
211
	Matrix_3 : real;
212
	Matrix_4 : real;
213
	Matrix_5 : real;
214
	Matrix_6 : real;
215
	Matrix_7 : real;
216
	Matrix_8 : real;
217
	Matrix_9 : real;);
218
var Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_1 : real;
219
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_2 : real;
220
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_3 : real;
221
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_4 : real;
222
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_5 : real;
223
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_6 : real;
224
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_7 : real;
225
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_8 : real;
226
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_9 : real;
227
	VectorConcatenate_1 : real;
228
	VectorConcatenate_2 : real;
229
	VectorConcatenate_3 : real;
230
	VectorConcatenate_4 : real;
231
	VectorConcatenate_5 : real;
232
	VectorConcatenate_6 : real;
233
	VectorConcatenate_7 : real;
234
	VectorConcatenate_8 : real;
235
	VectorConcatenate_9 : real;
236
let
237
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_1 = VectorConcatenate_1;
238
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_2 = VectorConcatenate_2;
239
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_3 = VectorConcatenate_3;
240
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_4 = VectorConcatenate_4;
241
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_5 = VectorConcatenate_5;
242
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_6 = VectorConcatenate_6;
243
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_7 = VectorConcatenate_7;
244
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_8 = VectorConcatenate_8;
245
	Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_9 = VectorConcatenate_9;
246
	VectorConcatenate_1 = M11_1;
247
	VectorConcatenate_2 = M21_1;
248
	VectorConcatenate_3 = M31_1;
249
	VectorConcatenate_4 = M12_1;
250
	VectorConcatenate_5 = M22_1;
251
	VectorConcatenate_6 = M32_1;
252
	VectorConcatenate_7 = M13_1;
253
	VectorConcatenate_8 = M23_1;
254
	VectorConcatenate_9 = M33_1;
255
	Matrix_1 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_1;
256
	Matrix_2 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_2;
257
	Matrix_3 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_3;
258
	Matrix_4 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_4;
259
	Matrix_5 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_5;
260
	Matrix_6 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_6;
261
	Matrix_7 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_7;
262
	Matrix_8 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_8;
263
	Matrix_9 = Reshape_lpar_9_rpar_to_lsbrak_3x3_rsbrak_column_minus_major_9;
264
tel
265

    
266
(*
267
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Demandlimits
268
*)
269
node  Demandlimits_1204_019(In_1 : real;
270
	__time_step : real;
271
	__nb_step : int;)
272
returns(Out_1 : real;);
273
var lower_1 : real;
274
	lower_limit_1 : real;
275
	upper_1 : real;
276
	upper_limit_1 : real;
277
let
278
	lower_1 = _max_real(upper_1, lower_limit_1);
279
	lower_limit_1 = -25.0;
280
	upper_1 = _min_real(upper_limit_1, In_1);
281
	upper_limit_1 = 25.0;
282
	Out_1 = lower_1;
283
tel
284

    
285
(*
286
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Demandlimits1
287
*)
288
node  Demandlimits1_1216_019(In_1 : real;
289
	__time_step : real;
290
	__nb_step : int;)
291
returns(Out_1 : real;);
292
var lower_1 : real;
293
	lower_limit_1 : real;
294
	upper_1 : real;
295
	upper_limit_1 : real;
296
let
297
	lower_1 = _max_real(upper_1, lower_limit_1);
298
	lower_limit_1 = -25.0;
299
	upper_1 = _min_real(upper_limit_1, In_1);
300
	upper_limit_1 = 25.0;
301
	Out_1 = lower_1;
302
tel
303

    
304
(*
305
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Demandlimits2
306
*)
307
node  Demandlimits2_1228_019(In_1 : real;
308
	__time_step : real;
309
	__nb_step : int;)
310
returns(Out_1 : real;);
311
var lower_1 : real;
312
	lower_limit_1 : real;
313
	upper_1 : real;
314
	upper_limit_1 : real;
315
let
316
	lower_1 = _max_real(upper_1, lower_limit_1);
317
	lower_limit_1 = -25.0;
318
	upper_1 = _min_real(upper_limit_1, In_1);
319
	upper_limit_1 = 25.0;
320
	Out_1 = lower_1;
321
tel
322

    
323
(*
324
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/DotProduct
325
*)
326
node  DotProduct_1278_019(In1_1 : real;
327
	In1_2 : real;
328
	In1_3 : real;
329
	In1_4 : real;
330
	In2_1 : real;
331
	In2_2 : real;
332
	In2_3 : real;
333
	In2_4 : real;
334
	__time_step : real;
335
	__nb_step : int;)
336
returns(Out1_1 : real;);
337
var Product_1 : real;
338
	Product_2 : real;
339
	Product_3 : real;
340
	Product_4 : real;
341
	Sum_1 : real;
342
let
343
	Product_1 = 1.0 * In1_1 * In2_1;
344
	Product_2 = 1.0 * In1_2 * In2_2;
345
	Product_3 = 1.0 * In1_3 * In2_3;
346
	Product_4 = 1.0 * In1_4 * In2_4;
347
	Sum_1 = 0.0 + Product_1 + Product_2 + Product_3 + Product_4;
348
	Out1_1 = Sum_1;
349
tel
350

    
351
(*
352
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/ForceTransformation
353
*)
354
node  ForceTransformation_1288_019(Vb_1 : real;
355
	In_1 : real;
356
	In_2 : real;
357
	In_3 : real;
358
	__time_step : real;
359
	__nb_step : int;)
360
returns(Out_1 : real;
361
	Out_2 : real;
362
	Out_3 : real;);
363
let
364
	Out_1 = In_1;
365
	Out_2 = In_2;
366
	Out_3 = In_3;
367
tel
368

    
369
(*
370
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/MomentTransformation
371
*)
372
node  MomentTransformation_1353_019(Vb_1 : real;
373
	In_1 : real;
374
	In_2 : real;
375
	In_3 : real;
376
	__time_step : real;
377
	__nb_step : int;)
378
returns(Out_1 : real;
379
	Out_2 : real;
380
	Out_3 : real;);
381
let
382
	Out_1 = In_1;
383
	Out_2 = In_2;
384
	Out_3 = In_3;
385
tel
386

    
387
(*
388
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/QuaternionNormalize/QuaternionModulus/QuaternionNorm
389
*)
390
node  QuaternionNorm_1485_019(q_1 : real;
391
	q_2 : real;
392
	q_3 : real;
393
	q_4 : real;
394
	__time_step : real;
395
	__nb_step : int;)
396
returns(norm_lpar_q_rpar__1 : real;);
397
var Demux_1 : real;
398
	Demux_2 : real;
399
	Demux_3 : real;
400
	Demux_4 : real;
401
	Product_1 : real;
402
	Product1_1 : real;
403
	Product2_1 : real;
404
	Product3_1 : real;
405
	Sum_1 : real;
406
let
407
	Demux_1 = q_1;
408
	Demux_2 = q_2;
409
	Demux_3 = q_3;
410
	Demux_4 = q_4;
411
	Product_1 = 1.0 * Demux_1 * Demux_1;
412
	Product1_1 = 1.0 * Demux_2 * Demux_2;
413
	Product2_1 = 1.0 * Demux_3 * Demux_3;
414
	Product3_1 = 1.0 * Demux_4 * Demux_4;
415
	Sum_1 = 0.0 + Product_1 + Product1_1 + Product2_1 + Product3_1;
416
	norm_lpar_q_rpar__1 = Sum_1;
417
tel
418

    
419
(*
420
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/QuaternionNormalize/QuaternionModulus
421
*)
422
node  QuaternionModulus_1483_019(q_1 : real;
423
	q_2 : real;
424
	q_3 : real;
425
	q_4 : real;
426
	__time_step : real;
427
	__nb_step : int;)
428
returns(_q__1 : real;);
429
var QuaternionNorm_1 : real;
430
	sqrt_1 : real;
431
let
432
	QuaternionNorm_1 = QuaternionNorm_1485_019(q_1, q_2, q_3, q_4, __time_step, __nb_step);
433
	sqrt_1 = sqrt(QuaternionNorm_1);
434
	_q__1 = sqrt_1;
435
tel
436

    
437
(*
438
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/QuaternionNormalize
439
*)
440
node  QuaternionNormalize_1475_019(q_1 : real;
441
	q_2 : real;
442
	q_3 : real;
443
	q_4 : real;
444
	__time_step : real;
445
	__nb_step : int;)
446
returns(normal_lpar_q_rpar__1 : real;
447
	normal_lpar_q_rpar__2 : real;
448
	normal_lpar_q_rpar__3 : real;
449
	normal_lpar_q_rpar__4 : real;);
450
var Demux_1 : real;
451
	Demux_2 : real;
452
	Demux_3 : real;
453
	Demux_4 : real;
454
	Mux_1 : real;
455
	Mux_2 : real;
456
	Mux_3 : real;
457
	Mux_4 : real;
458
	Product_1 : real;
459
	Product1_1 : real;
460
	Product2_1 : real;
461
	Product3_1 : real;
462
	QuaternionModulus_1 : real;
463
let
464
	Demux_1 = q_1;
465
	Demux_2 = q_2;
466
	Demux_3 = q_3;
467
	Demux_4 = q_4;
468
	Mux_1 = Product_1;
469
	Mux_2 = Product1_1;
470
	Mux_3 = Product2_1;
471
	Mux_4 = Product3_1;
472
	Product_1 = 1.0 * Demux_1 / QuaternionModulus_1;
473
	Product1_1 = 1.0 * Demux_2 / QuaternionModulus_1;
474
	Product2_1 = 1.0 * Demux_3 / QuaternionModulus_1;
475
	Product3_1 = 1.0 * Demux_4 / QuaternionModulus_1;
476
	QuaternionModulus_1 = QuaternionModulus_1483_019(q_1, q_2, q_3, q_4, __time_step, __nb_step);
477
	normal_lpar_q_rpar__1 = Mux_1;
478
	normal_lpar_q_rpar__2 = Mux_2;
479
	normal_lpar_q_rpar__3 = Mux_3;
480
	normal_lpar_q_rpar__4 = Mux_4;
481
tel
482

    
483
(*
484
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Saturation
485
*)
486
node  Saturation_2061_007(In_1 : real;
487
	__time_step : real;
488
	__nb_step : int;)
489
returns(Out_1 : real;);
490
var lower_1 : real;
491
	lower_limit_1 : real;
492
	upper_1 : real;
493
	upper_limit_1 : real;
494
let
495
	lower_1 = _max_real(upper_1, lower_limit_1);
496
	lower_limit_1 = -25.0;
497
	upper_1 = _min_real(upper_limit_1, In_1);
498
	upper_limit_1 = 25.0;
499
	Out_1 = lower_1;
500
tel
501

    
502
(*
503
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Saturation1
504
*)
505
node  Saturation1_2073_007(In_1 : real;
506
	__time_step : real;
507
	__nb_step : int;)
508
returns(Out_1 : real;);
509
var lower_1 : real;
510
	lower_limit_1 : real;
511
	upper_1 : real;
512
	upper_limit_1 : real;
513
let
514
	lower_1 = _max_real(upper_1, lower_limit_1);
515
	lower_limit_1 = -25.0;
516
	upper_1 = _min_real(upper_limit_1, In_1);
517
	upper_limit_1 = 25.0;
518
	Out_1 = lower_1;
519
tel
520

    
521
(*
522
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Saturation2
523
*)
524
node  Saturation2_2085_007(In_1 : real;
525
	__time_step : real;
526
	__nb_step : int;)
527
returns(Out_1 : real;);
528
var lower_1 : real;
529
	lower_limit_1 : real;
530
	upper_1 : real;
531
	upper_limit_1 : real;
532
let
533
	lower_1 = _max_real(upper_1, lower_limit_1);
534
	lower_limit_1 = -25.0;
535
	upper_1 = _min_real(upper_limit_1, In_1);
536
	upper_limit_1 = 25.0;
537
	Out_1 = lower_1;
538
tel
539

    
540
(*
541
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/Saturation3
542
*)
543
node  Saturation3_2097_007(In_1 : real;
544
	In_2 : real;
545
	In_3 : real;
546
	In_4 : real;
547
	__time_step : real;
548
	__nb_step : int;)
549
returns(Out_1 : real;
550
	Out_2 : real;
551
	Out_3 : real;
552
	Out_4 : real;);
553
var lower_1 : real;
554
	lower_2 : real;
555
	lower_3 : real;
556
	lower_4 : real;
557
	lower_limit_1 : real;
558
	upper_1 : real;
559
	upper_2 : real;
560
	upper_3 : real;
561
	upper_4 : real;
562
	upper_limit_1 : real;
563
let
564
	lower_1 = _max_real(upper_1, lower_limit_1);
565
	lower_2 = _max_real(upper_2, lower_limit_1);
566
	lower_3 = _max_real(upper_3, lower_limit_1);
567
	lower_4 = _max_real(upper_4, lower_limit_1);
568
	lower_limit_1 = -20.0;
569
	upper_1 = _min_real(upper_limit_1, In_1);
570
	upper_2 = _min_real(upper_limit_1, In_2);
571
	upper_3 = _min_real(upper_limit_1, In_3);
572
	upper_4 = _min_real(upper_limit_1, In_4);
573
	upper_limit_1 = 20.0;
574
	Out_1 = lower_1;
575
	Out_2 = lower_2;
576
	Out_3 = lower_3;
577
	Out_4 = lower_4;
578
tel
579

    
580
(*
581
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/coefAdjust
582
*)
583
node  coefAdjust_2262_007(u_1 : real;
584
	u_2 : real;
585
	u_3 : real;
586
	__time_step : real;
587
	__nb_step : int;)
588
returns(Out1_1 : real;
589
	Out1_2 : real;
590
	Out1_3 : real;);
591
var K_1 : real;
592
	K_2 : real;
593
	K_3 : real;
594
	Product_1 : real;
595
	Product_2 : real;
596
	Product_3 : real;
597
let
598
	K_1 = 1.0;
599
	K_2 = 1.0;
600
	K_3 = 1.0;
601
	Product_1 = 1.0 * u_1 * K_1;
602
	Product_2 = 1.0 * u_2 * K_2;
603
	Product_3 = 1.0 * u_3 * K_3;
604
	Out1_1 = Product_1;
605
	Out1_2 = Product_2;
606
	Out1_3 = Product_3;
607
tel
608

    
609
(*
610
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/ratelimit_mult_2_mult_zeta_wn
611
*)
612
node  ratelimit_mult_2_mult_zeta_wn_2304_007(In_1 : real;
613
	__time_step : real;
614
	__nb_step : int;)
615
returns(Out_1 : real;);
616
var lower_1 : real;
617
	lower_limit_1 : real;
618
	upper_1 : real;
619
	upper_limit_1 : real;
620
let
621
	lower_1 = _max_real(upper_1, lower_limit_1);
622
	lower_limit_1 = -0.015555555555556;
623
	upper_1 = _min_real(upper_limit_1, In_1);
624
	upper_limit_1 = 0.015555555555556;
625
	Out_1 = lower_1;
626
tel
627

    
628
(*
629
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/ratelimit_mult_2_mult_zeta_wn1
630
*)
631
node  ratelimit_mult_2_mult_zeta_wn1_2316_007(In_1 : real;
632
	__time_step : real;
633
	__nb_step : int;)
634
returns(Out_1 : real;);
635
var lower_1 : real;
636
	lower_limit_1 : real;
637
	upper_1 : real;
638
	upper_limit_1 : real;
639
let
640
	lower_1 = _max_real(upper_1, lower_limit_1);
641
	lower_limit_1 = -0.015555555555556;
642
	upper_1 = _min_real(upper_limit_1, In_1);
643
	upper_limit_1 = 0.015555555555556;
644
	Out_1 = lower_1;
645
tel
646

    
647
(*
648
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/ratelimit_mult_2_mult_zeta_wn2
649
*)
650
node  ratelimit_mult_2_mult_zeta_wn2_2328_007(In_1 : real;
651
	__time_step : real;
652
	__nb_step : int;)
653
returns(Out_1 : real;);
654
var lower_1 : real;
655
	lower_limit_1 : real;
656
	upper_1 : real;
657
	upper_limit_1 : real;
658
let
659
	lower_1 = _max_real(upper_1, lower_limit_1);
660
	lower_limit_1 = -0.015555555555556;
661
	upper_1 = _min_real(upper_limit_1, In_1);
662
	upper_limit_1 = 0.015555555555556;
663
	Out_1 = lower_1;
664
tel
665

    
666
(*
667
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/referencelength
668
*)
669
node  referencelength_2341_007(u_1 : real;
670
	__time_step : real;
671
	__nb_step : int;)
672
returns(Out1_1 : real;
673
	Out1_2 : real;
674
	Out1_3 : real;);
675
var K_1 : real;
676
	K_2 : real;
677
	K_3 : real;
678
	Product_1 : real;
679
	Product_2 : real;
680
	Product_3 : real;
681
let
682
	K_1 = 14.630000000000001;
683
	K_2 = 1.58750;
684
	K_3 = 14.630000000000001;
685
	Product_1 = 1.0 * u_1 * K_1;
686
	Product_2 = 1.0 * u_1 * K_2;
687
	Product_3 = 1.0 * u_1 * K_3;
688
	Out1_1 = Product_1;
689
	Out1_2 = Product_2;
690
	Out1_3 = Product_3;
691
tel
692

    
693
(*
694
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe/xyH
695
*)
696
node  xyH_2360_007(u_1 : real;
697
	u_2 : real;
698
	u_3 : real;
699
	__time_step : real;
700
	__nb_step : int;)
701
returns(Out1_1 : real;
702
	Out1_2 : real;
703
	Out1_3 : real;);
704
var K_1 : real;
705
	K_2 : real;
706
	K_3 : real;
707
	Product_1 : real;
708
	Product_2 : real;
709
	Product_3 : real;
710
let
711
	K_1 = 1.0;
712
	K_2 = 1.0;
713
	K_3 = -1.0;
714
	Product_1 = 1.0 * u_1 * K_1;
715
	Product_2 = 1.0 * u_2 * K_2;
716
	Product_3 = 1.0 * u_3 * K_3;
717
	Out1_1 = Product_1;
718
	Out1_2 = Product_2;
719
	Out1_3 = Product_3;
720
tel
721

    
722
(*
723
Original block name: ap_12BAdaptedInlined/DeHavillandBeaverAirframe
724
*)
725
node  DeHavillandBeaverAirframe_1083_019(EnvirBus_1 : real;
726
	EnvirBus_2 : real;
727
	EnvirBus_3 : real;
728
	EnvirBus_4 : real;
729
	EnvirBus_5 : real;
730
	EnvirBus_6 : real;
731
	EnvirBus_7 : real;
732
	EnvirBus_8 : real;
733
	Pilot_1 : real;
734
	Pilot_2 : real;
735
	Pilot_3 : real;
736
	Pilot_4 : real;
737
	Pilot_5 : real;
738
	Pilot_6 : real;
739
	__time_step : real;
740
	__nb_step : int;)
741
returns(ACBus_1 : real;
742
	ACBus_2 : real;
743
	ACBus_3 : real;
744
	ACBus_4 : real;
745
	ACBus_5 : real;
746
	ACBus_6 : real;
747
	ACBus_7 : real;
748
	ACBus_8 : real;
749
	ACBus_9 : real;
750
	ACBus_10 : real;
751
	ACBus_11 : real;
752
	ACBus_12 : real;
753
	ACBus_13 : real;
754
	ACBus_14 : real;
755
	ACBus_15 : real;
756
	ACBus_16 : real;
757
	ACBus_17 : real;
758
	ACBus_18 : real;
759
	ACBus_19 : real;
760
	ACBus_20 : real;
761
	ACBus_21 : real;
762
	ACBus_22 : real;
763
	ACBus_23 : real;
764
	ACBus_24 : real;
765
	ACBus_25 : real;
766
	ACBus_26 : real;
767
	ACBus_27 : real;
768
	ACBus_28 : real;);
769
var Airspeed_1 : real;
770
	BusCreator_1 : real;
771
	BusCreator_2 : real;
772
	BusCreator_3 : real;
773
	BusCreator_4 : real;
774
	BusCreator_5 : real;
775
	BusCreator_6 : real;
776
	BusCreator_7 : real;
777
	BusCreator_8 : real;
778
	BusCreator_9 : real;
779
	BusCreator_10 : real;
780
	BusCreator_11 : real;
781
	BusCreator_12 : real;
782
	BusCreator_13 : real;
783
	BusCreator_14 : real;
784
	BusCreator_15 : real;
785
	BusCreator_16 : real;
786
	BusCreator_17 : real;
787
	BusCreator_18 : real;
788
	BusCreator_19 : real;
789
	BusCreator_20 : real;
790
	BusCreator_21 : real;
791
	BusCreator_22 : real;
792
	BusCreator_23 : real;
793
	BusCreator_24 : real;
794
	BusCreator_25 : real;
795
	BusCreator_26 : real;
796
	BusCreator_27 : real;
797
	BusCreator_28 : real;
798
	BusCreator1_1 : real;
799
	BusCreator1_2 : real;
800
	BusCreator1_3 : real;
801
	BusCreator1_4 : real;
802
	BusCreator1_5 : real;
803
	BusCreator1_6 : real;
804
	BusCreator1_7 : real;
805
	BusSelector1_1 : real;
806
	BusSelector1_2 : real;
807
	BusSelector10_1 : real;
808
	BusSelector10_2 : real;
809
	BusSelector10_3 : real;
810
	BusSelector10_4 : real;
811
	BusSelector10_5 : real;
812
	BusSelector10_6 : real;
813
	BusSelector11_1 : real;
814
	BusSelector11_2 : real;
815
	BusSelector11_3 : real;
816
	BusSelector11_4 : real;
817
	BusSelector11_5 : real;
818
	BusSelector11_6 : real;
819
	BusSelector2_1 : real;
820
	BusSelector2_2 : real;
821
	BusSelector2_3 : real;
822
	BusSelector2_4 : real;
823
	BusSelector3_1 : real;
824
	BusSelector3_2 : real;
825
	BusSelector3_3 : real;
826
	BusSelector3_4 : real;
827
	BusSelector4_1 : real;
828
	BusSelector4_2 : real;
829
	BusSelector5_1 : real;
830
	BusSelector5_2 : real;
831
	BusSelector6_1 : real;
832
	BusSelector6_2 : real;
833
	BusSelector7_1 : real;
834
	BusSelector8_1 : real;
835
	BusSelector9_1 : real;
836
	BusSelector9_2 : real;
837
	BusSelector9_3 : real;
838
	CG_minus_CPTransformation_1 : real;
839
	CG_minus_CPTransformation_2 : real;
840
	CG_minus_CPTransformation_3 : real;
841
	Constant_1 : real;
842
	Constant1_1 : real;
843
	Constant10_1 : real;
844
	Constant11_1 : real;
845
	Constant12_1 : real;
846
	Constant13_1 : real;
847
	Constant14_1 : real;
848
	Constant15_1 : real;
849
	Constant16_1 : real;
850
	Constant17_1 : real;
851
	Constant18_1 : real;
852
	Constant19_1 : real;
853
	Constant2_1 : real;
854
	Constant20_1 : real;
855
	Constant21_1 : real;
856
	Constant22_1 : real;
857
	Constant23_1 : real;
858
	Constant24_1 : real;
859
	Constant25_1 : real;
860
	Constant26_1 : real;
861
	Constant27_1 : real;
862
	Constant28_1 : real;
863
	Constant29_1 : real;
864
	Constant3_1 : real;
865
	Constant30_1 : real;
866
	Constant31_1 : real;
867
	Constant32_1 : real;
868
	Constant33_1 : real;
869
	Constant34_1 : real;
870
	Constant35_1 : real;
871
	Constant36_1 : real;
872
	Constant37_1 : real;
873
	Constant38_1 : real;
874
	Constant39_1 : real;
875
	Constant4_1 : real;
876
	Constant40_1 : real;
877
	Constant41_1 : real;
878
	Constant42_1 : real;
879
	Constant43_1 : real;
880
	Constant44_1 : real;
881
	Constant44_2 : real;
882
	Constant44_3 : real;
883
	Constant44_4 : real;
884
	Constant44_5 : real;
885
	Constant44_6 : real;
886
	Constant45_1 : real;
887
	Constant46_1 : real;
888
	Constant47_1 : real;
889
	Constant48_1 : real;
890
	Constant49_1 : real;
891
	Constant5_1 : real;
892
	Constant50_1 : real;
893
	Constant51_1 : real;
894
	Constant52_1 : real;
895
	Constant53_1 : real;
896
	Constant54_1 : real;
897
	Constant55_1 : real;
898
	Constant56_1 : real;
899
	Constant57_1 : real;
900
	Constant58_1 : real;
901
	Constant59_1 : real;
902
	Constant6_1 : real;
903
	Constant60_1 : real;
904
	Constant61_1 : real;
905
	Constant62_1 : real;
906
	Constant63_1 : real;
907
	Constant64_1 : real;
908
	Constant65_1 : real;
909
	Constant66_1 : real;
910
	Constant66_2 : real;
911
	Constant66_3 : real;
912
	Constant66_4 : real;
913
	Constant66_5 : real;
914
	Constant66_6 : real;
915
	Constant66_7 : real;
916
	Constant66_8 : real;
917
	Constant66_9 : real;
918
	Constant66_10 : real;
919
	Constant66_11 : real;
920
	Constant66_12 : real;
921
	Constant66_13 : real;
922
	Constant66_14 : real;
923
	Constant66_15 : real;
924
	Constant66_16 : real;
925
	Constant66_17 : real;
926
	Constant66_18 : real;
927
	Constant67_1 : real;
928
	Constant68_1 : real;
929
	Constant68_2 : real;
930
	Constant68_3 : real;
931
	Constant69_1 : real;
932
	Constant7_1 : real;
933
	Constant70_1 : real;
934
	Constant70_2 : real;
935
	Constant70_3 : real;
936
	Constant71_1 : real;
937
	Constant72_1 : real;
938
	Constant8_1 : real;
939
	Constant9_1 : real;
940
	Create3x3Matrix_1 : real;
941
	Create3x3Matrix_2 : real;
942
	Create3x3Matrix_3 : real;
943
	Create3x3Matrix_4 : real;
944
	Create3x3Matrix_5 : real;
945
	Create3x3Matrix_6 : real;
946
	Create3x3Matrix_7 : real;
947
	Create3x3Matrix_8 : real;
948
	Create3x3Matrix_9 : real;
949
	Demandlimits_1 : real;
950
	Demandlimits1_1 : real;
951
	Demandlimits2_1 : real;
952
	Demux_1 : real;
953
	Demux_2 : real;
954
	Demux_3 : real;
955
	Demux_4 : real;
956
	Demux1_1 : real;
957
	Demux1_2 : real;
958
	Demux1_3 : real;
959
	Demux10_1 : real;
960
	Demux10_2 : real;
961
	Demux10_3 : real;
962
	Demux10_4 : real;
963
	Demux11_1 : real;
964
	Demux11_2 : real;
965
	Demux11_3 : real;
966
	Demux11_4 : real;
967
	Demux12_1 : real;
968
	Demux12_2 : real;
969
	Demux12_3 : real;
970
	Demux12_4 : real;
971
	Demux13_1 : real;
972
	Demux13_2 : real;
973
	Demux13_3 : real;
974
	Demux13_4 : real;
975
	Demux14_1 : real;
976
	Demux14_2 : real;
977
	Demux14_3 : real;
978
	Demux14_4 : real;
979
	Demux15_1 : real;
980
	Demux15_2 : real;
981
	Demux15_3 : real;
982
	Demux15_4 : real;
983
	Demux16_1 : real;
984
	Demux16_2 : real;
985
	Demux16_3 : real;
986
	Demux16_4 : real;
987
	Demux17_1 : real;
988
	Demux17_2 : real;
989
	Demux17_3 : real;
990
	Demux17_4 : real;
991
	Demux18_1 : real;
992
	Demux18_2 : real;
993
	Demux18_3 : real;
994
	Demux18_4 : real;
995
	Demux19_1 : real;
996
	Demux19_2 : real;
997
	Demux19_3 : real;
998
	Demux19_4 : real;
999
	Demux2_1 : real;
1000
	Demux2_2 : real;
1001
	Demux2_3 : real;
1002
	Demux20_1 : real;
1003
	Demux20_2 : real;
1004
	Demux20_3 : real;
1005
	Demux21_1 : real;
1006
	Demux21_2 : real;
1007
	Demux21_3 : real;
1008
	Demux22_1 : real;
1009
	Demux22_2 : real;
1010
	Demux22_3 : real;
1011
	Demux23_1 : real;
1012
	Demux23_2 : real;
1013
	Demux23_3 : real;
1014
	Demux24_1 : real;
1015
	Demux24_2 : real;
1016
	Demux24_3 : real;
1017
	Demux25_1 : real;
1018
	Demux25_2 : real;
1019
	Demux25_3 : real;
1020
	Demux26_1 : real;
1021
	Demux26_2 : real;
1022
	Demux26_3 : real;
1023
	Demux27_1 : real;
1024
	Demux27_2 : real;
1025
	Demux27_3 : real;
1026
	Demux28_1 : real;
1027
	Demux28_2 : real;
1028
	Demux28_3 : real;
1029
	Demux29_1 : real;
1030
	Demux29_2 : real;
1031
	Demux29_3 : real;
1032
	Demux3_1 : real;
1033
	Demux3_2 : real;
1034
	Demux30_1 : real;
1035
	Demux30_2 : real;
1036
	Demux30_3 : real;
1037
	Demux31_1 : real;
1038
	Demux31_2 : real;
1039
	Demux31_3 : real;
1040
	Demux4_1 : real;
1041
	Demux4_2 : real;
1042
	Demux4_3 : real;
1043
	Demux4_4 : real;
1044
	Demux4_5 : real;
1045
	Demux4_6 : real;
1046
	Demux5_1 : real;
1047
	Demux5_2 : real;
1048
	Demux5_3 : real;
1049
	Demux6_1 : real;
1050
	Demux6_2 : real;
1051
	Demux6_3 : real;
1052
	Demux7_1 : real;
1053
	Demux7_2 : real;
1054
	Demux7_3 : real;
1055
	Demux8_1 : real;
1056
	Demux8_2 : real;
1057
	Demux8_3 : real;
1058
	Demux9_1 : real;
1059
	Demux9_2 : real;
1060
	Demux9_3 : real;
1061
	Demux9_4 : real;
1062
	Divide_1 : real;
1063
	Divide1_1 : real;
1064
	Divide2_1 : real;
1065
	Divide3_1 : real;
1066
	DotProduct_1 : real;
1067
	ForceTransformation_1 : real;
1068
	ForceTransformation_2 : real;
1069
	ForceTransformation_3 : real;
1070
	Gain_1 : real;
1071
	Gain1_1 : real;
1072
	Gain10_1 : real;
1073
	Gain11_1 : real;
1074
	Gain12_1 : real;
1075
	Gain13_1 : real;
1076
	Gain14_1 : real;
1077
	Gain15_1 : real;
1078
	Gain16_1 : real;
1079
	Gain17_1 : real;
1080
	Gain18_1 : real;
1081
	Gain19_1 : real;
1082
	Gain2_1 : real;
1083
	Gain20_1 : real;
1084
	Gain21_1 : real;
1085
	Gain22_1 : real;
1086
	Gain23_1 : real;
1087
	Gain24_1 : real;
1088
	Gain25_1 : real;
1089
	Gain26_1 : real;
1090
	Gain27_1 : real;
1091
	Gain28_1 : real;
1092
	Gain29_1 : real;
1093
	Gain3_1 : real;
1094
	Gain30_1 : real;
1095
	Gain31_1 : real;
1096
	Gain32_1 : real;
1097
	Gain33_1 : real;
1098
	Gain34_1 : real;
1099
	Gain35_1 : real;
1100
	Gain36_1 : real;
1101
	Gain37_1 : real;
1102
	Gain38_1 : real;
1103
	Gain39_1 : real;
1104
	Gain4_1 : real;
1105
	Gain40_1 : real;
1106
	Gain41_1 : real;
1107
	Gain42_1 : real;
1108
	Gain43_1 : real;
1109
	Gain44_1 : real;
1110
	Gain45_1 : real;
1111
	Gain46_1 : real;
1112
	Gain47_1 : real;
1113
	Gain48_1 : real;
1114
	Gain5_1 : real;
1115
	Gain6_1 : real;
1116
	Gain7_1 : real;
1117
	Gain8_1 : real;
1118
	Gain9_1 : real;
1119
	Ground_1 : real;
1120
	Hdot_1 : real;
1121
	HighGainQuaternionNormalization_1 : real;
1122
	I_1 : real;
1123
	I_dot_1 : real;
1124
	Incidence_1 : real;
1125
	InertialtoBody_1 : real;
1126
	InertialtoBody_2 : real;
1127
	InertialtoBody_3 : real;
1128
	InitialEulerAngles_1 : real;
1129
	InitialEulerAngles_2 : real;
1130
	InitialEulerAngles_3 : real;
1131
	Initialinputsforaero_1 : real;
1132
	Initialinputsforaero_2 : real;
1133
	Initialinputsforaero_3 : real;
1134
	Initialinputsforaero_4 : real;
1135
	MomentTransformation_1 : real;
1136
	MomentTransformation_2 : real;
1137
	MomentTransformation_3 : real;
1138
	Mux_1 : real;
1139
	Mux_2 : real;
1140
	Mux_3 : real;
1141
	Mux_4 : real;
1142
	Mux1_1 : real;
1143
	Mux1_2 : real;
1144
	Mux1_3 : real;
1145
	Mux1_4 : real;
1146
	Mux1_5 : real;
1147
	Mux1_6 : real;
1148
	Mux10_1 : real;
1149
	Mux10_2 : real;
1150
	Mux10_3 : real;
1151
	Mux11_1 : real;
1152
	Mux11_2 : real;
1153
	Mux11_3 : real;
1154
	Mux12_1 : real;
1155
	Mux12_2 : real;
1156
	Mux12_3 : real;
1157
	Mux13_1 : real;
1158
	Mux13_2 : real;
1159
	Mux13_3 : real;
1160
	Mux14_1 : real;
1161
	Mux14_2 : real;
1162
	Mux14_3 : real;
1163
	Mux14_4 : real;
1164
	Mux15_1 : real;
1165
	Mux15_2 : real;
1166
	Mux15_3 : real;
1167
	Mux15_4 : real;
1168
	Mux15_5 : real;
1169
	Mux15_6 : real;
1170
	Mux16_1 : real;
1171
	Mux16_2 : real;
1172
	Mux16_3 : real;
1173
	Mux16_4 : real;
1174
	Mux17_1 : real;
1175
	Mux17_2 : real;
1176
	Mux17_3 : real;
1177
	Mux17_4 : real;
1178
	Mux17_5 : real;
1179
	Mux17_6 : real;
1180
	Mux17_7 : real;
1181
	Mux17_8 : real;
1182
	Mux18_1 : real;
1183
	Mux18_2 : real;
1184
	Mux18_3 : real;
1185
	Mux18_4 : real;
1186
	Mux19_1 : real;
1187
	Mux19_2 : real;
1188
	Mux19_3 : real;
1189
	Mux2_1 : real;
1190
	Mux2_2 : real;
1191
	Mux2_3 : real;
1192
	Mux2_4 : real;
1193
	Mux2_5 : real;
1194
	Mux2_6 : real;
1195
	Mux20_1 : real;
1196
	Mux20_2 : real;
1197
	Mux20_3 : real;
1198
	Mux21_1 : real;
1199
	Mux21_2 : real;
1200
	Mux21_3 : real;
1201
	Mux22_1 : real;
1202
	Mux22_2 : real;
1203
	Mux22_3 : real;
1204
	Mux3_1 : real;
1205
	Mux3_2 : real;
1206
	Mux3_3 : real;
1207
	Mux3_4 : real;
1208
	Mux3_5 : real;
1209
	Mux3_6 : real;
1210
	Mux4_1 : real;
1211
	Mux4_2 : real;
1212
	Mux4_3 : real;
1213
	Mux4_4 : real;
1214
	Mux4_5 : real;
1215
	Mux4_6 : real;
1216
	Mux5_1 : real;
1217
	Mux5_2 : real;
1218
	Mux5_3 : real;
1219
	Mux5_4 : real;
1220
	Mux5_5 : real;
1221
	Mux5_6 : real;
1222
	Mux6_1 : real;
1223
	Mux6_2 : real;
1224
	Mux6_3 : real;
1225
	Mux6_4 : real;
1226
	Mux6_5 : real;
1227
	Mux6_6 : real;
1228
	Mux7_1 : real;
1229
	Mux7_2 : real;
1230
	Mux7_3 : real;
1231
	Mux7_4 : real;
1232
	Mux7_5 : real;
1233
	Mux7_6 : real;
1234
	Mux8_1 : real;
1235
	Mux8_2 : real;
1236
	Mux8_3 : real;
1237
	Mux8_4 : real;
1238
	Mux8_5 : real;
1239
	Mux8_6 : real;
1240
	Mux9_1 : real;
1241
	Mux9_2 : real;
1242
	Mux9_3 : real;
1243
	Mux9_4 : real;
1244
	Mux9_5 : real;
1245
	Mux9_6 : real;
1246
	Product_1 : real;
1247
	Product1_1 : real;
1248
	Product10_1 : real;
1249
	Product11_1 : real;
1250
	Product12_1 : real;
1251
	Product13_1 : real;
1252
	Product14_1 : real;
1253
	Product15_1 : real;
1254
	Product16_1 : real;
1255
	Product17_1 : real;
1256
	Product18_1 : real;
1257
	Product18_2 : real;
1258
	Product18_3 : real;
1259
	Product18_4 : real;
1260
	Product18_5 : real;
1261
	Product18_6 : real;
1262
	Product19_1 : real;
1263
	Product19_2 : real;
1264
	Product19_3 : real;
1265
	Product19_4 : real;
1266
	Product19_5 : real;
1267
	Product19_6 : real;
1268
	Product2_1 : real;
1269
	Product20_1 : real;
1270
	Product20_2 : real;
1271
	Product20_3 : real;
1272
	Product20_4 : real;
1273
	Product20_5 : real;
1274
	Product20_6 : real;
1275
	Product21_1 : real;
1276
	Product21_2 : real;
1277
	Product21_3 : real;
1278
	Product21_4 : real;
1279
	Product21_5 : real;
1280
	Product21_6 : real;
1281
	Product22_1 : real;
1282
	Product23_1 : real;
1283
	Product24_1 : real;
1284
	Product25_1 : real;
1285
	Product26_1 : real;
1286
	Product27_1 : real;
1287
	Product28_1 : real;
1288
	Product29_1 : real;
1289
	Product3_1 : real;
1290
	Product30_1 : real;
1291
	Product31_1 : real;
1292
	Product32_1 : real;
1293
	Product33_1 : real;
1294
	Product34_1 : real;
1295
	Product35_1 : real;
1296
	Product36_1 : real;
1297
	Product36_2 : real;
1298
	Product36_3 : real;
1299
	Product37_1 : real;
1300
	Product37_2 : real;
1301
	Product37_3 : real;
1302
	Product38_1 : real;
1303
	Product38_2 : real;
1304
	Product38_3 : real;
1305
	Product39_1 : real;
1306
	Product4_1 : real;
1307
	Product40_1 : real;
1308
	Product41_1 : real;
1309
	Product42_1 : real;
1310
	Product43_1 : real;
1311
	Product44_1 : real;
1312
	Product45_1 : real;
1313
	Product46_1 : real;
1314
	Product47_1 : real;
1315
	Product48_1 : real;
1316
	Product49_1 : real;
1317
	Product5_1 : real;
1318
	Product50_1 : real;
1319
	Product51_1 : real;
1320
	Product52_1 : real;
1321
	Product53_1 : real;
1322
	Product54_1 : real;
1323
	Product55_1 : real;
1324
	Product56_1 : real;
1325
	Product57_1 : real;
1326
	Product58_1 : real;
1327
	Product59_1 : real;
1328
	Product6_1 : real;
1329
	Product60_1 : real;
1330
	Product61_1 : real;
1331
	Product62_1 : real;
1332
	Product63_1 : real;
1333
	Product64_1 : real;
1334
	Product65_1 : real;
1335
	Product66_1 : real;
1336
	Product67_1 : real;
1337
	Product68_1 : real;
1338
	Product69_1 : real;
1339
	Product7_1 : real;
1340
	Product70_1 : real;
1341
	Product71_1 : real;
1342
	Product72_1 : real;
1343
	Product72_2 : real;
1344
	Product72_3 : real;
1345
	Product72_4 : real;
1346
	Product73_1 : real;
1347
	Product73_2 : real;
1348
	Product73_3 : real;
1349
	Selector9_1_inv_1455_019 : real;
1350
	Selector9_2_inv_1455_019 : real;
1351
	Selector9_3_inv_1455_019 : real;
1352
	Selector9_4_inv_1455_019 : real;
1353
	Selector9_5_inv_1455_019 : real;
1354
	Selector9_6_inv_1455_019 : real;
1355
	Selector9_7_inv_1455_019 : real;
1356
	Selector9_8_inv_1455_019 : real;
1357
	Selector9_9_inv_1455_019 : real;
1358
	Product74_1 : real;
1359
	Product74_2 : real;
1360
	Product74_3 : real;
1361
	Product75_1 : real;
1362
	Product75_2 : real;
1363
	Product75_3 : real;
1364
	Product76_1 : real;
1365
	Product77_1 : real;
1366
	Product77_2 : real;
1367
	Product77_3 : real;
1368
	Product78_1 : real;
1369
	Product79_1 : real;
1370
	Product79_2 : real;
1371
	Product79_3 : real;
1372
	Product8_1 : real;
1373
	Product80_1 : real;
1374
	Product81_1 : real;
1375
	Product81_2 : real;
1376
	Product81_3 : real;
1377
	Product82_1 : real;
1378
	Product82_2 : real;
1379
	Product82_3 : real;
1380
	Product83_1 : real;
1381
	Product84_1 : real;
1382
	Product85_1 : real;
1383
	Product86_1 : real;
1384
	Product87_1 : real;
1385
	Product88_1 : real;
1386
	Product89_1 : real;
1387
	Product9_1 : real;
1388
	Product90_1 : real;
1389
	QuaternionNormalize_1 : real;
1390
	QuaternionNormalize_2 : real;
1391
	QuaternionNormalize_3 : real;
1392
	QuaternionNormalize_4 : real;
1393
	ReferenceLength_1 : real;
1394
	ReferenceLength_2 : real;
1395
	ReferenceLength_3 : real;
1396
	ReferenceLength_4 : real;
1397
	ReferenceLength_5 : real;
1398
	ReferenceLength_6 : real;
1399
	ReferenceSpan_1 : real;
1400
	ReferenceSpan_2 : real;
1401
	ReferenceSpan_3 : real;
1402
	ReferenceSpan_4 : real;
1403
	ReferenceSpan_5 : real;
1404
	ReferenceSpan_6 : real;
1405
	ReferenceSpan__1 : real;
1406
	ReferenceSpan__2 : real;
1407
	ReferenceSpan__3 : real;
1408
	ReferenceSpan__4 : real;
1409
	ReferenceSpan__5 : real;
1410
	ReferenceSpan__6 : real;
1411
	Reshape_1 : real;
1412
	Reshape_2 : real;
1413
	Reshape_3 : real;
1414
	Reshape1_1 : real;
1415
	Reshape1_2 : real;
1416
	Reshape1_3 : real;
1417
	Reshape2_1 : real;
1418
	Reshape2_2 : real;
1419
	Reshape2_3 : real;
1420
	Reshape3_1 : real;
1421
	Reshape3_2 : real;
1422
	Reshape3_3 : real;
1423
	Reshape4_1 : real;
1424
	Reshape4_2 : real;
1425
	Reshape4_3 : real;
1426
	Reshape5_1 : real;
1427
	Reshape5_2 : real;
1428
	Reshape5_3 : real;
1429
	Reshape6_1 : real;
1430
	Reshape6_2 : real;
1431
	Reshape6_3 : real;
1432
	Reshape7_1 : real;
1433
	Reshape7_2 : real;
1434
	Reshape7_3 : real;
1435
	Reshape8_1 : real;
1436
	Reshape8_2 : real;
1437
	Reshape8_3 : real;
1438
	Saturation_1 : real;
1439
	Saturation1_1 : real;
1440
	Saturation2_1 : real;
1441
	Saturation3_1 : real;
1442
	Saturation3_2 : real;
1443
	Saturation3_3 : real;
1444
	Saturation3_4 : real;
1445
	Selector_1 : real;
1446
	Selector_2 : real;
1447
	Selector_3 : real;
1448
	Selector1_1 : real;
1449
	Selector2_1 : real;
1450
	Selector3_1 : real;
1451
	Selector4_1 : real;
1452
	Selector5_1 : real;
1453
	Selector6_1 : real;
1454
	Selector6_2 : real;
1455
	Selector6_3 : real;
1456
	Selector7_1 : real;
1457
	Selector7_2 : real;
1458
	Selector7_3 : real;
1459
	Selector7_4 : real;
1460
	Selector7_5 : real;
1461
	Selector7_6 : real;
1462
	Selector7_7 : real;
1463
	Selector7_8 : real;
1464
	Selector7_9 : real;
1465
	Selector8_1 : real;
1466
	Selector8_2 : real;
1467
	Selector8_3 : real;
1468
	Selector8_4 : real;
1469
	Selector8_5 : real;
1470
	Selector8_6 : real;
1471
	Selector8_7 : real;
1472
	Selector8_8 : real;
1473
	Selector8_9 : real;
1474
	Selector9_1 : real;
1475
	Selector9_2 : real;
1476
	Selector9_3 : real;
1477
	Selector9_4 : real;
1478
	Selector9_5 : real;
1479
	Selector9_6 : real;
1480
	Selector9_7 : real;
1481
	Selector9_8 : real;
1482
	Selector9_9 : real;
1483
	Sideslip_1 : real;
1484
	Sum_1 : real;
1485
	Sum_2 : real;
1486
	Sum_3 : real;
1487
	Sum1_1 : real;
1488
	Sum1_2 : real;
1489
	Sum1_3 : real;
1490
	Sum1_4 : real;
1491
	Sum10_1 : real;
1492
	Sum11_1 : real;
1493
	Sum12_1 : real;
1494
	Sum13_1 : real;
1495
	Sum14_1 : real;
1496
	Sum14_2 : real;
1497
	Sum14_3 : real;
1498
	Sum14_4 : real;
1499
	Sum14_5 : real;
1500
	Sum14_6 : real;
1501
	Sum15_1 : real;
1502
	Sum15_2 : real;
1503
	Sum15_3 : real;
1504
	Sum15_4 : real;
1505
	Sum15_5 : real;
1506
	Sum15_6 : real;
1507
	Sum16_1 : real;
1508
	Sum16_2 : real;
1509
	Sum16_3 : real;
1510
	Sum16_4 : real;
1511
	Sum16_5 : real;
1512
	Sum16_6 : real;
1513
	Sum17_1 : real;
1514
	Sum17_2 : real;
1515
	Sum17_3 : real;
1516
	Sum17_4 : real;
1517
	Sum17_5 : real;
1518
	Sum17_6 : real;
1519
	Sum18_1 : real;
1520
	Sum18_2 : real;
1521
	Sum18_3 : real;
1522
	Sum18_4 : real;
1523
	Sum18_5 : real;
1524
	Sum18_6 : real;
1525
	Sum19_1 : real;
1526
	Sum2_1 : real;
1527
	Sum20_1 : real;
1528
	Sum21_1 : real;
1529
	Sum22_1 : real;
1530
	Sum23_1 : real;
1531
	Sum24_1 : real;
1532
	Sum24_2 : real;
1533
	Sum24_3 : real;
1534
	Sum24_4 : real;
1535
	Sum24_5 : real;
1536
	Sum24_6 : real;
1537
	Sum25_1 : real;
1538
	Sum25_2 : real;
1539
	Sum25_3 : real;
1540
	Sum25_4 : real;
1541
	Sum25_5 : real;
1542
	Sum25_6 : real;
1543
	Sum26_1 : real;
1544
	Sum27_1 : real;
1545
	Sum28_1 : real;
1546
	Sum28_2 : real;
1547
	Sum28_3 : real;
1548
	Sum28_4 : real;
1549
	Sum28_5 : real;
1550
	Sum28_6 : real;
1551
	Sum29_1 : real;
1552
	Sum3_1 : real;
1553
	Sum30_1 : real;
1554
	Sum31_1 : real;
1555
	Sum32_1 : real;
1556
	Sum33_1 : real;
1557
	Sum34_1 : real;
1558
	Sum35_1 : real;
1559
	Sum36_1 : real;
1560
	Sum37_1 : real;
1561
	Sum38_1 : real;
1562
	Sum39_1 : real;
1563
	Sum4_1 : real;
1564
	Sum40_1 : real;
1565
	Sum41_1 : real;
1566
	Sum41_2 : real;
1567
	Sum41_3 : real;
1568
	Sum41_4 : real;
1569
	Sum41_5 : real;
1570
	Sum41_6 : real;
1571
	Sum42_1 : real;
1572
	Sum42_2 : real;
1573
	Sum42_3 : real;
1574
	Sum43_1 : real;
1575
	Sum43_2 : real;
1576
	Sum43_3 : real;
1577
	Sum44_1 : real;
1578
	Sum44_2 : real;
1579
	Sum44_3 : real;
1580
	Sum45_1 : real;
1581
	Sum45_2 : real;
1582
	Sum45_3 : real;
1583
	Sum46_1 : real;
1584
	Sum47_1 : real;
1585
	Sum48_1 : real;
1586
	Sum49_1 : real;
1587
	Sum5_1 : real;
1588
	Sum50_1 : real;
1589
	Sum51_1 : real;
1590
	Sum52_1 : real;
1591
	Sum53_1 : real;
1592
	Sum54_1 : real;
1593
	Sum55_1 : real;
1594
	Sum56_1 : real;
1595
	Sum56_2 : real;
1596
	Sum56_3 : real;
1597
	Sum56_4 : real;
1598
	Sum57_1 : real;
1599
	Sum58_1 : real;
1600
	Sum58_2 : real;
1601
	Sum58_3 : real;
1602
	Sum59_1 : real;
1603
	Sum59_2 : real;
1604
	Sum59_3 : real;
1605
	Sum6_1 : real;
1606
	Sum60_1 : real;
1607
	Sum60_2 : real;
1608
	Sum60_3 : real;
1609
	Sum61_1 : real;
1610
	Sum61_2 : real;
1611
	Sum61_3 : real;
1612
	Sum62_1 : real;
1613
	Sum62_2 : real;
1614
	Sum62_3 : real;
1615
	Sum63_1 : real;
1616
	Sum63_2 : real;
1617
	Sum63_3 : real;
1618
	Sum64_1 : real;
1619
	Sum64_2 : real;
1620
	Sum64_3 : real;
1621
	Sum65_1 : real;
1622
	Sum65_2 : real;
1623
	Sum65_3 : real;
1624
	Sum66_1 : real;
1625
	Sum67_1 : real;
1626
	Sum7_1 : real;
1627
	Sum8_1 : real;
1628
	Sum9_1 : real;
1629
	Switch_1 : real;
1630
	Switch1_1 : real;
1631
	Switch10_1 : real;
1632
	Switch11_1 : real;
1633
	Switch12_1 : real;
1634
	Switch12_2 : real;
1635
	Switch12_3 : real;
1636
	Switch12_4 : real;
1637
	Switch13_1 : real;
1638
	Switch13_2 : real;
1639
	Switch13_3 : real;
1640
	Switch13_4 : real;
1641
	Switch14_1 : real;
1642
	Switch14_2 : real;
1643
	Switch14_3 : real;
1644
	Switch15_1 : real;
1645
	Switch15_2 : real;
1646
	Switch15_3 : real;
1647
	Switch16_1 : real;
1648
	Switch16_2 : real;
1649
	Switch16_3 : real;
1650
	Switch17_1 : real;
1651
	Switch17_2 : real;
1652
	Switch17_3 : real;
1653
	Switch18_1 : real;
1654
	Switch18_2 : real;
1655
	Switch18_3 : real;
1656
	Switch19_1 : real;
1657
	Switch19_2 : real;
1658
	Switch19_3 : real;
1659
	Switch2_1 : real;
1660
	Switch3_1 : real;
1661
	Switch4_1 : real;
1662
	Switch5_1 : real;
1663
	Switch6_1 : real;
1664
	Switch7_1 : real;
1665
	Switch8_1 : real;
1666
	Switch9_1 : real;
1667
	Transpose_1 : real;
1668
	Transpose_2 : real;
1669
	Transpose_3 : real;
1670
	Transpose_4 : real;
1671
	Transpose_5 : real;
1672
	Transpose_6 : real;
1673
	Transpose_7 : real;
1674
	Transpose_8 : real;
1675
	Transpose_9 : real;
1676
	TrigonometricFunction1_1 : real;
1677
	TrigonometricFunction3_1 : real;
1678
	UnitDelay_1 : real;
1679
	UnitDelay1_1 : real;
1680
	UnitDelay2_1 : real;
1681
	UnitDelay3_1 : real;
1682
	UnitDelay4_1 : real;
1683
	UnitDelay5_1 : real;
1684
	UnitDelay6_1 : real;
1685
	UnitDelay7_1 : real;
1686
	UnitDelay8_1 : real;
1687
	UnitDelay9_1 : real;
1688
	Vb_1 : real;
1689
	VectorConcatenate_1 : real;
1690
	VectorConcatenate_2 : real;
1691
	VectorConcatenate_3 : real;
1692
	X_1 : real;
1693
	X1_1 : real;
1694
	X2_1 : real;
1695
	X3_1 : real;
1696
	X4_1 : real;
1697
	X5_1 : real;
1698
	X6_1 : real;
1699
	X6_2 : real;
1700
	X6_3 : real;
1701
	X6_4 : real;
1702
	X7_1 : real;
1703
	X7_2 : real;
1704
	X7_3 : real;
1705
	X8_1 : real;
1706
	X8_2 : real;
1707
	X8_3 : real;
1708
	X9_1 : real;
1709
	X9_2 : real;
1710
	X9_3 : real;
1711
	coefAdjust_1 : real;
1712
	coefAdjust_2 : real;
1713
	coefAdjust_3 : real;
1714
	fcn1_1 : real;
1715
	fcn2_1 : real;
1716
	fcn3_1 : real;
1717
	fcn4_1 : real;
1718
	fcn5_1 : real;
1719
	ixj_1 : real;
1720
	ixj1_1 : real;
1721
	ixj2_1 : real;
1722
	ixk_1 : real;
1723
	ixk1_1 : real;
1724
	ixk2_1 : real;
1725
	jxi_1 : real;
1726
	jxi1_1 : real;
1727
	jxi2_1 : real;
1728
	jxk_1 : real;
1729
	jxk1_1 : real;
1730
	jxk2_1 : real;
1731
	kxi_1 : real;
1732
	kxi1_1 : real;
1733
	kxi2_1 : real;
1734
	kxj_1 : real;
1735
	kxj1_1 : real;
1736
	kxj2_1 : real;
1737
	m_dot_1 : real;
1738
	mass_1 : real;
1739
	neglectcenterofgravityandcenterofpressureeffects_1 : real;
1740
	neglectcenterofgravityandcenterofpressureeffects_2 : real;
1741
	neglectcenterofgravityandcenterofpressureeffects_3 : real;
1742
	q0_1 : real;
1743
	q0dot_1 : real;
1744
	q1_1 : real;
1745
	q1dot_1 : real;
1746
	q2_1 : real;
1747
	q2dot_1 : real;
1748
	q3_1 : real;
1749
	q3dot_1 : real;
1750
	ratelimit_mult_2_mult_zeta_wn_1 : real;
1751
	ratelimit_mult_2_mult_zeta_wn1_1 : real;
1752
	ratelimit_mult_2_mult_zeta_wn2_1 : real;
1753
	referencearea_1 : real;
1754
	referencelength_1 : real;
1755
	referencelength_2 : real;
1756
	referencelength_3 : real;
1757
	sincos_1 : real;
1758
	sincos_2 : real;
1759
	sincos_3 : real;
1760
	sincos_4 : real;
1761
	sincos_5 : real;
1762
	sincos_6 : real;
1763
	sqrt_1 : real;
1764
	trigFcn_1 : real;
1765
	wn_1_1 : real;
1766
	wn_2_1 : real;
1767
	wn_3_1 : real;
1768
	x1_2_1 : real;
1769
	x1_2_2 : real;
1770
	x1_2_3 : real;
1771
	x1_2rhoV_2_1 : real;
1772
	x2_mult_zeta_mult_wn_1 : real;
1773
	x2_mult_zeta_mult_wn1_1 : real;
1774
	x2_mult_zeta_mult_wn2_1 : real;
1775
	xyH_1 : real;
1776
	xyH_2 : real;
1777
	xyH_3 : real;
1778
let
1779
	Airspeed_1 = sqrt(Sum67_1);
1780
	BusCreator_1 = Hdot_1;
1781
	BusCreator_2 = Reshape8_1;
1782
	BusCreator_3 = Reshape8_2;
1783
	BusCreator_4 = Reshape8_3;
1784
	BusCreator_5 = Switch16_1;
1785
	BusCreator_6 = Switch16_2;
1786
	BusCreator_7 = Switch16_3;
1787
	BusCreator_8 = xyH_1;
1788
	BusCreator_9 = xyH_2;
1789
	BusCreator_10 = xyH_3;
1790
	BusCreator_11 = Selector_1;
1791
	BusCreator_12 = Selector_2;
1792
	BusCreator_13 = Selector_3;
1793
	BusCreator_14 = Create3x3Matrix_1;
1794
	BusCreator_15 = Create3x3Matrix_2;
1795
	BusCreator_16 = Create3x3Matrix_3;
1796
	BusCreator_17 = Create3x3Matrix_4;
1797
	BusCreator_18 = Create3x3Matrix_5;
1798
	BusCreator_19 = Create3x3Matrix_6;
1799
	BusCreator_20 = Create3x3Matrix_7;
1800
	BusCreator_21 = Create3x3Matrix_8;
1801
	BusCreator_22 = Create3x3Matrix_9;
1802
	BusCreator_23 = Switch18_1;
1803
	BusCreator_24 = Switch18_2;
1804
	BusCreator_25 = Switch18_3;
1805
	BusCreator_26 = Switch14_1;
1806
	BusCreator_27 = Switch14_2;
1807
	BusCreator_28 = Switch14_3;
1808
	BusCreator1_1 = Incidence_1;
1809
	BusCreator1_2 = Sideslip_1;
1810
	BusCreator1_3 = Airspeed_1;
1811
	BusCreator1_4 = Sum64_1;
1812
	BusCreator1_5 = Sum64_2;
1813
	BusCreator1_6 = Sum64_3;
1814
	BusCreator1_7 = x1_2rhoV_2_1;
1815
	BusSelector1_1 = BusCreator1_1;
1816
	BusSelector1_2 = BusCreator1_2;
1817
	BusSelector10_1 = BusCreator_26;
1818
	BusSelector10_2 = BusCreator_27;
1819
	BusSelector10_3 = BusCreator_28;
1820
	BusSelector10_4 = BusCreator_2;
1821
	BusSelector10_5 = BusCreator_3;
1822
	BusSelector10_6 = BusCreator_4;
1823
	BusSelector11_1 = EnvirBus_3;
1824
	BusSelector11_2 = EnvirBus_4;
1825
	BusSelector11_3 = EnvirBus_5;
1826
	BusSelector11_4 = EnvirBus_6;
1827
	BusSelector11_5 = EnvirBus_7;
1828
	BusSelector11_6 = EnvirBus_8;
1829
	BusSelector2_1 = Pilot_1;
1830
	BusSelector2_2 = Pilot_2;
1831
	BusSelector2_3 = Pilot_3;
1832
	BusSelector2_4 = Pilot_4;
1833
	BusSelector3_1 = BusCreator1_3;
1834
	BusSelector3_2 = BusCreator1_4;
1835
	BusSelector3_3 = BusCreator1_5;
1836
	BusSelector3_4 = BusCreator1_6;
1837
	BusSelector4_1 = EnvirBus_2;
1838
	BusSelector4_2 = EnvirBus_1;
1839
	BusSelector5_1 = BusCreator1_3;
1840
	BusSelector5_2 = BusCreator1_1;
1841
	BusSelector6_1 = Pilot_5;
1842
	BusSelector6_2 = Pilot_6;
1843
	BusSelector7_1 = BusCreator1_7;
1844
	BusSelector8_1 = EnvirBus_2;
1845
	BusSelector9_1 = BusCreator_23;
1846
	BusSelector9_2 = BusCreator_24;
1847
	BusSelector9_3 = BusCreator_25;
1848
	(CG_minus_CPTransformation_1, CG_minus_CPTransformation_2, CG_minus_CPTransformation_3) = CG_minus_CPTransformation_1100_019(Vb_1, Sum42_1, Sum42_2, Sum42_3, __time_step, __nb_step);
1849
	Constant_1 = 1.0;
1850
	Constant1_1 = 0.0250;
1851
	Constant10_1 = 1.0;
1852
	Constant11_1 = 0.0250;
1853
	Constant12_1 = 0.0;
1854
	Constant13_1 = -0.032021015966288;
1855
	Constant14_1 = 0.0;
1856
	Constant15_1 = 0.0;
1857
	Constant16_1 = 1.0;
1858
	Constant17_1 = 0.0250;
1859
	Constant18_1 = 1.0;
1860
	Constant19_1 = 0.0250;
1861
	Constant2_1 = 1.0;
1862
	Constant20_1 = 0.0;
1863
	Constant21_1 = -0.036518036926441;
1864
	Constant22_1 = 0.0;
1865
	Constant23_1 = 0.0;
1866
	Constant24_1 = 0.0;
1867
	Constant25_1 = 0.0;
1868
	Constant26_1 = 0.0;
1869
	Constant27_1 = 0.0;
1870
	Constant28_1 = 0.0;
1871
	Constant29_1 = 0.0;
1872
	Constant3_1 = 0.0250;
1873
	Constant30_1 = 0.0;
1874
	Constant31_1 = -0.1240;
1875
	Constant32_1 = -0.50450;
1876
	Constant33_1 = -0.15850;
1877
	Constant34_1 = 0.0;
1878
	Constant35_1 = -2.9880;
1879
	Constant36_1 = -0.67480;
1880
	Constant37_1 = -15.560;
1881
	Constant38_1 = 0.15950;
1882
	Constant39_1 = 0.0;
1883
	Constant4_1 = 0.0;
1884
	Constant40_1 = 0.36660;
1885
	Constant41_1 = 0.16950;
1886
	Constant42_1 = -0.31180;
1887
	Constant43_1 = -0.11120;
1888
	Constant44_1 = -0.035540;
1889
	Constant44_2 = -0.0022260;
1890
	Constant44_3 = -0.055040;
1891
	Constant44_4 = 0.0005910;
1892
	Constant44_5 = 0.094480;
1893
	Constant44_6 = -0.0031170;
1894
	Constant45_1 = 0.0;
1895
	Constant46_1 = 0.086960;
1896
	Constant47_1 = 326.50;
1897
	Constant48_1 = 2.0;
1898
	Constant49_1 = 191.180000000000007;
1899
	Constant5_1 = -0.031765697907092;
1900
	Constant50_1 = 408.0;
1901
	Constant51_1 = 1.0;
1902
	Constant52_1 = 2010.0;
1903
	Constant53_1 = 7.40;
1904
	Constant54_1 = 0.0;
1905
	Constant55_1 = 1.0;
1906
	Constant56_1 = 0.0250;
1907
	Constant57_1 = 0.0;
1908
	Constant58_1 = 1.0;
1909
	Constant59_1 = 1.0;
1910
	Constant6_1 = 0.0;
1911
	Constant60_1 = 0.0250;
1912
	Constant61_1 = 1.0;
1913
	Constant62_1 = 0.0250;
1914
	Constant63_1 = 1.0;
1915
	Constant64_1 = 0.0250;
1916
	Constant65_1 = 2288.231000000000222;
1917
	Constant66_1 = 5787.969000000000051;
1918
	Constant66_2 = 0.0;
1919
	Constant66_3 = -117.640000000000001;
1920
	Constant66_4 = 0.0;
1921
	Constant66_5 = 0.0;
1922
	Constant66_6 = 0.0;
1923
	Constant66_7 = 0.0;
1924
	Constant66_8 = 6928.930000000000291;
1925
	Constant66_9 = 0.0;
1926
	Constant66_10 = 0.0;
1927
	Constant66_11 = 0.0;
1928
	Constant66_12 = 0.0;
1929
	Constant66_13 = 117.640000000000001;
1930
	Constant66_14 = 0.0;
1931
	Constant66_15 = 11578.328999999999724;
1932
	Constant66_16 = 0.0;
1933
	Constant66_17 = 0.0;
1934
	Constant66_18 = 0.0;
1935
	Constant67_1 = 0.0;
1936
	Constant68_1 = -8500.0;
1937
	Constant68_2 = 0.0;
1938
	Constant68_3 = -2202.0;
1939
	Constant69_1 = 0.0;
1940
	Constant7_1 = 0.0;
1941
	Constant70_1 = 44.539999999999999;
1942
	Constant70_2 = 2.7140;
1943
	Constant70_3 = 5.8360;
1944
	Constant71_1 = 0.0;
1945
	Constant72_1 = 0.0;
1946
	Constant8_1 = 1.0;
1947
	Constant9_1 = 0.0250;
1948
	(Create3x3Matrix_1, Create3x3Matrix_2, Create3x3Matrix_3, Create3x3Matrix_4, Create3x3Matrix_5, Create3x3Matrix_6, Create3x3Matrix_7, Create3x3Matrix_8, Create3x3Matrix_9) = Create3x3Matrix_1180_019(Sum46_1, Gain43_1, Gain44_1, Gain45_1, Sum50_1, Gain46_1, Gain47_1, Gain48_1, Sum54_1, __time_step, __nb_step);
1949
	Demandlimits_1 = Demandlimits_1204_019(Demux_1, __time_step, __nb_step);
1950
	Demandlimits1_1 = Demandlimits1_1216_019(Demux_2, __time_step, __nb_step);
1951
	Demandlimits2_1 = Demandlimits2_1228_019(Demux_3, __time_step, __nb_step);
1952
	Demux_1 = Sum1_1;
1953
	Demux_2 = Sum1_2;
1954
	Demux_3 = Sum1_3;
1955
	Demux_4 = Sum1_4;
1956
	Demux1_1 = BusSelector3_2;
1957
	Demux1_2 = BusSelector3_3;
1958
	Demux1_3 = BusSelector3_4;
1959
	Demux10_1 = QuaternionNormalize_1;
1960
	Demux10_2 = QuaternionNormalize_2;
1961
	Demux10_3 = QuaternionNormalize_3;
1962
	Demux10_4 = QuaternionNormalize_4;
1963
	Demux11_1 = QuaternionNormalize_1;
1964
	Demux11_2 = QuaternionNormalize_2;
1965
	Demux11_3 = QuaternionNormalize_3;
1966
	Demux11_4 = QuaternionNormalize_4;
1967
	Demux12_1 = QuaternionNormalize_1;
1968
	Demux12_2 = QuaternionNormalize_2;
1969
	Demux12_3 = QuaternionNormalize_3;
1970
	Demux12_4 = QuaternionNormalize_4;
1971
	Demux13_1 = QuaternionNormalize_1;
1972
	Demux13_2 = QuaternionNormalize_2;
1973
	Demux13_3 = QuaternionNormalize_3;
1974
	Demux13_4 = QuaternionNormalize_4;
1975
	Demux14_1 = QuaternionNormalize_1;
1976
	Demux14_2 = QuaternionNormalize_2;
1977
	Demux14_3 = QuaternionNormalize_3;
1978
	Demux14_4 = QuaternionNormalize_4;
1979
	Demux15_1 = QuaternionNormalize_1;
1980
	Demux15_2 = QuaternionNormalize_2;
1981
	Demux15_3 = QuaternionNormalize_3;
1982
	Demux15_4 = QuaternionNormalize_4;
1983
	Demux16_1 = QuaternionNormalize_1;
1984
	Demux16_2 = QuaternionNormalize_2;
1985
	Demux16_3 = QuaternionNormalize_3;
1986
	Demux16_4 = QuaternionNormalize_4;
1987
	Demux17_1 = QuaternionNormalize_1;
1988
	Demux17_2 = QuaternionNormalize_2;
1989
	Demux17_3 = QuaternionNormalize_3;
1990
	Demux17_4 = QuaternionNormalize_4;
1991
	Demux18_1 = Saturation3_1;
1992
	Demux18_2 = Saturation3_2;
1993
	Demux18_3 = Saturation3_3;
1994
	Demux18_4 = Saturation3_4;
1995
	Demux19_1 = Saturation3_1;
1996
	Demux19_2 = Saturation3_2;
1997
	Demux19_3 = Saturation3_3;
1998
	Demux19_4 = Saturation3_4;
1999
	Demux2_1 = Mux10_1;
2000
	Demux2_2 = Mux10_2;
2001
	Demux2_3 = Mux10_3;
2002
	Demux20_1 = Switch14_1;
2003
	Demux20_2 = Switch14_2;
2004
	Demux20_3 = Switch14_3;
2005
	Demux21_1 = Reshape4_1;
2006
	Demux21_2 = Reshape4_2;
2007
	Demux21_3 = Reshape4_3;
2008
	Demux22_1 = Switch14_1;
2009
	Demux22_2 = Switch14_2;
2010
	Demux22_3 = Switch14_3;
2011
	Demux23_1 = Reshape4_1;
2012
	Demux23_2 = Reshape4_2;
2013
	Demux23_3 = Reshape4_3;
2014
	Demux24_1 = Switch18_1;
2015
	Demux24_2 = Switch18_2;
2016
	Demux24_3 = Switch18_3;
2017
	Demux25_1 = Switch14_1;
2018
	Demux25_2 = Switch14_2;
2019
	Demux25_3 = Switch14_3;
2020
	Demux26_1 = Switch18_1;
2021
	Demux26_2 = Switch18_2;
2022
	Demux26_3 = Switch18_3;
2023
	Demux27_1 = Switch14_1;
2024
	Demux27_2 = Switch14_2;
2025
	Demux27_3 = Switch14_3;
2026
	Demux28_1 = BusSelector10_4;
2027
	Demux28_2 = BusSelector10_5;
2028
	Demux28_3 = BusSelector10_6;
2029
	Demux29_1 = Sum65_1;
2030
	Demux29_2 = Sum65_2;
2031
	Demux29_3 = Sum65_3;
2032
	Demux3_1 = BusSelector6_1;
2033
	Demux3_2 = BusSelector6_2;
2034
	Demux30_1 = Sum65_1;
2035
	Demux30_2 = Sum65_2;
2036
	Demux30_3 = Sum65_3;
2037
	Demux31_1 = Sum65_1;
2038
	Demux31_2 = Sum65_2;
2039
	Demux31_3 = Sum65_3;
2040
	Demux4_1 = Sum41_1;
2041
	Demux4_2 = Sum41_2;
2042
	Demux4_3 = Sum41_3;
2043
	Demux4_4 = Sum41_4;
2044
	Demux4_5 = Sum41_5;
2045
	Demux4_6 = Sum41_6;
2046
	Demux5_1 = Product36_1;
2047
	Demux5_2 = Product36_2;
2048
	Demux5_3 = Product36_3;
2049
	Demux6_1 = CG_minus_CPTransformation_1;
2050
	Demux6_2 = CG_minus_CPTransformation_2;
2051
	Demux6_3 = CG_minus_CPTransformation_3;
2052
	Demux7_1 = Product36_1;
2053
	Demux7_2 = Product36_2;
2054
	Demux7_3 = Product36_3;
2055
	Demux8_1 = CG_minus_CPTransformation_1;
2056
	Demux8_2 = CG_minus_CPTransformation_2;
2057
	Demux8_3 = CG_minus_CPTransformation_3;
2058
	Demux9_1 = QuaternionNormalize_1;
2059
	Demux9_2 = QuaternionNormalize_2;
2060
	Demux9_3 = QuaternionNormalize_3;
2061
	Demux9_4 = QuaternionNormalize_4;
2062
	Divide_1 = 1.0 * Product32_1 / BusSelector4_1;
2063
	Divide1_1 = 1.0 * Divide_1 / BusSelector5_1;
2064
	Divide2_1 = 1.0 * Divide1_1 / BusSelector5_1;
2065
	Divide3_1 = 1.0 * Divide2_1 / BusSelector5_1;
2066
	DotProduct_1 = DotProduct_1278_019(Saturation3_1, Saturation3_2, Saturation3_3, Saturation3_4, Saturation3_1, Saturation3_2, Saturation3_3, Saturation3_4, __time_step, __nb_step);
2067
	(ForceTransformation_1, ForceTransformation_2, ForceTransformation_3) = ForceTransformation_1288_019(Vb_1, Product36_1, Product36_2, Product36_3, __time_step, __nb_step);
2068
	Gain_1 = (BusSelector1_1 * 0.002920);
2069
	Gain1_1 = (Selector2_1 * 0.0);
2070
	Gain10_1 = (Selector3_1 * -1.9210);
2071
	Gain11_1 = (Selector4_1 * -0.094470);
2072
	Gain12_1 = (Product16_1 * 1.1060);
2073
	Gain13_1 = (Selector4_1 * -1.3770);
2074
	Gain14_1 = (Product15_1 * -1.2610);
2075
	Gain15_1 = (Selector4_1 * 0.40720);
2076
	Gain16_1 = (Selector5_1 * 0.0069340);
2077
	Gain17_1 = (Selector5_1 * -0.082650);
2078
	Gain18_1 = (Product17_1 * 0.52380);
2079
	Gain19_1 = (Selector5_1 * 0.11580);
2080
	Gain2_1 = (Selector2_1 * -0.029560);
2081
	Gain20_1 = (Selector5_1 * 0.034120);
2082
	Gain21_1 = (Product25_1 * 5.4590);
2083
	Gain22_1 = (Product25_1 * -2.140);
2084
	Gain23_1 = (Product23_1 * 0.69210);
2085
	Gain24_1 = (Product22_1 * -5.1620);
2086
	Gain25_1 = (BusSelector1_2 * -0.76780);
2087
	Gain26_1 = (BusSelector1_1 * -5.5780);
2088
	Gain27_1 = (Product22_1 * 3.4420);
2089
	Gain28_1 = (BusSelector1_2 * -0.06180);
2090
	Gain29_1 = (BusSelector1_2 * 0.0067190);
2091
	Gain3_1 = (Selector2_1 * 0.0);
2092
	Gain30_1 = (Product24_1 * 0.13730);
2093
	Gain31_1 = (BusSelector1_1 * -0.60280);
2094
	Gain32_1 = (Product31_1 * -0.0030260);
2095
	Gain33_1 = (Sum34_1 * -0.078950);
2096
	Gain34_1 = (Product30_1 * -0.014060);
2097
	Gain35_1 = (Sum34_1 * -0.15630);
2098
	Gain36_1 = (Sum34_1 * 0.11610);
2099
	Gain37_1 = (Product28_1 * 0.14530);
2100
	Gain38_1 = (Sum36_1 * 0.73550);
2101
	Gain39_1 = (Product35_1 * 0.004120);
2102
	Gain4_1 = (Selector2_1 * -0.0038720);
2103
	Gain40_1 = (Demux2_1 * 0.09650);
2104
	Gain41_1 = (Demux2_3 * 0.81630);
2105
	Gain42_1 = (BusSelector4_2 * 2288.231000000000222);
2106
	Gain43_1 = (Sum47_1 * 2.0);
2107
	Gain44_1 = (Sum48_1 * 2.0);
2108
	Gain45_1 = (Sum49_1 * 2.0);
2109
	Gain46_1 = (Sum51_1 * 2.0);
2110
	Gain47_1 = (Sum52_1 * 2.0);
2111
	Gain48_1 = (Sum53_1 * 2.0);
2112
	Gain5_1 = (Selector2_1 * 0.0);
2113
	Gain6_1 = (Selector2_1 * -0.099170);
2114
	Gain7_1 = (Product12_1 * -0.082690);
2115
	Gain8_1 = (Selector3_1 * -0.3980);
2116
	Gain9_1 = (Product14_1 * -15.930);
2117
	Ground_1 = 0.0;
2118
	Hdot_1 = (Selector1_1 * -1.0);
2119
	HighGainQuaternionNormalization_1 = (Sum57_1 * 1.0);
2120
	I_1 = 0.0;
2121
	I_dot_1 = 0.0;
2122
	Incidence_1 = atan2(Demux29_3, Demux29_1);
2123
	InertialtoBody_1 = 0.0 + (Create3x3Matrix_1 * Mux13_1) + (Create3x3Matrix_4 * Mux13_2) + (Create3x3Matrix_7 * Mux13_3);
2124
	InertialtoBody_2 = 0.0 + (Create3x3Matrix_2 * Mux13_1) + (Create3x3Matrix_5 * Mux13_2) + (Create3x3Matrix_8 * Mux13_3);
2125
	InertialtoBody_3 = 0.0 + (Create3x3Matrix_3 * Mux13_1) + (Create3x3Matrix_6 * Mux13_2) + (Create3x3Matrix_9 * Mux13_3);
2126
	InitialEulerAngles_1 = 0.0;
2127
	InitialEulerAngles_2 = 0.13030;
2128
	InitialEulerAngles_3 = 1.97220;
2129
	Initialinputsforaero_1 = -0.031765697907092;
2130
	Initialinputsforaero_2 = -0.032021015966288;
2131
	Initialinputsforaero_3 = -0.036518036926441;
2132
	Initialinputsforaero_4 = 0.0;
2133
	(MomentTransformation_1, MomentTransformation_2, MomentTransformation_3) = MomentTransformation_1353_019(Vb_1, Sum43_1, Sum43_2, Sum43_3, __time_step, __nb_step);
2134
	Mux_1 = Saturation_1;
2135
	Mux_2 = Saturation1_1;
2136
	Mux_3 = Saturation2_1;
2137
	Mux_4 = Demux_4;
2138
	Mux1_1 = Gain1_1;
2139
	Mux1_2 = Gain2_1;
2140
	Mux1_3 = Gain3_1;
2141
	Mux1_4 = Sum19_1;
2142
	Mux1_5 = Gain5_1;
2143
	Mux1_6 = Gain4_1;
2144
	Mux10_1 = BusSelector6_1;
2145
	Mux10_2 = BusSelector6_2;
2146
	Mux10_3 = BusSelector4_1;
2147
	Mux11_1 = jxk_1;
2148
	Mux11_2 = kxi_1;
2149
	Mux11_3 = ixj_1;
2150
	Mux12_1 = kxj_1;
2151
	Mux12_2 = ixk_1;
2152
	Mux12_3 = jxi_1;
2153
	Mux13_1 = Constant54_1;
2154
	Mux13_2 = Constant54_1;
2155
	Mux13_3 = Gain42_1;
2156
	Mux14_1 = Product63_1;
2157
	Mux14_2 = Product64_1;
2158
	Mux14_3 = Product65_1;
2159
	Mux14_4 = Product66_1;
2160
	Mux15_1 = sincos_1;
2161
	Mux15_2 = sincos_2;
2162
	Mux15_3 = sincos_3;
2163
	Mux15_4 = sincos_4;
2164
	Mux15_5 = sincos_5;
2165
	Mux15_6 = sincos_6;
2166
	Mux16_1 = q0_1;
2167
	Mux16_2 = q1_1;
2168
	Mux16_3 = q2_1;
2169
	Mux16_4 = q3_1;
2170
	Mux17_1 = Switch14_1;
2171
	Mux17_2 = Switch14_2;
2172
	Mux17_3 = Switch14_3;
2173
	Mux17_4 = Saturation3_1;
2174
	Mux17_5 = Saturation3_2;
2175
	Mux17_6 = Saturation3_3;
2176
	Mux17_7 = Saturation3_4;
2177
	Mux17_8 = HighGainQuaternionNormalization_1;
2178
	Mux18_1 = q0dot_1;
2179
	Mux18_2 = q1dot_1;
2180
	Mux18_3 = q2dot_1;
2181
	Mux18_4 = q3dot_1;
2182
	Mux19_1 = jxk1_1;
2183
	Mux19_2 = kxi1_1;
2184
	Mux19_3 = ixj1_1;
2185
	Mux2_1 = Constant24_1;
2186
	Mux2_2 = Constant24_1;
2187
	Mux2_3 = Sum20_1;
2188
	Mux2_4 = Constant24_1;
2189
	Mux2_5 = Gain10_1;
2190
	Mux2_6 = Constant24_1;
2191
	Mux20_1 = kxj1_1;
2192
	Mux20_2 = ixk1_1;
2193
	Mux20_3 = jxi1_1;
2194
	Mux21_1 = jxk2_1;
2195
	Mux21_2 = kxi2_1;
2196
	Mux21_3 = ixj2_1;
2197
	Mux22_1 = kxj2_1;
2198
	Mux22_2 = ixk2_1;
2199
	Mux22_3 = jxi2_1;
2200
	Mux3_1 = Sum21_1;
2201
	Mux3_2 = Constant25_1;
2202
	Mux3_3 = Sum22_1;
2203
	Mux3_4 = Constant26_1;
2204
	Mux3_5 = Gain15_1;
2205
	Mux3_6 = Constant27_1;
2206
	Mux4_1 = Gain20_1;
2207
	Mux4_2 = Sum23_1;
2208
	Mux4_3 = Constant28_1;
2209
	Mux4_4 = Gain16_1;
2210
	Mux4_5 = Constant29_1;
2211
	Mux4_6 = Gain17_1;
2212
	Mux5_1 = Constant30_1;
2213
	Mux5_2 = Constant31_1;
2214
	Mux5_3 = Constant30_1;
2215
	Mux5_4 = Constant32_1;
2216
	Mux5_5 = Constant30_1;
2217
	Mux5_6 = Constant33_1;
2218
	Mux6_1 = Constant36_1;
2219
	Mux6_2 = Constant34_1;
2220
	Mux6_3 = Constant35_1;
2221
	Mux6_4 = Constant34_1;
2222
	Mux6_5 = Constant37_1;
2223
	Mux6_6 = Constant38_1;
2224
	Mux7_1 = Constant39_1;
2225
	Mux7_2 = Constant40_1;
2226
	Mux7_3 = Constant39_1;
2227
	Mux7_4 = Constant41_1;
2228
	Mux7_5 = Constant42_1;
2229
	Mux7_6 = Constant43_1;
2230
	Mux8_1 = Sum30_1;
2231
	Mux8_2 = Gain25_1;
2232
	Mux8_3 = Sum26_1;
2233
	Mux8_4 = Gain28_1;
2234
	Mux8_5 = Sum32_1;
2235
	Mux8_6 = Sum27_1;
2236
	Mux9_1 = Sum33_1;
2237
	Mux9_2 = Constant45_1;
2238
	Mux9_3 = Gain35_1;
2239
	Mux9_4 = Gain34_1;
2240
	Mux9_5 = Gain33_1;
2241
	Mux9_6 = Gain32_1;
2242
	Product_1 = 1.0 * Constant_1 * Constant1_1;
2243
	Product1_1 = 1.0 * Product_1 * Sum2_1;
2244
	Product10_1 = 1.0 * Constant18_1 * Constant19_1;
2245
	Product11_1 = 1.0 * Product10_1 * Switch8_1;
2246
	Product12_1 = 1.0 * Selector2_1 * BusSelector1_1;
2247
	Product13_1 = 1.0 * BusSelector1_2 * BusSelector1_2;
2248
	Product14_1 = 1.0 * Product13_1 * Selector3_1;
2249
	Product15_1 = 1.0 * Selector4_1 * BusSelector1_1;
2250
	Product16_1 = 1.0 * Selector4_1 * BusSelector1_1;
2251
	Product17_1 = 1.0 * Selector5_1 * BusSelector1_1;
2252
	Product18_1 = 1.0 * Mux5_1 * Demux1_1;
2253
	Product18_2 = 1.0 * Mux5_2 * Demux1_1;
2254
	Product18_3 = 1.0 * Mux5_3 * Demux1_1;
2255
	Product18_4 = 1.0 * Mux5_4 * Demux1_1;
2256
	Product18_5 = 1.0 * Mux5_5 * Demux1_1;
2257
	Product18_6 = 1.0 * Mux5_6 * Demux1_1;
2258
	Product19_1 = 1.0 * Mux6_1 * Demux1_2;
2259
	Product19_2 = 1.0 * Mux6_2 * Demux1_2;
2260
	Product19_3 = 1.0 * Mux6_3 * Demux1_2;
2261
	Product19_4 = 1.0 * Mux6_4 * Demux1_2;
2262
	Product19_5 = 1.0 * Mux6_5 * Demux1_2;
2263
	Product19_6 = 1.0 * Mux6_6 * Demux1_2;
2264
	Product2_1 = 1.0 * Constant2_1 * Constant3_1;
2265
	Product20_1 = 1.0 * Mux7_1 * Demux1_3;
2266
	Product20_2 = 1.0 * Mux7_2 * Demux1_3;
2267
	Product20_3 = 1.0 * Mux7_3 * Demux1_3;
2268
	Product20_4 = 1.0 * Mux7_4 * Demux1_3;
2269
	Product20_5 = 1.0 * Mux7_5 * Demux1_3;
2270
	Product20_6 = 1.0 * Mux7_6 * Demux1_3;
2271
	Product21_1 = 1.0 * Sum24_1 / BusSelector3_1;
2272
	Product21_2 = 1.0 * Sum24_2 / BusSelector3_1;
2273
	Product21_3 = 1.0 * Sum24_3 / BusSelector3_1;
2274
	Product21_4 = 1.0 * Sum24_4 / BusSelector3_1;
2275
	Product21_5 = 1.0 * Sum24_5 / BusSelector3_1;
2276
	Product21_6 = 1.0 * Sum24_6 / BusSelector3_1;
2277
	Product22_1 = 1.0 * Product25_1 * BusSelector1_1;
2278
	Product23_1 = 1.0 * BusSelector1_2 * BusSelector1_2;
2279
	Product24_1 = 1.0 * Product23_1 * BusSelector1_2;
2280
	Product25_1 = 1.0 * BusSelector1_1 * BusSelector1_1;
2281
	Product26_1 = 1.0 * Sum34_1 * Sum34_1;
2282
	Product27_1 = 1.0 * Sum34_1 * Sum34_1;
2283
	Product28_1 = 1.0 * Product26_1 * BusSelector5_2;
2284
	Product29_1 = 1.0 * BusSelector5_2 * BusSelector5_2;
2285
	Product3_1 = 1.0 * Product2_1 * Switch_1;
2286
	Product30_1 = 1.0 * Product29_1 * Sum34_1;
2287
	Product31_1 = 1.0 * Product27_1 * Sum34_1;
2288
	Product32_1 = 1.0 * Product33_1 * Gain38_1;
2289
	Product33_1 = 1.0 * Constant48_1 * Constant49_1;
2290
	Product34_1 = 1.0 * Sum37_1 * Sum38_1;
2291
	Product35_1 = 1.0 * Sum39_1 * Sum40_1;
2292
	Product36_1 = 1.0 * referencearea_1 * coefAdjust_1;
2293
	Product36_2 = 1.0 * referencearea_1 * coefAdjust_2;
2294
	Product36_3 = 1.0 * referencearea_1 * coefAdjust_3;
2295
	Product37_1 = 1.0 * Demux4_4 * referencelength_1;
2296
	Product37_2 = 1.0 * Demux4_5 * referencelength_2;
2297
	Product37_3 = 1.0 * Demux4_6 * referencelength_3;
2298
	Product38_1 = 1.0 * Sum_1 / Constant65_1;
2299
	Product38_2 = 1.0 * Sum_2 / Constant65_1;
2300
	Product38_3 = 1.0 * Sum_3 / Constant65_1;
2301
	Product39_1 = 1.0 * Demux9_4 * Demux9_4;
2302
	Product4_1 = 1.0 * Constant8_1 * Constant9_1;
2303
	Product40_1 = 1.0 * Demux9_3 * Demux9_3;
2304
	Product41_1 = 1.0 * Demux9_2 * Demux9_2;
2305
	Product42_1 = 1.0 * Demux9_1 * Demux9_1;
2306
	Product43_1 = 1.0 * Demux10_2 * Demux10_3;
2307
	Product44_1 = 1.0 * Demux10_4 * Demux10_1;
2308
	Product45_1 = 1.0 * Demux11_1 * Demux11_3;
2309
	Product46_1 = 1.0 * Demux11_2 * Demux11_4;
2310
	Product47_1 = 1.0 * Demux12_2 * Demux12_3;
2311
	Product48_1 = 1.0 * Demux12_4 * Demux12_1;
2312
	Product49_1 = 1.0 * Demux13_4 * Demux13_4;
2313
	Product5_1 = 1.0 * Product4_1 * Sum6_1;
2314
	Product50_1 = 1.0 * Demux13_3 * Demux13_3;
2315
	Product51_1 = 1.0 * Demux13_2 * Demux13_2;
2316
	Product52_1 = 1.0 * Demux13_1 * Demux13_1;
2317
	Product53_1 = 1.0 * Demux14_1 * Demux14_2;
2318
	Product54_1 = 1.0 * Demux14_3 * Demux14_4;
2319
	Product55_1 = 1.0 * Demux15_1 * Demux15_3;
2320
	Product56_1 = 1.0 * Demux15_2 * Demux15_4;
2321
	Product57_1 = 1.0 * Demux16_1 * Demux16_2;
2322
	Product58_1 = 1.0 * Demux16_3 * Demux16_4;
2323
	Product59_1 = 1.0 * Demux17_4 * Demux17_4;
2324
	Product6_1 = 1.0 * Constant10_1 * Constant11_1;
2325
	Product60_1 = 1.0 * Demux17_3 * Demux17_3;
2326
	Product61_1 = 1.0 * Demux17_2 * Demux17_2;
2327
	Product62_1 = 1.0 * Demux17_1 * Demux17_1;
2328
	Product63_1 = 1.0 * Demux18_1 / sqrt_1;
2329
	Product64_1 = 1.0 * Demux18_2 / sqrt_1;
2330
	Product65_1 = 1.0 * Demux18_3 / sqrt_1;
2331
	Product66_1 = 1.0 * Demux18_4 / sqrt_1;
2332
	Product67_1 = 1.0 * Demux19_1 * Demux19_1;
2333
	Product68_1 = 1.0 * Demux19_2 * Demux19_2;
2334
	Product69_1 = 1.0 * Demux19_3 * Demux19_3;
2335
	Product7_1 = 1.0 * Product6_1 * Switch4_1;
2336
	Product70_1 = 1.0 * Demux19_4 * Demux19_4;
2337
	Product71_1 = 1.0 * Constant55_1 * Constant56_1;
2338
	Product72_1 = 1.0 * Product71_1 * Mux18_1;
2339
	Product72_2 = 1.0 * Product71_1 * Mux18_2;
2340
	Product72_3 = 1.0 * Product71_1 * Mux18_3;
2341
	Product72_4 = 1.0 * Product71_1 * Mux18_4;
2342
	(Selector9_1_inv_1455_019, Selector9_2_inv_1455_019, Selector9_3_inv_1455_019, Selector9_4_inv_1455_019, Selector9_5_inv_1455_019, Selector9_6_inv_1455_019, Selector9_7_inv_1455_019, Selector9_8_inv_1455_019, Selector9_9_inv_1455_019) = _inv_M_3x3(Selector9_1, Selector9_2, Selector9_3, Selector9_4, Selector9_5, Selector9_6, Selector9_7, Selector9_8, Selector9_9);
2343
	Product73_1 = 0.0 + (Reshape2_1 * Selector9_1_inv_1455_019) + (Reshape2_2 * Selector9_2_inv_1455_019) + (Reshape2_3 * Selector9_3_inv_1455_019);
2344
	Product73_2 = 0.0 + (Reshape2_1 * Selector9_4_inv_1455_019) + (Reshape2_2 * Selector9_5_inv_1455_019) + (Reshape2_3 * Selector9_6_inv_1455_019);
2345
	Product73_3 = 0.0 + (Reshape2_1 * Selector9_7_inv_1455_019) + (Reshape2_2 * Selector9_8_inv_1455_019) + (Reshape2_3 * Selector9_9_inv_1455_019);
2346
	Product74_1 = 0.0 + (Selector7_1 * Reshape3_1) + (Selector7_4 * Reshape3_2) + (Selector7_7 * Reshape3_3);
2347
	Product74_2 = 0.0 + (Selector7_2 * Reshape3_1) + (Selector7_5 * Reshape3_2) + (Selector7_8 * Reshape3_3);
2348
	Product74_3 = 0.0 + (Selector7_3 * Reshape3_1) + (Selector7_6 * Reshape3_2) + (Selector7_9 * Reshape3_3);
2349
	Product75_1 = 0.0 + (Selector8_1 * Reshape5_1) + (Selector8_4 * Reshape5_2) + (Selector8_7 * Reshape5_3);
2350
	Product75_2 = 0.0 + (Selector8_2 * Reshape5_1) + (Selector8_5 * Reshape5_2) + (Selector8_8 * Reshape5_3);
2351
	Product75_3 = 0.0 + (Selector8_3 * Reshape5_1) + (Selector8_6 * Reshape5_2) + (Selector8_9 * Reshape5_3);
2352
	Product76_1 = 1.0 * Constant59_1 * Constant60_1;
2353
	Product77_1 = 1.0 * Product76_1 * Reshape_1;
2354
	Product77_2 = 1.0 * Product76_1 * Reshape_2;
2355
	Product77_3 = 1.0 * Product76_1 * Reshape_3;
2356
	Product78_1 = 1.0 * Constant61_1 * Constant62_1;
2357
	Product79_1 = 1.0 * Product78_1 * Reshape8_1;
2358
	Product79_2 = 1.0 * Product78_1 * Reshape8_2;
2359
	Product79_3 = 1.0 * Product78_1 * Reshape8_3;
2360
	Product8_1 = 1.0 * Constant16_1 * Constant17_1;
2361
	Product80_1 = 1.0 * Constant63_1 * Constant64_1;
2362
	Product81_1 = 1.0 * Product80_1 * Sum45_1;
2363
	Product81_2 = 1.0 * Product80_1 * Sum45_2;
2364
	Product81_3 = 1.0 * Product80_1 * Sum45_3;
2365
	Product82_1 = 0.0 + (Transpose_1 * Reshape7_1) + (Transpose_4 * Reshape7_2) + (Transpose_7 * Reshape7_3);
2366
	Product82_2 = 0.0 + (Transpose_2 * Reshape7_1) + (Transpose_5 * Reshape7_2) + (Transpose_8 * Reshape7_3);
2367
	Product82_3 = 0.0 + (Transpose_3 * Reshape7_1) + (Transpose_6 * Reshape7_2) + (Transpose_9 * Reshape7_3);
2368
	Product83_1 = 1.0 * Sum66_1 * BusSelector8_1;
2369
	Product84_1 = 1.0 * Demux28_1 * Demux28_1;
2370
	Product85_1 = 1.0 * Demux28_2 * Demux28_2;
2371
	Product86_1 = 1.0 * Demux28_3 * Demux28_3;
2372
	Product87_1 = 1.0 * Demux30_2 / Airspeed_1;
2373
	Product88_1 = 1.0 * Demux31_1 * Demux31_1;
2374
	Product89_1 = 1.0 * Demux31_2 * Demux31_2;
2375
	Product9_1 = 1.0 * Product8_1 * Sum10_1;
2376
	Product90_1 = 1.0 * Demux31_3 * Demux31_3;
2377
	(QuaternionNormalize_1, QuaternionNormalize_2, QuaternionNormalize_3, QuaternionNormalize_4) = QuaternionNormalize_1475_019(Saturation3_1, Saturation3_2, Saturation3_3, Saturation3_4, __time_step, __nb_step);
2378
	ReferenceLength_1 = (Product19_1 * 1.58750);
2379
	ReferenceLength_2 = (Product19_2 * 1.58750);
2380
	ReferenceLength_3 = (Product19_3 * 1.58750);
2381
	ReferenceLength_4 = (Product19_4 * 1.58750);
2382
	ReferenceLength_5 = (Product19_5 * 1.58750);
2383
	ReferenceLength_6 = (Product19_6 * 1.58750);
2384
	ReferenceSpan_1 = (Product18_1 * 7.3150);
2385
	ReferenceSpan_2 = (Product18_2 * 7.3150);
2386
	ReferenceSpan_3 = (Product18_3 * 7.3150);
2387
	ReferenceSpan_4 = (Product18_4 * 7.3150);
2388
	ReferenceSpan_5 = (Product18_5 * 7.3150);
2389
	ReferenceSpan_6 = (Product18_6 * 7.3150);
2390
	ReferenceSpan__1 = (Product20_1 * 7.3150);
2391
	ReferenceSpan__2 = (Product20_2 * 7.3150);
2392
	ReferenceSpan__3 = (Product20_3 * 7.3150);
2393
	ReferenceSpan__4 = (Product20_4 * 7.3150);
2394
	ReferenceSpan__5 = (Product20_5 * 7.3150);
2395
	ReferenceSpan__6 = (Product20_6 * 7.3150);
2396
	Reshape_1 = Product73_1;
2397
	Reshape_2 = Product73_2;
2398
	Reshape_3 = Product73_3;
2399
	Reshape1_1 = InertialtoBody_1;
2400
	Reshape1_2 = InertialtoBody_2;
2401
	Reshape1_3 = InertialtoBody_3;
2402
	Reshape2_1 = Sum58_1;
2403
	Reshape2_2 = Sum58_2;
2404
	Reshape2_3 = Sum58_3;
2405
	Reshape3_1 = Switch14_1;
2406
	Reshape3_2 = Switch14_2;
2407
	Reshape3_3 = Switch14_3;
2408
	Reshape4_1 = Product74_1;
2409
	Reshape4_2 = Product74_2;
2410
	Reshape4_3 = Product74_3;
2411
	Reshape5_1 = Switch14_1;
2412
	Reshape5_2 = Switch14_2;
2413
	Reshape5_3 = Switch14_3;
2414
	Reshape6_1 = Product75_1;
2415
	Reshape6_2 = Product75_2;
2416
	Reshape6_3 = Product75_3;
2417
	Reshape7_1 = Switch18_1;
2418
	Reshape7_2 = Switch18_2;
2419
	Reshape7_3 = Switch18_3;
2420
	Reshape8_1 = Product82_1;
2421
	Reshape8_2 = Product82_2;
2422
	Reshape8_3 = Product82_3;
2423
	Saturation_1 = Saturation_2061_007(Switch2_1, __time_step, __nb_step);
2424
	Saturation1_1 = Saturation1_2073_007(Switch6_1, __time_step, __nb_step);
2425
	Saturation2_1 = Saturation2_2085_007(Switch10_1, __time_step, __nb_step);
2426
	(Saturation3_1, Saturation3_2, Saturation3_3, Saturation3_4) = Saturation3_2097_007(Switch12_1, Switch12_2, Switch12_3, Switch12_4, __time_step, __nb_step);
2427
	Selector_1 = VectorConcatenate_3;
2428
	Selector_2 = VectorConcatenate_2;
2429
	Selector_3 = VectorConcatenate_1;
2430
	Selector1_1 = Reshape8_3;
2431
	Selector2_1 = Mux_2;
2432
	Selector3_1 = Mux_1;
2433
	Selector4_1 = Mux_4;
2434
	Selector5_1 = Mux_3;
2435
	Selector6_1 = InitialEulerAngles_3;
2436
	Selector6_2 = InitialEulerAngles_2;
2437
	Selector6_3 = InitialEulerAngles_1;
2438
	Selector7_1 = Constant66_1;
2439
	Selector7_2 = Constant66_2;
2440
	Selector7_3 = Constant66_3;
2441
	Selector7_4 = Constant66_7;
2442
	Selector7_5 = Constant66_8;
2443
	Selector7_6 = Constant66_9;
2444
	Selector7_7 = Constant66_13;
2445
	Selector7_8 = Constant66_14;
2446
	Selector7_9 = Constant66_15;
2447
	Selector8_1 = Constant66_4;
2448
	Selector8_2 = Constant66_5;
2449
	Selector8_3 = Constant66_6;
2450
	Selector8_4 = Constant66_10;
2451
	Selector8_5 = Constant66_11;
2452
	Selector8_6 = Constant66_12;
2453
	Selector8_7 = Constant66_16;
2454
	Selector8_8 = Constant66_17;
2455
	Selector8_9 = Constant66_18;
2456
	Selector9_1 = Constant66_1;
2457
	Selector9_2 = Constant66_2;
2458
	Selector9_3 = Constant66_3;
2459
	Selector9_4 = Constant66_7;
2460
	Selector9_5 = Constant66_8;
2461
	Selector9_6 = Constant66_9;
2462
	Selector9_7 = Constant66_13;
2463
	Selector9_8 = Constant66_14;
2464
	Selector9_9 = Constant66_15;
2465
	Sideslip_1 = asin(Product87_1);
2466
	Sum_1 = 0.0 + ForceTransformation_1 + Reshape1_1;
2467
	Sum_2 = 0.0 + ForceTransformation_2 + Reshape1_2;
2468
	Sum_3 = 0.0 + ForceTransformation_3 + Reshape1_3;
2469
	Sum1_1 = 0.0 + Initialinputsforaero_1 + BusSelector2_1;
2470
	Sum1_2 = 0.0 + Initialinputsforaero_2 + BusSelector2_2;
2471
	Sum1_3 = 0.0 + Initialinputsforaero_3 + BusSelector2_3;
2472
	Sum1_4 = 0.0 + Initialinputsforaero_4 + BusSelector2_4;
2473
	Sum10_1 = 0.0 + wn_3_1 - x2_mult_zeta_mult_wn2_1;
2474
	Sum11_1 = 0.0 + Demandlimits2_1 - Saturation2_1;
2475
	Sum12_1 = 0.0 + Product9_1 + Switch8_1;
2476
	Sum13_1 = 0.0 + Product11_1 + Saturation2_1;
2477
	Sum14_1 = 0.0 + Sum15_1 + Product21_1;
2478
	Sum14_2 = 0.0 + Sum15_2 + Product21_2;
2479
	Sum14_3 = 0.0 + Sum15_3 + Product21_3;
2480
	Sum14_4 = 0.0 + Sum15_4 + Product21_4;
2481
	Sum14_5 = 0.0 + Sum15_5 + Product21_5;
2482
	Sum14_6 = 0.0 + Sum15_6 + Product21_6;
2483
	Sum15_1 = 0.0 + Sum28_1 + Sum18_1;
2484
	Sum15_2 = 0.0 + Sum28_2 + Sum18_2;
2485
	Sum15_3 = 0.0 + Sum28_3 + Sum18_3;
2486
	Sum15_4 = 0.0 + Sum28_4 + Sum18_4;
2487
	Sum15_5 = 0.0 + Sum28_5 + Sum18_5;
2488
	Sum15_6 = 0.0 + Sum28_6 + Sum18_6;
2489
	Sum16_1 = 0.0 + Mux1_1 + Mux2_1;
2490
	Sum16_2 = 0.0 + Mux1_2 + Mux2_2;
2491
	Sum16_3 = 0.0 + Mux1_3 + Mux2_3;
2492
	Sum16_4 = 0.0 + Mux1_4 + Mux2_4;
2493
	Sum16_5 = 0.0 + Mux1_5 + Mux2_5;
2494
	Sum16_6 = 0.0 + Mux1_6 + Mux2_6;
2495
	Sum17_1 = 0.0 + Sum16_1 + Mux4_1;
2496
	Sum17_2 = 0.0 + Sum16_2 + Mux4_2;
2497
	Sum17_3 = 0.0 + Sum16_3 + Mux4_3;
2498
	Sum17_4 = 0.0 + Sum16_4 + Mux4_4;
2499
	Sum17_5 = 0.0 + Sum16_5 + Mux4_5;
2500
	Sum17_6 = 0.0 + Sum16_6 + Mux4_6;
2501
	Sum18_1 = 0.0 + Sum17_1 + Mux3_1;
2502
	Sum18_2 = 0.0 + Sum17_2 + Mux3_2;
2503
	Sum18_3 = 0.0 + Sum17_3 + Mux3_3;
2504
	Sum18_4 = 0.0 + Sum17_4 + Mux3_4;
2505
	Sum18_5 = 0.0 + Sum17_5 + Mux3_5;
2506
	Sum18_6 = 0.0 + Sum17_6 + Mux3_6;
2507
	Sum19_1 = 0.0 + Gain6_1 + Gain7_1;
2508
	Sum2_1 = 0.0 + wn_2_1 - x2_mult_zeta_mult_wn_1;
2509
	Sum20_1 = 0.0 + Gain9_1 + Gain8_1;
2510
	Sum21_1 = 0.0 + Gain11_1 + Gain12_1;
2511
	Sum22_1 = 0.0 + Gain13_1 + Gain14_1;
2512
	Sum23_1 = 0.0 + Gain19_1 + Gain18_1;
2513
	Sum24_1 = 0.0 + Sum25_1 + ReferenceSpan__1;
2514
	Sum24_2 = 0.0 + Sum25_2 + ReferenceSpan__2;
2515
	Sum24_3 = 0.0 + Sum25_3 + ReferenceSpan__3;
2516
	Sum24_4 = 0.0 + Sum25_4 + ReferenceSpan__4;
2517
	Sum24_5 = 0.0 + Sum25_5 + ReferenceSpan__5;
2518
	Sum24_6 = 0.0 + Sum25_6 + ReferenceSpan__6;
2519
	Sum25_1 = 0.0 + ReferenceSpan_1 + ReferenceLength_1;
2520
	Sum25_2 = 0.0 + ReferenceSpan_2 + ReferenceLength_2;
2521
	Sum25_3 = 0.0 + ReferenceSpan_3 + ReferenceLength_3;
2522
	Sum25_4 = 0.0 + ReferenceSpan_4 + ReferenceLength_4;
2523
	Sum25_5 = 0.0 + ReferenceSpan_5 + ReferenceLength_5;
2524
	Sum25_6 = 0.0 + ReferenceSpan_6 + ReferenceLength_6;
2525
	Sum26_1 = 0.0 + Gain27_1 + Gain26_1;
2526
	Sum27_1 = 0.0 + Gain29_1 + Gain30_1;
2527
	Sum28_1 = 0.0 + Mux8_1 + Constant44_1;
2528
	Sum28_2 = 0.0 + Mux8_2 + Constant44_2;
2529
	Sum28_3 = 0.0 + Mux8_3 + Constant44_3;
2530
	Sum28_4 = 0.0 + Mux8_4 + Constant44_4;
2531
	Sum28_5 = 0.0 + Mux8_5 + Constant44_5;
2532
	Sum28_6 = 0.0 + Mux8_6 + Constant44_6;
2533
	Sum29_1 = 0.0 + Gain21_1 + Gain24_1;
2534
	Sum3_1 = 0.0 + Demandlimits_1 - Saturation_1;
2535
	Sum30_1 = 0.0 + Gain_1 + Sum29_1;
2536
	Sum31_1 = 0.0 + Gain22_1 + Gain23_1;
2537
	Sum32_1 = 0.0 + Gain31_1 + Sum31_1;
2538
	Sum33_1 = 0.0 + Gain36_1 + Gain37_1;
2539
	Sum34_1 = 0.0 + Divide3_1 + Constant46_1;
2540
	Sum35_1 = 0.0 + Gain39_1 + Product34_1;
2541
	Sum36_1 = 0.0 - Constant47_1 + Sum35_1;
2542
	Sum37_1 = 0.0 + Constant50_1 - Gain40_1;
2543
	Sum38_1 = 0.0 + Constant51_1 - Gain41_1;
2544
	Sum39_1 = 0.0 + Constant52_1 + Demux3_1;
2545
	Sum4_1 = 0.0 + Product1_1 + Switch_1;
2546
	Sum40_1 = 0.0 + Demux3_2 + Constant53_1;
2547
	Sum41_1 = 0.0 + Mux9_1 + Sum14_1;
2548
	Sum41_2 = 0.0 + Mux9_2 + Sum14_2;
2549
	Sum41_3 = 0.0 + Mux9_3 + Sum14_3;
2550
	Sum41_4 = 0.0 + Mux9_4 + Sum14_4;
2551
	Sum41_5 = 0.0 + Mux9_5 + Sum14_5;
2552
	Sum41_6 = 0.0 + Mux9_6 + Sum14_6;
2553
	Sum42_1 = 0.0 + neglectcenterofgravityandcenterofpressureeffects_1 - neglectcenterofgravityandcenterofpressureeffects_1;
2554
	Sum42_2 = 0.0 + neglectcenterofgravityandcenterofpressureeffects_2 - neglectcenterofgravityandcenterofpressureeffects_2;
2555
	Sum42_3 = 0.0 + neglectcenterofgravityandcenterofpressureeffects_3 - neglectcenterofgravityandcenterofpressureeffects_3;
2556
	Sum43_1 = 0.0 + Sum44_1 + Product37_1;
2557
	Sum43_2 = 0.0 + Sum44_2 + Product37_2;
2558
	Sum43_3 = 0.0 + Sum44_3 + Product37_3;
2559
	Sum44_1 = 0.0 + Mux11_1 - Mux12_1;
2560
	Sum44_2 = 0.0 + Mux11_2 - Mux12_2;
2561
	Sum44_3 = 0.0 + Mux11_3 - Mux12_3;
2562
	Sum45_1 = 0.0 + Product38_1 + Sum63_1;
2563
	Sum45_2 = 0.0 + Product38_2 + Sum63_2;
2564
	Sum45_3 = 0.0 + Product38_3 + Sum63_3;
2565
	Sum46_1 = 0.0 + Product42_1 + Product41_1 - Product40_1 - Product39_1;
2566
	Sum47_1 = 0.0 + Product44_1 + Product43_1;
2567
	Sum48_1 = 0.0 - Product45_1 + Product46_1;
2568
	Sum49_1 = 0.0 - Product48_1 + Product47_1;
2569
	Sum5_1 = 0.0 + Product3_1 + Saturation_1;
2570
	Sum50_1 = 0.0 + Product52_1 - Product51_1 + Product50_1 - Product49_1;
2571
	Sum51_1 = 0.0 + Product53_1 + Product54_1;
2572
	Sum52_1 = 0.0 + Product55_1 + Product56_1;
2573
	Sum53_1 = 0.0 - Product57_1 + Product58_1;
2574
	Sum54_1 = 0.0 + Product62_1 - Product61_1 - Product60_1 + Product59_1;
2575
	Sum55_1 = 0.0 + Product67_1 + Product68_1 + Product69_1 + Product70_1;
2576
	Sum56_1 = 0.0 + Product72_1 + Saturation3_1;
2577
	Sum56_2 = 0.0 + Product72_2 + Saturation3_2;
2578
	Sum56_3 = 0.0 + Product72_3 + Saturation3_3;
2579
	Sum56_4 = 0.0 + Product72_4 + Saturation3_4;
2580
	Sum57_1 = 0.0 + Constant58_1 - DotProduct_1;
2581
	Sum58_1 = 0.0 + MomentTransformation_1 - Reshape6_1 - Sum59_1;
2582
	Sum58_2 = 0.0 + MomentTransformation_2 - Reshape6_2 - Sum59_2;
2583
	Sum58_3 = 0.0 + MomentTransformation_3 - Reshape6_3 - Sum59_3;
2584
	Sum59_1 = 0.0 + Mux19_1 - Mux20_1;
2585
	Sum59_2 = 0.0 + Mux19_2 - Mux20_2;
2586
	Sum59_3 = 0.0 + Mux19_3 - Mux20_3;
2587
	Sum6_1 = 0.0 + wn_1_1 - x2_mult_zeta_mult_wn1_1;
2588
	Sum60_1 = 0.0 + Product77_1 + Switch14_1;
2589
	Sum60_2 = 0.0 + Product77_2 + Switch14_2;
2590
	Sum60_3 = 0.0 + Product77_3 + Switch14_3;
2591
	Sum61_1 = 0.0 + Product79_1 + Switch16_1;
2592
	Sum61_2 = 0.0 + Product79_2 + Switch16_2;
2593
	Sum61_3 = 0.0 + Product79_3 + Switch16_3;
2594
	Sum62_1 = 0.0 + Product81_1 + Switch18_1;
2595
	Sum62_2 = 0.0 + Product81_2 + Switch18_2;
2596
	Sum62_3 = 0.0 + Product81_3 + Switch18_3;
2597
	Sum63_1 = 0.0 + Mux21_1 - Mux22_1;
2598
	Sum63_2 = 0.0 + Mux21_2 - Mux22_2;
2599
	Sum63_3 = 0.0 + Mux21_3 - Mux22_3;
2600
	Sum64_1 = 0.0 + BusSelector11_4 + BusSelector10_1;
2601
	Sum64_2 = 0.0 + BusSelector11_5 + BusSelector10_2;
2602
	Sum64_3 = 0.0 + BusSelector11_6 + BusSelector10_3;
2603
	Sum65_1 = 0.0 + BusSelector9_1 - BusSelector11_1;
2604
	Sum65_2 = 0.0 + BusSelector9_2 - BusSelector11_2;
2605
	Sum65_3 = 0.0 + BusSelector9_3 - BusSelector11_3;
2606
	Sum66_1 = 0.0 + Product84_1 + Product85_1 + Product86_1;
2607
	Sum67_1 = 0.0 + Product88_1 + Product89_1 + Product90_1;
2608
	Sum7_1 = 0.0 + Demandlimits1_1 - Saturation1_1;
2609
	Sum8_1 = 0.0 + Product5_1 + Switch4_1;
2610
	Sum9_1 = 0.0 + Product7_1 + Saturation1_1;
2611
	Switch_1 = if (UnitDelay1_1 <> 0.0) then
2612
		Constant7_1
2613
	    else X_1;
2614
	Switch1_1 = if (UnitDelay1_1 <> 0.0) then
2615
		Constant7_1
2616
	    else Sum4_1;
2617
	Switch10_1 = if (UnitDelay4_1 <> 0.0) then
2618
		Constant21_1
2619
	    else X5_1;
2620
	Switch11_1 = if (UnitDelay4_1 <> 0.0) then
2621
		Constant21_1
2622
	    else Sum13_1;
2623
	Switch12_1 = if (UnitDelay6_1 <> 0.0) then
2624
		Mux16_1
2625
	    else X6_1;
2626
	Switch12_2 = if (UnitDelay6_1 <> 0.0) then
2627
		Mux16_2
2628
	    else X6_2;
2629
	Switch12_3 = if (UnitDelay6_1 <> 0.0) then
2630
		Mux16_3
2631
	    else X6_3;
2632
	Switch12_4 = if (UnitDelay6_1 <> 0.0) then
2633
		Mux16_4
2634
	    else X6_4;
2635
	Switch13_1 = if (UnitDelay6_1 <> 0.0) then
2636
		Mux16_1
2637
	    else Sum56_1;
2638
	Switch13_2 = if (UnitDelay6_1 <> 0.0) then
2639
		Mux16_2
2640
	    else Sum56_2;
2641
	Switch13_3 = if (UnitDelay6_1 <> 0.0) then
2642
		Mux16_3
2643
	    else Sum56_3;
2644
	Switch13_4 = if (UnitDelay6_1 <> 0.0) then
2645
		Mux16_4
2646
	    else Sum56_4;
2647
	Switch14_1 = if (UnitDelay9_1 <> 0.0) then
2648
		Constant72_1
2649
	    else X7_1;
2650
	Switch14_2 = if (UnitDelay9_1 <> 0.0) then
2651
		Constant72_1
2652
	    else X7_2;
2653
	Switch14_3 = if (UnitDelay9_1 <> 0.0) then
2654
		Constant72_1
2655
	    else X7_3;
2656
	Switch15_1 = if (UnitDelay9_1 <> 0.0) then
2657
		Constant72_1
2658
	    else Sum60_1;
2659
	Switch15_2 = if (UnitDelay9_1 <> 0.0) then
2660
		Constant72_1
2661
	    else Sum60_2;
2662
	Switch15_3 = if (UnitDelay9_1 <> 0.0) then
2663
		Constant72_1
2664
	    else Sum60_3;
2665
	Switch16_1 = if (UnitDelay7_1 <> 0.0) then
2666
		Constant68_1
2667
	    else X8_1;
2668
	Switch16_2 = if (UnitDelay7_1 <> 0.0) then
2669
		Constant68_2
2670
	    else X8_2;
2671
	Switch16_3 = if (UnitDelay7_1 <> 0.0) then
2672
		Constant68_3
2673
	    else X8_3;
2674
	Switch17_1 = if (UnitDelay7_1 <> 0.0) then
2675
		Constant68_1
2676
	    else Sum61_1;
2677
	Switch17_2 = if (UnitDelay7_1 <> 0.0) then
2678
		Constant68_2
2679
	    else Sum61_2;
2680
	Switch17_3 = if (UnitDelay7_1 <> 0.0) then
2681
		Constant68_3
2682
	    else Sum61_3;
2683
	Switch18_1 = if (UnitDelay8_1 <> 0.0) then
2684
		Constant70_1
2685
	    else X9_1;
2686
	Switch18_2 = if (UnitDelay8_1 <> 0.0) then
2687
		Constant70_2
2688
	    else X9_2;
2689
	Switch18_3 = if (UnitDelay8_1 <> 0.0) then
2690
		Constant70_3
2691
	    else X9_3;
2692
	Switch19_1 = if (UnitDelay8_1 <> 0.0) then
2693
		Constant70_1
2694
	    else Sum62_1;
2695
	Switch19_2 = if (UnitDelay8_1 <> 0.0) then
2696
		Constant70_2
2697
	    else Sum62_2;
2698
	Switch19_3 = if (UnitDelay8_1 <> 0.0) then
2699
		Constant70_3
2700
	    else Sum62_3;
2701
	Switch2_1 = if (UnitDelay_1 <> 0.0) then
2702
		Constant5_1
2703
	    else X1_1;
2704
	Switch3_1 = if (UnitDelay_1 <> 0.0) then
2705
		Constant5_1
2706
	    else Sum5_1;
2707
	Switch4_1 = if (UnitDelay3_1 <> 0.0) then
2708
		Constant15_1
2709
	    else X2_1;
2710
	Switch5_1 = if (UnitDelay3_1 <> 0.0) then
2711
		Constant15_1
2712
	    else Sum8_1;
2713
	Switch6_1 = if (UnitDelay2_1 <> 0.0) then
2714
		Constant13_1
2715
	    else X3_1;
2716
	Switch7_1 = if (UnitDelay2_1 <> 0.0) then
2717
		Constant13_1
2718
	    else Sum9_1;
2719
	Switch8_1 = if (UnitDelay5_1 <> 0.0) then
2720
		Constant23_1
2721
	    else X4_1;
2722
	Switch9_1 = if (UnitDelay5_1 <> 0.0) then
2723
		Constant23_1
2724
	    else Sum12_1;
2725
	Transpose_1 = Create3x3Matrix_1;
2726
	Transpose_2 = Create3x3Matrix_4;
2727
	Transpose_3 = Create3x3Matrix_7;
2728
	Transpose_4 = Create3x3Matrix_2;
2729
	Transpose_5 = Create3x3Matrix_5;
2730
	Transpose_6 = Create3x3Matrix_8;
2731
	Transpose_7 = Create3x3Matrix_3;
2732
	Transpose_8 = Create3x3Matrix_6;
2733
	Transpose_9 = Create3x3Matrix_9;
2734
	TrigonometricFunction1_1 = atan2(fcn1_1, fcn2_1);
2735
	TrigonometricFunction3_1 = atan2(fcn4_1, fcn5_1);
2736
	UnitDelay_1 = (1.0 -> (pre Constant4_1));
2737
	UnitDelay1_1 = (1.0 -> (pre Constant6_1));
2738
	UnitDelay2_1 = (1.0 -> (pre Constant12_1));
2739
	UnitDelay3_1 = (1.0 -> (pre Constant14_1));
2740
	UnitDelay4_1 = (1.0 -> (pre Constant20_1));
2741
	UnitDelay5_1 = (1.0 -> (pre Constant22_1));
2742
	UnitDelay6_1 = (1.0 -> (pre Constant57_1));
2743
	UnitDelay7_1 = (1.0 -> (pre Constant67_1));
2744
	UnitDelay8_1 = (1.0 -> (pre Constant69_1));
2745
	UnitDelay9_1 = (1.0 -> (pre Constant71_1));
2746
	Vb_1 = 0.0;
2747
	VectorConcatenate_1 = TrigonometricFunction1_1;
2748
	VectorConcatenate_2 = trigFcn_1;
2749
	VectorConcatenate_3 = TrigonometricFunction3_1;
2750
	X_1 = (0.0 -> (pre Switch1_1));
2751
	X1_1 = (0.0 -> (pre Switch3_1));
2752
	X2_1 = (0.0 -> (pre Switch5_1));
2753
	X3_1 = (0.0 -> (pre Switch7_1));
2754
	X4_1 = (0.0 -> (pre Switch9_1));
2755
	X5_1 = (0.0 -> (pre Switch11_1));
2756
	X6_1 = (0.0 -> (pre Switch13_1));
2757
	X6_2 = (0.0 -> (pre Switch13_2));
2758
	X6_3 = (0.0 -> (pre Switch13_3));
2759
	X6_4 = (0.0 -> (pre Switch13_4));
2760
	X7_1 = (0.0 -> (pre Switch15_1));
2761
	X7_2 = (0.0 -> (pre Switch15_2));
2762
	X7_3 = (0.0 -> (pre Switch15_3));
2763
	X8_1 = (0.0 -> (pre Switch17_1));
2764
	X8_2 = (0.0 -> (pre Switch17_2));
2765
	X8_3 = (0.0 -> (pre Switch17_3));
2766
	X9_1 = (0.0 -> (pre Switch19_1));
2767
	X9_2 = (0.0 -> (pre Switch19_2));
2768
	X9_3 = (0.0 -> (pre Switch19_3));
2769
	(coefAdjust_1, coefAdjust_2, coefAdjust_3) = coefAdjust_2262_007(Demux4_1, Demux4_2, Demux4_3, __time_step, __nb_step);
2770
	fcn1_1 = 2.0 * ( Mux14_2 * Mux14_3 + Mux14_1 * Mux14_4 );
2771
	fcn2_1 = Mux14_1 * Mux14_1 + Mux14_2 * Mux14_2 - Mux14_3 * Mux14_3 - Mux14_4 * Mux14_4;
2772
	fcn3_1 = int_to_real(- 2) * ( Mux14_2 * Mux14_4 - Mux14_1 * Mux14_3 );
2773
	fcn4_1 = 2.0 * ( Mux14_3 * Mux14_4 + Mux14_1 * Mux14_2 );
2774
	fcn5_1 = Mux14_1 * Mux14_1 - Mux14_2 * Mux14_2 - Mux14_3 * Mux14_3 + Mux14_4 * Mux14_4;
2775
	ixj_1 = 1.0 * Demux5_1 * Demux6_2;
2776
	ixj1_1 = 1.0 * Demux20_1 * Demux21_2;
2777
	ixj2_1 = 1.0 * Demux24_1 * Demux25_2;
2778
	ixk_1 = 1.0 * Demux7_1 * Demux8_3;
2779
	ixk1_1 = 1.0 * Demux22_1 * Demux23_3;
2780
	ixk2_1 = 1.0 * Demux26_1 * Demux27_3;
2781
	jxi_1 = 1.0 * Demux7_2 * Demux8_1;
2782
	jxi1_1 = 1.0 * Demux22_2 * Demux23_1;
2783
	jxi2_1 = 1.0 * Demux26_2 * Demux27_1;
2784
	jxk_1 = 1.0 * Demux5_2 * Demux6_3;
2785
	jxk1_1 = 1.0 * Demux20_2 * Demux21_3;
2786
	jxk2_1 = 1.0 * Demux24_2 * Demux25_3;
2787
	kxi_1 = 1.0 * Demux5_3 * Demux6_1;
2788
	kxi1_1 = 1.0 * Demux20_3 * Demux21_1;
2789
	kxi2_1 = 1.0 * Demux24_3 * Demux25_1;
2790
	kxj_1 = 1.0 * Demux7_3 * Demux8_2;
2791
	kxj1_1 = 1.0 * Demux22_3 * Demux23_2;
2792
	kxj2_1 = 1.0 * Demux26_3 * Demux27_2;
2793
	m_dot_1 = 0.0;
2794
	mass_1 = 0.0;
2795
	neglectcenterofgravityandcenterofpressureeffects_1 = 0.0;
2796
	neglectcenterofgravityandcenterofpressureeffects_2 = 0.0;
2797
	neglectcenterofgravityandcenterofpressureeffects_3 = 0.0;
2798
	q0_1 = Mux15_4 * Mux15_5 * Mux15_6 + Mux15_1 * Mux15_2 * Mux15_3;
2799
	q0dot_1 = - 0.50 * ( Mux17_5 * Mux17_1 + Mux17_6 * Mux17_2 + Mux17_7 * Mux17_3 ) + Mux17_8 * Mux17_4;
2800
	q1_1 = Mux15_4 * Mux15_5 * Mux15_3 - Mux15_1 * Mux15_2 * Mux15_6;
2801
	q1dot_1 = 0.50 * ( Mux17_4 * Mux17_1 + Mux17_6 * Mux17_3 - Mux17_7 * Mux17_2 ) + Mux17_8 * Mux17_5;
2802
	q2_1 = Mux15_4 * Mux15_2 * Mux15_6 + Mux15_1 * Mux15_5 * Mux15_3;
2803
	q2dot_1 = 0.50 * ( Mux17_4 * Mux17_2 + Mux17_7 * Mux17_1 - Mux17_5 * Mux17_3 ) + Mux17_8 * Mux17_6;
2804
	q3_1 = Mux15_1 * Mux15_5 * Mux15_6 - Mux15_4 * Mux15_2 * Mux15_3;
2805
	q3dot_1 = 0.50 * ( Mux17_4 * Mux17_3 + Mux17_5 * Mux17_2 - Mux17_6 * Mux17_1 ) + Mux17_8 * Mux17_7;
2806
	ratelimit_mult_2_mult_zeta_wn_1 = ratelimit_mult_2_mult_zeta_wn_2304_007(Sum3_1, __time_step, __nb_step);
2807
	ratelimit_mult_2_mult_zeta_wn1_1 = ratelimit_mult_2_mult_zeta_wn1_2316_007(Sum7_1, __time_step, __nb_step);
2808
	ratelimit_mult_2_mult_zeta_wn2_1 = ratelimit_mult_2_mult_zeta_wn2_2328_007(Sum11_1, __time_step, __nb_step);
2809
	referencearea_1 = (BusSelector7_1 * 23.230);
2810
	(referencelength_1, referencelength_2, referencelength_3) = referencelength_2341_007(referencearea_1, __time_step, __nb_step);
2811
	sincos_1 = sin(x1_2_1);
2812
	sincos_2 = sin(x1_2_2);
2813
	sincos_3 = sin(x1_2_3);
2814
	sincos_4 = cos(x1_2_1);
2815
	sincos_5 = cos(x1_2_2);
2816
	sincos_6 = cos(x1_2_3);
2817
	sqrt_1 = sqrt(Sum55_1);
2818
	trigFcn_1 = asin(fcn3_1);
2819
	wn_1_1 = (ratelimit_mult_2_mult_zeta_wn1_1 * 3947.841760435743254);
2820
	wn_2_1 = (ratelimit_mult_2_mult_zeta_wn_1 * 3947.841760435743254);
2821
	wn_3_1 = (ratelimit_mult_2_mult_zeta_wn2_1 * 3947.841760435743254);
2822
	x1_2_1 = (Selector6_1 * 0.50);
2823
	x1_2_2 = (Selector6_2 * 0.50);
2824
	x1_2_3 = (Selector6_3 * 0.50);
2825
	x1_2rhoV_2_1 = (Product83_1 * 0.50);
2826
	x2_mult_zeta_mult_wn_1 = (Switch_1 * 87.964594300514207);
2827
	x2_mult_zeta_mult_wn1_1 = (Switch4_1 * 87.964594300514207);
2828
	x2_mult_zeta_mult_wn2_1 = (Switch8_1 * 87.964594300514207);
2829
	(xyH_1, xyH_2, xyH_3) = xyH_2360_007(Switch16_1, Switch16_2, Switch16_3, __time_step, __nb_step);
2830
	ACBus_1 = BusCreator_1;
2831
	ACBus_2 = BusCreator_2;
2832
	ACBus_3 = BusCreator_3;
2833
	ACBus_4 = BusCreator_4;
2834
	ACBus_5 = BusCreator_5;
2835
	ACBus_6 = BusCreator_6;
2836
	ACBus_7 = BusCreator_7;
2837
	ACBus_8 = BusCreator_8;
2838
	ACBus_9 = BusCreator_9;
2839
	ACBus_10 = BusCreator_10;
2840
	ACBus_11 = BusCreator_11;
2841
	ACBus_12 = BusCreator_12;
2842
	ACBus_13 = BusCreator_13;
2843
	ACBus_14 = BusCreator_14;
2844
	ACBus_15 = BusCreator_15;
2845
	ACBus_16 = BusCreator_16;
2846
	ACBus_17 = BusCreator_17;
2847
	ACBus_18 = BusCreator_18;
2848
	ACBus_19 = BusCreator_19;
2849
	ACBus_20 = BusCreator_20;
2850
	ACBus_21 = BusCreator_21;
2851
	ACBus_22 = BusCreator_22;
2852
	ACBus_23 = BusCreator_23;
2853
	ACBus_24 = BusCreator_24;
2854
	ACBus_25 = BusCreator_25;
2855
	ACBus_26 = BusCreator_26;
2856
	ACBus_27 = BusCreator_27;
2857
	ACBus_28 = BusCreator_28;
2858
tel
2859

    
2860
(*
2861
Original block name: ap_12BAdaptedInlined/DispLimit
2862
*)
2863
node  DispLimit_3978_009(In_1 : real;
2864
	__time_step : real;
2865
	__nb_step : int;)
2866
returns(Out_1 : real;);
2867
var lower_1 : real;
2868
	lower_limit_1 : real;
2869
	upper_1 : real;
2870
	upper_limit_1 : real;
2871
let
2872
	lower_1 = _max_real(upper_1, lower_limit_1);
2873
	lower_limit_1 = -20.0;
2874
	upper_1 = _min_real(upper_limit_1, In_1);
2875
	upper_limit_1 = 20.0;
2876
	Out_1 = lower_1;
2877
tel
2878

    
2879
(*
2880
Original block name: ap_12BAdaptedInlined/DispLimit1
2881
*)
2882
node  DispLimit1_3990_009(In_1 : real;
2883
	__time_step : real;
2884
	__nb_step : int;)
2885
returns(Out_1 : real;);
2886
var lower_1 : real;
2887
	lower_limit_1 : real;
2888
	upper_1 : real;
2889
	upper_limit_1 : real;
2890
let
2891
	lower_1 = _max_real(upper_1, lower_limit_1);
2892
	lower_limit_1 = -30.0;
2893
	upper_1 = _min_real(upper_limit_1, In_1);
2894
	upper_limit_1 = 30.0;
2895
	Out_1 = lower_1;
2896
tel
2897

    
2898
(*
2899
Original block name: ap_12BAdaptedInlined/PitchRateFeedback
2900
*)
2901
node  PitchRateFeedback_4045_009(Phi_1 : real;
2902
	Q_1 : real;
2903
	R_1 : real;
2904
	__time_step : real;
2905
	__nb_step : int;)
2906
returns(PitchRate_1 : real;);
2907
var Gain_1 : real;
2908
	Product_1 : real;
2909
	Product1_1 : real;
2910
	Sum3_1 : real;
2911
	cos_1 : real;
2912
	sin_1 : real;
2913
let
2914
	Gain_1 = (Phi_1 * 0.017453292519943);
2915
	Product_1 = 1.0 * sin_1 * R_1;
2916
	Product1_1 = 1.0 * cos_1 * Q_1;
2917
	Sum3_1 = 0.0 + Product1_1 + Product_1;
2918
	cos_1 = cos(Gain_1);
2919
	sin_1 = sin(Gain_1);
2920
	PitchRate_1 = Sum3_1;
2921
tel
2922

    
2923
(*
2924
Original block name: ap_12BAdaptedInlined/PitchReference
2925
*)
2926
node  PitchReference_4071_009(Theta_1 : real;
2927
	APEng_1 : bool;
2928
	PitchWheel_1 : real;
2929
	__time_step : real;
2930
	__nb_step : int;)
2931
returns(ThetaRef_1 : real;);
2932
var Enable_1 : real;
2933
	FixPtUnitDelay1_1 : real;
2934
	Notengaged_1 : bool;
2935
	Sum3_1 : real;
2936
let
2937
	Enable_1 = if Notengaged_1 then
2938
		Theta_1
2939
	    else FixPtUnitDelay1_1;
2940
	FixPtUnitDelay1_1 = (0.0 -> (pre Enable_1));
2941
	Notengaged_1 = (not APEng_1);
2942
	Sum3_1 = 0.0 + FixPtUnitDelay1_1 + PitchWheel_1;
2943
	ThetaRef_1 = Sum3_1;
2944
tel
2945

    
2946
(*
2947
Original block name: ap_12BAdaptedInlined/RateLimit
2948
*)
2949
node  RateLimit_4108_006(In_1 : real;
2950
	__time_step : real;
2951
	__nb_step : int;)
2952
returns(Out_1 : real;);
2953
var lower_1 : real;
2954
	lower_limit_1 : real;
2955
	upper_1 : real;
2956
	upper_limit_1 : real;
2957
let
2958
	lower_1 = _max_real(upper_1, lower_limit_1);
2959
	lower_limit_1 = -3.0;
2960
	upper_1 = _min_real(upper_limit_1, In_1);
2961
	upper_limit_1 = 3.0;
2962
	Out_1 = lower_1;
2963
tel
2964

    
2965
(*
2966
Original block name: ap_12BAdaptedInlined/RateLimit1
2967
*)
2968
node  RateLimit1_4120_006(In_1 : real;
2969
	__time_step : real;
2970
	__nb_step : int;)
2971
returns(Out_1 : real;);
2972
var lower_1 : real;
2973
	lower_limit_1 : real;
2974
	upper_1 : real;
2975
	upper_limit_1 : real;
2976
let
2977
	lower_1 = _max_real(upper_1, lower_limit_1);
2978
	lower_limit_1 = -6.0;
2979
	upper_1 = _min_real(upper_limit_1, In_1);
2980
	upper_limit_1 = 6.0;
2981
	Out_1 = lower_1;
2982
tel
2983

    
2984
(*
2985
Original block name: ap_12BAdaptedInlined/RateLimiter
2986
*)
2987
node  RateLimiter_4132_006(U__1 : real;
2988
	__time_step : real;
2989
	__nb_step : int;)
2990
returns(Y_1 : real;);
2991
var Diff_1 : real;
2992
	Divide1_1 : real;
2993
	F_1 : real;
2994
	Product_1 : real;
2995
	Product1_1 : real;
2996
	R_1 : real;
2997
	RelationalOperator_1 : bool;
2998
	RelationalOperator1_1 : bool;
2999
	Sum_1 : real;
3000
	Sum1_1 : real;
3001
	Switch1_1 : real;
3002
	Switch2_1 : real;
3003
	TS_1 : real;
3004
	UD_1 : real;
3005
let
3006
	Diff_1 = 0.0 + U__1 - UD_1;
3007
	Divide1_1 = 1.0 * Diff_1 / TS_1;
3008
	F_1 = -0.50;
3009
	Product_1 = 1.0 * TS_1 * R_1;
3010
	Product1_1 = 1.0 * TS_1 * F_1;
3011
	R_1 = 0.50;
3012
	RelationalOperator_1 = (Divide1_1 > R_1);
3013
	RelationalOperator1_1 = (Divide1_1 >= F_1);
3014
	Sum_1 = 0.0 + Product_1 + UD_1;
3015
	Sum1_1 = 0.0 + Product1_1 + UD_1;
3016
	Switch1_1 = if RelationalOperator_1 then
3017
		Sum_1
3018
	    else Switch2_1;
3019
	Switch2_1 = if RelationalOperator1_1 then
3020
		U__1
3021
	    else Sum1_1;
3022
	TS_1 = 0.0250;
3023
	UD_1 = (0.0 -> (pre Switch1_1));
3024
	Y_1 = Switch1_1;
3025
tel
3026

    
3027
(*
3028
Original block name: ap_12BAdaptedInlined/Rate_Limiter/Saturation
3029
Dynamic
3030
*)
3031
node  SaturationDynamic_4188_006(up_1 : real;
3032
	u_1 : real;
3033
	lo_1 : real;
3034
	__time_step : real;
3035
	__nb_step : int;)
3036
returns(y_1 : real;);
3037
var LowerRelop1_1 : bool;
3038
	Switch_1 : real;
3039
	Switch2_1 : real;
3040
	UpperRelop_1 : bool;
3041
let
3042
	LowerRelop1_1 = (u_1 > up_1);
3043
	Switch_1 = if UpperRelop_1 then
3044
		lo_1
3045
	    else u_1;
3046
	Switch2_1 = if LowerRelop1_1 then
3047
		up_1
3048
	    else Switch_1;
3049
	UpperRelop_1 = (u_1 < lo_1);
3050
	y_1 = Switch2_1;
3051
tel
3052

    
3053
(*
3054
Original block name: ap_12BAdaptedInlined/Rate_Limiter/sampletime
3055
*)
3056
node  sampletime_4226_006(u_1 : real;
3057
	__time_step : real;
3058
	__nb_step : int;)
3059
returns(Out1_1 : real;);
3060
var Product_1 : real;
3061
	Ts_1 : real;
3062
	weightValue_1 : real;
3063
let
3064
	Product_1 = 1.0 * weightValue_1 * Ts_1;
3065
	Ts_1 = 0.0250;
3066
	weightValue_1 = 1.0;
3067
	Out1_1 = Product_1;
3068
tel
3069

    
3070
(*
3071
Original block name: ap_12BAdaptedInlined/Rate_Limiter
3072
*)
3073
node  Rate_Limiter_4180_006(up_1 : real;
3074
	u_1 : real;
3075
	lo_1 : real;
3076
	__time_step : real;
3077
	__nb_step : int;)
3078
returns(Y_1 : real;);
3079
var DelayInput2_1 : real;
3080
	DifferenceInputs1_1 : real;
3081
	DifferenceInputs2_1 : real;
3082
	SaturationDynamic_1 : real;
3083
	deltafalllimit_1 : real;
3084
	deltariselimit_1 : real;
3085
	sampletime_1 : real;
3086
let
3087
	DelayInput2_1 = (0.0 -> (pre DifferenceInputs2_1));
3088
	DifferenceInputs1_1 = 0.0 + u_1 - DelayInput2_1;
3089
	DifferenceInputs2_1 = 0.0 + SaturationDynamic_1 + DelayInput2_1;
3090
	SaturationDynamic_1 = SaturationDynamic_4188_006(deltariselimit_1, DifferenceInputs1_1, deltafalllimit_1, __time_step, __nb_step);
3091
	deltafalllimit_1 = 1.0 * lo_1 * sampletime_1;
3092
	deltariselimit_1 = 1.0 * up_1 * sampletime_1;
3093
	sampletime_1 = sampletime_4226_006(u_1, __time_step, __nb_step);
3094
	Y_1 = DifferenceInputs2_1;
3095
tel
3096

    
3097
(*
3098
Original block name: ap_12BAdaptedInlined/RollReference
3099
*)
3100
node  RollReference_4271_006(Phi_1 : real;
3101
	APeng_1 : bool;
3102
	TurnKnob_1 : real;
3103
	__time_step : real;
3104
	__nb_step : int;)
3105
returns(PhiRef_1 : real;);
3106
var Abs_1 : real;
3107
	Enable_1 : real;
3108
	FixPtUnitDelay1_1 : real;
3109
	Notengaged_1 : bool;
3110
	RefThreshold_1 : bool;
3111
	RefThreshold1_1 : bool;
3112
	TKThreshold_1 : bool;
3113
	TKswitch_1 : real;
3114
	minussix_1 : real;
3115
	or_1 : bool;
3116
	refswitch_1 : real;
3117
	six_1 : real;
3118
	three_1 : real;
3119
	zero_1 : real;
3120
let
3121
	Abs_1 = if (TurnKnob_1 >= 0.0) then
3122
		TurnKnob_1
3123
	    else (- TurnKnob_1);
3124
	Enable_1 = if Notengaged_1 then
3125
		refswitch_1
3126
	    else FixPtUnitDelay1_1;
3127
	FixPtUnitDelay1_1 = (0.0 -> (pre Enable_1));
3128
	Notengaged_1 = (not APeng_1);
3129
	RefThreshold_1 = (Phi_1 >= six_1);
3130
	RefThreshold1_1 = (Phi_1 <= minussix_1);
3131
	TKThreshold_1 = (Abs_1 < three_1);
3132
	TKswitch_1 = if TKThreshold_1 then
3133
		FixPtUnitDelay1_1
3134
	    else TurnKnob_1;
3135
	minussix_1 = -6.0;
3136
	or_1 = ( RefThreshold_1 or RefThreshold1_1 );
3137
	refswitch_1 = if or_1 then
3138
		Phi_1
3139
	    else zero_1;
3140
	six_1 = 6.0;
3141
	three_1 = 3.0;
3142
	zero_1 = 0.0;
3143
	PhiRef_1 = TKswitch_1;
3144
tel
3145

    
3146
(*
3147
Original block name: ap_12BAdaptedInlined/Saturation
3148
*)
3149
node  Saturation_4319_006(In_1 : real;
3150
	__time_step : real;
3151
	__nb_step : int;)
3152
returns(Out_1 : real;);
3153
var lower_1 : real;
3154
	lower_limit_1 : real;
3155
	upper_1 : real;
3156
	upper_limit_1 : real;
3157
let
3158
	lower_1 = _max_real(upper_1, lower_limit_1);
3159
	lower_limit_1 = -20.0;
3160
	upper_1 = _min_real(upper_limit_1, In_1);
3161
	upper_limit_1 = 20.0;
3162
	Out_1 = lower_1;
3163
tel
3164

    
3165
(*
3166
Original block name: ap_12BAdaptedInlined/Saturation1
3167
*)
3168
node  Saturation1_4331_006(In_1 : real;
3169
	__time_step : real;
3170
	__nb_step : int;)
3171
returns(Out_1 : real;);
3172
var lower_1 : real;
3173
	lower_limit_1 : real;
3174
	upper_1 : real;
3175
	upper_limit_1 : real;
3176
let
3177
	lower_1 = _max_real(upper_1, lower_limit_1);
3178
	lower_limit_1 = -20.0;
3179
	upper_1 = _min_real(upper_limit_1, In_1);
3180
	upper_limit_1 = 20.0;
3181
	Out_1 = lower_1;
3182
tel
3183

    
3184
(*
3185
Original block name: ap_12BAdaptedInlined/Saturation2
3186
*)
3187
node  Saturation2_4343_006(In_1 : real;
3188
	__time_step : real;
3189
	__nb_step : int;)
3190
returns(Out_1 : real;);
3191
var lower_1 : real;
3192
	lower_limit_1 : real;
3193
	upper_1 : real;
3194
	upper_limit_1 : real;
3195
let
3196
	lower_1 = _max_real(upper_1, lower_limit_1);
3197
	lower_limit_1 = -5.0;
3198
	upper_1 = _min_real(upper_limit_1, In_1);
3199
	upper_limit_1 = 5.0;
3200
	Out_1 = lower_1;
3201
tel
3202

    
3203
(*
3204
Original block name: ap_12BAdaptedInlined/Saturation3
3205
*)
3206
node  Saturation3_4355_006(In_1 : real;
3207
	__time_step : real;
3208
	__nb_step : int;)
3209
returns(Out_1 : real;);
3210
var lower_1 : real;
3211
	lower_limit_1 : real;
3212
	upper_1 : real;
3213
	upper_limit_1 : real;
3214
let
3215
	lower_1 = _max_real(upper_1, lower_limit_1);
3216
	lower_limit_1 = -5.0;
3217
	upper_1 = _min_real(upper_limit_1, In_1);
3218
	upper_limit_1 = 5.0;
3219
	Out_1 = lower_1;
3220
tel
3221

    
3222
(*
3223
external node code for doing Lookup_nD
3224
*)
3225
node  Look_minus_UpTable_4015_009_ext_node(RateLimiter_1 : real;)
3226
returns(Look_minus_UpTable_1 : real;);
3227
var Look_minus_UpTable_4015_009_table_elem_1 : real;
3228
	Look_minus_UpTable_4015_009_table_elem_2 : real;
3229
	Look_minus_UpTable_4015_009_table_elem_3 : real;
3230
	Look_minus_UpTable_4015_009_table_elem_4 : real;
3231
	Look_minus_UpTable_4015_009_Breakpoints_dim1_1 : real;
3232
	Look_minus_UpTable_4015_009_Breakpoints_dim1_2 : real;
3233
	Look_minus_UpTable_4015_009_Breakpoints_dim1_3 : real;
3234
	Look_minus_UpTable_4015_009_Breakpoints_dim1_4 : real;
3235
	Look_minus_UpTable_4015_009_dimJump_1 : int;
3236
	Look_minus_UpTable_4015_009_index_dim_1_1 : int;
3237
	Look_minus_UpTable_4015_009_index_dim_1_2 : int;
3238
	Look_minus_UpTable_4015_009_coords_dim_1_1 : real;
3239
	Look_minus_UpTable_4015_009_coords_dim_1_2 : real;
3240
	Look_minus_UpTable_4015_009_u_node_1 : real;
3241
	Look_minus_UpTable_4015_009_N_shape_1 : real;
3242
	Look_minus_UpTable_4015_009_u_node_2 : real;
3243
	Look_minus_UpTable_4015_009_N_shape_2 : real;
3244
	Look_minus_UpTable_4015_009_bound_node_index_1 : int;
3245
	Look_minus_UpTable_4015_009_bound_node_index_2 : int;
3246
	Look_minus_UpTable_4015_009_clip_input_1 : real;
3247
let
3248
	Look_minus_UpTable_4015_009_table_elem_1 = 0.0;
3249
	Look_minus_UpTable_4015_009_table_elem_2 = 4.0;
3250
	Look_minus_UpTable_4015_009_table_elem_3 = 10.0;
3251
	Look_minus_UpTable_4015_009_table_elem_4 = 20.0;
3252
	Look_minus_UpTable_4015_009_Breakpoints_dim1_1 = 0.0;
3253
	Look_minus_UpTable_4015_009_Breakpoints_dim1_2 = 1.0;
3254
	Look_minus_UpTable_4015_009_Breakpoints_dim1_3 = 2.0;
3255
	Look_minus_UpTable_4015_009_Breakpoints_dim1_4 = 3.0;
3256
	Look_minus_UpTable_4015_009_dimJump_1 = 1;
3257
	Look_minus_UpTable_4015_009_index_dim_1_1 = if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_4) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_4) <= 0.000000999999999999999954748112) then
3258
		3
3259
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_3) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_3) <= 0.000000999999999999999954748112) then
3260
		3
3261
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_2) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_2) <= 0.000000999999999999999954748112) then
3262
		2
3263
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_1) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_1) <= 0.000000999999999999999954748112) then
3264
		1
3265
	    else 1;
3266
	Look_minus_UpTable_4015_009_coords_dim_1_1 = if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_4) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_4) <= 0.000000999999999999999954748112) then
3267
		Look_minus_UpTable_4015_009_Breakpoints_dim1_3
3268
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_3) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_3) <= 0.000000999999999999999954748112) then
3269
		Look_minus_UpTable_4015_009_Breakpoints_dim1_3
3270
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_2) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_2) <= 0.000000999999999999999954748112) then
3271
		Look_minus_UpTable_4015_009_Breakpoints_dim1_2
3272
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_1) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_1) <= 0.000000999999999999999954748112) then
3273
		Look_minus_UpTable_4015_009_Breakpoints_dim1_1
3274
	    else Look_minus_UpTable_4015_009_Breakpoints_dim1_1;
3275
	Look_minus_UpTable_4015_009_index_dim_1_2 = if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_4) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_4) <= 0.000000999999999999999954748112) then
3276
		4
3277
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_3) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_3) <= 0.000000999999999999999954748112) then
3278
		4
3279
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_2) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_2) <= 0.000000999999999999999954748112) then
3280
		3
3281
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_1) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_1) <= 0.000000999999999999999954748112) then
3282
		2
3283
	    else 2;
3284
	Look_minus_UpTable_4015_009_coords_dim_1_2 = if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_4) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_4) <= 0.000000999999999999999954748112) then
3285
		Look_minus_UpTable_4015_009_Breakpoints_dim1_4
3286
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_3) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_3) <= 0.000000999999999999999954748112) then
3287
		Look_minus_UpTable_4015_009_Breakpoints_dim1_4
3288
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_2) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_2) <= 0.000000999999999999999954748112) then
3289
		Look_minus_UpTable_4015_009_Breakpoints_dim1_3
3290
	    else if ((RateLimiter_1 >= Look_minus_UpTable_4015_009_Breakpoints_dim1_1) or abs_real(RateLimiter_1 - Look_minus_UpTable_4015_009_Breakpoints_dim1_1) <= 0.000000999999999999999954748112) then
3291
		Look_minus_UpTable_4015_009_Breakpoints_dim1_2
3292
	    else Look_minus_UpTable_4015_009_Breakpoints_dim1_2;
3293
	Look_minus_UpTable_4015_009_bound_node_index_1 = (Look_minus_UpTable_4015_009_index_dim_1_1 * 1);
3294
	Look_minus_UpTable_4015_009_u_node_1 = if (Look_minus_UpTable_4015_009_bound_node_index_1 = 1) then
3295
		Look_minus_UpTable_4015_009_table_elem_1
3296
	    else if (Look_minus_UpTable_4015_009_bound_node_index_1 = 2) then
3297
		Look_minus_UpTable_4015_009_table_elem_2
3298
	    else if (Look_minus_UpTable_4015_009_bound_node_index_1 = 3) then
3299
		Look_minus_UpTable_4015_009_table_elem_3
3300
	    else Look_minus_UpTable_4015_009_table_elem_4;
3301
	Look_minus_UpTable_4015_009_bound_node_index_2 = (Look_minus_UpTable_4015_009_index_dim_1_2 * 1);
3302
	Look_minus_UpTable_4015_009_u_node_2 = if (Look_minus_UpTable_4015_009_bound_node_index_2 = 1) then
3303
		Look_minus_UpTable_4015_009_table_elem_1
3304
	    else if (Look_minus_UpTable_4015_009_bound_node_index_2 = 2) then
3305
		Look_minus_UpTable_4015_009_table_elem_2
3306
	    else if (Look_minus_UpTable_4015_009_bound_node_index_2 = 3) then
3307
		Look_minus_UpTable_4015_009_table_elem_3
3308
	    else Look_minus_UpTable_4015_009_table_elem_4;
3309
	Look_minus_UpTable_4015_009_clip_input_1 = RateLimiter_1;
3310
	Look_minus_UpTable_4015_009_N_shape_1 = ((Look_minus_UpTable_4015_009_coords_dim_1_2 - Look_minus_UpTable_4015_009_clip_input_1) / (Look_minus_UpTable_4015_009_coords_dim_1_2 - Look_minus_UpTable_4015_009_coords_dim_1_1));
3311
	Look_minus_UpTable_4015_009_N_shape_2 = ((Look_minus_UpTable_4015_009_clip_input_1 - Look_minus_UpTable_4015_009_coords_dim_1_1) / (Look_minus_UpTable_4015_009_coords_dim_1_2 - Look_minus_UpTable_4015_009_coords_dim_1_1));
3312
	Look_minus_UpTable_1 = ( (Look_minus_UpTable_4015_009_N_shape_1 * Look_minus_UpTable_4015_009_u_node_1) + (Look_minus_UpTable_4015_009_N_shape_2 * Look_minus_UpTable_4015_009_u_node_2) );
3313
tel
3314

    
3315
(*
3316
external node code for doing Lookup_nD
3317
*)
3318
node  LookupTable_4016_009_ext_node(Sum_1 : real;)
3319
returns(LookupTable_1 : real;);
3320
var LookupTable_4016_009_table_elem_1 : real;
3321
	LookupTable_4016_009_table_elem_2 : real;
3322
	LookupTable_4016_009_table_elem_3 : real;
3323
	LookupTable_4016_009_table_elem_4 : real;
3324
	LookupTable_4016_009_table_elem_5 : real;
3325
	LookupTable_4016_009_table_elem_6 : real;
3326
	LookupTable_4016_009_table_elem_7 : real;
3327
	LookupTable_4016_009_table_elem_8 : real;
3328
	LookupTable_4016_009_Breakpoints_dim1_1 : real;
3329
	LookupTable_4016_009_Breakpoints_dim1_2 : real;
3330
	LookupTable_4016_009_Breakpoints_dim1_3 : real;
3331
	LookupTable_4016_009_Breakpoints_dim1_4 : real;
3332
	LookupTable_4016_009_Breakpoints_dim1_5 : real;
3333
	LookupTable_4016_009_Breakpoints_dim1_6 : real;
3334
	LookupTable_4016_009_Breakpoints_dim1_7 : real;
3335
	LookupTable_4016_009_Breakpoints_dim1_8 : real;
3336
	LookupTable_4016_009_dimJump_1 : int;
3337
	LookupTable_4016_009_index_dim_1_1 : int;
3338
	LookupTable_4016_009_index_dim_1_2 : int;
3339
	LookupTable_4016_009_coords_dim_1_1 : real;
3340
	LookupTable_4016_009_coords_dim_1_2 : real;
3341
	LookupTable_4016_009_u_node_1 : real;
3342
	LookupTable_4016_009_N_shape_1 : real;
3343
	LookupTable_4016_009_u_node_2 : real;
3344
	LookupTable_4016_009_N_shape_2 : real;
3345
	LookupTable_4016_009_bound_node_index_1 : int;
3346
	LookupTable_4016_009_bound_node_index_2 : int;
3347
	LookupTable_4016_009_clip_input_1 : real;
3348
let
3349
	LookupTable_4016_009_table_elem_1 = -42.0;
3350
	LookupTable_4016_009_table_elem_2 = -26.0;
3351
	LookupTable_4016_009_table_elem_3 = -19.0;
3352
	LookupTable_4016_009_table_elem_4 = -13.0;
3353
	LookupTable_4016_009_table_elem_5 = 0.0;
3354
	LookupTable_4016_009_table_elem_6 = 13.0;
3355
	LookupTable_4016_009_table_elem_7 = 19.0;
3356
	LookupTable_4016_009_table_elem_8 = 26.0;
3357
	LookupTable_4016_009_Breakpoints_dim1_1 = -544.0;
3358
	LookupTable_4016_009_Breakpoints_dim1_2 = -206.0;
3359
	LookupTable_4016_009_Breakpoints_dim1_3 = -116.0;
3360
	LookupTable_4016_009_Breakpoints_dim1_4 = -52.0;
3361
	LookupTable_4016_009_Breakpoints_dim1_5 = 0.0;
3362
	LookupTable_4016_009_Breakpoints_dim1_6 = 52.0;
3363
	LookupTable_4016_009_Breakpoints_dim1_7 = 116.0;
3364
	LookupTable_4016_009_Breakpoints_dim1_8 = 206.0;
3365
	LookupTable_4016_009_dimJump_1 = 1;
3366
	LookupTable_4016_009_index_dim_1_1 = if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_8) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_8) <= 0.000090000000000000005668208958) then
3367
		7
3368
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_7) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_7) <= 0.000063999999999999997103879157) then
3369
		7
3370
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_6) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_6) <= 0.000051999999999999996799868868) then
3371
		6
3372
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_5) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_5) <= 0.000051999999999999996799868868) then
3373
		5
3374
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_4) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_4) <= 0.000051999999999999996799868868) then
3375
		4
3376
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_3) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_3) <= 0.000063999999999999997103879157) then
3377
		3
3378
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_2) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_2) <= 0.000090000000000000005668208958) then
3379
		2
3380
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_1) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_1) <= 0.000337999999999999975811015851) then
3381
		1
3382
	    else 1;
3383
	LookupTable_4016_009_coords_dim_1_1 = if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_8) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_8) <= 0.000090000000000000005668208958) then
3384
		LookupTable_4016_009_Breakpoints_dim1_7
3385
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_7) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_7) <= 0.000063999999999999997103879157) then
3386
		LookupTable_4016_009_Breakpoints_dim1_7
3387
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_6) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_6) <= 0.000051999999999999996799868868) then
3388
		LookupTable_4016_009_Breakpoints_dim1_6
3389
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_5) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_5) <= 0.000051999999999999996799868868) then
3390
		LookupTable_4016_009_Breakpoints_dim1_5
3391
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_4) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_4) <= 0.000051999999999999996799868868) then
3392
		LookupTable_4016_009_Breakpoints_dim1_4
3393
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_3) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_3) <= 0.000063999999999999997103879157) then
3394
		LookupTable_4016_009_Breakpoints_dim1_3
3395
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_2) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_2) <= 0.000090000000000000005668208958) then
3396
		LookupTable_4016_009_Breakpoints_dim1_2
3397
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_1) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_1) <= 0.000337999999999999975811015851) then
3398
		LookupTable_4016_009_Breakpoints_dim1_1
3399
	    else LookupTable_4016_009_Breakpoints_dim1_1;
3400
	LookupTable_4016_009_index_dim_1_2 = if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_8) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_8) <= 0.000090000000000000005668208958) then
3401
		8
3402
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_7) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_7) <= 0.000063999999999999997103879157) then
3403
		8
3404
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_6) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_6) <= 0.000051999999999999996799868868) then
3405
		7
3406
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_5) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_5) <= 0.000051999999999999996799868868) then
3407
		6
3408
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_4) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_4) <= 0.000051999999999999996799868868) then
3409
		5
3410
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_3) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_3) <= 0.000063999999999999997103879157) then
3411
		4
3412
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_2) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_2) <= 0.000090000000000000005668208958) then
3413
		3
3414
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_1) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_1) <= 0.000337999999999999975811015851) then
3415
		2
3416
	    else 2;
3417
	LookupTable_4016_009_coords_dim_1_2 = if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_8) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_8) <= 0.000090000000000000005668208958) then
3418
		LookupTable_4016_009_Breakpoints_dim1_8
3419
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_7) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_7) <= 0.000063999999999999997103879157) then
3420
		LookupTable_4016_009_Breakpoints_dim1_8
3421
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_6) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_6) <= 0.000051999999999999996799868868) then
3422
		LookupTable_4016_009_Breakpoints_dim1_7
3423
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_5) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_5) <= 0.000051999999999999996799868868) then
3424
		LookupTable_4016_009_Breakpoints_dim1_6
3425
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_4) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_4) <= 0.000051999999999999996799868868) then
3426
		LookupTable_4016_009_Breakpoints_dim1_5
3427
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_3) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_3) <= 0.000063999999999999997103879157) then
3428
		LookupTable_4016_009_Breakpoints_dim1_4
3429
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_2) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_2) <= 0.000090000000000000005668208958) then
3430
		LookupTable_4016_009_Breakpoints_dim1_3
3431
	    else if ((Sum_1 >= LookupTable_4016_009_Breakpoints_dim1_1) or abs_real(Sum_1 - LookupTable_4016_009_Breakpoints_dim1_1) <= 0.000337999999999999975811015851) then
3432
		LookupTable_4016_009_Breakpoints_dim1_2
3433
	    else LookupTable_4016_009_Breakpoints_dim1_2;
3434
	LookupTable_4016_009_bound_node_index_1 = (LookupTable_4016_009_index_dim_1_1 * 1);
3435
	LookupTable_4016_009_u_node_1 = if (LookupTable_4016_009_bound_node_index_1 = 1) then
3436
		LookupTable_4016_009_table_elem_1
3437
	    else if (LookupTable_4016_009_bound_node_index_1 = 2) then
3438
		LookupTable_4016_009_table_elem_2
3439
	    else if (LookupTable_4016_009_bound_node_index_1 = 3) then
3440
		LookupTable_4016_009_table_elem_3
3441
	    else if (LookupTable_4016_009_bound_node_index_1 = 4) then
3442
		LookupTable_4016_009_table_elem_4
3443
	    else if (LookupTable_4016_009_bound_node_index_1 = 5) then
3444
		LookupTable_4016_009_table_elem_5
3445
	    else if (LookupTable_4016_009_bound_node_index_1 = 6) then
3446
		LookupTable_4016_009_table_elem_6
3447
	    else if (LookupTable_4016_009_bound_node_index_1 = 7) then
3448
		LookupTable_4016_009_table_elem_7
3449
	    else LookupTable_4016_009_table_elem_8;
3450
	LookupTable_4016_009_bound_node_index_2 = (LookupTable_4016_009_index_dim_1_2 * 1);
3451
	LookupTable_4016_009_u_node_2 = if (LookupTable_4016_009_bound_node_index_2 = 1) then
3452
		LookupTable_4016_009_table_elem_1
3453
	    else if (LookupTable_4016_009_bound_node_index_2 = 2) then
3454
		LookupTable_4016_009_table_elem_2
3455
	    else if (LookupTable_4016_009_bound_node_index_2 = 3) then
3456
		LookupTable_4016_009_table_elem_3
3457
	    else if (LookupTable_4016_009_bound_node_index_2 = 4) then
3458
		LookupTable_4016_009_table_elem_4
3459
	    else