Files
SystemSimulationApp/tests/data/test_mql_4_.c
T

12890 lines
495 KiB
C

/************** -*-C-*- *********************************************
* $Id$
* *
* AMESim C code for cosimulation written by code generator. *
test_mql_4_
*
*******************************************************************/
#include "test_mql_4_.h"
#include "ame_interfaces.h"
#include <assert.h>
#include <stdio.h>
#if !defined(AME_DS1006)
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#endif
#ifndef AME_DS1006
#include <fcntl.h>
#endif
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <setjmp.h>
#ifdef _WIN32
#ifndef WIN32
#define WIN32
#endif
#endif
#include "ameutils.h"
#include "codegen_ameutils_public.h"
#include "itf_amesubintf_public.h"
#if defined (WIN32) || defined(XPCMSVISUALC)
#include <io.h>
#elif !defined(AME_DS1006)
#include <unistd.h>
#endif
#if defined(_WINDOWS) || defined(_WIN32) || defined(WIN32)
#define DLLEXPORTDEF __declspec(dllexport)
#else
#define DLLEXPORTDEF
#endif
#if defined (RTLAB) || defined(AME_DS1006) || defined(AME_DS1007) || defined(LABCAR) || defined(AME_ADX) || defined(AME_HWA) || defined(RT) ||defined(AMEVERISTAND)
#ifdef DLLEXPORTDEF
#undef DLLEXPORTDEF
#endif
#define DLLEXPORTDEF
#endif
/* If we are in Simulink we should set things up for a AMEMULTIDLL (only static symbols) */
#if defined(AME_CS_SIMULINK) || defined(AME_ME_SIMULINK)
#ifndef AMEMULTIDLL
#define AMEMULTIDLL
#endif
#endif
/* If we are in Veristand we should set things up for a AMEMULTIDLL (only static symbols) */
#ifdef AMEVERISTAND
#ifndef AMEMULTIDLL
#define AMEMULTIDLL
#endif
#endif
/* avoid globally exported functions - required for exporting several models in one executable */
#if defined AMEMULTIDLL
#define DLLEXPORTDEF_OR_STATIC static
#else
#define DLLEXPORTDEF_OR_STATIC DLLEXPORTDEF
#endif
#if defined CREATING_STATIC_LIB
#define DLLEXPORTDEF_OR_EXTERN extern
#else
#define DLLEXPORTDEF_OR_EXTERN DLLEXPORTDEF
#endif
#define TIME_ROUNDOFF 1.0e-10
#define TLAST_MIN -1E30
#if defined(FMICS1) || defined(FMICS2) || defined(FMICS3) || defined(FMIME1) || defined(FMIME2)
#ifdef FMIX
#undef FMIX
#endif
#define FMI
#define MODEL_IDENTIFIER test_mql_4_
#define MODEL_IDENTIFIER_STRING "test_mql_4_"
#endif
/* *****************************************************************
code inserted by AMESim
*****************************************************************/
#define AMEVERSION 202410000
#define SUB_LENGTH 63
static const char soldToId[] = "4553207";
/**** Model structure definition ****/
/* Structural definition of the model */
#define AME_MODEL_ISEXPLICIT 1
/* Number of explicit declared states */
#define AME_NBOF_EXPLICIT_STATE 64
/* Number of implicit declared states */
#define AME_NBOF_IMPLICIT_STATE_DECLARED 0
#define AME_NBOF_IMPLICIT_STATE_GENERATED 0
#define AME_NBOF_IMPLICIT_STATE 0
/* Number of discrete declared states */
#define AME_NBOF_DISCRETE_STATE 12
/* Total number of states manipulated by the Amesim solver including generated states */
#define AME_NBOF_SOLVER_STATES 64
#define AME_NBOF_PARAMS 628
#define AME_NBOF_REAL_PARAMS 385
#define AME_NBOF_INT_PARAMS 112
#define AME_NBOF_TEXT_PARAMS 7
#define AME_NBOF_CSTATE_PARAMS 64
#define AME_NBOF_DSTATE_PARAMS 12
#define AME_NBOF_FIXED_VAR_PARAMS 48
#define AME_NBOF_VARS 640
#define AME_NBOF_INPUTS 0
#define AME_NBOF_OUTPUTS 0
#define AME_NBOF_REAL_STORES 230
#define AME_NBOF_INT_STORES 134
#define AME_NBOF_POINTER_STORES 2
#define AME_SIZEOF_DBWORK_ARRAY 4
#define AME_NB_VAR_INFO 592
#define AME_NB_NETWORK 0
#define AME_NB_SUBMODEL_REF 81
static const S_AMEModelDef GmodelDef = {
AME_MODEL_ISEXPLICIT,
AME_NBOF_EXPLICIT_STATE,
AME_NBOF_IMPLICIT_STATE_DECLARED,
AME_NBOF_IMPLICIT_STATE_GENERATED,
AME_NBOF_DISCRETE_STATE,
AME_NBOF_VARS,
AME_NBOF_PARAMS,
AME_NBOF_REAL_PARAMS,
AME_NBOF_INT_PARAMS,
AME_NBOF_TEXT_PARAMS,
AME_NBOF_CSTATE_PARAMS,
AME_NBOF_DSTATE_PARAMS,
AME_NBOF_FIXED_VAR_PARAMS,
AME_NBOF_INPUTS,
AME_NBOF_OUTPUTS,
AME_NBOF_REAL_STORES,
AME_NBOF_INT_STORES,
AME_NBOF_POINTER_STORES,
AME_SIZEOF_DBWORK_ARRAY,
AME_NB_VAR_INFO,
AME_NB_NETWORK,
AME_NB_SUBMODEL_REF
};
static const char **GinputVarTitles = NULL;
static const char **GoutputVarTitles = NULL;
/**** Parameters structure definition ****/
#define NB_SUBMODELNAME 71
static const char* GsubmodelNameArray[NB_SUBMODELNAME] = {
"PNRP17 instance 1"
, "PNRP17 instance 2"
, "PNRP17 instance 3"
, "PNRP17 instance 4"
, "F000 instance 1"
, "MECMAS21 instance 1"
, "F000 instance 2"
, "MECMAS21 instance 2"
, "F000 instance 3"
, "MECMAS21 instance 3"
, "F000 instance 4"
, "MECMAS21 instance 4"
, "LMECHN1 instance 1"
, "MECMAS21 instance 5"
, "LSTP00A instance 1"
, "LSTP00A instance 2"
, "LSTP00A instance 3"
, "LSTP00A instance 4"
, "LMECHN1 instance 2"
, "MECMAS21 instance 6"
, "PNCH012 instance 1"
, "PNPL01 instance 1"
, "PNPL01 instance 2"
, "PNCH012 instance 2"
, "PNPL01 instance 3"
, "PNPL01 instance 4"
, "PNCH012 instance 3"
, "PNPL01 instance 5"
, "PNPL01 instance 6"
, "PNCH012 instance 4"
, "PNPL01 instance 7"
, "PNPL01 instance 8"
, "F000 instance 5"
, "F000 instance 6"
, "F000 instance 7"
, "F000 instance 8"
, "PNCH023 instance 1"
, "PNOR001 instance 1"
, "PNOR001 instance 2"
, "PNCH023 instance 2"
, "PNOR001 instance 3"
, "PNOR001 instance 4"
, "UD00 instance 1"
, "UD00 instance 2"
, "PNVO001 instance 1"
, "STEP0 instance 1"
, "PNVO001 instance 2"
, "STEP0 instance 2"
, "PNVO001 instance 3"
, "STEP0 instance 3"
, "PNVO001 instance 4"
, "STEP0 instance 4"
, "PNGD00 instance 1"
, "PNL0001 instance 1"
, "PNL0001 instance 2"
, "PNL0001 instance 3"
, "PNL0001 instance 4"
, "PNL0003 instance 1"
, "PNL0003 instance 2"
, "PNL0002 instance 1"
, "PNL0002 instance 2"
, "PNL0002 instance 3"
, "PNL0003 instance 3"
, "PNL0003 instance 4"
, "PNL0001 instance 5"
, "PNL0001 instance 6"
, "PNL0001 instance 7"
, "PNL0001 instance 8"
, "PNL00R instance 1"
, "PNL00R instance 2"
, "PNL0002 instance 4"
};
static const S_AMEParamInfo GParamInfo[628] = {
{E_Real_Param , E_Expression_Param, 0, -1, 0, 0}
, {E_Real_Param , E_Expression_Param, 1, -1, 0, 0}
, {E_Real_Param , E_Expression_Param, 2, -1, 0, 0}
, {E_Int_Param , E_Expression_Param, 0, -1, 0, 0}
, {E_FixedVar_Param , E_Expression_Param, 0, 2, 0, 0}
, {E_FixedVar_Param , E_Expression_Param, 1, 3, 0, 0}
, {E_Real_Param , E_Expression_Param, 3, -1, 1, 0}
, {E_Real_Param , E_Expression_Param, 4, -1, 1, 0}
, {E_Real_Param , E_Expression_Param, 5, -1, 1, 0}
, {E_Int_Param , E_Expression_Param, 1, -1, 1, 0}
, {E_FixedVar_Param , E_Expression_Param, 2, 22, 1, 0}
, {E_FixedVar_Param , E_Expression_Param, 3, 23, 1, 0}
, {E_Real_Param , E_Expression_Param, 6, -1, 2, 0}
, {E_Real_Param , E_Expression_Param, 7, -1, 2, 0}
, {E_Real_Param , E_Expression_Param, 8, -1, 2, 0}
, {E_Int_Param , E_Expression_Param, 2, -1, 2, 0}
, {E_FixedVar_Param , E_Expression_Param, 4, 42, 2, 0}
, {E_FixedVar_Param , E_Expression_Param, 5, 43, 2, 0}
, {E_Real_Param , E_Expression_Param, 9, -1, 3, 0}
, {E_Real_Param , E_Expression_Param, 10, -1, 3, 0}
, {E_Real_Param , E_Expression_Param, 11, -1, 3, 0}
, {E_Int_Param , E_Expression_Param, 3, -1, 3, 0}
, {E_FixedVar_Param , E_Expression_Param, 6, 62, 3, 0}
, {E_FixedVar_Param , E_Expression_Param, 7, 63, 3, 0}
, {E_FixedVar_Param , E_Expression_Param, 8, 83, 4, 0}
, {E_Real_Param , E_Expression_Param, 12, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 13, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 14, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 15, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 16, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 17, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 18, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 19, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 20, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 21, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 22, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 23, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 24, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 25, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 26, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 27, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 28, -1, 5, 0}
, {E_Real_Param , E_Expression_Param, 29, -1, 5, 0}
, {E_Int_Param , E_Expression_Param, 4, -1, 5, 0}
, {E_Int_Param , E_Expression_Param, 5, -1, 5, 0}
, {E_Int_Param , E_Expression_Param, 6, -1, 5, 0}
, {E_Int_Param , E_Expression_Param, 7, -1, 5, 0}
, {E_Int_Param , E_Expression_Param, 8, -1, 5, 0}
, {E_ContinuousState_Param, E_Expression_Param, 0, 6, 5, 0}
, {E_ContinuousState_Param, E_Expression_Param, 1, 7, 5, 0}
, {E_FixedVar_Param , E_Expression_Param, 9, 97, 6, 0}
, {E_Real_Param , E_Expression_Param, 30, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 31, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 32, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 33, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 34, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 35, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 36, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 37, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 38, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 39, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 40, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 41, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 42, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 43, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 44, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 45, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 46, -1, 7, 0}
, {E_Real_Param , E_Expression_Param, 47, -1, 7, 0}
, {E_Int_Param , E_Expression_Param, 9, -1, 7, 0}
, {E_Int_Param , E_Expression_Param, 10, -1, 7, 0}
, {E_Int_Param , E_Expression_Param, 11, -1, 7, 0}
, {E_Int_Param , E_Expression_Param, 12, -1, 7, 0}
, {E_Int_Param , E_Expression_Param, 13, -1, 7, 0}
, {E_ContinuousState_Param, E_Expression_Param, 2, 26, 7, 0}
, {E_ContinuousState_Param, E_Expression_Param, 3, 27, 7, 0}
, {E_FixedVar_Param , E_Expression_Param, 10, 111, 8, 0}
, {E_Real_Param , E_Expression_Param, 48, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 49, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 50, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 51, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 52, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 53, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 54, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 55, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 56, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 57, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 58, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 59, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 60, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 61, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 62, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 63, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 64, -1, 9, 0}
, {E_Real_Param , E_Expression_Param, 65, -1, 9, 0}
, {E_Int_Param , E_Expression_Param, 14, -1, 9, 0}
, {E_Int_Param , E_Expression_Param, 15, -1, 9, 0}
, {E_Int_Param , E_Expression_Param, 16, -1, 9, 0}
, {E_Int_Param , E_Expression_Param, 17, -1, 9, 0}
, {E_Int_Param , E_Expression_Param, 18, -1, 9, 0}
, {E_ContinuousState_Param, E_Expression_Param, 4, 46, 9, 0}
, {E_ContinuousState_Param, E_Expression_Param, 5, 47, 9, 0}
, {E_FixedVar_Param , E_Expression_Param, 11, 125, 10, 0}
, {E_Real_Param , E_Expression_Param, 66, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 67, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 68, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 69, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 70, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 71, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 72, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 73, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 74, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 75, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 76, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 77, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 78, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 79, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 80, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 81, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 82, -1, 11, 0}
, {E_Real_Param , E_Expression_Param, 83, -1, 11, 0}
, {E_Int_Param , E_Expression_Param, 19, -1, 11, 0}
, {E_Int_Param , E_Expression_Param, 20, -1, 11, 0}
, {E_Int_Param , E_Expression_Param, 21, -1, 11, 0}
, {E_Int_Param , E_Expression_Param, 22, -1, 11, 0}
, {E_Int_Param , E_Expression_Param, 23, -1, 11, 0}
, {E_ContinuousState_Param, E_Expression_Param, 6, 66, 11, 0}
, {E_ContinuousState_Param, E_Expression_Param, 7, 67, 11, 0}
, {E_Int_Param , E_Expression_Param, 24, -1, 12, 0}
, {E_Real_Param , E_Expression_Param, 84, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 85, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 86, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 87, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 88, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 89, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 90, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 91, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 92, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 93, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 94, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 95, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 96, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 97, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 98, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 99, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 100, -1, 13, 0}
, {E_Real_Param , E_Expression_Param, 101, -1, 13, 0}
, {E_Int_Param , E_Expression_Param, 25, -1, 13, 0}
, {E_Int_Param , E_Expression_Param, 26, -1, 13, 0}
, {E_Int_Param , E_Expression_Param, 27, -1, 13, 0}
, {E_Int_Param , E_Expression_Param, 28, -1, 13, 0}
, {E_Int_Param , E_Expression_Param, 29, -1, 13, 0}
, {E_ContinuousState_Param, E_Expression_Param, 8, 153, 13, 0}
, {E_ContinuousState_Param, E_Expression_Param, 9, 154, 13, 0}
, {E_Real_Param , E_Expression_Param, 102, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 103, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 104, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 105, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 106, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 107, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 108, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 109, -1, 14, 0}
, {E_Int_Param , E_Expression_Param, 30, -1, 14, 0}
, {E_Int_Param , E_Expression_Param, 31, -1, 14, 0}
, {E_Real_Param , E_Expression_Param, 110, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 111, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 112, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 113, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 114, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 115, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 116, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 117, -1, 15, 0}
, {E_Int_Param , E_Expression_Param, 32, -1, 15, 0}
, {E_Int_Param , E_Expression_Param, 33, -1, 15, 0}
, {E_Real_Param , E_Expression_Param, 118, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 119, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 120, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 121, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 122, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 123, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 124, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 125, -1, 16, 0}
, {E_Int_Param , E_Expression_Param, 34, -1, 16, 0}
, {E_Int_Param , E_Expression_Param, 35, -1, 16, 0}
, {E_Real_Param , E_Expression_Param, 126, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 127, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 128, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 129, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 130, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 131, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 132, -1, 17, 0}
, {E_Real_Param , E_Expression_Param, 133, -1, 17, 0}
, {E_Int_Param , E_Expression_Param, 36, -1, 17, 0}
, {E_Int_Param , E_Expression_Param, 37, -1, 17, 0}
, {E_Int_Param , E_Expression_Param, 38, -1, 18, 0}
, {E_Real_Param , E_Expression_Param, 134, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 135, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 136, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 137, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 138, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 139, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 140, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 141, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 142, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 143, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 144, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 145, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 146, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 147, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 148, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 149, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 150, -1, 19, 0}
, {E_Real_Param , E_Expression_Param, 151, -1, 19, 0}
, {E_Int_Param , E_Expression_Param, 39, -1, 19, 0}
, {E_Int_Param , E_Expression_Param, 40, -1, 19, 0}
, {E_Int_Param , E_Expression_Param, 41, -1, 19, 0}
, {E_Int_Param , E_Expression_Param, 42, -1, 19, 0}
, {E_Int_Param , E_Expression_Param, 43, -1, 19, 0}
, {E_ContinuousState_Param, E_Expression_Param, 10, 182, 19, 0}
, {E_ContinuousState_Param, E_Expression_Param, 11, 183, 19, 0}
, {E_Real_Param , E_Expression_Param, 152, -1, 20, 0}
, {E_Real_Param , E_Expression_Param, 153, -1, 20, 0}
, {E_Real_Param , E_Expression_Param, 154, -1, 20, 0}
, {E_Real_Param , E_Expression_Param, 155, -1, 20, 0}
, {E_Int_Param , E_Expression_Param, 44, -1, 20, 0}
, {E_ContinuousState_Param, E_Expression_Param, 12, 204, 20, 0}
, {E_ContinuousState_Param, E_Expression_Param, 13, 205, 20, 0}
, {E_FixedVar_Param , E_Expression_Param, 12, 212, 21, 0}
, {E_FixedVar_Param , E_Expression_Param, 13, 213, 21, 0}
, {E_FixedVar_Param , E_Expression_Param, 14, 214, 21, 0}
, {E_FixedVar_Param , E_Expression_Param, 15, 215, 21, 0}
, {E_FixedVar_Param , E_Expression_Param, 16, 206, 22, 0}
, {E_FixedVar_Param , E_Expression_Param, 17, 207, 22, 0}
, {E_FixedVar_Param , E_Expression_Param, 18, 208, 22, 0}
, {E_FixedVar_Param , E_Expression_Param, 19, 209, 22, 0}
, {E_Real_Param , E_Expression_Param, 156, -1, 23, 0}
, {E_Real_Param , E_Expression_Param, 157, -1, 23, 0}
, {E_Real_Param , E_Expression_Param, 158, -1, 23, 0}
, {E_Real_Param , E_Expression_Param, 159, -1, 23, 0}
, {E_Int_Param , E_Expression_Param, 45, -1, 23, 0}
, {E_ContinuousState_Param, E_Expression_Param, 14, 224, 23, 0}
, {E_ContinuousState_Param, E_Expression_Param, 15, 225, 23, 0}
, {E_FixedVar_Param , E_Expression_Param, 20, 232, 24, 0}
, {E_FixedVar_Param , E_Expression_Param, 21, 233, 24, 0}
, {E_FixedVar_Param , E_Expression_Param, 22, 234, 24, 0}
, {E_FixedVar_Param , E_Expression_Param, 23, 235, 24, 0}
, {E_FixedVar_Param , E_Expression_Param, 24, 226, 25, 0}
, {E_FixedVar_Param , E_Expression_Param, 25, 227, 25, 0}
, {E_FixedVar_Param , E_Expression_Param, 26, 228, 25, 0}
, {E_FixedVar_Param , E_Expression_Param, 27, 229, 25, 0}
, {E_Real_Param , E_Expression_Param, 160, -1, 26, 0}
, {E_Real_Param , E_Expression_Param, 161, -1, 26, 0}
, {E_Real_Param , E_Expression_Param, 162, -1, 26, 0}
, {E_Real_Param , E_Expression_Param, 163, -1, 26, 0}
, {E_Int_Param , E_Expression_Param, 46, -1, 26, 0}
, {E_ContinuousState_Param, E_Expression_Param, 16, 244, 26, 0}
, {E_ContinuousState_Param, E_Expression_Param, 17, 245, 26, 0}
, {E_FixedVar_Param , E_Expression_Param, 28, 252, 27, 0}
, {E_FixedVar_Param , E_Expression_Param, 29, 253, 27, 0}
, {E_FixedVar_Param , E_Expression_Param, 30, 254, 27, 0}
, {E_FixedVar_Param , E_Expression_Param, 31, 255, 27, 0}
, {E_FixedVar_Param , E_Expression_Param, 32, 246, 28, 0}
, {E_FixedVar_Param , E_Expression_Param, 33, 247, 28, 0}
, {E_FixedVar_Param , E_Expression_Param, 34, 248, 28, 0}
, {E_FixedVar_Param , E_Expression_Param, 35, 249, 28, 0}
, {E_Real_Param , E_Expression_Param, 164, -1, 29, 0}
, {E_Real_Param , E_Expression_Param, 165, -1, 29, 0}
, {E_Real_Param , E_Expression_Param, 166, -1, 29, 0}
, {E_Real_Param , E_Expression_Param, 167, -1, 29, 0}
, {E_Int_Param , E_Expression_Param, 47, -1, 29, 0}
, {E_ContinuousState_Param, E_Expression_Param, 18, 264, 29, 0}
, {E_ContinuousState_Param, E_Expression_Param, 19, 265, 29, 0}
, {E_FixedVar_Param , E_Expression_Param, 36, 272, 30, 0}
, {E_FixedVar_Param , E_Expression_Param, 37, 273, 30, 0}
, {E_FixedVar_Param , E_Expression_Param, 38, 274, 30, 0}
, {E_FixedVar_Param , E_Expression_Param, 39, 275, 30, 0}
, {E_FixedVar_Param , E_Expression_Param, 40, 266, 31, 0}
, {E_FixedVar_Param , E_Expression_Param, 41, 267, 31, 0}
, {E_FixedVar_Param , E_Expression_Param, 42, 268, 31, 0}
, {E_FixedVar_Param , E_Expression_Param, 43, 269, 31, 0}
, {E_FixedVar_Param , E_Expression_Param, 44, 13, 32, 0}
, {E_FixedVar_Param , E_Expression_Param, 45, 33, 33, 0}
, {E_FixedVar_Param , E_Expression_Param, 46, 53, 34, 0}
, {E_FixedVar_Param , E_Expression_Param, 47, 73, 35, 0}
, {E_Real_Param , E_Expression_Param, 168, -1, 36, 0}
, {E_Real_Param , E_Expression_Param, 169, -1, 36, 0}
, {E_Real_Param , E_Expression_Param, 170, -1, 36, 0}
, {E_Real_Param , E_Expression_Param, 171, -1, 36, 0}
, {E_Int_Param , E_Expression_Param, 48, -1, 36, 0}
, {E_ContinuousState_Param, E_Expression_Param, 20, 283, 36, 0}
, {E_ContinuousState_Param, E_Expression_Param, 21, 284, 36, 0}
, {E_Real_Param , E_Expression_Param, 172, -1, 37, 0}
, {E_Real_Param , E_Expression_Param, 173, -1, 37, 0}
, {E_Real_Param , E_Expression_Param, 174, -1, 37, 0}
, {E_Real_Param , E_Expression_Param, 175, -1, 37, 0}
, {E_Int_Param , E_Expression_Param, 49, -1, 37, 0}
, {E_Int_Param , E_Expression_Param, 50, -1, 37, 0}
, {E_Real_Param , E_Expression_Param, 176, -1, 38, 0}
, {E_Real_Param , E_Expression_Param, 177, -1, 38, 0}
, {E_Real_Param , E_Expression_Param, 178, -1, 38, 0}
, {E_Real_Param , E_Expression_Param, 179, -1, 38, 0}
, {E_Int_Param , E_Expression_Param, 51, -1, 38, 0}
, {E_Int_Param , E_Expression_Param, 52, -1, 38, 0}
, {E_Real_Param , E_Expression_Param, 180, -1, 39, 0}
, {E_Real_Param , E_Expression_Param, 181, -1, 39, 0}
, {E_Real_Param , E_Expression_Param, 182, -1, 39, 0}
, {E_Real_Param , E_Expression_Param, 183, -1, 39, 0}
, {E_Int_Param , E_Expression_Param, 53, -1, 39, 0}
, {E_ContinuousState_Param, E_Expression_Param, 30, 340, 39, 0}
, {E_ContinuousState_Param, E_Expression_Param, 31, 341, 39, 0}
, {E_Real_Param , E_Expression_Param, 184, -1, 40, 0}
, {E_Real_Param , E_Expression_Param, 185, -1, 40, 0}
, {E_Real_Param , E_Expression_Param, 186, -1, 40, 0}
, {E_Real_Param , E_Expression_Param, 187, -1, 40, 0}
, {E_Int_Param , E_Expression_Param, 54, -1, 40, 0}
, {E_Int_Param , E_Expression_Param, 55, -1, 40, 0}
, {E_Real_Param , E_Expression_Param, 188, -1, 41, 0}
, {E_Real_Param , E_Expression_Param, 189, -1, 41, 0}
, {E_Real_Param , E_Expression_Param, 190, -1, 41, 0}
, {E_Real_Param , E_Expression_Param, 191, -1, 41, 0}
, {E_Int_Param , E_Expression_Param, 56, -1, 41, 0}
, {E_Int_Param , E_Expression_Param, 57, -1, 41, 0}
, {E_Real_Param , E_Expression_Param, 192, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 193, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 194, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 195, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 196, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 197, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 198, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 199, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 200, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 201, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 202, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 203, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 204, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 205, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 206, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 207, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 208, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 209, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 210, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 211, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 212, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 213, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 214, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 215, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 216, -1, 42, 0}
, {E_Int_Param , E_Expression_Param, 58, -1, 42, 0}
, {E_Int_Param , E_Expression_Param, 59, -1, 42, 0}
, {E_Real_Param , E_Expression_Param, 217, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 218, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 219, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 220, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 221, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 222, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 223, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 224, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 225, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 226, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 227, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 228, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 229, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 230, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 231, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 232, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 233, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 234, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 235, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 236, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 237, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 238, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 239, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 240, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 241, -1, 43, 0}
, {E_Int_Param , E_Expression_Param, 60, -1, 43, 0}
, {E_Int_Param , E_Expression_Param, 61, -1, 43, 0}
, {E_Real_Param , E_Expression_Param, 242, -1, 44, 0}
, {E_Real_Param , E_Expression_Param, 243, -1, 44, 0}
, {E_Real_Param , E_Expression_Param, 244, -1, 44, 0}
, {E_Real_Param , E_Expression_Param, 245, -1, 44, 0}
, {E_Int_Param , E_Expression_Param, 62, -1, 44, 0}
, {E_Int_Param , E_Expression_Param, 63, -1, 44, 0}
, {E_Real_Param , E_Expression_Param, 246, -1, 45, 1}
, {E_Real_Param , E_Expression_Param, 247, -1, 45, 1}
, {E_Real_Param , E_Expression_Param, 248, -1, 45, 1}
, {E_Real_Param , E_Expression_Param, 249, -1, 45, 0}
, {E_Int_Param , E_Expression_Param, 64, -1, 45, 0}
, {E_DiscreteState_Param , E_Expression_Param, 0, 500, 45, 0}
, {E_DiscreteState_Param , E_Expression_Param, 1, 501, 45, 0}
, {E_DiscreteState_Param , E_Expression_Param, 2, 502, 45, 0}
, {E_Real_Param , E_Expression_Param, 250, -1, 46, 0}
, {E_Real_Param , E_Expression_Param, 251, -1, 46, 0}
, {E_Real_Param , E_Expression_Param, 252, -1, 46, 0}
, {E_Real_Param , E_Expression_Param, 253, -1, 46, 0}
, {E_Int_Param , E_Expression_Param, 65, -1, 46, 0}
, {E_Int_Param , E_Expression_Param, 66, -1, 46, 0}
, {E_Real_Param , E_Expression_Param, 254, -1, 47, 1}
, {E_Real_Param , E_Expression_Param, 255, -1, 47, 1}
, {E_Real_Param , E_Expression_Param, 256, -1, 47, 1}
, {E_Real_Param , E_Expression_Param, 257, -1, 47, 0}
, {E_Int_Param , E_Expression_Param, 67, -1, 47, 0}
, {E_DiscreteState_Param , E_Expression_Param, 3, 511, 47, 0}
, {E_DiscreteState_Param , E_Expression_Param, 4, 512, 47, 0}
, {E_DiscreteState_Param , E_Expression_Param, 5, 513, 47, 0}
, {E_Real_Param , E_Expression_Param, 258, -1, 48, 0}
, {E_Real_Param , E_Expression_Param, 259, -1, 48, 0}
, {E_Real_Param , E_Expression_Param, 260, -1, 48, 0}
, {E_Real_Param , E_Expression_Param, 261, -1, 48, 0}
, {E_Int_Param , E_Expression_Param, 68, -1, 48, 0}
, {E_Int_Param , E_Expression_Param, 69, -1, 48, 0}
, {E_Real_Param , E_Expression_Param, 262, -1, 49, 1}
, {E_Real_Param , E_Expression_Param, 263, -1, 49, 1}
, {E_Real_Param , E_Expression_Param, 264, -1, 49, 1}
, {E_Real_Param , E_Expression_Param, 265, -1, 49, 0}
, {E_Int_Param , E_Expression_Param, 70, -1, 49, 0}
, {E_DiscreteState_Param , E_Expression_Param, 6, 522, 49, 0}
, {E_DiscreteState_Param , E_Expression_Param, 7, 523, 49, 0}
, {E_DiscreteState_Param , E_Expression_Param, 8, 524, 49, 0}
, {E_Real_Param , E_Expression_Param, 266, -1, 50, 0}
, {E_Real_Param , E_Expression_Param, 267, -1, 50, 0}
, {E_Real_Param , E_Expression_Param, 268, -1, 50, 0}
, {E_Real_Param , E_Expression_Param, 269, -1, 50, 0}
, {E_Int_Param , E_Expression_Param, 71, -1, 50, 0}
, {E_Int_Param , E_Expression_Param, 72, -1, 50, 0}
, {E_Real_Param , E_Expression_Param, 270, -1, 51, 1}
, {E_Real_Param , E_Expression_Param, 271, -1, 51, 1}
, {E_Real_Param , E_Expression_Param, 272, -1, 51, 1}
, {E_Real_Param , E_Expression_Param, 273, -1, 51, 0}
, {E_Int_Param , E_Expression_Param, 73, -1, 51, 0}
, {E_DiscreteState_Param , E_Expression_Param, 9, 533, 51, 0}
, {E_DiscreteState_Param , E_Expression_Param, 10, 534, 51, 0}
, {E_DiscreteState_Param , E_Expression_Param, 11, 535, 51, 0}
, {E_Real_Param , E_Expression_Param, 274, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 275, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 276, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 277, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 278, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 279, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 280, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 281, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 282, -1, 52, 0}
, {E_Int_Param , E_Expression_Param, 74, -1, 52, 0}
, {E_Int_Param , E_Expression_Param, 75, -1, 52, 0}
, {E_Int_Param , E_Expression_Param, 76, -1, 52, 0}
, {E_Int_Param , E_Expression_Param, 77, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 0, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 1, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 2, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 3, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 4, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 5, -1, 52, 0}
, {E_Text_Param , E_Expression_Param, 6, -1, 52, 0}
, {E_Real_Param , E_Expression_Param, 283, -1, 53, 0}
, {E_Real_Param , E_Expression_Param, 284, -1, 53, 0}
, {E_Real_Param , E_Expression_Param, 285, -1, 53, 0}
, {E_Real_Param , E_Expression_Param, 286, -1, 53, 0}
, {E_Real_Param , E_Expression_Param, 287, -1, 53, 0}
, {E_Real_Param , E_Expression_Param, 288, -1, 53, 0}
, {E_Int_Param , E_Expression_Param, 78, -1, 53, 0}
, {E_Int_Param , E_Expression_Param, 79, -1, 53, 0}
, {E_ContinuousState_Param, E_Expression_Param, 46, 473, 53, 0}
, {E_ContinuousState_Param, E_Expression_Param, 47, 474, 53, 0}
, {E_Real_Param , E_Expression_Param, 289, -1, 54, 0}
, {E_Real_Param , E_Expression_Param, 290, -1, 54, 0}
, {E_Real_Param , E_Expression_Param, 291, -1, 54, 0}
, {E_Real_Param , E_Expression_Param, 292, -1, 54, 0}
, {E_Real_Param , E_Expression_Param, 293, -1, 54, 0}
, {E_Real_Param , E_Expression_Param, 294, -1, 54, 0}
, {E_Int_Param , E_Expression_Param, 80, -1, 54, 0}
, {E_Int_Param , E_Expression_Param, 81, -1, 54, 0}
, {E_ContinuousState_Param, E_Expression_Param, 44, 449, 54, 0}
, {E_ContinuousState_Param, E_Expression_Param, 45, 450, 54, 0}
, {E_Real_Param , E_Expression_Param, 295, -1, 55, 0}
, {E_Real_Param , E_Expression_Param, 296, -1, 55, 0}
, {E_Real_Param , E_Expression_Param, 297, -1, 55, 0}
, {E_Real_Param , E_Expression_Param, 298, -1, 55, 0}
, {E_Real_Param , E_Expression_Param, 299, -1, 55, 0}
, {E_Real_Param , E_Expression_Param, 300, -1, 55, 0}
, {E_Int_Param , E_Expression_Param, 82, -1, 55, 0}
, {E_Int_Param , E_Expression_Param, 83, -1, 55, 0}
, {E_ContinuousState_Param, E_Expression_Param, 42, 425, 55, 0}
, {E_ContinuousState_Param, E_Expression_Param, 43, 426, 55, 0}
, {E_Real_Param , E_Expression_Param, 301, -1, 56, 0}
, {E_Real_Param , E_Expression_Param, 302, -1, 56, 0}
, {E_Real_Param , E_Expression_Param, 303, -1, 56, 0}
, {E_Real_Param , E_Expression_Param, 304, -1, 56, 0}
, {E_Real_Param , E_Expression_Param, 305, -1, 56, 0}
, {E_Real_Param , E_Expression_Param, 306, -1, 56, 0}
, {E_Int_Param , E_Expression_Param, 84, -1, 56, 0}
, {E_Int_Param , E_Expression_Param, 85, -1, 56, 0}
, {E_ContinuousState_Param, E_Expression_Param, 40, 401, 56, 0}
, {E_ContinuousState_Param, E_Expression_Param, 41, 402, 56, 0}
, {E_Real_Param , E_Expression_Param, 307, -1, 57, 0}
, {E_Real_Param , E_Expression_Param, 308, -1, 57, 0}
, {E_Real_Param , E_Expression_Param, 309, -1, 57, 0}
, {E_Real_Param , E_Expression_Param, 310, -1, 57, 0}
, {E_Real_Param , E_Expression_Param, 311, -1, 57, 0}
, {E_Real_Param , E_Expression_Param, 312, -1, 57, 0}
, {E_Int_Param , E_Expression_Param, 86, -1, 57, 0}
, {E_Int_Param , E_Expression_Param, 87, -1, 57, 0}
, {E_ContinuousState_Param, E_Expression_Param, 36, 365, 57, 0}
, {E_ContinuousState_Param, E_Expression_Param, 37, 366, 57, 0}
, {E_ContinuousState_Param, E_Expression_Param, 52, 515, 57, 0}
, {E_ContinuousState_Param, E_Expression_Param, 53, 516, 57, 0}
, {E_Real_Param , E_Expression_Param, 313, -1, 58, 0}
, {E_Real_Param , E_Expression_Param, 314, -1, 58, 0}
, {E_Real_Param , E_Expression_Param, 315, -1, 58, 0}
, {E_Real_Param , E_Expression_Param, 316, -1, 58, 0}
, {E_Real_Param , E_Expression_Param, 317, -1, 58, 0}
, {E_Real_Param , E_Expression_Param, 318, -1, 58, 0}
, {E_Int_Param , E_Expression_Param, 88, -1, 58, 0}
, {E_Int_Param , E_Expression_Param, 89, -1, 58, 0}
, {E_ContinuousState_Param, E_Expression_Param, 38, 383, 58, 0}
, {E_ContinuousState_Param, E_Expression_Param, 39, 384, 58, 0}
, {E_ContinuousState_Param, E_Expression_Param, 54, 526, 58, 0}
, {E_ContinuousState_Param, E_Expression_Param, 55, 527, 58, 0}
, {E_Real_Param , E_Expression_Param, 319, -1, 59, 0}
, {E_Real_Param , E_Expression_Param, 320, -1, 59, 0}
, {E_Real_Param , E_Expression_Param, 321, -1, 59, 0}
, {E_Real_Param , E_Expression_Param, 322, -1, 59, 0}
, {E_Real_Param , E_Expression_Param, 323, -1, 59, 0}
, {E_Real_Param , E_Expression_Param, 324, -1, 59, 0}
, {E_Int_Param , E_Expression_Param, 90, -1, 59, 0}
, {E_Int_Param , E_Expression_Param, 91, -1, 59, 0}
, {E_ContinuousState_Param, E_Expression_Param, 56, 570, 59, 0}
, {E_ContinuousState_Param, E_Expression_Param, 57, 571, 59, 0}
, {E_Real_Param , E_Expression_Param, 325, -1, 60, 0}
, {E_Real_Param , E_Expression_Param, 326, -1, 60, 0}
, {E_Real_Param , E_Expression_Param, 327, -1, 60, 0}
, {E_Real_Param , E_Expression_Param, 328, -1, 60, 0}
, {E_Real_Param , E_Expression_Param, 329, -1, 60, 0}
, {E_Real_Param , E_Expression_Param, 330, -1, 60, 0}
, {E_Int_Param , E_Expression_Param, 92, -1, 60, 0}
, {E_Int_Param , E_Expression_Param, 93, -1, 60, 0}
, {E_ContinuousState_Param, E_Expression_Param, 58, 577, 60, 0}
, {E_ContinuousState_Param, E_Expression_Param, 59, 578, 60, 0}
, {E_Real_Param , E_Expression_Param, 331, -1, 61, 0}
, {E_Real_Param , E_Expression_Param, 332, -1, 61, 0}
, {E_Real_Param , E_Expression_Param, 333, -1, 61, 0}
, {E_Real_Param , E_Expression_Param, 334, -1, 61, 0}
, {E_Real_Param , E_Expression_Param, 335, -1, 61, 0}
, {E_Real_Param , E_Expression_Param, 336, -1, 61, 0}
, {E_Int_Param , E_Expression_Param, 94, -1, 61, 0}
, {E_Int_Param , E_Expression_Param, 95, -1, 61, 0}
, {E_ContinuousState_Param, E_Expression_Param, 60, 584, 61, 0}
, {E_ContinuousState_Param, E_Expression_Param, 61, 585, 61, 0}
, {E_Real_Param , E_Expression_Param, 337, -1, 62, 0}
, {E_Real_Param , E_Expression_Param, 338, -1, 62, 0}
, {E_Real_Param , E_Expression_Param, 339, -1, 62, 0}
, {E_Real_Param , E_Expression_Param, 340, -1, 62, 0}
, {E_Real_Param , E_Expression_Param, 341, -1, 62, 0}
, {E_Real_Param , E_Expression_Param, 342, -1, 62, 0}
, {E_Int_Param , E_Expression_Param, 96, -1, 62, 0}
, {E_Int_Param , E_Expression_Param, 97, -1, 62, 0}
, {E_ContinuousState_Param, E_Expression_Param, 26, 308, 62, 0}
, {E_ContinuousState_Param, E_Expression_Param, 27, 309, 62, 0}
, {E_ContinuousState_Param, E_Expression_Param, 48, 493, 62, 0}
, {E_ContinuousState_Param, E_Expression_Param, 49, 494, 62, 0}
, {E_Real_Param , E_Expression_Param, 343, -1, 63, 0}
, {E_Real_Param , E_Expression_Param, 344, -1, 63, 0}
, {E_Real_Param , E_Expression_Param, 345, -1, 63, 0}
, {E_Real_Param , E_Expression_Param, 346, -1, 63, 0}
, {E_Real_Param , E_Expression_Param, 347, -1, 63, 0}
, {E_Real_Param , E_Expression_Param, 348, -1, 63, 0}
, {E_Int_Param , E_Expression_Param, 98, -1, 63, 0}
, {E_Int_Param , E_Expression_Param, 99, -1, 63, 0}
, {E_ContinuousState_Param, E_Expression_Param, 28, 326, 63, 0}
, {E_ContinuousState_Param, E_Expression_Param, 29, 327, 63, 0}
, {E_ContinuousState_Param, E_Expression_Param, 50, 504, 63, 0}
, {E_ContinuousState_Param, E_Expression_Param, 51, 505, 63, 0}
, {E_Real_Param , E_Expression_Param, 349, -1, 64, 0}
, {E_Real_Param , E_Expression_Param, 350, -1, 64, 0}
, {E_Real_Param , E_Expression_Param, 351, -1, 64, 0}
, {E_Real_Param , E_Expression_Param, 352, -1, 64, 0}
, {E_Real_Param , E_Expression_Param, 353, -1, 64, 0}
, {E_Real_Param , E_Expression_Param, 354, -1, 64, 0}
, {E_Int_Param , E_Expression_Param, 100, -1, 64, 0}
, {E_Int_Param , E_Expression_Param, 101, -1, 64, 0}
, {E_ContinuousState_Param, E_Expression_Param, 22, 290, 64, 0}
, {E_ContinuousState_Param, E_Expression_Param, 23, 291, 64, 0}
, {E_Real_Param , E_Expression_Param, 355, -1, 65, 0}
, {E_Real_Param , E_Expression_Param, 356, -1, 65, 0}
, {E_Real_Param , E_Expression_Param, 357, -1, 65, 0}
, {E_Real_Param , E_Expression_Param, 358, -1, 65, 0}
, {E_Real_Param , E_Expression_Param, 359, -1, 65, 0}
, {E_Real_Param , E_Expression_Param, 360, -1, 65, 0}
, {E_Int_Param , E_Expression_Param, 102, -1, 65, 0}
, {E_Int_Param , E_Expression_Param, 103, -1, 65, 0}
, {E_ContinuousState_Param, E_Expression_Param, 24, 296, 65, 0}
, {E_ContinuousState_Param, E_Expression_Param, 25, 297, 65, 0}
, {E_Real_Param , E_Expression_Param, 361, -1, 66, 0}
, {E_Real_Param , E_Expression_Param, 362, -1, 66, 0}
, {E_Real_Param , E_Expression_Param, 363, -1, 66, 0}
, {E_Real_Param , E_Expression_Param, 364, -1, 66, 0}
, {E_Real_Param , E_Expression_Param, 365, -1, 66, 0}
, {E_Real_Param , E_Expression_Param, 366, -1, 66, 0}
, {E_Int_Param , E_Expression_Param, 104, -1, 66, 0}
, {E_Int_Param , E_Expression_Param, 105, -1, 66, 0}
, {E_ContinuousState_Param, E_Expression_Param, 32, 347, 66, 0}
, {E_ContinuousState_Param, E_Expression_Param, 33, 348, 66, 0}
, {E_Real_Param , E_Expression_Param, 367, -1, 67, 0}
, {E_Real_Param , E_Expression_Param, 368, -1, 67, 0}
, {E_Real_Param , E_Expression_Param, 369, -1, 67, 0}
, {E_Real_Param , E_Expression_Param, 370, -1, 67, 0}
, {E_Real_Param , E_Expression_Param, 371, -1, 67, 0}
, {E_Real_Param , E_Expression_Param, 372, -1, 67, 0}
, {E_Int_Param , E_Expression_Param, 106, -1, 67, 0}
, {E_Int_Param , E_Expression_Param, 107, -1, 67, 0}
, {E_ContinuousState_Param, E_Expression_Param, 34, 353, 67, 0}
, {E_ContinuousState_Param, E_Expression_Param, 35, 354, 67, 0}
, {E_Real_Param , E_Expression_Param, 373, -1, 68, 0}
, {E_Real_Param , E_Expression_Param, 374, -1, 68, 0}
, {E_Real_Param , E_Expression_Param, 375, -1, 68, 0}
, {E_Int_Param , E_Expression_Param, 108, -1, 68, 0}
, {E_Real_Param , E_Expression_Param, 376, -1, 69, 0}
, {E_Real_Param , E_Expression_Param, 377, -1, 69, 0}
, {E_Real_Param , E_Expression_Param, 378, -1, 69, 0}
, {E_Int_Param , E_Expression_Param, 109, -1, 69, 0}
, {E_Real_Param , E_Expression_Param, 379, -1, 70, 0}
, {E_Real_Param , E_Expression_Param, 380, -1, 70, 0}
, {E_Real_Param , E_Expression_Param, 381, -1, 70, 0}
, {E_Real_Param , E_Expression_Param, 382, -1, 70, 0}
, {E_Real_Param , E_Expression_Param, 383, -1, 70, 0}
, {E_Real_Param , E_Expression_Param, 384, -1, 70, 0}
, {E_Int_Param , E_Expression_Param, 110, -1, 70, 0}
, {E_Int_Param , E_Expression_Param, 111, -1, 70, 0}
, {E_ContinuousState_Param, E_Expression_Param, 62, 633, 70, 0}
, {E_ContinuousState_Param, E_Expression_Param, 63, 634, 70, 0}
};
#define NB_REAL_TUNABLE_PARAM 12
static const int GRealTunableParam[NB_REAL_TUNABLE_PARAM][2] = {
{246, 500}
, {247, 501}
, {248, 502}
, {254, 511}
, {255, 512}
, {256, 513}
, {262, 522}
, {263, 523}
, {264, 524}
, {270, 533}
, {271, 534}
, {272, 535}
};
#define NB_INT_TUNABLE_PARAM 0
static const int GcontStateVarNum[AME_NBOF_EXPLICIT_STATE] = {
6, 7, 26, 27, 46, 47, 66, 67, 153, 154
, 182, 183, 204, 205, 224, 225, 244, 245, 264, 265
, 283, 284, 290, 291, 296, 297, 308, 309, 326, 327
, 340, 341, 347, 348, 353, 354, 365, 366, 383, 384
, 401, 402, 425, 426, 449, 450, 473, 474, 493, 494
, 504, 505, 515, 516, 526, 527, 570, 571, 577, 578
, 584, 585, 633, 634
};
static const int GdiscStateVarNum[AME_NBOF_DSTATE_PARAMS] = {
500, 501, 502, 511, 512, 513, 522, 523, 524, 533
, 534, 535
};
static const int *GInputVarNum = NULL;
static const double *GInputStartValues = NULL;
static const int *GOutputVarNum = NULL;
static const int GFixedVarNum[AME_NBOF_FIXED_VAR_PARAMS] = {
2, 3, 22, 23, 42, 43, 62, 63, 83, 97
, 111, 125, 212, 213, 214, 215, 206, 207, 208, 209
, 232, 233, 234, 235, 226, 227, 228, 229, 252, 253
, 254, 255, 246, 247, 248, 249, 272, 273, 274, 275
, 266, 267, 268, 269, 13, 33, 53, 73
};
#define RS0 (&amesys->pModel->realStoreArray[0])
#define RP0 (&amesys->pModel->realParamArray[0])
#define IP0 (&amesys->pModel->integerParamArray[0])
#define RS1 (&amesys->pModel->realStoreArray[1])
#define RP1 (&amesys->pModel->realParamArray[3])
#define IP1 (&amesys->pModel->integerParamArray[1])
#define RS2 (&amesys->pModel->realStoreArray[2])
#define RP2 (&amesys->pModel->realParamArray[6])
#define IP2 (&amesys->pModel->integerParamArray[2])
#define RS3 (&amesys->pModel->realStoreArray[3])
#define RP3 (&amesys->pModel->realParamArray[9])
#define IP3 (&amesys->pModel->integerParamArray[3])
#define RS5 (&amesys->pModel->realStoreArray[4])
#define IS5 (&amesys->pModel->intStoreArray[0])
#define RP5 (&amesys->pModel->realParamArray[12])
#define IP5 (&amesys->pModel->integerParamArray[4])
#define RS7 (&amesys->pModel->realStoreArray[6])
#define IS7 (&amesys->pModel->intStoreArray[12])
#define RP7 (&amesys->pModel->realParamArray[30])
#define IP7 (&amesys->pModel->integerParamArray[9])
#define RS9 (&amesys->pModel->realStoreArray[8])
#define IS9 (&amesys->pModel->intStoreArray[24])
#define RP9 (&amesys->pModel->realParamArray[48])
#define IP9 (&amesys->pModel->integerParamArray[14])
#define RS11 (&amesys->pModel->realStoreArray[10])
#define IS11 (&amesys->pModel->intStoreArray[36])
#define RP11 (&amesys->pModel->realParamArray[66])
#define IP11 (&amesys->pModel->integerParamArray[19])
#define IP12 (&amesys->pModel->integerParamArray[24])
#define RS13 (&amesys->pModel->realStoreArray[12])
#define IS13 (&amesys->pModel->intStoreArray[48])
#define RP13 (&amesys->pModel->realParamArray[84])
#define IP13 (&amesys->pModel->integerParamArray[25])
#define RS14 (&amesys->pModel->realStoreArray[14])
#define IS14 (&amesys->pModel->intStoreArray[60])
#define RP14 (&amesys->pModel->realParamArray[102])
#define IP14 (&amesys->pModel->integerParamArray[30])
#define RS15 (&amesys->pModel->realStoreArray[16])
#define IS15 (&amesys->pModel->intStoreArray[63])
#define RP15 (&amesys->pModel->realParamArray[110])
#define IP15 (&amesys->pModel->integerParamArray[32])
#define RS16 (&amesys->pModel->realStoreArray[18])
#define IS16 (&amesys->pModel->intStoreArray[66])
#define RP16 (&amesys->pModel->realParamArray[118])
#define IP16 (&amesys->pModel->integerParamArray[34])
#define RS17 (&amesys->pModel->realStoreArray[20])
#define IS17 (&amesys->pModel->intStoreArray[69])
#define RP17 (&amesys->pModel->realParamArray[126])
#define IP17 (&amesys->pModel->integerParamArray[36])
#define IP18 (&amesys->pModel->integerParamArray[38])
#define RS19 (&amesys->pModel->realStoreArray[22])
#define IS19 (&amesys->pModel->intStoreArray[72])
#define RP19 (&amesys->pModel->realParamArray[134])
#define IP19 (&amesys->pModel->integerParamArray[39])
#define RS20 (&amesys->pModel->realStoreArray[24])
#define IS20 (&amesys->pModel->intStoreArray[84])
#define RP20 (&amesys->pModel->realParamArray[152])
#define IP20 (&amesys->pModel->integerParamArray[44])
#define RS23 (&amesys->pModel->realStoreArray[26])
#define IS23 (&amesys->pModel->intStoreArray[86])
#define RP23 (&amesys->pModel->realParamArray[156])
#define IP23 (&amesys->pModel->integerParamArray[45])
#define RS26 (&amesys->pModel->realStoreArray[28])
#define IS26 (&amesys->pModel->intStoreArray[88])
#define RP26 (&amesys->pModel->realParamArray[160])
#define IP26 (&amesys->pModel->integerParamArray[46])
#define RS29 (&amesys->pModel->realStoreArray[30])
#define IS29 (&amesys->pModel->intStoreArray[90])
#define RP29 (&amesys->pModel->realParamArray[164])
#define IP29 (&amesys->pModel->integerParamArray[47])
#define RS37 (&amesys->pModel->realStoreArray[32])
#define IS37 (&amesys->pModel->intStoreArray[92])
#define RP37 (&amesys->pModel->realParamArray[168])
#define IP37 (&amesys->pModel->integerParamArray[48])
#define RS38 (&amesys->pModel->realStoreArray[33])
#define IS38 (&amesys->pModel->intStoreArray[93])
#define RP38 (&amesys->pModel->realParamArray[172])
#define IP38 (&amesys->pModel->integerParamArray[49])
#define RS39 (&amesys->pModel->realStoreArray[36])
#define IS39 (&amesys->pModel->intStoreArray[94])
#define RP39 (&amesys->pModel->realParamArray[176])
#define IP39 (&amesys->pModel->integerParamArray[51])
#define RS42 (&amesys->pModel->realStoreArray[39])
#define IS42 (&amesys->pModel->intStoreArray[95])
#define RP42 (&amesys->pModel->realParamArray[180])
#define IP42 (&amesys->pModel->integerParamArray[53])
#define RS43 (&amesys->pModel->realStoreArray[40])
#define IS43 (&amesys->pModel->intStoreArray[96])
#define RP43 (&amesys->pModel->realParamArray[184])
#define IP43 (&amesys->pModel->integerParamArray[54])
#define RS44 (&amesys->pModel->realStoreArray[43])
#define IS44 (&amesys->pModel->intStoreArray[97])
#define RP44 (&amesys->pModel->realParamArray[188])
#define IP44 (&amesys->pModel->integerParamArray[56])
#define RS52 (&amesys->pModel->realStoreArray[46])
#define IS52 (&amesys->pModel->intStoreArray[98])
#define PS52 (&amesys->pModel->pointerStoreArray[0])
#define RP52 (&amesys->pModel->realParamArray[192])
#define IP52 (&amesys->pModel->integerParamArray[58])
#define RS53 (&amesys->pModel->realStoreArray[57])
#define IS53 (&amesys->pModel->intStoreArray[101])
#define PS53 (&amesys->pModel->pointerStoreArray[1])
#define RP53 (&amesys->pModel->realParamArray[217])
#define IP53 (&amesys->pModel->integerParamArray[60])
#define RS54 (&amesys->pModel->realStoreArray[68])
#define IS54 (&amesys->pModel->intStoreArray[104])
#define RP54 (&amesys->pModel->realParamArray[242])
#define IP54 (&amesys->pModel->integerParamArray[62])
#define RS55 (&amesys->pModel->realStoreArray[71])
#define IS55 (&amesys->pModel->intStoreArray[106])
#define RP55 (&amesys->pModel->realParamArray[246])
#define IP55 (&amesys->pModel->integerParamArray[64])
#define RS56 (&amesys->pModel->realStoreArray[77])
#define IS56 (&amesys->pModel->intStoreArray[107])
#define RP56 (&amesys->pModel->realParamArray[250])
#define IP56 (&amesys->pModel->integerParamArray[65])
#define RS57 (&amesys->pModel->realStoreArray[80])
#define IS57 (&amesys->pModel->intStoreArray[109])
#define RP57 (&amesys->pModel->realParamArray[254])
#define IP57 (&amesys->pModel->integerParamArray[67])
#define RS58 (&amesys->pModel->realStoreArray[86])
#define IS58 (&amesys->pModel->intStoreArray[110])
#define RP58 (&amesys->pModel->realParamArray[258])
#define IP58 (&amesys->pModel->integerParamArray[68])
#define RS59 (&amesys->pModel->realStoreArray[89])
#define IS59 (&amesys->pModel->intStoreArray[112])
#define RP59 (&amesys->pModel->realParamArray[262])
#define IP59 (&amesys->pModel->integerParamArray[70])
#define RS60 (&amesys->pModel->realStoreArray[95])
#define IS60 (&amesys->pModel->intStoreArray[113])
#define RP60 (&amesys->pModel->realParamArray[266])
#define IP60 (&amesys->pModel->integerParamArray[71])
#define RS61 (&amesys->pModel->realStoreArray[98])
#define IS61 (&amesys->pModel->intStoreArray[115])
#define RP61 (&amesys->pModel->realParamArray[270])
#define IP61 (&amesys->pModel->integerParamArray[73])
#define RP62 (&amesys->pModel->realParamArray[274])
#define IP62 (&amesys->pModel->integerParamArray[74])
#define TP62 (&amesys->pModel->textParamArray[0])
#define RS76 (&amesys->pModel->realStoreArray[104])
#define IS76 (&amesys->pModel->intStoreArray[116])
#define RP76 (&amesys->pModel->realParamArray[283])
#define IP76 (&amesys->pModel->integerParamArray[78])
#define RS77 (&amesys->pModel->realStoreArray[111])
#define IS77 (&amesys->pModel->intStoreArray[117])
#define RP77 (&amesys->pModel->realParamArray[289])
#define IP77 (&amesys->pModel->integerParamArray[80])
#define RS79 (&amesys->pModel->realStoreArray[118])
#define IS79 (&amesys->pModel->intStoreArray[118])
#define RP79 (&amesys->pModel->realParamArray[295])
#define IP79 (&amesys->pModel->integerParamArray[82])
#define RS80 (&amesys->pModel->realStoreArray[125])
#define IS80 (&amesys->pModel->intStoreArray[119])
#define RP80 (&amesys->pModel->realParamArray[301])
#define IP80 (&amesys->pModel->integerParamArray[84])
#define RS81 (&amesys->pModel->realStoreArray[132])
#define IS81 (&amesys->pModel->intStoreArray[120])
#define RP81 (&amesys->pModel->realParamArray[307])
#define IP81 (&amesys->pModel->integerParamArray[86])
#define RS82 (&amesys->pModel->realStoreArray[139])
#define IS82 (&amesys->pModel->intStoreArray[121])
#define RP82 (&amesys->pModel->realParamArray[313])
#define IP82 (&amesys->pModel->integerParamArray[88])
#define RS83 (&amesys->pModel->realStoreArray[146])
#define IS83 (&amesys->pModel->intStoreArray[122])
#define RP83 (&amesys->pModel->realParamArray[319])
#define IP83 (&amesys->pModel->integerParamArray[90])
#define RS84 (&amesys->pModel->realStoreArray[154])
#define IS84 (&amesys->pModel->intStoreArray[123])
#define RP84 (&amesys->pModel->realParamArray[325])
#define IP84 (&amesys->pModel->integerParamArray[92])
#define RS85 (&amesys->pModel->realStoreArray[162])
#define IS85 (&amesys->pModel->intStoreArray[124])
#define RP85 (&amesys->pModel->realParamArray[331])
#define IP85 (&amesys->pModel->integerParamArray[94])
#define RS86 (&amesys->pModel->realStoreArray[170])
#define IS86 (&amesys->pModel->intStoreArray[125])
#define RP86 (&amesys->pModel->realParamArray[337])
#define IP86 (&amesys->pModel->integerParamArray[96])
#define RS87 (&amesys->pModel->realStoreArray[177])
#define IS87 (&amesys->pModel->intStoreArray[126])
#define RP87 (&amesys->pModel->realParamArray[343])
#define IP87 (&amesys->pModel->integerParamArray[98])
#define RS90 (&amesys->pModel->realStoreArray[184])
#define IS90 (&amesys->pModel->intStoreArray[127])
#define RP90 (&amesys->pModel->realParamArray[349])
#define IP90 (&amesys->pModel->integerParamArray[100])
#define RS91 (&amesys->pModel->realStoreArray[191])
#define IS91 (&amesys->pModel->intStoreArray[128])
#define RP91 (&amesys->pModel->realParamArray[355])
#define IP91 (&amesys->pModel->integerParamArray[102])
#define RS92 (&amesys->pModel->realStoreArray[198])
#define IS92 (&amesys->pModel->intStoreArray[129])
#define RP92 (&amesys->pModel->realParamArray[361])
#define IP92 (&amesys->pModel->integerParamArray[104])
#define RS93 (&amesys->pModel->realStoreArray[205])
#define IS93 (&amesys->pModel->intStoreArray[130])
#define RP93 (&amesys->pModel->realParamArray[367])
#define IP93 (&amesys->pModel->integerParamArray[106])
#define RS94 (&amesys->pModel->realStoreArray[212])
#define IS94 (&amesys->pModel->intStoreArray[131])
#define RP94 (&amesys->pModel->realParamArray[373])
#define IP94 (&amesys->pModel->integerParamArray[108])
#define RS101 (&amesys->pModel->realStoreArray[217])
#define IS101 (&amesys->pModel->intStoreArray[132])
#define RP101 (&amesys->pModel->realParamArray[376])
#define IP101 (&amesys->pModel->integerParamArray[109])
#define RS102 (&amesys->pModel->realStoreArray[222])
#define IS102 (&amesys->pModel->intStoreArray[133])
#define RP102 (&amesys->pModel->realParamArray[379])
#define IP102 (&amesys->pModel->integerParamArray[110])
static int SP12[1] = {4};
static int SP18[1] = {4};
static const S_AMEVariableInfo GVarInfo[AME_NB_VAR_INFO] = {
{ 0, 1, 1, 1, "PNCH012", "temp3" }
,{ 1, 1, 1, 1, "PNCH012", "press3" }
,{ 2, 0, 1, 1, "PNRP17", "dh1" }
,{ 3, 0, 1, 1, "PNRP17", "dm1" }
,{ 4, 1, 1, 1, "PNRP17", "vvol1" }
,{ 5, 1, 1, 1, "PNRP17", "vol1" }
,{ 6, 1, 1, 1, "MECMAS21", "v1" }
,{ 7, 1, 1, 1, "MECMAS21", "x1" }
,{ 8, 1, 1, 1, "MECMAS21", "acc1" }
,{ 9, 1, 1, 1, "PNRP17", "f2" }
,{ 10, 1, 1, 2, "LMECHN1", "p4__vt" }
,{ 11, 1, 1, 2, "LMECHN1", "p4__xt" }
,{ 12, 1, 1, 1, "PNRP17", "f3" }
,{ 13, 1, 1, 5, "F000", "fzero" }
,{ 14, 1, 1, 1, "PNRP17", "v4" }
,{ 15, 1, 1, 1, "PNRP17", "x4" }
,{ 16, 1, 1, 1, "LSTP00A", "f1" }
,{ 17, 1, 1, 1, "PNRP17", "v5" }
,{ 18, 1, 1, 1, "PNRP17", "x5" }
,{ 19, 1, 1, 1, "PNRP17", "length" }
,{ 20, 1, 1, 2, "PNCH012", "temp3" }
,{ 21, 1, 1, 2, "PNCH012", "press3" }
,{ 22, 0, 1, 2, "PNRP17", "dh1" }
,{ 23, 0, 1, 2, "PNRP17", "dm1" }
,{ 24, 1, 1, 2, "PNRP17", "vvol1" }
,{ 25, 1, 1, 2, "PNRP17", "vol1" }
,{ 26, 1, 1, 2, "MECMAS21", "v1" }
,{ 27, 1, 1, 2, "MECMAS21", "x1" }
,{ 28, 1, 1, 2, "MECMAS21", "acc1" }
,{ 29, 1, 1, 2, "PNRP17", "f2" }
,{ 30, 1, 1, 2, "LMECHN1", "p3__vt" }
,{ 31, 1, 1, 2, "LMECHN1", "p3__xt" }
,{ 32, 1, 1, 2, "PNRP17", "f3" }
,{ 33, 1, 1, 6, "F000", "fzero" }
,{ 34, 1, 1, 2, "PNRP17", "v4" }
,{ 35, 1, 1, 2, "PNRP17", "x4" }
,{ 36, 1, 1, 2, "LSTP00A", "f1" }
,{ 37, 1, 1, 2, "PNRP17", "v5" }
,{ 38, 1, 1, 2, "PNRP17", "x5" }
,{ 39, 1, 1, 2, "PNRP17", "length" }
,{ 40, 1, 1, 3, "PNCH012", "temp3" }
,{ 41, 1, 1, 3, "PNCH012", "press3" }
,{ 42, 0, 1, 3, "PNRP17", "dh1" }
,{ 43, 0, 1, 3, "PNRP17", "dm1" }
,{ 44, 1, 1, 3, "PNRP17", "vvol1" }
,{ 45, 1, 1, 3, "PNRP17", "vol1" }
,{ 46, 1, 1, 3, "MECMAS21", "v1" }
,{ 47, 1, 1, 3, "MECMAS21", "x1" }
,{ 48, 1, 1, 3, "MECMAS21", "acc1" }
,{ 49, 1, 1, 3, "PNRP17", "f2" }
,{ 50, 1, 1, 2, "LMECHN1", "p2__vt" }
,{ 51, 1, 1, 2, "LMECHN1", "p2__xt" }
,{ 52, 1, 1, 3, "PNRP17", "f3" }
,{ 53, 1, 1, 7, "F000", "fzero" }
,{ 54, 1, 1, 3, "PNRP17", "v4" }
,{ 55, 1, 1, 3, "PNRP17", "x4" }
,{ 56, 1, 1, 3, "LSTP00A", "f1" }
,{ 57, 1, 1, 3, "PNRP17", "v5" }
,{ 58, 1, 1, 3, "PNRP17", "x5" }
,{ 59, 1, 1, 3, "PNRP17", "length" }
,{ 60, 1, 1, 4, "PNCH012", "temp3" }
,{ 61, 1, 1, 4, "PNCH012", "press3" }
,{ 62, 0, 1, 4, "PNRP17", "dh1" }
,{ 63, 0, 1, 4, "PNRP17", "dm1" }
,{ 64, 1, 1, 4, "PNRP17", "vvol1" }
,{ 65, 1, 1, 4, "PNRP17", "vol1" }
,{ 66, 1, 1, 4, "MECMAS21", "v1" }
,{ 67, 1, 1, 4, "MECMAS21", "x1" }
,{ 68, 1, 1, 4, "MECMAS21", "acc1" }
,{ 69, 1, 1, 4, "PNRP17", "f2" }
,{ 70, 1, 1, 2, "LMECHN1", "p1__vt" }
,{ 71, 1, 1, 2, "LMECHN1", "p1__xt" }
,{ 72, 1, 1, 4, "PNRP17", "f3" }
,{ 73, 1, 1, 8, "F000", "fzero" }
,{ 74, 1, 1, 4, "PNRP17", "v4" }
,{ 75, 1, 1, 4, "PNRP17", "x4" }
,{ 76, 1, 1, 4, "LSTP00A", "f1" }
,{ 77, 1, 1, 4, "PNRP17", "v5" }
,{ 78, 1, 1, 4, "PNRP17", "x5" }
,{ 79, 1, 1, 4, "PNRP17", "length" }
,{ 80, 1, 1, 1, "MECMAS21", "v1dup" }
,{ 81, 1, 1, 1, "MECMAS21", "x1dup" }
,{ 82, 1, 1, 1, "MECMAS21", "acc1dup" }
,{ 83, 1, 1, 1, "F000", "fzero" }
,{ 84, 1, 1, 1, "MECMAS21", "Fmin" }
,{ 85, 1, 1, 1, "MECMAS21", "Fmax" }
,{ 86, 1, 1, 1, "MECMAS21", "Fvisc" }
,{ 87, 1, 1, 1, "MECMAS21", "Ffric" }
,{ 88, 1, 1, 1, "MECMAS21", "stick" }
,{ 89, 0, 1, 1, "MECMAS21", "powerRfrict" }
,{ 90, 0, 1, 1, "MECMAS21", "powerImass" }
,{ 91, 0, 1, 1, "MECMAS21", "powerCendstop" }
,{ 92, 0, 1, 1, "MECMAS21", "powerSgrav" }
,{ 93, 0, 1, 1, "MECMAS21", "powerRendstop" }
,{ 94, 1, 1, 2, "MECMAS21", "v1dup" }
,{ 95, 1, 1, 2, "MECMAS21", "x1dup" }
,{ 96, 1, 1, 2, "MECMAS21", "acc1dup" }
,{ 97, 1, 1, 2, "F000", "fzero" }
,{ 98, 1, 1, 2, "MECMAS21", "Fmin" }
,{ 99, 1, 1, 2, "MECMAS21", "Fmax" }
,{ 100, 1, 1, 2, "MECMAS21", "Fvisc" }
,{ 101, 1, 1, 2, "MECMAS21", "Ffric" }
,{ 102, 1, 1, 2, "MECMAS21", "stick" }
,{ 103, 0, 1, 2, "MECMAS21", "powerRfrict" }
,{ 104, 0, 1, 2, "MECMAS21", "powerImass" }
,{ 105, 0, 1, 2, "MECMAS21", "powerCendstop" }
,{ 106, 0, 1, 2, "MECMAS21", "powerSgrav" }
,{ 107, 0, 1, 2, "MECMAS21", "powerRendstop" }
,{ 108, 1, 1, 3, "MECMAS21", "v1dup" }
,{ 109, 1, 1, 3, "MECMAS21", "x1dup" }
,{ 110, 1, 1, 3, "MECMAS21", "acc1dup" }
,{ 111, 1, 1, 3, "F000", "fzero" }
,{ 112, 1, 1, 3, "MECMAS21", "Fmin" }
,{ 113, 1, 1, 3, "MECMAS21", "Fmax" }
,{ 114, 1, 1, 3, "MECMAS21", "Fvisc" }
,{ 115, 1, 1, 3, "MECMAS21", "Ffric" }
,{ 116, 1, 1, 3, "MECMAS21", "stick" }
,{ 117, 0, 1, 3, "MECMAS21", "powerRfrict" }
,{ 118, 0, 1, 3, "MECMAS21", "powerImass" }
,{ 119, 0, 1, 3, "MECMAS21", "powerCendstop" }
,{ 120, 0, 1, 3, "MECMAS21", "powerSgrav" }
,{ 121, 0, 1, 3, "MECMAS21", "powerRendstop" }
,{ 122, 1, 1, 4, "MECMAS21", "v1dup" }
,{ 123, 1, 1, 4, "MECMAS21", "x1dup" }
,{ 124, 1, 1, 4, "MECMAS21", "acc1dup" }
,{ 125, 1, 1, 4, "F000", "fzero" }
,{ 126, 1, 1, 4, "MECMAS21", "Fmin" }
,{ 127, 1, 1, 4, "MECMAS21", "Fmax" }
,{ 128, 1, 1, 4, "MECMAS21", "Fvisc" }
,{ 129, 1, 1, 4, "MECMAS21", "Ffric" }
,{ 130, 1, 1, 4, "MECMAS21", "stick" }
,{ 131, 0, 1, 4, "MECMAS21", "powerRfrict" }
,{ 132, 0, 1, 4, "MECMAS21", "powerImass" }
,{ 133, 0, 1, 4, "MECMAS21", "powerCendstop" }
,{ 134, 0, 1, 4, "MECMAS21", "powerSgrav" }
,{ 135, 0, 1, 4, "MECMAS21", "powerRendstop" }
,{ 136, 1, 1, 1, "LSTP00A", "f2" }
,{ 137, 1, 1, 1, "LMECHN1", "p1__vt" }
,{ 138, 1, 1, 1, "LMECHN1", "p1__xt" }
,{ 139, 1, 1, 2, "LSTP00A", "f2" }
,{ 140, 1, 1, 1, "LMECHN1", "p2__vt" }
,{ 141, 1, 1, 1, "LMECHN1", "p2__xt" }
,{ 142, 1, 1, 3, "LSTP00A", "f2" }
,{ 143, 1, 1, 1, "LMECHN1", "p3__vt" }
,{ 144, 1, 1, 1, "LMECHN1", "p3__xt" }
,{ 145, 1, 1, 4, "LSTP00A", "f2" }
,{ 146, 1, 1, 1, "LMECHN1", "p4__vt" }
,{ 147, 1, 1, 1, "LMECHN1", "p4__xt" }
,{ 148, 1, 1, 5, "MECMAS21", "v1dup" }
,{ 149, 1, 1, 5, "MECMAS21", "x1dup" }
,{ 150, 1, 1, 5, "MECMAS21", "acc1dup" }
,{ 151, 1, 1, 1, "LMECHN1", "tforce" }
,{ 152, 1, 1, 2, "FORC", "force" }
,{ 153, 1, 1, 5, "MECMAS21", "v1" }
,{ 154, 1, 1, 5, "MECMAS21", "x1" }
,{ 155, 1, 1, 5, "MECMAS21", "acc1" }
,{ 156, 1, 1, 5, "MECMAS21", "Fmin" }
,{ 157, 1, 1, 5, "MECMAS21", "Fmax" }
,{ 158, 1, 1, 5, "MECMAS21", "Fvisc" }
,{ 159, 1, 1, 5, "MECMAS21", "Ffric" }
,{ 160, 1, 1, 5, "MECMAS21", "stick" }
,{ 161, 0, 1, 5, "MECMAS21", "powerRfrict" }
,{ 162, 0, 1, 5, "MECMAS21", "powerImass" }
,{ 163, 0, 1, 5, "MECMAS21", "powerCendstop" }
,{ 164, 0, 1, 5, "MECMAS21", "powerSgrav" }
,{ 165, 0, 1, 5, "MECMAS21", "powerRendstop" }
,{ 166, 1, 1, 1, "LSTP00A", "gap" }
,{ 167, 1, 1, 1, "LSTP00A", "kval" }
,{ 168, 0, 1, 1, "LSTP00A", "powerRdamp" }
,{ 169, 0, 1, 1, "LSTP00A", "powerCspring" }
,{ 170, 1, 1, 2, "LSTP00A", "gap" }
,{ 171, 1, 1, 2, "LSTP00A", "kval" }
,{ 172, 0, 1, 2, "LSTP00A", "powerRdamp" }
,{ 173, 0, 1, 2, "LSTP00A", "powerCspring" }
,{ 174, 1, 1, 3, "LSTP00A", "gap" }
,{ 175, 1, 1, 3, "LSTP00A", "kval" }
,{ 176, 0, 1, 3, "LSTP00A", "powerRdamp" }
,{ 177, 0, 1, 3, "LSTP00A", "powerCspring" }
,{ 178, 1, 1, 4, "LSTP00A", "gap" }
,{ 179, 1, 1, 4, "LSTP00A", "kval" }
,{ 180, 0, 1, 4, "LSTP00A", "powerRdamp" }
,{ 181, 0, 1, 4, "LSTP00A", "powerCspring" }
,{ 182, 1, 1, 6, "MECMAS21", "v1" }
,{ 183, 1, 1, 6, "MECMAS21", "x1" }
,{ 184, 1, 1, 6, "MECMAS21", "acc1" }
,{ 185, 1, 1, 2, "LMECHN1", "tforce" }
,{ 186, 1, 1, 1, "FORC", "force" }
,{ 187, 1, 1, 6, "MECMAS21", "v1dup" }
,{ 188, 1, 1, 6, "MECMAS21", "x1dup" }
,{ 189, 1, 1, 6, "MECMAS21", "acc1dup" }
,{ 190, 1, 1, 6, "MECMAS21", "Fmin" }
,{ 191, 1, 1, 6, "MECMAS21", "Fmax" }
,{ 192, 1, 1, 6, "MECMAS21", "Fvisc" }
,{ 193, 1, 1, 6, "MECMAS21", "Ffric" }
,{ 194, 1, 1, 6, "MECMAS21", "stick" }
,{ 195, 0, 1, 6, "MECMAS21", "powerRfrict" }
,{ 196, 0, 1, 6, "MECMAS21", "powerImass" }
,{ 197, 0, 1, 6, "MECMAS21", "powerCendstop" }
,{ 198, 0, 1, 6, "MECMAS21", "powerSgrav" }
,{ 199, 0, 1, 6, "MECMAS21", "powerRendstop" }
,{ 200, 1, 1, 4, "PNL0001", "dh1" }
,{ 201, 1, 1, 4, "PNL0001", "dm1" }
,{ 204, 1, 1, 1, "PNCH012", "temp" }
,{ 205, 1, 1, 1, "PNCH012", "press" }
,{ 206, 1, 1, 2, "PNPL01", "dh1" }
,{ 207, 1, 1, 2, "PNPL01", "dm1" }
,{ 208, 1, 1, 2, "PNPL01", "dvol1" }
,{ 209, 1, 1, 2, "PNPL01", "vol1" }
,{ 210, 1, 1, 1, "PNCH012", "temp2" }
,{ 211, 1, 1, 1, "PNCH012", "press2" }
,{ 212, 1, 1, 1, "PNPL01", "dh1" }
,{ 213, 1, 1, 1, "PNPL01", "dm1" }
,{ 214, 1, 1, 1, "PNPL01", "dvol1" }
,{ 215, 1, 1, 1, "PNPL01", "vol1" }
,{ 216, 1, 1, 1, "PNCH012", "temp4" }
,{ 217, 1, 1, 1, "PNCH012", "press4" }
,{ 218, 1, 1, 1, "PNCH012", "vol" }
,{ 219, 1, 1, 1, "PNCH012", "mgas1" }
,{ 220, 1, 1, 3, "PNL0001", "dh1" }
,{ 221, 1, 1, 3, "PNL0001", "dm1" }
,{ 224, 1, 1, 2, "PNCH012", "temp" }
,{ 225, 1, 1, 2, "PNCH012", "press" }
,{ 226, 1, 1, 4, "PNPL01", "dh1" }
,{ 227, 1, 1, 4, "PNPL01", "dm1" }
,{ 228, 1, 1, 4, "PNPL01", "dvol1" }
,{ 229, 1, 1, 4, "PNPL01", "vol1" }
,{ 230, 1, 1, 2, "PNCH012", "temp2" }
,{ 231, 1, 1, 2, "PNCH012", "press2" }
,{ 232, 1, 1, 3, "PNPL01", "dh1" }
,{ 233, 1, 1, 3, "PNPL01", "dm1" }
,{ 234, 1, 1, 3, "PNPL01", "dvol1" }
,{ 235, 1, 1, 3, "PNPL01", "vol1" }
,{ 236, 1, 1, 2, "PNCH012", "temp4" }
,{ 237, 1, 1, 2, "PNCH012", "press4" }
,{ 238, 1, 1, 2, "PNCH012", "vol" }
,{ 239, 1, 1, 2, "PNCH012", "mgas1" }
,{ 240, 1, 1, 2, "PNL0001", "dh1" }
,{ 241, 1, 1, 2, "PNL0001", "dm1" }
,{ 244, 1, 1, 3, "PNCH012", "temp" }
,{ 245, 1, 1, 3, "PNCH012", "press" }
,{ 246, 1, 1, 6, "PNPL01", "dh1" }
,{ 247, 1, 1, 6, "PNPL01", "dm1" }
,{ 248, 1, 1, 6, "PNPL01", "dvol1" }
,{ 249, 1, 1, 6, "PNPL01", "vol1" }
,{ 250, 1, 1, 3, "PNCH012", "temp2" }
,{ 251, 1, 1, 3, "PNCH012", "press2" }
,{ 252, 1, 1, 5, "PNPL01", "dh1" }
,{ 253, 1, 1, 5, "PNPL01", "dm1" }
,{ 254, 1, 1, 5, "PNPL01", "dvol1" }
,{ 255, 1, 1, 5, "PNPL01", "vol1" }
,{ 256, 1, 1, 3, "PNCH012", "temp4" }
,{ 257, 1, 1, 3, "PNCH012", "press4" }
,{ 258, 1, 1, 3, "PNCH012", "vol" }
,{ 259, 1, 1, 3, "PNCH012", "mgas1" }
,{ 260, 1, 1, 1, "PNL0001", "dh1" }
,{ 261, 1, 1, 1, "PNL0001", "dm1" }
,{ 264, 1, 1, 4, "PNCH012", "temp" }
,{ 265, 1, 1, 4, "PNCH012", "press" }
,{ 266, 1, 1, 8, "PNPL01", "dh1" }
,{ 267, 1, 1, 8, "PNPL01", "dm1" }
,{ 268, 1, 1, 8, "PNPL01", "dvol1" }
,{ 269, 1, 1, 8, "PNPL01", "vol1" }
,{ 270, 1, 1, 4, "PNCH012", "temp2" }
,{ 271, 1, 1, 4, "PNCH012", "press2" }
,{ 272, 1, 1, 7, "PNPL01", "dh1" }
,{ 273, 1, 1, 7, "PNPL01", "dm1" }
,{ 274, 1, 1, 7, "PNPL01", "dvol1" }
,{ 275, 1, 1, 7, "PNPL01", "vol1" }
,{ 276, 1, 1, 4, "PNCH012", "temp4" }
,{ 277, 1, 1, 4, "PNCH012", "press4" }
,{ 278, 1, 1, 4, "PNCH012", "vol" }
,{ 279, 1, 1, 4, "PNCH012", "mgas1" }
,{ 280, 1, 1, 1, "UD00", "output" }
,{ 281, 1, 1, 2, "PNOR001", "dh2" }
,{ 282, 1, 1, 2, "PNOR001", "dm2" }
,{ 283, 1, 1, 1, "PNCH023", "temp" }
,{ 284, 1, 1, 1, "PNCH023", "press" }
,{ 285, 1, 1, 1, "PNOR001", "dh1" }
,{ 286, 1, 1, 1, "PNOR001", "dm1" }
,{ 287, 1, 1, 1, "PNCH023", "temp2" }
,{ 288, 1, 1, 1, "PNCH023", "press2" }
,{ 289, 1, 1, 1, "PNCH023", "mgas" }
,{ 290, 1, 1, 5, "PNL0001", "t2" }
,{ 291, 1, 1, 5, "PNL0001", "p2" }
,{ 292, 1, 1, 1, "PNOR001", "dh2" }
,{ 293, 1, 1, 1, "PNOR001", "dm2" }
,{ 294, 1, 1, 1, "PNOR001", "cm" }
,{ 295, 1, 1, 1, "PNOR001", "gasvel" }
,{ 296, 1, 1, 6, "PNL0001", "t2" }
,{ 297, 1, 1, 6, "PNL0001", "p2" }
,{ 298, 1, 1, 2, "PNOR001", "dh1" }
,{ 299, 1, 1, 2, "PNOR001", "dm1" }
,{ 300, 1, 1, 2, "PNOR001", "cm" }
,{ 301, 1, 1, 2, "PNOR001", "gasvel" }
,{ 302, 1, 1, 5, "PNL0001", "dh1" }
,{ 303, 1, 1, 5, "PNL0001", "dm1" }
,{ 306, 1, 1, 1, "PN3NODE2", "temp1" }
,{ 307, 1, 1, 1, "PN3NODE2", "press1" }
,{ 308, 1, 1, 3, "PNL0003", "t1" }
,{ 309, 1, 1, 3, "PNL0003", "p1" }
,{ 310, 1, 1, 1, "PN3NODE2", "dh2" }
,{ 311, 1, 1, 1, "PN3NODE2", "dm2" }
,{ 312, 1, 1, 1, "PN3NODE2", "dvol2" }
,{ 313, 1, 1, 1, "PN3NODE2", "vol2" }
,{ 314, 1, 1, 2, "PNL00R", "dh2" }
,{ 315, 1, 1, 2, "PNL00R", "dm2" }
,{ 318, 1, 1, 1, "PN3NODE2", "temp3" }
,{ 319, 1, 1, 1, "PN3NODE2", "press3" }
,{ 320, 1, 1, 1, "PNL00R", "dh1" }
,{ 321, 1, 1, 1, "PNL00R", "dm1" }
,{ 324, 1, 1, 2, "PN3NODE2", "temp1" }
,{ 325, 1, 1, 2, "PN3NODE2", "press1" }
,{ 326, 1, 1, 4, "PNL0003", "t1" }
,{ 327, 1, 1, 4, "PNL0003", "p1" }
,{ 328, 1, 1, 2, "PN3NODE2", "dh2" }
,{ 329, 1, 1, 2, "PN3NODE2", "dm2" }
,{ 330, 1, 1, 2, "PN3NODE2", "dvol2" }
,{ 331, 1, 1, 2, "PN3NODE2", "vol2" }
,{ 332, 1, 1, 6, "PNL0001", "dh1" }
,{ 333, 1, 1, 6, "PNL0001", "dm1" }
,{ 336, 1, 1, 2, "PN3NODE2", "temp3" }
,{ 337, 1, 1, 2, "PN3NODE2", "press3" }
,{ 338, 1, 1, 4, "PNOR001", "dh2" }
,{ 339, 1, 1, 4, "PNOR001", "dm2" }
,{ 340, 1, 1, 2, "PNCH023", "temp" }
,{ 341, 1, 1, 2, "PNCH023", "press" }
,{ 342, 1, 1, 3, "PNOR001", "dh1" }
,{ 343, 1, 1, 3, "PNOR001", "dm1" }
,{ 344, 1, 1, 2, "PNCH023", "temp2" }
,{ 345, 1, 1, 2, "PNCH023", "press2" }
,{ 346, 1, 1, 2, "PNCH023", "mgas" }
,{ 347, 1, 1, 7, "PNL0001", "t2" }
,{ 348, 1, 1, 7, "PNL0001", "p2" }
,{ 349, 1, 1, 3, "PNOR001", "dh2" }
,{ 350, 1, 1, 3, "PNOR001", "dm2" }
,{ 351, 1, 1, 3, "PNOR001", "cm" }
,{ 352, 1, 1, 3, "PNOR001", "gasvel" }
,{ 353, 1, 1, 8, "PNL0001", "t2" }
,{ 354, 1, 1, 8, "PNL0001", "p2" }
,{ 355, 1, 1, 4, "PNOR001", "dh1" }
,{ 356, 1, 1, 4, "PNOR001", "dm1" }
,{ 357, 1, 1, 4, "PNOR001", "cm" }
,{ 358, 1, 1, 4, "PNOR001", "gasvel" }
,{ 359, 1, 1, 7, "PNL0001", "dh1" }
,{ 360, 1, 1, 7, "PNL0001", "dm1" }
,{ 363, 1, 1, 3, "PN3NODE2", "temp1" }
,{ 364, 1, 1, 3, "PN3NODE2", "press1" }
,{ 365, 1, 1, 1, "PNL0003", "t1" }
,{ 366, 1, 1, 1, "PNL0003", "p1" }
,{ 367, 1, 1, 3, "PN3NODE2", "dh2" }
,{ 368, 1, 1, 3, "PN3NODE2", "dm2" }
,{ 369, 1, 1, 3, "PN3NODE2", "dvol2" }
,{ 370, 1, 1, 3, "PN3NODE2", "vol2" }
,{ 371, 1, 1, 1, "PNL00R", "dh2" }
,{ 372, 1, 1, 1, "PNL00R", "dm2" }
,{ 375, 1, 1, 3, "PN3NODE2", "temp3" }
,{ 376, 1, 1, 3, "PN3NODE2", "press3" }
,{ 377, 1, 1, 2, "PNL00R", "dh1" }
,{ 378, 1, 1, 2, "PNL00R", "dm1" }
,{ 381, 1, 1, 4, "PN3NODE2", "temp1" }
,{ 382, 1, 1, 4, "PN3NODE2", "press1" }
,{ 383, 1, 1, 2, "PNL0003", "t1" }
,{ 384, 1, 1, 2, "PNL0003", "p1" }
,{ 385, 1, 1, 4, "PN3NODE2", "dh2" }
,{ 386, 1, 1, 4, "PN3NODE2", "dm2" }
,{ 387, 1, 1, 4, "PN3NODE2", "dvol2" }
,{ 388, 1, 1, 4, "PN3NODE2", "vol2" }
,{ 389, 1, 1, 8, "PNL0001", "dh1" }
,{ 390, 1, 1, 8, "PNL0001", "dm1" }
,{ 393, 1, 1, 4, "PN3NODE2", "temp3" }
,{ 394, 1, 1, 4, "PN3NODE2", "press3" }
,{ 395, 1, 1, 2, "PNL0002", "dh1" }
,{ 396, 1, 1, 2, "PNL0002", "dm1" }
,{ 399, 1, 1, 1, "P4NODE2", "temp1" }
,{ 400, 1, 1, 1, "P4NODE2", "press1" }
,{ 401, 1, 1, 4, "PNL0001", "t2" }
,{ 402, 1, 1, 4, "PNL0001", "p2" }
,{ 403, 1, 1, 1, "P4NODE2", "dh2" }
,{ 404, 1, 1, 1, "P4NODE2", "dm2" }
,{ 405, 1, 1, 1, "P4NODE2", "dvol2" }
,{ 406, 1, 1, 1, "P4NODE2", "vol2" }
,{ 407, 1, 1, 4, "PNL0002", "dh1" }
,{ 408, 1, 1, 4, "PNL0002", "dm1" }
,{ 411, 1, 1, 1, "P4NODE2", "temp3" }
,{ 412, 1, 1, 1, "P4NODE2", "press3" }
,{ 413, 1, 1, 1, "PNVO001", "dh2" }
,{ 414, 1, 1, 1, "PNVO001", "dm2" }
,{ 417, 1, 1, 1, "P4NODE2", "temp4" }
,{ 418, 1, 1, 1, "P4NODE2", "press4" }
,{ 419, 1, 1, 3, "PNL0002", "dh1" }
,{ 420, 1, 1, 3, "PNL0002", "dm1" }
,{ 423, 1, 1, 2, "P4NODE2", "temp1" }
,{ 424, 1, 1, 2, "P4NODE2", "press1" }
,{ 425, 1, 1, 3, "PNL0001", "t2" }
,{ 426, 1, 1, 3, "PNL0001", "p2" }
,{ 427, 1, 1, 2, "P4NODE2", "dh2" }
,{ 428, 1, 1, 2, "P4NODE2", "dm2" }
,{ 429, 1, 1, 2, "P4NODE2", "dvol2" }
,{ 430, 1, 1, 2, "P4NODE2", "vol2" }
,{ 431, 1, 1, 2, "PNL0002", "dh2" }
,{ 432, 1, 1, 2, "PNL0002", "dm2" }
,{ 435, 1, 1, 2, "P4NODE2", "temp3" }
,{ 436, 1, 1, 2, "P4NODE2", "press3" }
,{ 437, 1, 1, 2, "PNVO001", "dh2" }
,{ 438, 1, 1, 2, "PNVO001", "dm2" }
,{ 441, 1, 1, 2, "P4NODE2", "temp4" }
,{ 442, 1, 1, 2, "P4NODE2", "press4" }
,{ 443, 1, 1, 1, "PNL0002", "dh1" }
,{ 444, 1, 1, 1, "PNL0002", "dm1" }
,{ 447, 1, 1, 3, "P4NODE2", "temp1" }
,{ 448, 1, 1, 3, "P4NODE2", "press1" }
,{ 449, 1, 1, 2, "PNL0001", "t2" }
,{ 450, 1, 1, 2, "PNL0001", "p2" }
,{ 451, 1, 1, 3, "P4NODE2", "dh2" }
,{ 452, 1, 1, 3, "P4NODE2", "dm2" }
,{ 453, 1, 1, 3, "P4NODE2", "dvol2" }
,{ 454, 1, 1, 3, "P4NODE2", "vol2" }
,{ 455, 1, 1, 3, "PNL0002", "dh2" }
,{ 456, 1, 1, 3, "PNL0002", "dm2" }
,{ 459, 1, 1, 3, "P4NODE2", "temp3" }
,{ 460, 1, 1, 3, "P4NODE2", "press3" }
,{ 461, 1, 1, 3, "PNVO001", "dh2" }
,{ 462, 1, 1, 3, "PNVO001", "dm2" }
,{ 465, 1, 1, 3, "P4NODE2", "temp4" }
,{ 466, 1, 1, 3, "P4NODE2", "press4" }
,{ 467, 1, 1, 4, "PNL0002", "dh2" }
,{ 468, 1, 1, 4, "PNL0002", "dm2" }
,{ 471, 1, 1, 4, "P4NODE2", "temp1" }
,{ 472, 1, 1, 4, "P4NODE2", "press1" }
,{ 473, 1, 1, 1, "PNL0001", "t2" }
,{ 474, 1, 1, 1, "PNL0001", "p2" }
,{ 475, 1, 1, 4, "P4NODE2", "dh2" }
,{ 476, 1, 1, 4, "P4NODE2", "dm2" }
,{ 477, 1, 1, 4, "P4NODE2", "dvol2" }
,{ 478, 1, 1, 4, "P4NODE2", "vol2" }
,{ 479, 1, 1, 1, "PNL0002", "dh2" }
,{ 480, 1, 1, 1, "PNL0002", "dm2" }
,{ 483, 1, 1, 4, "P4NODE2", "temp3" }
,{ 484, 1, 1, 4, "P4NODE2", "press3" }
,{ 485, 1, 1, 4, "PNVO001", "dh2" }
,{ 486, 1, 1, 4, "PNVO001", "dm2" }
,{ 489, 1, 1, 4, "P4NODE2", "temp4" }
,{ 490, 1, 1, 4, "P4NODE2", "press4" }
,{ 491, 1, 1, 2, "UD00", "output" }
,{ 492, 1, 1, 1, "STEP0", "out" }
,{ 493, 1, 1, 3, "PNL0003", "t2" }
,{ 494, 1, 1, 3, "PNL0003", "p2" }
,{ 495, 1, 1, 1, "PNVO001", "dh3" }
,{ 496, 1, 1, 1, "PNVO001", "dm3" }
,{ 497, 1, 1, 1, "PNVO001", "xv" }
,{ 498, 1, 1, 1, "PNVO001", "cm" }
,{ 499, 1, 1, 1, "PNVO001", "gasvel" }
,{ 500, 1, 1, 1, "STEP0", "out00GEN" }
,{ 501, 1, 1, 1, "STEP0", "out10GEN" }
,{ 502, 1, 1, 1, "STEP0", "t00GEN" }
,{ 503, 1, 1, 2, "STEP0", "out" }
,{ 504, 1, 1, 4, "PNL0003", "t2" }
,{ 505, 1, 1, 4, "PNL0003", "p2" }
,{ 506, 1, 1, 2, "PNVO001", "dh3" }
,{ 507, 1, 1, 2, "PNVO001", "dm3" }
,{ 508, 1, 1, 2, "PNVO001", "xv" }
,{ 509, 1, 1, 2, "PNVO001", "cm" }
,{ 510, 1, 1, 2, "PNVO001", "gasvel" }
,{ 511, 1, 1, 2, "STEP0", "out00GEN" }
,{ 512, 1, 1, 2, "STEP0", "out10GEN" }
,{ 513, 1, 1, 2, "STEP0", "t00GEN" }
,{ 514, 1, 1, 3, "STEP0", "out" }
,{ 515, 1, 1, 1, "PNL0003", "t2" }
,{ 516, 1, 1, 1, "PNL0003", "p2" }
,{ 517, 1, 1, 3, "PNVO001", "dh3" }
,{ 518, 1, 1, 3, "PNVO001", "dm3" }
,{ 519, 1, 1, 3, "PNVO001", "xv" }
,{ 520, 1, 1, 3, "PNVO001", "cm" }
,{ 521, 1, 1, 3, "PNVO001", "gasvel" }
,{ 522, 1, 1, 3, "STEP0", "out00GEN" }
,{ 523, 1, 1, 3, "STEP0", "out10GEN" }
,{ 524, 1, 1, 3, "STEP0", "t00GEN" }
,{ 525, 1, 1, 4, "STEP0", "out" }
,{ 526, 1, 1, 2, "PNL0003", "t2" }
,{ 527, 1, 1, 2, "PNL0003", "p2" }
,{ 528, 1, 1, 4, "PNVO001", "dh3" }
,{ 529, 1, 1, 4, "PNVO001", "dm3" }
,{ 530, 1, 1, 4, "PNVO001", "xv" }
,{ 531, 1, 1, 4, "PNVO001", "cm" }
,{ 532, 1, 1, 4, "PNVO001", "gasvel" }
,{ 533, 1, 1, 4, "STEP0", "out00GEN" }
,{ 534, 1, 1, 4, "STEP0", "out10GEN" }
,{ 535, 1, 1, 4, "STEP0", "t00GEN" }
,{ 536, 1, 1, 1, "PNL0001", "mgas" }
,{ 537, 1, 1, 1, "PNL0001", "re" }
,{ 538, 1, 1, 1, "PNL0001", "cm" }
,{ 539, 1, 1, 1, "PNL0001", "v" }
,{ 540, 1, 1, 1, "PNL0001", "ff" }
,{ 541, 1, 1, 2, "PNL0001", "mgas" }
,{ 542, 1, 1, 2, "PNL0001", "re" }
,{ 543, 1, 1, 2, "PNL0001", "cm" }
,{ 544, 1, 1, 2, "PNL0001", "v" }
,{ 545, 1, 1, 2, "PNL0001", "ff" }
,{ 546, 1, 1, 3, "PNL0001", "mgas" }
,{ 547, 1, 1, 3, "PNL0001", "re" }
,{ 548, 1, 1, 3, "PNL0001", "cm" }
,{ 549, 1, 1, 3, "PNL0001", "v" }
,{ 550, 1, 1, 3, "PNL0001", "ff" }
,{ 551, 1, 1, 4, "PNL0001", "mgas" }
,{ 552, 1, 1, 4, "PNL0001", "re" }
,{ 553, 1, 1, 4, "PNL0001", "cm" }
,{ 554, 1, 1, 4, "PNL0001", "v" }
,{ 555, 1, 1, 4, "PNL0001", "ff" }
,{ 556, 1, 1, 1, "PNL0003", "dhctr" }
,{ 557, 1, 1, 1, "PNL0003", "dmctr" }
,{ 558, 1, 1, 1, "PNL0003", "mgas" }
,{ 559, 1, 1, 1, "PNL0003", "re" }
,{ 560, 1, 1, 1, "PNL0003", "cm" }
,{ 561, 1, 1, 1, "PNL0003", "v" }
,{ 562, 1, 1, 1, "PNL0003", "ff" }
,{ 563, 1, 1, 2, "PNL0003", "dhctr" }
,{ 564, 1, 1, 2, "PNL0003", "dmctr" }
,{ 565, 1, 1, 2, "PNL0003", "mgas" }
,{ 566, 1, 1, 2, "PNL0003", "re" }
,{ 567, 1, 1, 2, "PNL0003", "cm" }
,{ 568, 1, 1, 2, "PNL0003", "v" }
,{ 569, 1, 1, 2, "PNL0003", "ff" }
,{ 570, 1, 1, 1, "PNL0002", "tctr" }
,{ 571, 1, 1, 1, "PNL0002", "pctr" }
,{ 572, 1, 1, 1, "PNL0002", "mgas" }
,{ 573, 1, 1, 1, "PNL0002", "re" }
,{ 574, 1, 1, 1, "PNL0002", "cm" }
,{ 575, 1, 1, 1, "PNL0002", "v" }
,{ 576, 1, 1, 1, "PNL0002", "ff" }
,{ 577, 1, 1, 2, "PNL0002", "tctr" }
,{ 578, 1, 1, 2, "PNL0002", "pctr" }
,{ 579, 1, 1, 2, "PNL0002", "mgas" }
,{ 580, 1, 1, 2, "PNL0002", "re" }
,{ 581, 1, 1, 2, "PNL0002", "cm" }
,{ 582, 1, 1, 2, "PNL0002", "v" }
,{ 583, 1, 1, 2, "PNL0002", "ff" }
,{ 584, 1, 1, 3, "PNL0002", "tctr" }
,{ 585, 1, 1, 3, "PNL0002", "pctr" }
,{ 586, 1, 1, 3, "PNL0002", "mgas" }
,{ 587, 1, 1, 3, "PNL0002", "re" }
,{ 588, 1, 1, 3, "PNL0002", "cm" }
,{ 589, 1, 1, 3, "PNL0002", "v" }
,{ 590, 1, 1, 3, "PNL0002", "ff" }
,{ 591, 1, 1, 3, "PNL0003", "dhctr" }
,{ 592, 1, 1, 3, "PNL0003", "dmctr" }
,{ 593, 1, 1, 3, "PNL0003", "mgas" }
,{ 594, 1, 1, 3, "PNL0003", "re" }
,{ 595, 1, 1, 3, "PNL0003", "cm" }
,{ 596, 1, 1, 3, "PNL0003", "v" }
,{ 597, 1, 1, 3, "PNL0003", "ff" }
,{ 598, 1, 1, 4, "PNL0003", "dhctr" }
,{ 599, 1, 1, 4, "PNL0003", "dmctr" }
,{ 600, 1, 1, 4, "PNL0003", "mgas" }
,{ 601, 1, 1, 4, "PNL0003", "re" }
,{ 602, 1, 1, 4, "PNL0003", "cm" }
,{ 603, 1, 1, 4, "PNL0003", "v" }
,{ 604, 1, 1, 4, "PNL0003", "ff" }
,{ 605, 1, 1, 5, "PNL0001", "mgas" }
,{ 606, 1, 1, 5, "PNL0001", "re" }
,{ 607, 1, 1, 5, "PNL0001", "cm" }
,{ 608, 1, 1, 5, "PNL0001", "v" }
,{ 609, 1, 1, 5, "PNL0001", "ff" }
,{ 610, 1, 1, 6, "PNL0001", "mgas" }
,{ 611, 1, 1, 6, "PNL0001", "re" }
,{ 612, 1, 1, 6, "PNL0001", "cm" }
,{ 613, 1, 1, 6, "PNL0001", "v" }
,{ 614, 1, 1, 6, "PNL0001", "ff" }
,{ 615, 1, 1, 7, "PNL0001", "mgas" }
,{ 616, 1, 1, 7, "PNL0001", "re" }
,{ 617, 1, 1, 7, "PNL0001", "cm" }
,{ 618, 1, 1, 7, "PNL0001", "v" }
,{ 619, 1, 1, 7, "PNL0001", "ff" }
,{ 620, 1, 1, 8, "PNL0001", "mgas" }
,{ 621, 1, 1, 8, "PNL0001", "re" }
,{ 622, 1, 1, 8, "PNL0001", "cm" }
,{ 623, 1, 1, 8, "PNL0001", "v" }
,{ 624, 1, 1, 8, "PNL0001", "ff" }
,{ 625, 1, 1, 1, "PNL00R", "re" }
,{ 626, 1, 1, 1, "PNL00R", "cm" }
,{ 627, 1, 1, 1, "PNL00R", "v" }
,{ 628, 1, 1, 1, "PNL00R", "ff" }
,{ 629, 1, 1, 2, "PNL00R", "re" }
,{ 630, 1, 1, 2, "PNL00R", "cm" }
,{ 631, 1, 1, 2, "PNL00R", "v" }
,{ 632, 1, 1, 2, "PNL00R", "ff" }
,{ 633, 1, 1, 4, "PNL0002", "tctr" }
,{ 634, 1, 1, 4, "PNL0002", "pctr" }
,{ 635, 1, 1, 4, "PNL0002", "mgas" }
,{ 636, 1, 1, 4, "PNL0002", "re" }
,{ 637, 1, 1, 4, "PNL0002", "cm" }
,{ 638, 1, 1, 4, "PNL0002", "v" }
,{ 639, 1, 1, 4, "PNL0002", "ff" }
};
#if !defined(AME_IMPLICIT_MODEL_ACCEPTED) && (AME_MODEL_ISEXPLICIT == 0)
#error "Implicit model not supported for the current interface."
#endif
/* ============================================================== */
/* If the interface needs linearisation (cosim and Amesim) */
#ifndef AME_NO_LA
#ifndef AME_NEED_LINEAR_ANALYSIS
#define AME_NEED_LINEAR_ANALYSIS
#endif
#endif
#if( AME_MODEL_ISEXPLICIT == 1)
#define AMEfuncPerturb LPerturbIfNecessary
#else
#define AMEfuncPerturb DPerturbIfNecessary
#endif
#ifdef AME_ADVANCEDDEBUG
static void AME_POST_SUBMODCALL_WITH_DISCON(AMESIMSYSTEM *amesys, int *flag, int *sflag, int *oflag, int *panic, char *submodelname, int instancenum)
{
if(*sflag < 3)*sflag = getnfg_();
#ifdef AME_NEED_LINEAR_ANALYSIS
if(*flag == 5)
{
AMEfuncPerturb(amesys, flag);
}
else if(*oflag != 5)
{
resdis(amesys, flag, sflag, oflag, submodelname, instancenum, panic);
}
#else
resdis(amesys, flag, sflag, oflag, submodelname, instancenum, panic);
#endif
}
static void AME_POST_SUBMODCALL_NO_DISCON(AMESIMSYSTEM *amesys, int *flag)
{
#ifdef AME_NEED_LINEAR_ANALYSIS
if(*flag == 5)
{
AMEfuncPerturb(amesys, flag);
}
#endif
}
#endif
#ifndef AME_ADVANCEDDEBUG
#ifdef AME_NEED_LINEAR_ANALYSIS
/* Typically for normal runs and cosim */
#define AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,sflag,oflag,panic,submodelname,instancenum) if(*sflag < 3)*sflag = getnfg_(); if(*flag == 5) AMEfuncPerturb(amesys, flag); else if(*oflag != 5) resdis(amesys, flag, sflag, oflag, submodelname, instancenum, panic)
#define AME_POST_SUBMODCALL_NO_DISCON(amesys,flag) if(*flag == 5) AMEfuncPerturb(amesys, flag)
#else
/* Typically for code exchange (simulink for instance) */
#define AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,sflag,oflag,panic,submodelname,instancenum) if(*sflag < 3)*sflag = getnfg_(); resdis(amesys, flag, sflag, oflag,submodelname,instancenum,panic)
#define AME_POST_SUBMODCALL_NO_DISCON(amesys,flag)
#endif
#endif
#ifdef AMERT
/* We dont need LA nor resdis for real-time - so set them to (almost) empty macros. (reset sflag to orig value "oflag") */
#undef AME_POST_SUBMODCALL_WITH_DISCON
#undef AME_POST_SUBMODCALL_NO_DISCON
#define AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,sflag,oflag,panic,submodelname,instancenum) *sflag = *oflag
#define AME_POST_SUBMODCALL_NO_DISCON(amesys,flag)
#endif
/* ============================================================== */
#ifdef AMERT
double IL_test_mql_4_step_ratio=0;
#endif
#ifdef AME_MEMORY_ACCESS_RT_EXPORT
/* For memory access in case of RT target such as dSpace targets */
#include "test_mql_4_.export.h"
static void RT_Get_Watch_Var(AMESIMSYSTEM *amesys)
{
#if (NB_WATCH_VAR>0)
int i;
for(i=0; i<NB_WATCH_VAR; i++) {
RT_Export_Vars[i] = amesys->v[RT_Watch_Vars_Idx[i]];
}
#endif
}
static void RT_Get_Watch_Param(AMESIMSYSTEM *amesys)
{
#if (NB_WATCH_REAL_PARAM>0) || (NB_WATCH_INT_PARAM>0)
int i;
for(i=0; i<NB_WATCH_REAL_PARAM; i++) {
RT_Export_RealParam[i] = amesys->pModel->realParamArray[RT_Watch_RP_Idx[i]];
}
for(i=0; i<NB_WATCH_INT_PARAM; i++) {
RT_Export_IntParam[i] = amesys->pModel->integerParamArray[RT_Watch_IP_Idx[i]];
}
#endif
}
static void RT_Set_Watch_Param(AMESIMSYSTEM *amesys)
{
#if (NB_WATCH_REAL_PARAM>0) || (NB_WATCH_INT_PARAM>0)
int i;
for(i=0; i<NB_WATCH_REAL_PARAM; i++) {
amesys->pModel->realParamArray[RT_Watch_RP_Idx[i]] = RT_Export_RealParam[i];
}
for(i=0; i<NB_WATCH_INT_PARAM; i++) {
amesys->pModel->integerParamArray[RT_Watch_IP_Idx[i]] = RT_Export_IntParam[i];
}
#endif
}
#endif
#ifdef AME_INPUT_IN_MEMORY
#include "test_mql_4_.sim.h"
#endif
#if( AME_MODEL_ISEXPLICIT == 0 )
#define LRW (40+9*AME_NBOF_SOLVER_STATES+AME_NBOF_SOLVER_STATES*AME_NBOF_SOLVER_STATES)
#define LIW (21+AME_NBOF_SOLVER_STATES)
#endif
// Submodel PNGD00 . 1
// Submodel F000 . 1
// variable fzero (Fixed var)
static const int EVIA_V0[7] = {83, -1, 0, -1, 1, 1, 1};
// Submodel F000 . 2
// variable fzero (Fixed var)
static const int EVIA_V1[7] = {97, -1, 1, -1, 1, 1, 1};
// Submodel F000 . 3
// variable fzero (Fixed var)
static const int EVIA_V2[7] = {111, -1, 2, -1, 1, 1, 1};
// Submodel F000 . 4
// variable fzero (Fixed var)
static const int EVIA_V3[7] = {125, -1, 3, -1, 1, 1, 1};
// Submodel PNPL01 . 1
// variable dh1 (Fixed var)
static const int EVIA_V4[7] = {212, -1, 4, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V5[7] = {213, -1, 5, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V6[7] = {214, -1, 6, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V7[7] = {215, -1, 7, -1, 1, 1, 1};
// Submodel PNPL01 . 2
// variable dh1 (Fixed var)
static const int EVIA_V8[7] = {206, -1, 8, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V9[7] = {207, -1, 9, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V10[7] = {208, -1, 10, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V11[7] = {209, -1, 11, -1, 1, 1, 1};
// Submodel PNPL01 . 3
// variable dh1 (Fixed var)
static const int EVIA_V12[7] = {232, -1, 12, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V13[7] = {233, -1, 13, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V14[7] = {234, -1, 14, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V15[7] = {235, -1, 15, -1, 1, 1, 1};
// Submodel PNPL01 . 4
// variable dh1 (Fixed var)
static const int EVIA_V16[7] = {226, -1, 16, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V17[7] = {227, -1, 17, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V18[7] = {228, -1, 18, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V19[7] = {229, -1, 19, -1, 1, 1, 1};
// Submodel PNPL01 . 5
// variable dh1 (Fixed var)
static const int EVIA_V20[7] = {252, -1, 20, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V21[7] = {253, -1, 21, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V22[7] = {254, -1, 22, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V23[7] = {255, -1, 23, -1, 1, 1, 1};
// Submodel PNPL01 . 6
// variable dh1 (Fixed var)
static const int EVIA_V24[7] = {246, -1, 24, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V25[7] = {247, -1, 25, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V26[7] = {248, -1, 26, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V27[7] = {249, -1, 27, -1, 1, 1, 1};
// Submodel PNPL01 . 7
// variable dh1 (Fixed var)
static const int EVIA_V28[7] = {272, -1, 28, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V29[7] = {273, -1, 29, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V30[7] = {274, -1, 30, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V31[7] = {275, -1, 31, -1, 1, 1, 1};
// Submodel PNPL01 . 8
// variable dh1 (Fixed var)
static const int EVIA_V32[7] = {266, -1, 32, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V33[7] = {267, -1, 33, -1, 1, 1, 1};
// variable dvol1 (Fixed var)
static const int EVIA_V34[7] = {268, -1, 34, -1, 1, 1, 1};
// variable vol1 (Fixed var)
static const int EVIA_V35[7] = {269, -1, 35, -1, 1, 1, 1};
// Submodel F000 . 5
// variable fzero (Fixed var)
static const int EVIA_V36[7] = {13, -1, 36, -1, 1, 1, 1};
// Submodel F000 . 6
// variable fzero (Fixed var)
static const int EVIA_V37[7] = {33, -1, 37, -1, 1, 1, 1};
// Submodel F000 . 7
// variable fzero (Fixed var)
static const int EVIA_V38[7] = {53, -1, 38, -1, 1, 1, 1};
// Submodel F000 . 8
// variable fzero (Fixed var)
static const int EVIA_V39[7] = {73, -1, 39, -1, 1, 1, 1};
// Submodel PN3NODE2 . 1
// variable temp1 (Duplicate var)
static const int EVIA_V40[7] = {306, -1, 40, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V41[7] = {307, -1, 41, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V42[7] = {302, -1, 42, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V43[7] = {303, -1, 43, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V44[7] = {304, -1, 44, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V45[7] = {305, -1, 45, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V46[7] = {310, -1, 46, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V47[7] = {311, -1, 47, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V48[7] = {312, -1, 48, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V49[7] = {313, -1, 49, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V50[7] = {308, -1, 50, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V51[7] = {309, -1, 51, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V52[7] = {318, -1, 52, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V53[7] = {319, -1, 53, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V54[7] = {314, -1, 54, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V55[7] = {315, -1, 55, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V56[7] = {316, -1, 56, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V57[7] = {317, -1, 57, -1, 1, 1, 1};
// Submodel PN3NODE2 . 2
// variable temp1 (Duplicate var)
static const int EVIA_V58[7] = {324, -1, 58, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V59[7] = {325, -1, 59, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V60[7] = {320, -1, 60, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V61[7] = {321, -1, 61, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V62[7] = {322, -1, 62, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V63[7] = {323, -1, 63, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V64[7] = {328, -1, 64, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V65[7] = {329, -1, 65, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V66[7] = {330, -1, 66, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V67[7] = {331, -1, 67, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V68[7] = {326, -1, 68, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V69[7] = {327, -1, 69, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V70[7] = {336, -1, 70, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V71[7] = {337, -1, 71, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V72[7] = {332, -1, 72, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V73[7] = {333, -1, 73, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V74[7] = {334, -1, 74, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V75[7] = {335, -1, 75, -1, 1, 1, 1};
// Submodel PN3NODE2 . 3
// variable temp1 (Duplicate var)
static const int EVIA_V76[7] = {363, -1, 76, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V77[7] = {364, -1, 77, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V78[7] = {359, -1, 78, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V79[7] = {360, -1, 79, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V80[7] = {361, -1, 80, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V81[7] = {362, -1, 81, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V82[7] = {367, -1, 82, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V83[7] = {368, -1, 83, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V84[7] = {369, -1, 84, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V85[7] = {370, -1, 85, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V86[7] = {365, -1, 86, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V87[7] = {366, -1, 87, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V88[7] = {375, -1, 88, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V89[7] = {376, -1, 89, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V90[7] = {371, -1, 90, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V91[7] = {372, -1, 91, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V92[7] = {373, -1, 92, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V93[7] = {374, -1, 93, -1, 1, 1, 1};
// Submodel PN3NODE2 . 4
// variable temp1 (Duplicate var)
static const int EVIA_V94[7] = {381, -1, 94, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V95[7] = {382, -1, 95, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V96[7] = {377, -1, 96, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V97[7] = {378, -1, 97, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V98[7] = {379, -1, 98, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V99[7] = {380, -1, 99, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V100[7] = {385, -1, 100, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V101[7] = {386, -1, 101, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V102[7] = {387, -1, 102, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V103[7] = {388, -1, 103, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V104[7] = {383, -1, 104, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V105[7] = {384, -1, 105, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V106[7] = {393, -1, 106, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V107[7] = {394, -1, 107, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V108[7] = {389, -1, 108, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V109[7] = {390, -1, 109, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V110[7] = {391, -1, 110, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V111[7] = {392, -1, 111, -1, 1, 1, 1};
// Submodel P4NODE2 . 1
// variable temp1 (Duplicate var)
static const int EVIA_V112[7] = {399, -1, 112, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V113[7] = {400, -1, 113, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V114[7] = {395, -1, 114, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V115[7] = {396, -1, 115, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V116[7] = {397, -1, 116, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V117[7] = {398, -1, 117, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V118[7] = {403, -1, 118, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V119[7] = {404, -1, 119, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V120[7] = {405, -1, 120, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V121[7] = {406, -1, 121, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V122[7] = {401, -1, 122, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V123[7] = {402, -1, 123, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V124[7] = {411, -1, 124, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V125[7] = {412, -1, 125, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V126[7] = {407, -1, 126, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V127[7] = {408, -1, 127, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V128[7] = {409, -1, 128, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V129[7] = {410, -1, 129, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V130[7] = {417, -1, 130, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V131[7] = {418, -1, 131, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V132[7] = {413, -1, 132, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V133[7] = {414, -1, 133, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V134[7] = {415, -1, 134, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V135[7] = {416, -1, 135, -1, 1, 1, 1};
// Submodel P4NODE2 . 2
// variable temp1 (Duplicate var)
static const int EVIA_V136[7] = {423, -1, 136, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V137[7] = {424, -1, 137, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V138[7] = {419, -1, 138, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V139[7] = {420, -1, 139, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V140[7] = {421, -1, 140, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V141[7] = {422, -1, 141, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V142[7] = {427, -1, 142, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V143[7] = {428, -1, 143, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V144[7] = {429, -1, 144, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V145[7] = {430, -1, 145, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V146[7] = {425, -1, 146, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V147[7] = {426, -1, 147, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V148[7] = {435, -1, 148, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V149[7] = {436, -1, 149, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V150[7] = {431, -1, 150, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V151[7] = {432, -1, 151, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V152[7] = {433, -1, 152, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V153[7] = {434, -1, 153, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V154[7] = {441, -1, 154, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V155[7] = {442, -1, 155, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V156[7] = {437, -1, 156, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V157[7] = {438, -1, 157, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V158[7] = {439, -1, 158, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V159[7] = {440, -1, 159, -1, 1, 1, 1};
// Submodel P4NODE2 . 3
// variable temp1 (Duplicate var)
static const int EVIA_V160[7] = {447, -1, 160, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V161[7] = {448, -1, 161, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V162[7] = {443, -1, 162, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V163[7] = {444, -1, 163, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V164[7] = {445, -1, 164, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V165[7] = {446, -1, 165, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V166[7] = {451, -1, 166, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V167[7] = {452, -1, 167, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V168[7] = {453, -1, 168, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V169[7] = {454, -1, 169, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V170[7] = {449, -1, 170, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V171[7] = {450, -1, 171, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V172[7] = {459, -1, 172, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V173[7] = {460, -1, 173, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V174[7] = {455, -1, 174, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V175[7] = {456, -1, 175, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V176[7] = {457, -1, 176, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V177[7] = {458, -1, 177, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V178[7] = {465, -1, 178, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V179[7] = {466, -1, 179, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V180[7] = {461, -1, 180, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V181[7] = {462, -1, 181, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V182[7] = {463, -1, 182, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V183[7] = {464, -1, 183, -1, 1, 1, 1};
// Submodel P4NODE2 . 4
// variable temp1 (Duplicate var)
static const int EVIA_V184[7] = {471, -1, 184, -1, 1, 1, 1};
// variable press1 (Duplicate var)
static const int EVIA_V185[7] = {472, -1, 185, -1, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V186[7] = {467, -1, 186, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V187[7] = {468, -1, 187, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V188[7] = {469, -1, 188, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V189[7] = {470, -1, 189, -1, 1, 1, 1};
// variable dh2 (Oneline var)
static const int EVIA_V190[7] = {475, -1, 190, -1, 1, 1, 1};
// variable dm2 (Oneline var)
static const int EVIA_V191[7] = {476, -1, 191, -1, 1, 1, 1};
// variable dvol2 (Oneline var)
static const int EVIA_V192[7] = {477, -1, 192, -1, 1, 1, 1};
// variable vol2 (Oneline var)
static const int EVIA_V193[7] = {478, -1, 193, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V194[7] = {473, -1, 194, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V195[7] = {474, -1, 195, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V196[7] = {483, -1, 196, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V197[7] = {484, -1, 197, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V198[7] = {479, -1, 198, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V199[7] = {480, -1, 199, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V200[7] = {481, -1, 200, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V201[7] = {482, -1, 201, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V202[7] = {489, -1, 202, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V203[7] = {490, -1, 203, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V204[7] = {485, -1, 204, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V205[7] = {486, -1, 205, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V206[7] = {487, -1, 206, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V207[7] = {488, -1, 207, -1, 1, 1, 1};
// Submodel UD00 . 1
// variable output (Basic var)
static const int EVIA_V208[7] = {280, -1, 208, -1, 1, 1, 1};
// Submodel UD00 . 2
// variable output (Basic var)
static const int EVIA_V209[7] = {491, -1, 209, -1, 1, 1, 1};
// Submodel STEP0 . 1
// variable out (Basic var)
static const int EVIA_V210[7] = {492, -1, 210, -1, 1, 1, 1};
// Submodel STEP0 . 2
// variable out (Basic var)
static const int EVIA_V211[7] = {503, -1, 211, -1, 1, 1, 1};
// Submodel STEP0 . 3
// variable out (Basic var)
static const int EVIA_V212[7] = {514, -1, 212, -1, 1, 1, 1};
// Submodel STEP0 . 4
// variable out (Basic var)
static const int EVIA_V213[7] = {525, -1, 213, -1, 1, 1, 1};
// Submodel FORC . 1
// variable input (Basic var)
static const int EVIA_V214[7] = {280, -1, 214, -1, 1, 1, 1};
// variable force (Oneline var)
static const int EVIA_V215[7] = {186, -1, 215, -1, 1, 1, 1};
// Submodel FORC . 2
// variable input (Basic var)
static const int EVIA_V216[7] = {491, -1, 216, -1, 1, 1, 1};
// variable force (Oneline var)
static const int EVIA_V217[7] = {152, -1, 217, -1, 1, 1, 1};
// Submodel PNRP17 . 1
// variable dh1 (Fixed var)
static const int EVIA_V218[7] = {2, -1, 218, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V219[7] = {3, -1, 219, -1, 1, 1, 1};
// variable vvol1 (Basic var)
static const int EVIA_V220[7] = {4, -1, 220, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V221[7] = {5, -1, 221, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V222[7] = {0, -1, 222, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V223[7] = {1, -1, 223, -1, 1, 1, 1};
// variable f2 (Multiline var)
static const int EVIA_V224[7] = {9, -1, 224, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V225[7] = {6, -1, 225, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V226[7] = {7, -1, 226, -1, 1, 1, 1};
// variable f3 (Multiline var)
static const int EVIA_V227[7] = {12, -1, 227, -1, 1, 1, 1};
// variable v3 (Basic var)
static const int EVIA_V228[7] = {10, -1, 228, -1, 1, 1, 1};
// variable x3 (Basic var)
static const int EVIA_V229[7] = {11, -1, 229, -1, 1, 1, 1};
// variable v4 (Duplicate var)
static const int EVIA_V230[7] = {14, -1, 230, -1, 1, 1, 1};
// variable x4 (Duplicate var)
static const int EVIA_V231[7] = {15, -1, 231, -1, 1, 1, 1};
// variable f4 (Basic var)
static const int EVIA_V232[7] = {13, -1, 232, -1, 1, 1, 1};
// variable v5 (Duplicate var)
static const int EVIA_V233[7] = {17, -1, 233, -1, 1, 1, 1};
// variable x5 (Duplicate var)
static const int EVIA_V234[7] = {18, -1, 234, -1, 1, 1, 1};
// variable f5 (Basic var)
static const int EVIA_V235[7] = {16, -1, 235, -1, 1, 1, 1};
// Submodel PNRP17 . 2
// variable dh1 (Fixed var)
static const int EVIA_V236[7] = {22, -1, 236, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V237[7] = {23, -1, 237, -1, 1, 1, 1};
// variable vvol1 (Basic var)
static const int EVIA_V238[7] = {24, -1, 238, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V239[7] = {25, -1, 239, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V240[7] = {20, -1, 240, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V241[7] = {21, -1, 241, -1, 1, 1, 1};
// variable f2 (Multiline var)
static const int EVIA_V242[7] = {29, -1, 242, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V243[7] = {26, -1, 243, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V244[7] = {27, -1, 244, -1, 1, 1, 1};
// variable f3 (Multiline var)
static const int EVIA_V245[7] = {32, -1, 245, -1, 1, 1, 1};
// variable v3 (Basic var)
static const int EVIA_V246[7] = {30, -1, 246, -1, 1, 1, 1};
// variable x3 (Basic var)
static const int EVIA_V247[7] = {31, -1, 247, -1, 1, 1, 1};
// variable v4 (Duplicate var)
static const int EVIA_V248[7] = {34, -1, 248, -1, 1, 1, 1};
// variable x4 (Duplicate var)
static const int EVIA_V249[7] = {35, -1, 249, -1, 1, 1, 1};
// variable f4 (Basic var)
static const int EVIA_V250[7] = {33, -1, 250, -1, 1, 1, 1};
// variable v5 (Duplicate var)
static const int EVIA_V251[7] = {37, -1, 251, -1, 1, 1, 1};
// variable x5 (Duplicate var)
static const int EVIA_V252[7] = {38, -1, 252, -1, 1, 1, 1};
// variable f5 (Basic var)
static const int EVIA_V253[7] = {36, -1, 253, -1, 1, 1, 1};
// Submodel PNRP17 . 3
// variable dh1 (Fixed var)
static const int EVIA_V254[7] = {42, -1, 254, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V255[7] = {43, -1, 255, -1, 1, 1, 1};
// variable vvol1 (Basic var)
static const int EVIA_V256[7] = {44, -1, 256, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V257[7] = {45, -1, 257, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V258[7] = {40, -1, 258, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V259[7] = {41, -1, 259, -1, 1, 1, 1};
// variable f2 (Multiline var)
static const int EVIA_V260[7] = {49, -1, 260, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V261[7] = {46, -1, 261, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V262[7] = {47, -1, 262, -1, 1, 1, 1};
// variable f3 (Multiline var)
static const int EVIA_V263[7] = {52, -1, 263, -1, 1, 1, 1};
// variable v3 (Basic var)
static const int EVIA_V264[7] = {50, -1, 264, -1, 1, 1, 1};
// variable x3 (Basic var)
static const int EVIA_V265[7] = {51, -1, 265, -1, 1, 1, 1};
// variable v4 (Duplicate var)
static const int EVIA_V266[7] = {54, -1, 266, -1, 1, 1, 1};
// variable x4 (Duplicate var)
static const int EVIA_V267[7] = {55, -1, 267, -1, 1, 1, 1};
// variable f4 (Basic var)
static const int EVIA_V268[7] = {53, -1, 268, -1, 1, 1, 1};
// variable v5 (Duplicate var)
static const int EVIA_V269[7] = {57, -1, 269, -1, 1, 1, 1};
// variable x5 (Duplicate var)
static const int EVIA_V270[7] = {58, -1, 270, -1, 1, 1, 1};
// variable f5 (Basic var)
static const int EVIA_V271[7] = {56, -1, 271, -1, 1, 1, 1};
// Submodel PNRP17 . 4
// variable dh1 (Fixed var)
static const int EVIA_V272[7] = {62, -1, 272, -1, 1, 1, 1};
// variable dm1 (Fixed var)
static const int EVIA_V273[7] = {63, -1, 273, -1, 1, 1, 1};
// variable vvol1 (Basic var)
static const int EVIA_V274[7] = {64, -1, 274, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V275[7] = {65, -1, 275, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V276[7] = {60, -1, 276, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V277[7] = {61, -1, 277, -1, 1, 1, 1};
// variable f2 (Multiline var)
static const int EVIA_V278[7] = {69, -1, 278, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V279[7] = {66, -1, 279, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V280[7] = {67, -1, 280, -1, 1, 1, 1};
// variable f3 (Multiline var)
static const int EVIA_V281[7] = {72, -1, 281, -1, 1, 1, 1};
// variable v3 (Basic var)
static const int EVIA_V282[7] = {70, -1, 282, -1, 1, 1, 1};
// variable x3 (Basic var)
static const int EVIA_V283[7] = {71, -1, 283, -1, 1, 1, 1};
// variable v4 (Duplicate var)
static const int EVIA_V284[7] = {74, -1, 284, -1, 1, 1, 1};
// variable x4 (Duplicate var)
static const int EVIA_V285[7] = {75, -1, 285, -1, 1, 1, 1};
// variable f4 (Basic var)
static const int EVIA_V286[7] = {73, -1, 286, -1, 1, 1, 1};
// variable v5 (Duplicate var)
static const int EVIA_V287[7] = {77, -1, 287, -1, 1, 1, 1};
// variable x5 (Duplicate var)
static const int EVIA_V288[7] = {78, -1, 288, -1, 1, 1, 1};
// variable f5 (Basic var)
static const int EVIA_V289[7] = {76, -1, 289, -1, 1, 1, 1};
// Submodel MECMAS21 . 1
// variable v1 (Explicit state)
static const int EVIA_V290[7] = {6, 0, 290, 291, 1, 1, 1};
// variable x1 (Explicit state)
static const int EVIA_V291[7] = {7, 1, 292, 293, 1, 1, 1};
// variable acc1 (Basic var)
static const int EVIA_V292[7] = {8, -1, 294, -1, 1, 1, 1};
// variable Fext1 (Basic var)
static const int EVIA_V293[7] = {9, -1, 295, -1, 1, 1, 1};
// variable v1dup (Duplicate var)
static const int EVIA_V294[7] = {80, -1, 296, -1, 1, 1, 1};
// variable x1dup (Duplicate var)
static const int EVIA_V295[7] = {81, -1, 297, -1, 1, 1, 1};
// variable acc1dup (Duplicate var)
static const int EVIA_V296[7] = {82, -1, 298, -1, 1, 1, 1};
// variable Fext2 (Basic var)
static const int EVIA_V297[7] = {83, -1, 299, -1, 1, 1, 1};
// Submodel MECMAS21 . 2
// variable v1 (Explicit state)
static const int EVIA_V298[7] = {26, 2, 300, 301, 1, 1, 1};
// variable x1 (Explicit state)
static const int EVIA_V299[7] = {27, 3, 302, 303, 1, 1, 1};
// variable acc1 (Basic var)
static const int EVIA_V300[7] = {28, -1, 304, -1, 1, 1, 1};
// variable Fext1 (Basic var)
static const int EVIA_V301[7] = {29, -1, 305, -1, 1, 1, 1};
// variable v1dup (Duplicate var)
static const int EVIA_V302[7] = {94, -1, 306, -1, 1, 1, 1};
// variable x1dup (Duplicate var)
static const int EVIA_V303[7] = {95, -1, 307, -1, 1, 1, 1};
// variable acc1dup (Duplicate var)
static const int EVIA_V304[7] = {96, -1, 308, -1, 1, 1, 1};
// variable Fext2 (Basic var)
static const int EVIA_V305[7] = {97, -1, 309, -1, 1, 1, 1};
// Submodel MECMAS21 . 3
// variable v1 (Explicit state)
static const int EVIA_V306[7] = {46, 4, 310, 311, 1, 1, 1};
// variable x1 (Explicit state)
static const int EVIA_V307[7] = {47, 5, 312, 313, 1, 1, 1};
// variable acc1 (Basic var)
static const int EVIA_V308[7] = {48, -1, 314, -1, 1, 1, 1};
// variable Fext1 (Basic var)
static const int EVIA_V309[7] = {49, -1, 315, -1, 1, 1, 1};
// variable v1dup (Duplicate var)
static const int EVIA_V310[7] = {108, -1, 316, -1, 1, 1, 1};
// variable x1dup (Duplicate var)
static const int EVIA_V311[7] = {109, -1, 317, -1, 1, 1, 1};
// variable acc1dup (Duplicate var)
static const int EVIA_V312[7] = {110, -1, 318, -1, 1, 1, 1};
// variable Fext2 (Basic var)
static const int EVIA_V313[7] = {111, -1, 319, -1, 1, 1, 1};
// Submodel MECMAS21 . 4
// variable v1 (Explicit state)
static const int EVIA_V314[7] = {66, 6, 320, 321, 1, 1, 1};
// variable x1 (Explicit state)
static const int EVIA_V315[7] = {67, 7, 322, 323, 1, 1, 1};
// variable acc1 (Basic var)
static const int EVIA_V316[7] = {68, -1, 324, -1, 1, 1, 1};
// variable Fext1 (Basic var)
static const int EVIA_V317[7] = {69, -1, 325, -1, 1, 1, 1};
// variable v1dup (Duplicate var)
static const int EVIA_V318[7] = {122, -1, 326, -1, 1, 1, 1};
// variable x1dup (Duplicate var)
static const int EVIA_V319[7] = {123, -1, 327, -1, 1, 1, 1};
// variable acc1dup (Duplicate var)
static const int EVIA_V320[7] = {124, -1, 328, -1, 1, 1, 1};
// variable Fext2 (Basic var)
static const int EVIA_V321[7] = {125, -1, 329, -1, 1, 1, 1};
// Submodel MECMAS21 . 5
// variable v1 (Explicit state)
static const int EVIA_V322[7] = {153, 8, 330, 331, 1, 1, 1};
// variable x1 (Explicit state)
static const int EVIA_V323[7] = {154, 9, 332, 333, 1, 1, 1};
// variable acc1 (Basic var)
static const int EVIA_V324[7] = {155, -1, 334, -1, 1, 1, 1};
// variable Fext1 (Basic var)
static const int EVIA_V325[7] = {152, -1, 335, -1, 1, 1, 1};
// variable v1dup (Duplicate var)
static const int EVIA_V326[7] = {148, -1, 336, -1, 1, 1, 1};
// variable x1dup (Duplicate var)
static const int EVIA_V327[7] = {149, -1, 337, -1, 1, 1, 1};
// variable acc1dup (Duplicate var)
static const int EVIA_V328[7] = {150, -1, 338, -1, 1, 1, 1};
// variable Fext2 (Basic var)
static const int EVIA_V329[7] = {151, -1, 339, -1, 1, 1, 1};
// Submodel LMECHN1 . 2
// variable vt (Duplicate var)
static const int EVIA_V330[7] = {70, -1, 340, -1, 1, 1, 4};
// variable xt (Duplicate var)
static const int EVIA_V331[7] = {71, -1, 344, -1, 1, 1, 4};
// variable force (Basic var)
static const int EVIA_V332[7] = {72, -1, 348, -1, 1, 1, 4};
// variable tforce (Basic var)
static const int EVIA_V333[7] = {185, -1, 352, -1, 1, 1, 1};
// variable v (Basic var)
static const int EVIA_V334[7] = {182, -1, 353, -1, 1, 1, 1};
// variable x (Basic var)
static const int EVIA_V335[7] = {183, -1, 354, -1, 1, 1, 1};
// Submodel MECMAS21 . 6
// variable v1 (Explicit state)
static const int EVIA_V336[7] = {182, 10, 355, 356, 1, 1, 1};
// variable x1 (Explicit state)
static const int EVIA_V337[7] = {183, 11, 357, 358, 1, 1, 1};
// variable acc1 (Basic var)
static const int EVIA_V338[7] = {184, -1, 359, -1, 1, 1, 1};
// variable Fext1 (Basic var)
static const int EVIA_V339[7] = {185, -1, 360, -1, 1, 1, 1};
// variable v1dup (Duplicate var)
static const int EVIA_V340[7] = {187, -1, 361, -1, 1, 1, 1};
// variable x1dup (Duplicate var)
static const int EVIA_V341[7] = {188, -1, 362, -1, 1, 1, 1};
// variable acc1dup (Duplicate var)
static const int EVIA_V342[7] = {189, -1, 363, -1, 1, 1, 1};
// variable Fext2 (Basic var)
static const int EVIA_V343[7] = {186, -1, 364, -1, 1, 1, 1};
// Submodel PNCH012 . 1
// variable temp (Explicit state)
static const int EVIA_V344[7] = {204, 12, 365, 366, 1, 1, 1};
// variable press (Explicit state)
static const int EVIA_V345[7] = {205, 13, 367, 368, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V346[7] = {200, -1, 369, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V347[7] = {201, -1, 370, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V348[7] = {202, -1, 371, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V349[7] = {203, -1, 372, -1, 1, 1, 1};
// variable temp2 (Duplicate var)
static const int EVIA_V350[7] = {210, -1, 373, -1, 1, 1, 1};
// variable press2 (Duplicate var)
static const int EVIA_V351[7] = {211, -1, 374, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V352[7] = {206, -1, 375, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V353[7] = {207, -1, 376, -1, 1, 1, 1};
// variable dvol2 (Basic var)
static const int EVIA_V354[7] = {208, -1, 377, -1, 1, 1, 1};
// variable vol2 (Basic var)
static const int EVIA_V355[7] = {209, -1, 378, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V356[7] = {0, -1, 379, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V357[7] = {1, -1, 380, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V358[7] = {2, -1, 381, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V359[7] = {3, -1, 382, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V360[7] = {4, -1, 383, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V361[7] = {5, -1, 384, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V362[7] = {216, -1, 385, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V363[7] = {217, -1, 386, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V364[7] = {212, -1, 387, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V365[7] = {213, -1, 388, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V366[7] = {214, -1, 389, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V367[7] = {215, -1, 390, -1, 1, 1, 1};
// Submodel PNCH012 . 2
// variable temp (Explicit state)
static const int EVIA_V368[7] = {224, 14, 391, 392, 1, 1, 1};
// variable press (Explicit state)
static const int EVIA_V369[7] = {225, 15, 393, 394, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V370[7] = {220, -1, 395, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V371[7] = {221, -1, 396, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V372[7] = {222, -1, 397, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V373[7] = {223, -1, 398, -1, 1, 1, 1};
// variable temp2 (Duplicate var)
static const int EVIA_V374[7] = {230, -1, 399, -1, 1, 1, 1};
// variable press2 (Duplicate var)
static const int EVIA_V375[7] = {231, -1, 400, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V376[7] = {226, -1, 401, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V377[7] = {227, -1, 402, -1, 1, 1, 1};
// variable dvol2 (Basic var)
static const int EVIA_V378[7] = {228, -1, 403, -1, 1, 1, 1};
// variable vol2 (Basic var)
static const int EVIA_V379[7] = {229, -1, 404, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V380[7] = {20, -1, 405, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V381[7] = {21, -1, 406, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V382[7] = {22, -1, 407, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V383[7] = {23, -1, 408, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V384[7] = {24, -1, 409, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V385[7] = {25, -1, 410, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V386[7] = {236, -1, 411, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V387[7] = {237, -1, 412, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V388[7] = {232, -1, 413, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V389[7] = {233, -1, 414, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V390[7] = {234, -1, 415, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V391[7] = {235, -1, 416, -1, 1, 1, 1};
// Submodel PNCH012 . 3
// variable temp (Explicit state)
static const int EVIA_V392[7] = {244, 16, 417, 418, 1, 1, 1};
// variable press (Explicit state)
static const int EVIA_V393[7] = {245, 17, 419, 420, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V394[7] = {240, -1, 421, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V395[7] = {241, -1, 422, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V396[7] = {242, -1, 423, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V397[7] = {243, -1, 424, -1, 1, 1, 1};
// variable temp2 (Duplicate var)
static const int EVIA_V398[7] = {250, -1, 425, -1, 1, 1, 1};
// variable press2 (Duplicate var)
static const int EVIA_V399[7] = {251, -1, 426, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V400[7] = {246, -1, 427, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V401[7] = {247, -1, 428, -1, 1, 1, 1};
// variable dvol2 (Basic var)
static const int EVIA_V402[7] = {248, -1, 429, -1, 1, 1, 1};
// variable vol2 (Basic var)
static const int EVIA_V403[7] = {249, -1, 430, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V404[7] = {40, -1, 431, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V405[7] = {41, -1, 432, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V406[7] = {42, -1, 433, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V407[7] = {43, -1, 434, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V408[7] = {44, -1, 435, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V409[7] = {45, -1, 436, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V410[7] = {256, -1, 437, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V411[7] = {257, -1, 438, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V412[7] = {252, -1, 439, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V413[7] = {253, -1, 440, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V414[7] = {254, -1, 441, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V415[7] = {255, -1, 442, -1, 1, 1, 1};
// Submodel PNCH012 . 4
// variable temp (Explicit state)
static const int EVIA_V416[7] = {264, 18, 443, 444, 1, 1, 1};
// variable press (Explicit state)
static const int EVIA_V417[7] = {265, 19, 445, 446, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V418[7] = {260, -1, 447, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V419[7] = {261, -1, 448, -1, 1, 1, 1};
// variable dvol1 (Basic var)
static const int EVIA_V420[7] = {262, -1, 449, -1, 1, 1, 1};
// variable vol1 (Basic var)
static const int EVIA_V421[7] = {263, -1, 450, -1, 1, 1, 1};
// variable temp2 (Duplicate var)
static const int EVIA_V422[7] = {270, -1, 451, -1, 1, 1, 1};
// variable press2 (Duplicate var)
static const int EVIA_V423[7] = {271, -1, 452, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V424[7] = {266, -1, 453, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V425[7] = {267, -1, 454, -1, 1, 1, 1};
// variable dvol2 (Basic var)
static const int EVIA_V426[7] = {268, -1, 455, -1, 1, 1, 1};
// variable vol2 (Basic var)
static const int EVIA_V427[7] = {269, -1, 456, -1, 1, 1, 1};
// variable temp3 (Duplicate var)
static const int EVIA_V428[7] = {60, -1, 457, -1, 1, 1, 1};
// variable press3 (Duplicate var)
static const int EVIA_V429[7] = {61, -1, 458, -1, 1, 1, 1};
// variable dh3 (Basic var)
static const int EVIA_V430[7] = {62, -1, 459, -1, 1, 1, 1};
// variable dm3 (Basic var)
static const int EVIA_V431[7] = {63, -1, 460, -1, 1, 1, 1};
// variable dvol3 (Basic var)
static const int EVIA_V432[7] = {64, -1, 461, -1, 1, 1, 1};
// variable vol3 (Basic var)
static const int EVIA_V433[7] = {65, -1, 462, -1, 1, 1, 1};
// variable temp4 (Duplicate var)
static const int EVIA_V434[7] = {276, -1, 463, -1, 1, 1, 1};
// variable press4 (Duplicate var)
static const int EVIA_V435[7] = {277, -1, 464, -1, 1, 1, 1};
// variable dh4 (Basic var)
static const int EVIA_V436[7] = {272, -1, 465, -1, 1, 1, 1};
// variable dm4 (Basic var)
static const int EVIA_V437[7] = {273, -1, 466, -1, 1, 1, 1};
// variable dvol4 (Basic var)
static const int EVIA_V438[7] = {274, -1, 467, -1, 1, 1, 1};
// variable vol4 (Basic var)
static const int EVIA_V439[7] = {275, -1, 468, -1, 1, 1, 1};
// Submodel PNCH023 . 1
// variable temp (Explicit state)
static const int EVIA_V440[7] = {283, 20, 469, 470, 1, 1, 1};
// variable press (Explicit state)
static const int EVIA_V441[7] = {284, 21, 471, 472, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V442[7] = {281, -1, 473, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V443[7] = {282, -1, 474, -1, 1, 1, 1};
// variable temp2 (Duplicate var)
static const int EVIA_V444[7] = {287, -1, 475, -1, 1, 1, 1};
// variable press2 (Duplicate var)
static const int EVIA_V445[7] = {288, -1, 476, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V446[7] = {285, -1, 477, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V447[7] = {286, -1, 478, -1, 1, 1, 1};
// Submodel PNOR001 . 1
// variable dh1 (Basic var)
static const int EVIA_V448[7] = {285, -1, 479, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V449[7] = {286, -1, 480, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V450[7] = {287, -1, 481, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V451[7] = {288, -1, 482, -1, 1, 1, 1};
// variable dh2 (Duplicate var)
static const int EVIA_V452[7] = {292, -1, 483, -1, 1, 1, 1};
// variable dm2 (Duplicate var)
static const int EVIA_V453[7] = {293, -1, 484, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V454[7] = {290, -1, 485, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V455[7] = {291, -1, 486, -1, 1, 1, 1};
// Submodel PNOR001 . 2
// variable dh1 (Basic var)
static const int EVIA_V456[7] = {298, -1, 487, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V457[7] = {299, -1, 488, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V458[7] = {296, -1, 489, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V459[7] = {297, -1, 490, -1, 1, 1, 1};
// variable dh2 (Duplicate var)
static const int EVIA_V460[7] = {281, -1, 491, -1, 1, 1, 1};
// variable dm2 (Duplicate var)
static const int EVIA_V461[7] = {282, -1, 492, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V462[7] = {283, -1, 493, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V463[7] = {284, -1, 494, -1, 1, 1, 1};
// Submodel PNCH023 . 2
// variable temp (Explicit state)
static const int EVIA_V464[7] = {340, 30, 495, 496, 1, 1, 1};
// variable press (Explicit state)
static const int EVIA_V465[7] = {341, 31, 497, 498, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V466[7] = {338, -1, 499, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V467[7] = {339, -1, 500, -1, 1, 1, 1};
// variable temp2 (Duplicate var)
static const int EVIA_V468[7] = {344, -1, 501, -1, 1, 1, 1};
// variable press2 (Duplicate var)
static const int EVIA_V469[7] = {345, -1, 502, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V470[7] = {342, -1, 503, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V471[7] = {343, -1, 504, -1, 1, 1, 1};
// Submodel PNOR001 . 3
// variable dh1 (Basic var)
static const int EVIA_V472[7] = {342, -1, 505, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V473[7] = {343, -1, 506, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V474[7] = {344, -1, 507, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V475[7] = {345, -1, 508, -1, 1, 1, 1};
// variable dh2 (Duplicate var)
static const int EVIA_V476[7] = {349, -1, 509, -1, 1, 1, 1};
// variable dm2 (Duplicate var)
static const int EVIA_V477[7] = {350, -1, 510, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V478[7] = {347, -1, 511, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V479[7] = {348, -1, 512, -1, 1, 1, 1};
// Submodel PNOR001 . 4
// variable dh1 (Basic var)
static const int EVIA_V480[7] = {355, -1, 513, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V481[7] = {356, -1, 514, -1, 1, 1, 1};
// variable temp1 (Basic var)
static const int EVIA_V482[7] = {353, -1, 515, -1, 1, 1, 1};
// variable press1 (Basic var)
static const int EVIA_V483[7] = {354, -1, 516, -1, 1, 1, 1};
// variable dh2 (Duplicate var)
static const int EVIA_V484[7] = {338, -1, 517, -1, 1, 1, 1};
// variable dm2 (Duplicate var)
static const int EVIA_V485[7] = {339, -1, 518, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V486[7] = {340, -1, 519, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V487[7] = {341, -1, 520, -1, 1, 1, 1};
// Submodel PNVO001 . 1
// variable res (Basic var)
static const int EVIA_V488[7] = {492, -1, 521, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V489[7] = {413, -1, 522, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V490[7] = {414, -1, 523, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V491[7] = {417, -1, 524, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V492[7] = {418, -1, 525, -1, 1, 1, 1};
// variable dh3 (Duplicate var)
static const int EVIA_V493[7] = {495, -1, 526, -1, 1, 1, 1};
// variable dm3 (Duplicate var)
static const int EVIA_V494[7] = {496, -1, 527, -1, 1, 1, 1};
// variable temp3 (Basic var)
static const int EVIA_V495[7] = {493, -1, 528, -1, 1, 1, 1};
// variable press3 (Basic var)
static const int EVIA_V496[7] = {494, -1, 529, -1, 1, 1, 1};
// Submodel PNVO001 . 2
// variable res (Basic var)
static const int EVIA_V497[7] = {503, -1, 530, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V498[7] = {437, -1, 531, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V499[7] = {438, -1, 532, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V500[7] = {441, -1, 533, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V501[7] = {442, -1, 534, -1, 1, 1, 1};
// variable dh3 (Duplicate var)
static const int EVIA_V502[7] = {506, -1, 535, -1, 1, 1, 1};
// variable dm3 (Duplicate var)
static const int EVIA_V503[7] = {507, -1, 536, -1, 1, 1, 1};
// variable temp3 (Basic var)
static const int EVIA_V504[7] = {504, -1, 537, -1, 1, 1, 1};
// variable press3 (Basic var)
static const int EVIA_V505[7] = {505, -1, 538, -1, 1, 1, 1};
// Submodel PNVO001 . 3
// variable res (Basic var)
static const int EVIA_V506[7] = {514, -1, 539, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V507[7] = {461, -1, 540, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V508[7] = {462, -1, 541, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V509[7] = {465, -1, 542, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V510[7] = {466, -1, 543, -1, 1, 1, 1};
// variable dh3 (Duplicate var)
static const int EVIA_V511[7] = {517, -1, 544, -1, 1, 1, 1};
// variable dm3 (Duplicate var)
static const int EVIA_V512[7] = {518, -1, 545, -1, 1, 1, 1};
// variable temp3 (Basic var)
static const int EVIA_V513[7] = {515, -1, 546, -1, 1, 1, 1};
// variable press3 (Basic var)
static const int EVIA_V514[7] = {516, -1, 547, -1, 1, 1, 1};
// Submodel PNVO001 . 4
// variable res (Basic var)
static const int EVIA_V515[7] = {525, -1, 548, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V516[7] = {485, -1, 549, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V517[7] = {486, -1, 550, -1, 1, 1, 1};
// variable temp2 (Basic var)
static const int EVIA_V518[7] = {489, -1, 551, -1, 1, 1, 1};
// variable press2 (Basic var)
static const int EVIA_V519[7] = {490, -1, 552, -1, 1, 1, 1};
// variable dh3 (Duplicate var)
static const int EVIA_V520[7] = {528, -1, 553, -1, 1, 1, 1};
// variable dm3 (Duplicate var)
static const int EVIA_V521[7] = {529, -1, 554, -1, 1, 1, 1};
// variable temp3 (Basic var)
static const int EVIA_V522[7] = {526, -1, 555, -1, 1, 1, 1};
// variable press3 (Basic var)
static const int EVIA_V523[7] = {527, -1, 556, -1, 1, 1, 1};
// Submodel PNL0002 . 1
// variable dh1 (Basic var)
static const int EVIA_V524[7] = {443, -1, 557, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V525[7] = {444, -1, 558, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V526[7] = {447, -1, 559, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V527[7] = {448, -1, 560, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V528[7] = {479, -1, 561, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V529[7] = {480, -1, 562, -1, 1, 1, 1};
// variable t2 (Basic var)
static const int EVIA_V530[7] = {483, -1, 563, -1, 1, 1, 1};
// variable p2 (Basic var)
static const int EVIA_V531[7] = {484, -1, 564, -1, 1, 1, 1};
// Submodel PNL0002 . 2
// variable dh1 (Basic var)
static const int EVIA_V532[7] = {395, -1, 565, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V533[7] = {396, -1, 566, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V534[7] = {399, -1, 567, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V535[7] = {400, -1, 568, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V536[7] = {431, -1, 569, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V537[7] = {432, -1, 570, -1, 1, 1, 1};
// variable t2 (Basic var)
static const int EVIA_V538[7] = {435, -1, 571, -1, 1, 1, 1};
// variable p2 (Basic var)
static const int EVIA_V539[7] = {436, -1, 572, -1, 1, 1, 1};
// Submodel PNL0002 . 3
// variable dh1 (Basic var)
static const int EVIA_V540[7] = {419, -1, 573, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V541[7] = {420, -1, 574, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V542[7] = {423, -1, 575, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V543[7] = {424, -1, 576, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V544[7] = {455, -1, 577, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V545[7] = {456, -1, 578, -1, 1, 1, 1};
// variable t2 (Basic var)
static const int EVIA_V546[7] = {459, -1, 579, -1, 1, 1, 1};
// variable p2 (Basic var)
static const int EVIA_V547[7] = {460, -1, 580, -1, 1, 1, 1};
// Submodel PNL0001 . 5
// variable dh1 (Basic var)
static const int EVIA_V548[7] = {302, -1, 581, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V549[7] = {303, -1, 582, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V550[7] = {306, -1, 583, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V551[7] = {307, -1, 584, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V552[7] = {290, 22, 585, 586, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V553[7] = {291, 23, 587, 588, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V554[7] = {292, -1, 589, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V555[7] = {293, -1, 590, -1, 1, 1, 1};
// Submodel PNL0001 . 6
// variable dh1 (Basic var)
static const int EVIA_V556[7] = {332, -1, 591, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V557[7] = {333, -1, 592, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V558[7] = {336, -1, 593, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V559[7] = {337, -1, 594, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V560[7] = {296, 24, 595, 596, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V561[7] = {297, 25, 597, 598, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V562[7] = {298, -1, 599, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V563[7] = {299, -1, 600, -1, 1, 1, 1};
// Submodel PNL0001 . 7
// variable dh1 (Basic var)
static const int EVIA_V564[7] = {359, -1, 601, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V565[7] = {360, -1, 602, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V566[7] = {363, -1, 603, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V567[7] = {364, -1, 604, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V568[7] = {347, 32, 605, 606, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V569[7] = {348, 33, 607, 608, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V570[7] = {349, -1, 609, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V571[7] = {350, -1, 610, -1, 1, 1, 1};
// Submodel PNL0001 . 8
// variable dh1 (Basic var)
static const int EVIA_V572[7] = {389, -1, 611, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V573[7] = {390, -1, 612, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V574[7] = {393, -1, 613, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V575[7] = {394, -1, 614, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V576[7] = {353, 34, 615, 616, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V577[7] = {354, 35, 617, 618, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V578[7] = {355, -1, 619, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V579[7] = {356, -1, 620, -1, 1, 1, 1};
// Submodel PNL00R . 1
// variable dh1 (Duplicate var)
static const int EVIA_V580[7] = {320, -1, 621, -1, 1, 1, 1};
// variable dm1 (Duplicate var)
static const int EVIA_V581[7] = {321, -1, 622, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V582[7] = {324, -1, 623, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V583[7] = {325, -1, 624, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V584[7] = {371, -1, 625, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V585[7] = {372, -1, 626, -1, 1, 1, 1};
// variable t2 (Basic var)
static const int EVIA_V586[7] = {375, -1, 627, -1, 1, 1, 1};
// variable p2 (Basic var)
static const int EVIA_V587[7] = {376, -1, 628, -1, 1, 1, 1};
// Submodel PNL00R . 2
// variable dh1 (Duplicate var)
static const int EVIA_V588[7] = {377, -1, 629, -1, 1, 1, 1};
// variable dm1 (Duplicate var)
static const int EVIA_V589[7] = {378, -1, 630, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V590[7] = {381, -1, 631, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V591[7] = {382, -1, 632, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V592[7] = {314, -1, 633, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V593[7] = {315, -1, 634, -1, 1, 1, 1};
// variable t2 (Basic var)
static const int EVIA_V594[7] = {318, -1, 635, -1, 1, 1, 1};
// variable p2 (Basic var)
static const int EVIA_V595[7] = {319, -1, 636, -1, 1, 1, 1};
// Submodel PNL0002 . 4
// variable dh1 (Basic var)
static const int EVIA_V596[7] = {407, -1, 637, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V597[7] = {408, -1, 638, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V598[7] = {411, -1, 639, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V599[7] = {412, -1, 640, -1, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V600[7] = {467, -1, 641, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V601[7] = {468, -1, 642, -1, 1, 1, 1};
// variable t2 (Basic var)
static const int EVIA_V602[7] = {471, -1, 643, -1, 1, 1, 1};
// variable p2 (Basic var)
static const int EVIA_V603[7] = {472, -1, 644, -1, 1, 1, 1};
// Submodel LMECHN1 . 1
// variable vt (Duplicate var)
static const int EVIA_V604[7] = {137, -1, 645, -1, 1, 1, 4};
// variable xt (Duplicate var)
static const int EVIA_V605[7] = {138, -1, 649, -1, 1, 1, 4};
// variable force (Basic var)
static const int EVIA_V606[7] = {136, -1, 653, -1, 1, 1, 4};
// variable tforce (Basic var)
static const int EVIA_V607[7] = {151, -1, 657, -1, 1, 1, 1};
// variable v (Basic var)
static const int EVIA_V608[7] = {148, -1, 658, -1, 1, 1, 1};
// variable x (Basic var)
static const int EVIA_V609[7] = {149, -1, 659, -1, 1, 1, 1};
// Submodel LSTP00A . 1
// variable f1 (Basic var)
static const int EVIA_V610[7] = {16, -1, 660, -1, 1, 1, 1};
// variable v1 (Basic var)
static const int EVIA_V611[7] = {17, -1, 661, -1, 1, 1, 1};
// variable x1 (Basic var)
static const int EVIA_V612[7] = {18, -1, 662, -1, 1, 1, 1};
// variable f2 (Duplicate var)
static const int EVIA_V613[7] = {136, -1, 663, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V614[7] = {137, -1, 664, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V615[7] = {138, -1, 665, -1, 1, 1, 1};
// Submodel LSTP00A . 2
// variable f1 (Basic var)
static const int EVIA_V616[7] = {36, -1, 666, -1, 1, 1, 1};
// variable v1 (Basic var)
static const int EVIA_V617[7] = {37, -1, 667, -1, 1, 1, 1};
// variable x1 (Basic var)
static const int EVIA_V618[7] = {38, -1, 668, -1, 1, 1, 1};
// variable f2 (Duplicate var)
static const int EVIA_V619[7] = {139, -1, 669, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V620[7] = {140, -1, 670, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V621[7] = {141, -1, 671, -1, 1, 1, 1};
// Submodel LSTP00A . 3
// variable f1 (Basic var)
static const int EVIA_V622[7] = {56, -1, 672, -1, 1, 1, 1};
// variable v1 (Basic var)
static const int EVIA_V623[7] = {57, -1, 673, -1, 1, 1, 1};
// variable x1 (Basic var)
static const int EVIA_V624[7] = {58, -1, 674, -1, 1, 1, 1};
// variable f2 (Duplicate var)
static const int EVIA_V625[7] = {142, -1, 675, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V626[7] = {143, -1, 676, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V627[7] = {144, -1, 677, -1, 1, 1, 1};
// Submodel LSTP00A . 4
// variable f1 (Basic var)
static const int EVIA_V628[7] = {76, -1, 678, -1, 1, 1, 1};
// variable v1 (Basic var)
static const int EVIA_V629[7] = {77, -1, 679, -1, 1, 1, 1};
// variable x1 (Basic var)
static const int EVIA_V630[7] = {78, -1, 680, -1, 1, 1, 1};
// variable f2 (Duplicate var)
static const int EVIA_V631[7] = {145, -1, 681, -1, 1, 1, 1};
// variable v2 (Basic var)
static const int EVIA_V632[7] = {146, -1, 682, -1, 1, 1, 1};
// variable x2 (Basic var)
static const int EVIA_V633[7] = {147, -1, 683, -1, 1, 1, 1};
// Submodel PNL0003 . 1
// variable t1 (Explicit state)
static const int EVIA_V634[7] = {365, 36, 684, 685, 1, 1, 1};
// variable p1 (Explicit state)
static const int EVIA_V635[7] = {366, 37, 686, 687, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V636[7] = {367, -1, 688, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V637[7] = {368, -1, 689, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V638[7] = {515, 52, 690, 691, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V639[7] = {516, 53, 692, 693, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V640[7] = {517, -1, 694, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V641[7] = {518, -1, 695, -1, 1, 1, 1};
// Submodel PNL0003 . 2
// variable t1 (Explicit state)
static const int EVIA_V642[7] = {383, 38, 696, 697, 1, 1, 1};
// variable p1 (Explicit state)
static const int EVIA_V643[7] = {384, 39, 698, 699, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V644[7] = {385, -1, 700, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V645[7] = {386, -1, 701, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V646[7] = {526, 54, 702, 703, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V647[7] = {527, 55, 704, 705, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V648[7] = {528, -1, 706, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V649[7] = {529, -1, 707, -1, 1, 1, 1};
// Submodel PNL0003 . 3
// variable t1 (Explicit state)
static const int EVIA_V650[7] = {308, 26, 708, 709, 1, 1, 1};
// variable p1 (Explicit state)
static const int EVIA_V651[7] = {309, 27, 710, 711, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V652[7] = {310, -1, 712, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V653[7] = {311, -1, 713, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V654[7] = {493, 48, 714, 715, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V655[7] = {494, 49, 716, 717, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V656[7] = {495, -1, 718, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V657[7] = {496, -1, 719, -1, 1, 1, 1};
// Submodel PNL0003 . 4
// variable t1 (Explicit state)
static const int EVIA_V658[7] = {326, 28, 720, 721, 1, 1, 1};
// variable p1 (Explicit state)
static const int EVIA_V659[7] = {327, 29, 722, 723, 1, 1, 1};
// variable dh1 (Basic var)
static const int EVIA_V660[7] = {328, -1, 724, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V661[7] = {329, -1, 725, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V662[7] = {504, 50, 726, 727, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V663[7] = {505, 51, 728, 729, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V664[7] = {506, -1, 730, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V665[7] = {507, -1, 731, -1, 1, 1, 1};
// Submodel PNL0001 . 1
// variable dh1 (Basic var)
static const int EVIA_V666[7] = {260, -1, 732, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V667[7] = {261, -1, 733, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V668[7] = {264, -1, 734, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V669[7] = {265, -1, 735, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V670[7] = {473, 46, 736, 737, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V671[7] = {474, 47, 738, 739, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V672[7] = {475, -1, 740, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V673[7] = {476, -1, 741, -1, 1, 1, 1};
// Submodel PNL0001 . 2
// variable dh1 (Basic var)
static const int EVIA_V674[7] = {240, -1, 742, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V675[7] = {241, -1, 743, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V676[7] = {244, -1, 744, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V677[7] = {245, -1, 745, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V678[7] = {449, 44, 746, 747, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V679[7] = {450, 45, 748, 749, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V680[7] = {451, -1, 750, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V681[7] = {452, -1, 751, -1, 1, 1, 1};
// Submodel PNL0001 . 3
// variable dh1 (Basic var)
static const int EVIA_V682[7] = {220, -1, 752, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V683[7] = {221, -1, 753, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V684[7] = {224, -1, 754, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V685[7] = {225, -1, 755, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V686[7] = {425, 42, 756, 757, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V687[7] = {426, 43, 758, 759, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V688[7] = {427, -1, 760, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V689[7] = {428, -1, 761, -1, 1, 1, 1};
// Submodel PNL0001 . 4
// variable dh1 (Basic var)
static const int EVIA_V690[7] = {200, -1, 762, -1, 1, 1, 1};
// variable dm1 (Basic var)
static const int EVIA_V691[7] = {201, -1, 763, -1, 1, 1, 1};
// variable t1 (Basic var)
static const int EVIA_V692[7] = {204, -1, 764, -1, 1, 1, 1};
// variable p1 (Basic var)
static const int EVIA_V693[7] = {205, -1, 765, -1, 1, 1, 1};
// variable t2 (Explicit state)
static const int EVIA_V694[7] = {401, 40, 766, 767, 1, 1, 1};
// variable p2 (Explicit state)
static const int EVIA_V695[7] = {402, 41, 768, 769, 1, 1, 1};
// variable dh2 (Basic var)
static const int EVIA_V696[7] = {403, -1, 770, -1, 1, 1, 1};
// variable dm2 (Basic var)
static const int EVIA_V697[7] = {404, -1, 771, -1, 1, 1, 1};
static const int* EVIA[698] = {
EVIA_V0, EVIA_V1, EVIA_V2, EVIA_V3, EVIA_V4, EVIA_V5, EVIA_V6, EVIA_V7, EVIA_V8, EVIA_V9
, EVIA_V10, EVIA_V11, EVIA_V12, EVIA_V13, EVIA_V14, EVIA_V15, EVIA_V16, EVIA_V17, EVIA_V18, EVIA_V19
, EVIA_V20, EVIA_V21, EVIA_V22, EVIA_V23, EVIA_V24, EVIA_V25, EVIA_V26, EVIA_V27, EVIA_V28, EVIA_V29
, EVIA_V30, EVIA_V31, EVIA_V32, EVIA_V33, EVIA_V34, EVIA_V35, EVIA_V36, EVIA_V37, EVIA_V38, EVIA_V39
, EVIA_V40, EVIA_V41, EVIA_V42, EVIA_V43, EVIA_V44, EVIA_V45, EVIA_V46, EVIA_V47, EVIA_V48, EVIA_V49
, EVIA_V50, EVIA_V51, EVIA_V52, EVIA_V53, EVIA_V54, EVIA_V55, EVIA_V56, EVIA_V57, EVIA_V58, EVIA_V59
, EVIA_V60, EVIA_V61, EVIA_V62, EVIA_V63, EVIA_V64, EVIA_V65, EVIA_V66, EVIA_V67, EVIA_V68, EVIA_V69
, EVIA_V70, EVIA_V71, EVIA_V72, EVIA_V73, EVIA_V74, EVIA_V75, EVIA_V76, EVIA_V77, EVIA_V78, EVIA_V79
, EVIA_V80, EVIA_V81, EVIA_V82, EVIA_V83, EVIA_V84, EVIA_V85, EVIA_V86, EVIA_V87, EVIA_V88, EVIA_V89
, EVIA_V90, EVIA_V91, EVIA_V92, EVIA_V93, EVIA_V94, EVIA_V95, EVIA_V96, EVIA_V97, EVIA_V98, EVIA_V99
, EVIA_V100, EVIA_V101, EVIA_V102, EVIA_V103, EVIA_V104, EVIA_V105, EVIA_V106, EVIA_V107, EVIA_V108, EVIA_V109
, EVIA_V110, EVIA_V111, EVIA_V112, EVIA_V113, EVIA_V114, EVIA_V115, EVIA_V116, EVIA_V117, EVIA_V118, EVIA_V119
, EVIA_V120, EVIA_V121, EVIA_V122, EVIA_V123, EVIA_V124, EVIA_V125, EVIA_V126, EVIA_V127, EVIA_V128, EVIA_V129
, EVIA_V130, EVIA_V131, EVIA_V132, EVIA_V133, EVIA_V134, EVIA_V135, EVIA_V136, EVIA_V137, EVIA_V138, EVIA_V139
, EVIA_V140, EVIA_V141, EVIA_V142, EVIA_V143, EVIA_V144, EVIA_V145, EVIA_V146, EVIA_V147, EVIA_V148, EVIA_V149
, EVIA_V150, EVIA_V151, EVIA_V152, EVIA_V153, EVIA_V154, EVIA_V155, EVIA_V156, EVIA_V157, EVIA_V158, EVIA_V159
, EVIA_V160, EVIA_V161, EVIA_V162, EVIA_V163, EVIA_V164, EVIA_V165, EVIA_V166, EVIA_V167, EVIA_V168, EVIA_V169
, EVIA_V170, EVIA_V171, EVIA_V172, EVIA_V173, EVIA_V174, EVIA_V175, EVIA_V176, EVIA_V177, EVIA_V178, EVIA_V179
, EVIA_V180, EVIA_V181, EVIA_V182, EVIA_V183, EVIA_V184, EVIA_V185, EVIA_V186, EVIA_V187, EVIA_V188, EVIA_V189
, EVIA_V190, EVIA_V191, EVIA_V192, EVIA_V193, EVIA_V194, EVIA_V195, EVIA_V196, EVIA_V197, EVIA_V198, EVIA_V199
, EVIA_V200, EVIA_V201, EVIA_V202, EVIA_V203, EVIA_V204, EVIA_V205, EVIA_V206, EVIA_V207, EVIA_V208, EVIA_V209
, EVIA_V210, EVIA_V211, EVIA_V212, EVIA_V213, EVIA_V214, EVIA_V215, EVIA_V216, EVIA_V217, EVIA_V218, EVIA_V219
, EVIA_V220, EVIA_V221, EVIA_V222, EVIA_V223, EVIA_V224, EVIA_V225, EVIA_V226, EVIA_V227, EVIA_V228, EVIA_V229
, EVIA_V230, EVIA_V231, EVIA_V232, EVIA_V233, EVIA_V234, EVIA_V235, EVIA_V236, EVIA_V237, EVIA_V238, EVIA_V239
, EVIA_V240, EVIA_V241, EVIA_V242, EVIA_V243, EVIA_V244, EVIA_V245, EVIA_V246, EVIA_V247, EVIA_V248, EVIA_V249
, EVIA_V250, EVIA_V251, EVIA_V252, EVIA_V253, EVIA_V254, EVIA_V255, EVIA_V256, EVIA_V257, EVIA_V258, EVIA_V259
, EVIA_V260, EVIA_V261, EVIA_V262, EVIA_V263, EVIA_V264, EVIA_V265, EVIA_V266, EVIA_V267, EVIA_V268, EVIA_V269
, EVIA_V270, EVIA_V271, EVIA_V272, EVIA_V273, EVIA_V274, EVIA_V275, EVIA_V276, EVIA_V277, EVIA_V278, EVIA_V279
, EVIA_V280, EVIA_V281, EVIA_V282, EVIA_V283, EVIA_V284, EVIA_V285, EVIA_V286, EVIA_V287, EVIA_V288, EVIA_V289
, EVIA_V290, EVIA_V291, EVIA_V292, EVIA_V293, EVIA_V294, EVIA_V295, EVIA_V296, EVIA_V297, EVIA_V298, EVIA_V299
, EVIA_V300, EVIA_V301, EVIA_V302, EVIA_V303, EVIA_V304, EVIA_V305, EVIA_V306, EVIA_V307, EVIA_V308, EVIA_V309
, EVIA_V310, EVIA_V311, EVIA_V312, EVIA_V313, EVIA_V314, EVIA_V315, EVIA_V316, EVIA_V317, EVIA_V318, EVIA_V319
, EVIA_V320, EVIA_V321, EVIA_V322, EVIA_V323, EVIA_V324, EVIA_V325, EVIA_V326, EVIA_V327, EVIA_V328, EVIA_V329
, EVIA_V330, EVIA_V331, EVIA_V332, EVIA_V333, EVIA_V334, EVIA_V335, EVIA_V336, EVIA_V337, EVIA_V338, EVIA_V339
, EVIA_V340, EVIA_V341, EVIA_V342, EVIA_V343, EVIA_V344, EVIA_V345, EVIA_V346, EVIA_V347, EVIA_V348, EVIA_V349
, EVIA_V350, EVIA_V351, EVIA_V352, EVIA_V353, EVIA_V354, EVIA_V355, EVIA_V356, EVIA_V357, EVIA_V358, EVIA_V359
, EVIA_V360, EVIA_V361, EVIA_V362, EVIA_V363, EVIA_V364, EVIA_V365, EVIA_V366, EVIA_V367, EVIA_V368, EVIA_V369
, EVIA_V370, EVIA_V371, EVIA_V372, EVIA_V373, EVIA_V374, EVIA_V375, EVIA_V376, EVIA_V377, EVIA_V378, EVIA_V379
, EVIA_V380, EVIA_V381, EVIA_V382, EVIA_V383, EVIA_V384, EVIA_V385, EVIA_V386, EVIA_V387, EVIA_V388, EVIA_V389
, EVIA_V390, EVIA_V391, EVIA_V392, EVIA_V393, EVIA_V394, EVIA_V395, EVIA_V396, EVIA_V397, EVIA_V398, EVIA_V399
, EVIA_V400, EVIA_V401, EVIA_V402, EVIA_V403, EVIA_V404, EVIA_V405, EVIA_V406, EVIA_V407, EVIA_V408, EVIA_V409
, EVIA_V410, EVIA_V411, EVIA_V412, EVIA_V413, EVIA_V414, EVIA_V415, EVIA_V416, EVIA_V417, EVIA_V418, EVIA_V419
, EVIA_V420, EVIA_V421, EVIA_V422, EVIA_V423, EVIA_V424, EVIA_V425, EVIA_V426, EVIA_V427, EVIA_V428, EVIA_V429
, EVIA_V430, EVIA_V431, EVIA_V432, EVIA_V433, EVIA_V434, EVIA_V435, EVIA_V436, EVIA_V437, EVIA_V438, EVIA_V439
, EVIA_V440, EVIA_V441, EVIA_V442, EVIA_V443, EVIA_V444, EVIA_V445, EVIA_V446, EVIA_V447, EVIA_V448, EVIA_V449
, EVIA_V450, EVIA_V451, EVIA_V452, EVIA_V453, EVIA_V454, EVIA_V455, EVIA_V456, EVIA_V457, EVIA_V458, EVIA_V459
, EVIA_V460, EVIA_V461, EVIA_V462, EVIA_V463, EVIA_V464, EVIA_V465, EVIA_V466, EVIA_V467, EVIA_V468, EVIA_V469
, EVIA_V470, EVIA_V471, EVIA_V472, EVIA_V473, EVIA_V474, EVIA_V475, EVIA_V476, EVIA_V477, EVIA_V478, EVIA_V479
, EVIA_V480, EVIA_V481, EVIA_V482, EVIA_V483, EVIA_V484, EVIA_V485, EVIA_V486, EVIA_V487, EVIA_V488, EVIA_V489
, EVIA_V490, EVIA_V491, EVIA_V492, EVIA_V493, EVIA_V494, EVIA_V495, EVIA_V496, EVIA_V497, EVIA_V498, EVIA_V499
, EVIA_V500, EVIA_V501, EVIA_V502, EVIA_V503, EVIA_V504, EVIA_V505, EVIA_V506, EVIA_V507, EVIA_V508, EVIA_V509
, EVIA_V510, EVIA_V511, EVIA_V512, EVIA_V513, EVIA_V514, EVIA_V515, EVIA_V516, EVIA_V517, EVIA_V518, EVIA_V519
, EVIA_V520, EVIA_V521, EVIA_V522, EVIA_V523, EVIA_V524, EVIA_V525, EVIA_V526, EVIA_V527, EVIA_V528, EVIA_V529
, EVIA_V530, EVIA_V531, EVIA_V532, EVIA_V533, EVIA_V534, EVIA_V535, EVIA_V536, EVIA_V537, EVIA_V538, EVIA_V539
, EVIA_V540, EVIA_V541, EVIA_V542, EVIA_V543, EVIA_V544, EVIA_V545, EVIA_V546, EVIA_V547, EVIA_V548, EVIA_V549
, EVIA_V550, EVIA_V551, EVIA_V552, EVIA_V553, EVIA_V554, EVIA_V555, EVIA_V556, EVIA_V557, EVIA_V558, EVIA_V559
, EVIA_V560, EVIA_V561, EVIA_V562, EVIA_V563, EVIA_V564, EVIA_V565, EVIA_V566, EVIA_V567, EVIA_V568, EVIA_V569
, EVIA_V570, EVIA_V571, EVIA_V572, EVIA_V573, EVIA_V574, EVIA_V575, EVIA_V576, EVIA_V577, EVIA_V578, EVIA_V579
, EVIA_V580, EVIA_V581, EVIA_V582, EVIA_V583, EVIA_V584, EVIA_V585, EVIA_V586, EVIA_V587, EVIA_V588, EVIA_V589
, EVIA_V590, EVIA_V591, EVIA_V592, EVIA_V593, EVIA_V594, EVIA_V595, EVIA_V596, EVIA_V597, EVIA_V598, EVIA_V599
, EVIA_V600, EVIA_V601, EVIA_V602, EVIA_V603, EVIA_V604, EVIA_V605, EVIA_V606, EVIA_V607, EVIA_V608, EVIA_V609
, EVIA_V610, EVIA_V611, EVIA_V612, EVIA_V613, EVIA_V614, EVIA_V615, EVIA_V616, EVIA_V617, EVIA_V618, EVIA_V619
, EVIA_V620, EVIA_V621, EVIA_V622, EVIA_V623, EVIA_V624, EVIA_V625, EVIA_V626, EVIA_V627, EVIA_V628, EVIA_V629
, EVIA_V630, EVIA_V631, EVIA_V632, EVIA_V633, EVIA_V634, EVIA_V635, EVIA_V636, EVIA_V637, EVIA_V638, EVIA_V639
, EVIA_V640, EVIA_V641, EVIA_V642, EVIA_V643, EVIA_V644, EVIA_V645, EVIA_V646, EVIA_V647, EVIA_V648, EVIA_V649
, EVIA_V650, EVIA_V651, EVIA_V652, EVIA_V653, EVIA_V654, EVIA_V655, EVIA_V656, EVIA_V657, EVIA_V658, EVIA_V659
, EVIA_V660, EVIA_V661, EVIA_V662, EVIA_V663, EVIA_V664, EVIA_V665, EVIA_V666, EVIA_V667, EVIA_V668, EVIA_V669
, EVIA_V670, EVIA_V671, EVIA_V672, EVIA_V673, EVIA_V674, EVIA_V675, EVIA_V676, EVIA_V677, EVIA_V678, EVIA_V679
, EVIA_V680, EVIA_V681, EVIA_V682, EVIA_V683, EVIA_V684, EVIA_V685, EVIA_V686, EVIA_V687, EVIA_V688, EVIA_V689
, EVIA_V690, EVIA_V691, EVIA_V692, EVIA_V693, EVIA_V694, EVIA_V695, EVIA_V696, EVIA_V697
};
// Submodel PNGD00 . 1
// Submodel F000 . 1
// Submodel F000 . 2
// Submodel F000 . 3
// Submodel F000 . 4
// Submodel PNPL01 . 1
// Submodel PNPL01 . 2
// Submodel PNPL01 . 3
// Submodel PNPL01 . 4
// Submodel PNPL01 . 5
// Submodel PNPL01 . 6
// Submodel PNPL01 . 7
// Submodel PNPL01 . 8
// Submodel F000 . 5
// Submodel F000 . 6
// Submodel F000 . 7
// Submodel F000 . 8
// Submodel PN3NODE2 . 1
// Submodel PN3NODE2 . 2
// Submodel PN3NODE2 . 3
// Submodel PN3NODE2 . 4
// Submodel P4NODE2 . 1
// Submodel P4NODE2 . 2
// Submodel P4NODE2 . 3
// Submodel P4NODE2 . 4
// Submodel UD00 . 1
// Submodel UD00 . 2
// Submodel STEP0 . 1
// variable out00GEN (Discrete var)
static const int IVIA_V0[4] = {500, -1, 1, 1};
// variable out10GEN (Discrete var)
static const int IVIA_V1[4] = {501, -1, 1, 1};
// variable t00GEN (Discrete var)
static const int IVIA_V2[4] = {502, -1, 1, 1};
// Submodel STEP0 . 2
// variable out00GEN (Discrete var)
static const int IVIA_V3[4] = {511, -1, 1, 1};
// variable out10GEN (Discrete var)
static const int IVIA_V4[4] = {512, -1, 1, 1};
// variable t00GEN (Discrete var)
static const int IVIA_V5[4] = {513, -1, 1, 1};
// Submodel STEP0 . 3
// variable out00GEN (Discrete var)
static const int IVIA_V6[4] = {522, -1, 1, 1};
// variable out10GEN (Discrete var)
static const int IVIA_V7[4] = {523, -1, 1, 1};
// variable t00GEN (Discrete var)
static const int IVIA_V8[4] = {524, -1, 1, 1};
// Submodel STEP0 . 4
// variable out00GEN (Discrete var)
static const int IVIA_V9[4] = {533, -1, 1, 1};
// variable out10GEN (Discrete var)
static const int IVIA_V10[4] = {534, -1, 1, 1};
// variable t00GEN (Discrete var)
static const int IVIA_V11[4] = {535, -1, 1, 1};
// Submodel FORC . 1
// Submodel FORC . 2
// Submodel PNRP17 . 1
// variable length (Basic var)
static const int IVIA_V12[4] = {19, -1, 1, 1};
// Submodel PNRP17 . 2
// variable length (Basic var)
static const int IVIA_V13[4] = {39, -1, 1, 1};
// Submodel PNRP17 . 3
// variable length (Basic var)
static const int IVIA_V14[4] = {59, -1, 1, 1};
// Submodel PNRP17 . 4
// variable length (Basic var)
static const int IVIA_V15[4] = {79, -1, 1, 1};
// Submodel MECMAS21 . 1
// variable Fmin (Basic var)
static const int IVIA_V16[4] = {84, -1, 1, 1};
// variable Fmax (Basic var)
static const int IVIA_V17[4] = {85, -1, 1, 1};
// variable Fvisc (Basic var)
static const int IVIA_V18[4] = {86, -1, 1, 1};
// variable Ffric (Basic var)
static const int IVIA_V19[4] = {87, -1, 1, 1};
// variable stick (Basic var)
static const int IVIA_V20[4] = {88, -1, 1, 1};
// variable actRfrict (Explicit state)
static const int IVIA_V21[4] = {-1, -1, 1, 0};
// variable powerRfrict (Activity var)
static const int IVIA_V22[4] = {89, -1, 1, 1};
// variable energyRfrict (Explicit state)
static const int IVIA_V23[4] = {-1, -1, 1, 0};
// variable actImass (Explicit state)
static const int IVIA_V24[4] = {-1, -1, 1, 0};
// variable powerImass (Activity var)
static const int IVIA_V25[4] = {90, -1, 1, 1};
// variable energyImass (Explicit state)
static const int IVIA_V26[4] = {-1, -1, 1, 0};
// variable actCendstop (Explicit state)
static const int IVIA_V27[4] = {-1, -1, 1, 0};
// variable powerCendstop (Activity var)
static const int IVIA_V28[4] = {91, -1, 1, 1};
// variable energyCendstop (Explicit state)
static const int IVIA_V29[4] = {-1, -1, 1, 0};
// variable actSgrav (Explicit state)
static const int IVIA_V30[4] = {-1, -1, 1, 0};
// variable powerSgrav (Activity var)
static const int IVIA_V31[4] = {92, -1, 1, 1};
// variable energySgrav (Explicit state)
static const int IVIA_V32[4] = {-1, -1, 1, 0};
// variable powerRendstop (Activity var)
static const int IVIA_V33[4] = {93, -1, 1, 1};
// variable energyRendstop (Explicit state)
static const int IVIA_V34[4] = {-1, -1, 1, 0};
// variable actRendstop (Explicit state)
static const int IVIA_V35[4] = {-1, -1, 1, 0};
// Submodel MECMAS21 . 2
// variable Fmin (Basic var)
static const int IVIA_V36[4] = {98, -1, 1, 1};
// variable Fmax (Basic var)
static const int IVIA_V37[4] = {99, -1, 1, 1};
// variable Fvisc (Basic var)
static const int IVIA_V38[4] = {100, -1, 1, 1};
// variable Ffric (Basic var)
static const int IVIA_V39[4] = {101, -1, 1, 1};
// variable stick (Basic var)
static const int IVIA_V40[4] = {102, -1, 1, 1};
// variable actRfrict (Explicit state)
static const int IVIA_V41[4] = {-1, -1, 1, 0};
// variable powerRfrict (Activity var)
static const int IVIA_V42[4] = {103, -1, 1, 1};
// variable energyRfrict (Explicit state)
static const int IVIA_V43[4] = {-1, -1, 1, 0};
// variable actImass (Explicit state)
static const int IVIA_V44[4] = {-1, -1, 1, 0};
// variable powerImass (Activity var)
static const int IVIA_V45[4] = {104, -1, 1, 1};
// variable energyImass (Explicit state)
static const int IVIA_V46[4] = {-1, -1, 1, 0};
// variable actCendstop (Explicit state)
static const int IVIA_V47[4] = {-1, -1, 1, 0};
// variable powerCendstop (Activity var)
static const int IVIA_V48[4] = {105, -1, 1, 1};
// variable energyCendstop (Explicit state)
static const int IVIA_V49[4] = {-1, -1, 1, 0};
// variable actSgrav (Explicit state)
static const int IVIA_V50[4] = {-1, -1, 1, 0};
// variable powerSgrav (Activity var)
static const int IVIA_V51[4] = {106, -1, 1, 1};
// variable energySgrav (Explicit state)
static const int IVIA_V52[4] = {-1, -1, 1, 0};
// variable powerRendstop (Activity var)
static const int IVIA_V53[4] = {107, -1, 1, 1};
// variable energyRendstop (Explicit state)
static const int IVIA_V54[4] = {-1, -1, 1, 0};
// variable actRendstop (Explicit state)
static const int IVIA_V55[4] = {-1, -1, 1, 0};
// Submodel MECMAS21 . 3
// variable Fmin (Basic var)
static const int IVIA_V56[4] = {112, -1, 1, 1};
// variable Fmax (Basic var)
static const int IVIA_V57[4] = {113, -1, 1, 1};
// variable Fvisc (Basic var)
static const int IVIA_V58[4] = {114, -1, 1, 1};
// variable Ffric (Basic var)
static const int IVIA_V59[4] = {115, -1, 1, 1};
// variable stick (Basic var)
static const int IVIA_V60[4] = {116, -1, 1, 1};
// variable actRfrict (Explicit state)
static const int IVIA_V61[4] = {-1, -1, 1, 0};
// variable powerRfrict (Activity var)
static const int IVIA_V62[4] = {117, -1, 1, 1};
// variable energyRfrict (Explicit state)
static const int IVIA_V63[4] = {-1, -1, 1, 0};
// variable actImass (Explicit state)
static const int IVIA_V64[4] = {-1, -1, 1, 0};
// variable powerImass (Activity var)
static const int IVIA_V65[4] = {118, -1, 1, 1};
// variable energyImass (Explicit state)
static const int IVIA_V66[4] = {-1, -1, 1, 0};
// variable actCendstop (Explicit state)
static const int IVIA_V67[4] = {-1, -1, 1, 0};
// variable powerCendstop (Activity var)
static const int IVIA_V68[4] = {119, -1, 1, 1};
// variable energyCendstop (Explicit state)
static const int IVIA_V69[4] = {-1, -1, 1, 0};
// variable actSgrav (Explicit state)
static const int IVIA_V70[4] = {-1, -1, 1, 0};
// variable powerSgrav (Activity var)
static const int IVIA_V71[4] = {120, -1, 1, 1};
// variable energySgrav (Explicit state)
static const int IVIA_V72[4] = {-1, -1, 1, 0};
// variable powerRendstop (Activity var)
static const int IVIA_V73[4] = {121, -1, 1, 1};
// variable energyRendstop (Explicit state)
static const int IVIA_V74[4] = {-1, -1, 1, 0};
// variable actRendstop (Explicit state)
static const int IVIA_V75[4] = {-1, -1, 1, 0};
// Submodel MECMAS21 . 4
// variable Fmin (Basic var)
static const int IVIA_V76[4] = {126, -1, 1, 1};
// variable Fmax (Basic var)
static const int IVIA_V77[4] = {127, -1, 1, 1};
// variable Fvisc (Basic var)
static const int IVIA_V78[4] = {128, -1, 1, 1};
// variable Ffric (Basic var)
static const int IVIA_V79[4] = {129, -1, 1, 1};
// variable stick (Basic var)
static const int IVIA_V80[4] = {130, -1, 1, 1};
// variable actRfrict (Explicit state)
static const int IVIA_V81[4] = {-1, -1, 1, 0};
// variable powerRfrict (Activity var)
static const int IVIA_V82[4] = {131, -1, 1, 1};
// variable energyRfrict (Explicit state)
static const int IVIA_V83[4] = {-1, -1, 1, 0};
// variable actImass (Explicit state)
static const int IVIA_V84[4] = {-1, -1, 1, 0};
// variable powerImass (Activity var)
static const int IVIA_V85[4] = {132, -1, 1, 1};
// variable energyImass (Explicit state)
static const int IVIA_V86[4] = {-1, -1, 1, 0};
// variable actCendstop (Explicit state)
static const int IVIA_V87[4] = {-1, -1, 1, 0};
// variable powerCendstop (Activity var)
static const int IVIA_V88[4] = {133, -1, 1, 1};
// variable energyCendstop (Explicit state)
static const int IVIA_V89[4] = {-1, -1, 1, 0};
// variable actSgrav (Explicit state)
static const int IVIA_V90[4] = {-1, -1, 1, 0};
// variable powerSgrav (Activity var)
static const int IVIA_V91[4] = {134, -1, 1, 1};
// variable energySgrav (Explicit state)
static const int IVIA_V92[4] = {-1, -1, 1, 0};
// variable powerRendstop (Activity var)
static const int IVIA_V93[4] = {135, -1, 1, 1};
// variable energyRendstop (Explicit state)
static const int IVIA_V94[4] = {-1, -1, 1, 0};
// variable actRendstop (Explicit state)
static const int IVIA_V95[4] = {-1, -1, 1, 0};
// Submodel MECMAS21 . 5
// variable Fmin (Basic var)
static const int IVIA_V96[4] = {156, -1, 1, 1};
// variable Fmax (Basic var)
static const int IVIA_V97[4] = {157, -1, 1, 1};
// variable Fvisc (Basic var)
static const int IVIA_V98[4] = {158, -1, 1, 1};
// variable Ffric (Basic var)
static const int IVIA_V99[4] = {159, -1, 1, 1};
// variable stick (Basic var)
static const int IVIA_V100[4] = {160, -1, 1, 1};
// variable actRfrict (Explicit state)
static const int IVIA_V101[4] = {-1, -1, 1, 0};
// variable powerRfrict (Activity var)
static const int IVIA_V102[4] = {161, -1, 1, 1};
// variable energyRfrict (Explicit state)
static const int IVIA_V103[4] = {-1, -1, 1, 0};
// variable actImass (Explicit state)
static const int IVIA_V104[4] = {-1, -1, 1, 0};
// variable powerImass (Activity var)
static const int IVIA_V105[4] = {162, -1, 1, 1};
// variable energyImass (Explicit state)
static const int IVIA_V106[4] = {-1, -1, 1, 0};
// variable actCendstop (Explicit state)
static const int IVIA_V107[4] = {-1, -1, 1, 0};
// variable powerCendstop (Activity var)
static const int IVIA_V108[4] = {163, -1, 1, 1};
// variable energyCendstop (Explicit state)
static const int IVIA_V109[4] = {-1, -1, 1, 0};
// variable actSgrav (Explicit state)
static const int IVIA_V110[4] = {-1, -1, 1, 0};
// variable powerSgrav (Activity var)
static const int IVIA_V111[4] = {164, -1, 1, 1};
// variable energySgrav (Explicit state)
static const int IVIA_V112[4] = {-1, -1, 1, 0};
// variable powerRendstop (Activity var)
static const int IVIA_V113[4] = {165, -1, 1, 1};
// variable energyRendstop (Explicit state)
static const int IVIA_V114[4] = {-1, -1, 1, 0};
// variable actRendstop (Explicit state)
static const int IVIA_V115[4] = {-1, -1, 1, 0};
// Submodel LMECHN1 . 2
// Submodel MECMAS21 . 6
// variable Fmin (Basic var)
static const int IVIA_V116[4] = {190, -1, 1, 1};
// variable Fmax (Basic var)
static const int IVIA_V117[4] = {191, -1, 1, 1};
// variable Fvisc (Basic var)
static const int IVIA_V118[4] = {192, -1, 1, 1};
// variable Ffric (Basic var)
static const int IVIA_V119[4] = {193, -1, 1, 1};
// variable stick (Basic var)
static const int IVIA_V120[4] = {194, -1, 1, 1};
// variable actRfrict (Explicit state)
static const int IVIA_V121[4] = {-1, -1, 1, 0};
// variable powerRfrict (Activity var)
static const int IVIA_V122[4] = {195, -1, 1, 1};
// variable energyRfrict (Explicit state)
static const int IVIA_V123[4] = {-1, -1, 1, 0};
// variable actImass (Explicit state)
static const int IVIA_V124[4] = {-1, -1, 1, 0};
// variable powerImass (Activity var)
static const int IVIA_V125[4] = {196, -1, 1, 1};
// variable energyImass (Explicit state)
static const int IVIA_V126[4] = {-1, -1, 1, 0};
// variable actCendstop (Explicit state)
static const int IVIA_V127[4] = {-1, -1, 1, 0};
// variable powerCendstop (Activity var)
static const int IVIA_V128[4] = {197, -1, 1, 1};
// variable energyCendstop (Explicit state)
static const int IVIA_V129[4] = {-1, -1, 1, 0};
// variable actSgrav (Explicit state)
static const int IVIA_V130[4] = {-1, -1, 1, 0};
// variable powerSgrav (Activity var)
static const int IVIA_V131[4] = {198, -1, 1, 1};
// variable energySgrav (Explicit state)
static const int IVIA_V132[4] = {-1, -1, 1, 0};
// variable powerRendstop (Activity var)
static const int IVIA_V133[4] = {199, -1, 1, 1};
// variable energyRendstop (Explicit state)
static const int IVIA_V134[4] = {-1, -1, 1, 0};
// variable actRendstop (Explicit state)
static const int IVIA_V135[4] = {-1, -1, 1, 0};
// Submodel PNCH012 . 1
// variable vol (Basic var)
static const int IVIA_V136[4] = {218, -1, 1, 1};
// variable mgas1 (Basic var)
static const int IVIA_V137[4] = {219, -1, 1, 1};
// Submodel PNCH012 . 2
// variable vol (Basic var)
static const int IVIA_V138[4] = {238, -1, 1, 1};
// variable mgas1 (Basic var)
static const int IVIA_V139[4] = {239, -1, 1, 1};
// Submodel PNCH012 . 3
// variable vol (Basic var)
static const int IVIA_V140[4] = {258, -1, 1, 1};
// variable mgas1 (Basic var)
static const int IVIA_V141[4] = {259, -1, 1, 1};
// Submodel PNCH012 . 4
// variable vol (Basic var)
static const int IVIA_V142[4] = {278, -1, 1, 1};
// variable mgas1 (Basic var)
static const int IVIA_V143[4] = {279, -1, 1, 1};
// Submodel PNCH023 . 1
// variable mgas (Basic var)
static const int IVIA_V144[4] = {289, -1, 1, 1};
// Submodel PNOR001 . 1
// variable cm (Basic var)
static const int IVIA_V145[4] = {294, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V146[4] = {295, -1, 1, 1};
// Submodel PNOR001 . 2
// variable cm (Basic var)
static const int IVIA_V147[4] = {300, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V148[4] = {301, -1, 1, 1};
// Submodel PNCH023 . 2
// variable mgas (Basic var)
static const int IVIA_V149[4] = {346, -1, 1, 1};
// Submodel PNOR001 . 3
// variable cm (Basic var)
static const int IVIA_V150[4] = {351, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V151[4] = {352, -1, 1, 1};
// Submodel PNOR001 . 4
// variable cm (Basic var)
static const int IVIA_V152[4] = {357, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V153[4] = {358, -1, 1, 1};
// Submodel PNVO001 . 1
// variable xv (Basic var)
static const int IVIA_V154[4] = {497, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V155[4] = {498, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V156[4] = {499, -1, 1, 1};
// Submodel PNVO001 . 2
// variable xv (Basic var)
static const int IVIA_V157[4] = {508, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V158[4] = {509, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V159[4] = {510, -1, 1, 1};
// Submodel PNVO001 . 3
// variable xv (Basic var)
static const int IVIA_V160[4] = {519, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V161[4] = {520, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V162[4] = {521, -1, 1, 1};
// Submodel PNVO001 . 4
// variable xv (Basic var)
static const int IVIA_V163[4] = {530, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V164[4] = {531, -1, 1, 1};
// variable gasvel (Basic var)
static const int IVIA_V165[4] = {532, -1, 1, 1};
// Submodel PNL0002 . 1
// variable tctr (Explicit state)
static const int IVIA_V166[4] = {570, 56, 1, 1};
// variable pctr (Explicit state)
static const int IVIA_V167[4] = {571, 57, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V168[4] = {572, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V169[4] = {573, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V170[4] = {574, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V171[4] = {575, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V172[4] = {576, -1, 1, 1};
// Submodel PNL0002 . 2
// variable tctr (Explicit state)
static const int IVIA_V173[4] = {577, 58, 1, 1};
// variable pctr (Explicit state)
static const int IVIA_V174[4] = {578, 59, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V175[4] = {579, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V176[4] = {580, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V177[4] = {581, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V178[4] = {582, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V179[4] = {583, -1, 1, 1};
// Submodel PNL0002 . 3
// variable tctr (Explicit state)
static const int IVIA_V180[4] = {584, 60, 1, 1};
// variable pctr (Explicit state)
static const int IVIA_V181[4] = {585, 61, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V182[4] = {586, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V183[4] = {587, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V184[4] = {588, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V185[4] = {589, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V186[4] = {590, -1, 1, 1};
// Submodel PNL0001 . 5
// variable mgas (Basic var)
static const int IVIA_V187[4] = {605, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V188[4] = {606, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V189[4] = {607, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V190[4] = {608, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V191[4] = {609, -1, 1, 1};
// Submodel PNL0001 . 6
// variable mgas (Basic var)
static const int IVIA_V192[4] = {610, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V193[4] = {611, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V194[4] = {612, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V195[4] = {613, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V196[4] = {614, -1, 1, 1};
// Submodel PNL0001 . 7
// variable mgas (Basic var)
static const int IVIA_V197[4] = {615, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V198[4] = {616, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V199[4] = {617, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V200[4] = {618, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V201[4] = {619, -1, 1, 1};
// Submodel PNL0001 . 8
// variable mgas (Basic var)
static const int IVIA_V202[4] = {620, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V203[4] = {621, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V204[4] = {622, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V205[4] = {623, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V206[4] = {624, -1, 1, 1};
// Submodel PNL00R . 1
// variable re (Basic var)
static const int IVIA_V207[4] = {625, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V208[4] = {626, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V209[4] = {627, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V210[4] = {628, -1, 1, 1};
// Submodel PNL00R . 2
// variable re (Basic var)
static const int IVIA_V211[4] = {629, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V212[4] = {630, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V213[4] = {631, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V214[4] = {632, -1, 1, 1};
// Submodel PNL0002 . 4
// variable tctr (Explicit state)
static const int IVIA_V215[4] = {633, 62, 1, 1};
// variable pctr (Explicit state)
static const int IVIA_V216[4] = {634, 63, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V217[4] = {635, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V218[4] = {636, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V219[4] = {637, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V220[4] = {638, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V221[4] = {639, -1, 1, 1};
// Submodel LMECHN1 . 1
// Submodel LSTP00A . 1
// variable gap (Basic var)
static const int IVIA_V222[4] = {166, -1, 1, 1};
// variable kval (Basic var)
static const int IVIA_V223[4] = {167, -1, 1, 1};
// variable actRdamp (Explicit state)
static const int IVIA_V224[4] = {-1, -1, 1, 0};
// variable powerRdamp (Activity var)
static const int IVIA_V225[4] = {168, -1, 1, 1};
// variable energyRdamp (Explicit state)
static const int IVIA_V226[4] = {-1, -1, 1, 0};
// variable actCspring (Explicit state)
static const int IVIA_V227[4] = {-1, -1, 1, 0};
// variable powerCspring (Activity var)
static const int IVIA_V228[4] = {169, -1, 1, 1};
// variable energyCspring (Explicit state)
static const int IVIA_V229[4] = {-1, -1, 1, 0};
// Submodel LSTP00A . 2
// variable gap (Basic var)
static const int IVIA_V230[4] = {170, -1, 1, 1};
// variable kval (Basic var)
static const int IVIA_V231[4] = {171, -1, 1, 1};
// variable actRdamp (Explicit state)
static const int IVIA_V232[4] = {-1, -1, 1, 0};
// variable powerRdamp (Activity var)
static const int IVIA_V233[4] = {172, -1, 1, 1};
// variable energyRdamp (Explicit state)
static const int IVIA_V234[4] = {-1, -1, 1, 0};
// variable actCspring (Explicit state)
static const int IVIA_V235[4] = {-1, -1, 1, 0};
// variable powerCspring (Activity var)
static const int IVIA_V236[4] = {173, -1, 1, 1};
// variable energyCspring (Explicit state)
static const int IVIA_V237[4] = {-1, -1, 1, 0};
// Submodel LSTP00A . 3
// variable gap (Basic var)
static const int IVIA_V238[4] = {174, -1, 1, 1};
// variable kval (Basic var)
static const int IVIA_V239[4] = {175, -1, 1, 1};
// variable actRdamp (Explicit state)
static const int IVIA_V240[4] = {-1, -1, 1, 0};
// variable powerRdamp (Activity var)
static const int IVIA_V241[4] = {176, -1, 1, 1};
// variable energyRdamp (Explicit state)
static const int IVIA_V242[4] = {-1, -1, 1, 0};
// variable actCspring (Explicit state)
static const int IVIA_V243[4] = {-1, -1, 1, 0};
// variable powerCspring (Activity var)
static const int IVIA_V244[4] = {177, -1, 1, 1};
// variable energyCspring (Explicit state)
static const int IVIA_V245[4] = {-1, -1, 1, 0};
// Submodel LSTP00A . 4
// variable gap (Basic var)
static const int IVIA_V246[4] = {178, -1, 1, 1};
// variable kval (Basic var)
static const int IVIA_V247[4] = {179, -1, 1, 1};
// variable actRdamp (Explicit state)
static const int IVIA_V248[4] = {-1, -1, 1, 0};
// variable powerRdamp (Activity var)
static const int IVIA_V249[4] = {180, -1, 1, 1};
// variable energyRdamp (Explicit state)
static const int IVIA_V250[4] = {-1, -1, 1, 0};
// variable actCspring (Explicit state)
static const int IVIA_V251[4] = {-1, -1, 1, 0};
// variable powerCspring (Activity var)
static const int IVIA_V252[4] = {181, -1, 1, 1};
// variable energyCspring (Explicit state)
static const int IVIA_V253[4] = {-1, -1, 1, 0};
// Submodel PNL0003 . 1
// variable dhctr (Basic var)
static const int IVIA_V254[4] = {556, -1, 1, 1};
// variable dmctr (Basic var)
static const int IVIA_V255[4] = {557, -1, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V256[4] = {558, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V257[4] = {559, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V258[4] = {560, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V259[4] = {561, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V260[4] = {562, -1, 1, 1};
// Submodel PNL0003 . 2
// variable dhctr (Basic var)
static const int IVIA_V261[4] = {563, -1, 1, 1};
// variable dmctr (Basic var)
static const int IVIA_V262[4] = {564, -1, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V263[4] = {565, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V264[4] = {566, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V265[4] = {567, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V266[4] = {568, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V267[4] = {569, -1, 1, 1};
// Submodel PNL0003 . 3
// variable dhctr (Basic var)
static const int IVIA_V268[4] = {591, -1, 1, 1};
// variable dmctr (Basic var)
static const int IVIA_V269[4] = {592, -1, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V270[4] = {593, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V271[4] = {594, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V272[4] = {595, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V273[4] = {596, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V274[4] = {597, -1, 1, 1};
// Submodel PNL0003 . 4
// variable dhctr (Basic var)
static const int IVIA_V275[4] = {598, -1, 1, 1};
// variable dmctr (Basic var)
static const int IVIA_V276[4] = {599, -1, 1, 1};
// variable mgas (Basic var)
static const int IVIA_V277[4] = {600, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V278[4] = {601, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V279[4] = {602, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V280[4] = {603, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V281[4] = {604, -1, 1, 1};
// Submodel PNL0001 . 1
// variable mgas (Basic var)
static const int IVIA_V282[4] = {536, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V283[4] = {537, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V284[4] = {538, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V285[4] = {539, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V286[4] = {540, -1, 1, 1};
// Submodel PNL0001 . 2
// variable mgas (Basic var)
static const int IVIA_V287[4] = {541, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V288[4] = {542, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V289[4] = {543, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V290[4] = {544, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V291[4] = {545, -1, 1, 1};
// Submodel PNL0001 . 3
// variable mgas (Basic var)
static const int IVIA_V292[4] = {546, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V293[4] = {547, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V294[4] = {548, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V295[4] = {549, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V296[4] = {550, -1, 1, 1};
// Submodel PNL0001 . 4
// variable mgas (Basic var)
static const int IVIA_V297[4] = {551, -1, 1, 1};
// variable re (Basic var)
static const int IVIA_V298[4] = {552, -1, 1, 1};
// variable cm (Basic var)
static const int IVIA_V299[4] = {553, -1, 1, 1};
// variable v (Basic var)
static const int IVIA_V300[4] = {554, -1, 1, 1};
// variable ff (Basic var)
static const int IVIA_V301[4] = {555, -1, 1, 1};
static const int* IVIA[302] = {
IVIA_V0, IVIA_V1, IVIA_V2, IVIA_V3, IVIA_V4, IVIA_V5, IVIA_V6, IVIA_V7, IVIA_V8, IVIA_V9
, IVIA_V10, IVIA_V11, IVIA_V12, IVIA_V13, IVIA_V14, IVIA_V15, IVIA_V16, IVIA_V17, IVIA_V18, IVIA_V19
, IVIA_V20, IVIA_V21, IVIA_V22, IVIA_V23, IVIA_V24, IVIA_V25, IVIA_V26, IVIA_V27, IVIA_V28, IVIA_V29
, IVIA_V30, IVIA_V31, IVIA_V32, IVIA_V33, IVIA_V34, IVIA_V35, IVIA_V36, IVIA_V37, IVIA_V38, IVIA_V39
, IVIA_V40, IVIA_V41, IVIA_V42, IVIA_V43, IVIA_V44, IVIA_V45, IVIA_V46, IVIA_V47, IVIA_V48, IVIA_V49
, IVIA_V50, IVIA_V51, IVIA_V52, IVIA_V53, IVIA_V54, IVIA_V55, IVIA_V56, IVIA_V57, IVIA_V58, IVIA_V59
, IVIA_V60, IVIA_V61, IVIA_V62, IVIA_V63, IVIA_V64, IVIA_V65, IVIA_V66, IVIA_V67, IVIA_V68, IVIA_V69
, IVIA_V70, IVIA_V71, IVIA_V72, IVIA_V73, IVIA_V74, IVIA_V75, IVIA_V76, IVIA_V77, IVIA_V78, IVIA_V79
, IVIA_V80, IVIA_V81, IVIA_V82, IVIA_V83, IVIA_V84, IVIA_V85, IVIA_V86, IVIA_V87, IVIA_V88, IVIA_V89
, IVIA_V90, IVIA_V91, IVIA_V92, IVIA_V93, IVIA_V94, IVIA_V95, IVIA_V96, IVIA_V97, IVIA_V98, IVIA_V99
, IVIA_V100, IVIA_V101, IVIA_V102, IVIA_V103, IVIA_V104, IVIA_V105, IVIA_V106, IVIA_V107, IVIA_V108, IVIA_V109
, IVIA_V110, IVIA_V111, IVIA_V112, IVIA_V113, IVIA_V114, IVIA_V115, IVIA_V116, IVIA_V117, IVIA_V118, IVIA_V119
, IVIA_V120, IVIA_V121, IVIA_V122, IVIA_V123, IVIA_V124, IVIA_V125, IVIA_V126, IVIA_V127, IVIA_V128, IVIA_V129
, IVIA_V130, IVIA_V131, IVIA_V132, IVIA_V133, IVIA_V134, IVIA_V135, IVIA_V136, IVIA_V137, IVIA_V138, IVIA_V139
, IVIA_V140, IVIA_V141, IVIA_V142, IVIA_V143, IVIA_V144, IVIA_V145, IVIA_V146, IVIA_V147, IVIA_V148, IVIA_V149
, IVIA_V150, IVIA_V151, IVIA_V152, IVIA_V153, IVIA_V154, IVIA_V155, IVIA_V156, IVIA_V157, IVIA_V158, IVIA_V159
, IVIA_V160, IVIA_V161, IVIA_V162, IVIA_V163, IVIA_V164, IVIA_V165, IVIA_V166, IVIA_V167, IVIA_V168, IVIA_V169
, IVIA_V170, IVIA_V171, IVIA_V172, IVIA_V173, IVIA_V174, IVIA_V175, IVIA_V176, IVIA_V177, IVIA_V178, IVIA_V179
, IVIA_V180, IVIA_V181, IVIA_V182, IVIA_V183, IVIA_V184, IVIA_V185, IVIA_V186, IVIA_V187, IVIA_V188, IVIA_V189
, IVIA_V190, IVIA_V191, IVIA_V192, IVIA_V193, IVIA_V194, IVIA_V195, IVIA_V196, IVIA_V197, IVIA_V198, IVIA_V199
, IVIA_V200, IVIA_V201, IVIA_V202, IVIA_V203, IVIA_V204, IVIA_V205, IVIA_V206, IVIA_V207, IVIA_V208, IVIA_V209
, IVIA_V210, IVIA_V211, IVIA_V212, IVIA_V213, IVIA_V214, IVIA_V215, IVIA_V216, IVIA_V217, IVIA_V218, IVIA_V219
, IVIA_V220, IVIA_V221, IVIA_V222, IVIA_V223, IVIA_V224, IVIA_V225, IVIA_V226, IVIA_V227, IVIA_V228, IVIA_V229
, IVIA_V230, IVIA_V231, IVIA_V232, IVIA_V233, IVIA_V234, IVIA_V235, IVIA_V236, IVIA_V237, IVIA_V238, IVIA_V239
, IVIA_V240, IVIA_V241, IVIA_V242, IVIA_V243, IVIA_V244, IVIA_V245, IVIA_V246, IVIA_V247, IVIA_V248, IVIA_V249
, IVIA_V250, IVIA_V251, IVIA_V252, IVIA_V253, IVIA_V254, IVIA_V255, IVIA_V256, IVIA_V257, IVIA_V258, IVIA_V259
, IVIA_V260, IVIA_V261, IVIA_V262, IVIA_V263, IVIA_V264, IVIA_V265, IVIA_V266, IVIA_V267, IVIA_V268, IVIA_V269
, IVIA_V270, IVIA_V271, IVIA_V272, IVIA_V273, IVIA_V274, IVIA_V275, IVIA_V276, IVIA_V277, IVIA_V278, IVIA_V279
, IVIA_V280, IVIA_V281, IVIA_V282, IVIA_V283, IVIA_V284, IVIA_V285, IVIA_V286, IVIA_V287, IVIA_V288, IVIA_V289
, IVIA_V290, IVIA_V291, IVIA_V292, IVIA_V293, IVIA_V294, IVIA_V295, IVIA_V296, IVIA_V297, IVIA_V298, IVIA_V299
, IVIA_V300, IVIA_V301
};
static const int PVIA[772] = {
83, 97, 111, 125, 212, 213, 214, 215, 206, 207
, 208, 209, 232, 233, 234, 235, 226, 227, 228, 229
, 252, 253, 254, 255, 246, 247, 248, 249, 272, 273
, 274, 275, 266, 267, 268, 269, 13, 33, 53, 73
, 306, 307, 302, 303, 304, 305, 310, 311, 312, 313
, 308, 309, 318, 319, 314, 315, 316, 317, 324, 325
, 320, 321, 322, 323, 328, 329, 330, 331, 326, 327
, 336, 337, 332, 333, 334, 335, 363, 364, 359, 360
, 361, 362, 367, 368, 369, 370, 365, 366, 375, 376
, 371, 372, 373, 374, 381, 382, 377, 378, 379, 380
, 385, 386, 387, 388, 383, 384, 393, 394, 389, 390
, 391, 392, 399, 400, 395, 396, 397, 398, 403, 404
, 405, 406, 401, 402, 411, 412, 407, 408, 409, 410
, 417, 418, 413, 414, 415, 416, 423, 424, 419, 420
, 421, 422, 427, 428, 429, 430, 425, 426, 435, 436
, 431, 432, 433, 434, 441, 442, 437, 438, 439, 440
, 447, 448, 443, 444, 445, 446, 451, 452, 453, 454
, 449, 450, 459, 460, 455, 456, 457, 458, 465, 466
, 461, 462, 463, 464, 471, 472, 467, 468, 469, 470
, 475, 476, 477, 478, 473, 474, 483, 484, 479, 480
, 481, 482, 489, 490, 485, 486, 487, 488, 280, 491
, 492, 503, 514, 525, 280, 186, 491, 152, 2, 3
, 4, 5, 0, 1, 9, 6, 7, 12, 10, 11
, 14, 15, 13, 17, 18, 16, 22, 23, 24, 25
, 20, 21, 29, 26, 27, 32, 30, 31, 34, 35
, 33, 37, 38, 36, 42, 43, 44, 45, 40, 41
, 49, 46, 47, 52, 50, 51, 54, 55, 53, 57
, 58, 56, 62, 63, 64, 65, 60, 61, 69, 66
, 67, 72, 70, 71, 74, 75, 73, 77, 78, 76
, 6, 0, 7, 1, 8, 9, 80, 81, 82, 83
, 26, 2, 27, 3, 28, 29, 94, 95, 96, 97
, 46, 4, 47, 5, 48, 49, 108, 109, 110, 111
, 66, 6, 67, 7, 68, 69, 122, 123, 124, 125
, 153, 8, 154, 9, 155, 152, 148, 149, 150, 151
, 70, 50, 30, 10, 71, 51, 31, 11, 72, 52
, 32, 12, 185, 182, 183, 182, 10, 183, 11, 184
, 185, 187, 188, 189, 186, 204, 12, 205, 13, 200
, 201, 202, 203, 210, 211, 206, 207, 208, 209, 0
, 1, 2, 3, 4, 5, 216, 217, 212, 213, 214
, 215, 224, 14, 225, 15, 220, 221, 222, 223, 230
, 231, 226, 227, 228, 229, 20, 21, 22, 23, 24
, 25, 236, 237, 232, 233, 234, 235, 244, 16, 245
, 17, 240, 241, 242, 243, 250, 251, 246, 247, 248
, 249, 40, 41, 42, 43, 44, 45, 256, 257, 252
, 253, 254, 255, 264, 18, 265, 19, 260, 261, 262
, 263, 270, 271, 266, 267, 268, 269, 60, 61, 62
, 63, 64, 65, 276, 277, 272, 273, 274, 275, 283
, 20, 284, 21, 281, 282, 287, 288, 285, 286, 285
, 286, 287, 288, 292, 293, 290, 291, 298, 299, 296
, 297, 281, 282, 283, 284, 340, 30, 341, 31, 338
, 339, 344, 345, 342, 343, 342, 343, 344, 345, 349
, 350, 347, 348, 355, 356, 353, 354, 338, 339, 340
, 341, 492, 413, 414, 417, 418, 495, 496, 493, 494
, 503, 437, 438, 441, 442, 506, 507, 504, 505, 514
, 461, 462, 465, 466, 517, 518, 515, 516, 525, 485
, 486, 489, 490, 528, 529, 526, 527, 443, 444, 447
, 448, 479, 480, 483, 484, 395, 396, 399, 400, 431
, 432, 435, 436, 419, 420, 423, 424, 455, 456, 459
, 460, 302, 303, 306, 307, 290, 22, 291, 23, 292
, 293, 332, 333, 336, 337, 296, 24, 297, 25, 298
, 299, 359, 360, 363, 364, 347, 32, 348, 33, 349
, 350, 389, 390, 393, 394, 353, 34, 354, 35, 355
, 356, 320, 321, 324, 325, 371, 372, 375, 376, 377
, 378, 381, 382, 314, 315, 318, 319, 407, 408, 411
, 412, 467, 468, 471, 472, 137, 140, 143, 146, 138
, 141, 144, 147, 136, 139, 142, 145, 151, 148, 149
, 16, 17, 18, 136, 137, 138, 36, 37, 38, 139
, 140, 141, 56, 57, 58, 142, 143, 144, 76, 77
, 78, 145, 146, 147, 365, 36, 366, 37, 367, 368
, 515, 52, 516, 53, 517, 518, 383, 38, 384, 39
, 385, 386, 526, 54, 527, 55, 528, 529, 308, 26
, 309, 27, 310, 311, 493, 48, 494, 49, 495, 496
, 326, 28, 327, 29, 328, 329, 504, 50, 505, 51
, 506, 507, 260, 261, 264, 265, 473, 46, 474, 47
, 475, 476, 240, 241, 244, 245, 449, 44, 450, 45
, 451, 452, 220, 221, 224, 225, 425, 42, 426, 43
, 427, 428, 200, 201, 204, 205, 401, 40, 402, 41
, 403, 404
};
// Submodel PNGD00 . 1
static const int RPARAM_0[2] = {0, 1};
static const int RPARAM_1[2] = {1, 1};
static const int RPARAM_2[2] = {2, 1};
static const int RPARAM_3[2] = {3, 1};
static const int RPARAM_4[2] = {4, 1};
static const int RPARAM_5[2] = {5, 1};
static const int RPARAM_6[2] = {6, 1};
static const int RPARAM_7[2] = {7, 1};
static const int RPARAM_8[2] = {8, 1};
static const int IPARAM_9[2] = {0, 1};
static const int IPARAM_10[2] = {1, 1};
static const int IPARAM_11[2] = {2, 1};
static const int IPARAM_12[2] = {3, 1};
static const int TPARAM_13[2] = {0, 1};
static const int TPARAM_14[2] = {1, 1};
static const int TPARAM_15[2] = {2, 1};
static const int TPARAM_16[2] = {3, 1};
static const int TPARAM_17[2] = {4, 1};
static const int TPARAM_18[2] = {5, 1};
static const int TPARAM_19[2] = {6, 1};
// Submodel F000 . 1
// Submodel F000 . 2
// Submodel F000 . 3
// Submodel F000 . 4
// Submodel PNPL01 . 1
// Submodel PNPL01 . 2
// Submodel PNPL01 . 3
// Submodel PNPL01 . 4
// Submodel PNPL01 . 5
// Submodel PNPL01 . 6
// Submodel PNPL01 . 7
// Submodel PNPL01 . 8
// Submodel F000 . 5
// Submodel F000 . 6
// Submodel F000 . 7
// Submodel F000 . 8
// Submodel PN3NODE2 . 1
// Submodel PN3NODE2 . 2
// Submodel PN3NODE2 . 3
// Submodel PN3NODE2 . 4
// Submodel P4NODE2 . 1
// Submodel P4NODE2 . 2
// Submodel P4NODE2 . 3
// Submodel P4NODE2 . 4
// Submodel UD00 . 1
static const int RPARAM_20[2] = {0, 1};
static const int RPARAM_21[2] = {1, 1};
static const int RPARAM_22[2] = {2, 1};
static const int RPARAM_23[2] = {3, 1};
static const int RPARAM_24[2] = {4, 1};
static const int RPARAM_25[2] = {5, 1};
static const int RPARAM_26[2] = {6, 1};
static const int RPARAM_27[2] = {7, 1};
static const int RPARAM_28[2] = {8, 1};
static const int RPARAM_29[2] = {9, 1};
static const int RPARAM_30[2] = {10, 1};
static const int RPARAM_31[2] = {11, 1};
static const int RPARAM_32[2] = {12, 1};
static const int RPARAM_33[2] = {13, 1};
static const int RPARAM_34[2] = {14, 1};
static const int RPARAM_35[2] = {15, 1};
static const int RPARAM_36[2] = {16, 1};
static const int RPARAM_37[2] = {17, 1};
static const int RPARAM_38[2] = {18, 1};
static const int RPARAM_39[2] = {19, 1};
static const int RPARAM_40[2] = {20, 1};
static const int RPARAM_41[2] = {21, 1};
static const int RPARAM_42[2] = {22, 1};
static const int RPARAM_43[2] = {23, 1};
static const int RPARAM_44[2] = {24, 1};
static const int IPARAM_45[2] = {0, 1};
static const int IPARAM_46[2] = {1, 1};
// Submodel UD00 . 2
static const int RPARAM_47[2] = {0, 1};
static const int RPARAM_48[2] = {1, 1};
static const int RPARAM_49[2] = {2, 1};
static const int RPARAM_50[2] = {3, 1};
static const int RPARAM_51[2] = {4, 1};
static const int RPARAM_52[2] = {5, 1};
static const int RPARAM_53[2] = {6, 1};
static const int RPARAM_54[2] = {7, 1};
static const int RPARAM_55[2] = {8, 1};
static const int RPARAM_56[2] = {9, 1};
static const int RPARAM_57[2] = {10, 1};
static const int RPARAM_58[2] = {11, 1};
static const int RPARAM_59[2] = {12, 1};
static const int RPARAM_60[2] = {13, 1};
static const int RPARAM_61[2] = {14, 1};
static const int RPARAM_62[2] = {15, 1};
static const int RPARAM_63[2] = {16, 1};
static const int RPARAM_64[2] = {17, 1};
static const int RPARAM_65[2] = {18, 1};
static const int RPARAM_66[2] = {19, 1};
static const int RPARAM_67[2] = {20, 1};
static const int RPARAM_68[2] = {21, 1};
static const int RPARAM_69[2] = {22, 1};
static const int RPARAM_70[2] = {23, 1};
static const int RPARAM_71[2] = {24, 1};
static const int IPARAM_72[2] = {0, 1};
static const int IPARAM_73[2] = {1, 1};
// Submodel STEP0 . 1
static const int RPARAM_74[2] = {0, 1};
static const int RPARAM_75[2] = {1, 1};
static const int RPARAM_76[2] = {2, 1};
static const int RPARAM_77[2] = {3, 1};
static const int IPARAM_78[2] = {0, 1};
// Submodel STEP0 . 2
static const int RPARAM_79[2] = {0, 1};
static const int RPARAM_80[2] = {1, 1};
static const int RPARAM_81[2] = {2, 1};
static const int RPARAM_82[2] = {3, 1};
static const int IPARAM_83[2] = {0, 1};
// Submodel STEP0 . 3
static const int RPARAM_84[2] = {0, 1};
static const int RPARAM_85[2] = {1, 1};
static const int RPARAM_86[2] = {2, 1};
static const int RPARAM_87[2] = {3, 1};
static const int IPARAM_88[2] = {0, 1};
// Submodel STEP0 . 4
static const int RPARAM_89[2] = {0, 1};
static const int RPARAM_90[2] = {1, 1};
static const int RPARAM_91[2] = {2, 1};
static const int RPARAM_92[2] = {3, 1};
static const int IPARAM_93[2] = {0, 1};
// Submodel FORC . 1
// Submodel FORC . 2
// Submodel PNRP17 . 1
static const int RPARAM_94[2] = {0, 1};
static const int RPARAM_95[2] = {1, 1};
static const int RPARAM_96[2] = {2, 1};
static const int IPARAM_97[2] = {0, 1};
// Submodel PNRP17 . 2
static const int RPARAM_98[2] = {0, 1};
static const int RPARAM_99[2] = {1, 1};
static const int RPARAM_100[2] = {2, 1};
static const int IPARAM_101[2] = {0, 1};
// Submodel PNRP17 . 3
static const int RPARAM_102[2] = {0, 1};
static const int RPARAM_103[2] = {1, 1};
static const int RPARAM_104[2] = {2, 1};
static const int IPARAM_105[2] = {0, 1};
// Submodel PNRP17 . 4
static const int RPARAM_106[2] = {0, 1};
static const int RPARAM_107[2] = {1, 1};
static const int RPARAM_108[2] = {2, 1};
static const int IPARAM_109[2] = {0, 1};
// Submodel MECMAS21 . 1
static const int RPARAM_110[2] = {0, 1};
static const int RPARAM_111[2] = {1, 1};
static const int RPARAM_112[2] = {2, 1};
static const int RPARAM_113[2] = {3, 1};
static const int RPARAM_114[2] = {4, 1};
static const int RPARAM_115[2] = {5, 1};
static const int RPARAM_116[2] = {6, 1};
static const int RPARAM_117[2] = {7, 1};
static const int RPARAM_118[2] = {8, 1};
static const int RPARAM_119[2] = {9, 1};
static const int RPARAM_120[2] = {10, 1};
static const int RPARAM_121[2] = {11, 1};
static const int RPARAM_122[2] = {12, 1};
static const int RPARAM_123[2] = {13, 1};
static const int RPARAM_124[2] = {14, 1};
static const int RPARAM_125[2] = {15, 1};
static const int RPARAM_126[2] = {16, 1};
static const int RPARAM_127[2] = {17, 1};
static const int IPARAM_128[2] = {0, 1};
static const int IPARAM_129[2] = {1, 1};
static const int IPARAM_130[2] = {2, 1};
static const int IPARAM_131[2] = {3, 1};
static const int IPARAM_132[2] = {4, 1};
// Submodel MECMAS21 . 2
static const int RPARAM_133[2] = {0, 1};
static const int RPARAM_134[2] = {1, 1};
static const int RPARAM_135[2] = {2, 1};
static const int RPARAM_136[2] = {3, 1};
static const int RPARAM_137[2] = {4, 1};
static const int RPARAM_138[2] = {5, 1};
static const int RPARAM_139[2] = {6, 1};
static const int RPARAM_140[2] = {7, 1};
static const int RPARAM_141[2] = {8, 1};
static const int RPARAM_142[2] = {9, 1};
static const int RPARAM_143[2] = {10, 1};
static const int RPARAM_144[2] = {11, 1};
static const int RPARAM_145[2] = {12, 1};
static const int RPARAM_146[2] = {13, 1};
static const int RPARAM_147[2] = {14, 1};
static const int RPARAM_148[2] = {15, 1};
static const int RPARAM_149[2] = {16, 1};
static const int RPARAM_150[2] = {17, 1};
static const int IPARAM_151[2] = {0, 1};
static const int IPARAM_152[2] = {1, 1};
static const int IPARAM_153[2] = {2, 1};
static const int IPARAM_154[2] = {3, 1};
static const int IPARAM_155[2] = {4, 1};
// Submodel MECMAS21 . 3
static const int RPARAM_156[2] = {0, 1};
static const int RPARAM_157[2] = {1, 1};
static const int RPARAM_158[2] = {2, 1};
static const int RPARAM_159[2] = {3, 1};
static const int RPARAM_160[2] = {4, 1};
static const int RPARAM_161[2] = {5, 1};
static const int RPARAM_162[2] = {6, 1};
static const int RPARAM_163[2] = {7, 1};
static const int RPARAM_164[2] = {8, 1};
static const int RPARAM_165[2] = {9, 1};
static const int RPARAM_166[2] = {10, 1};
static const int RPARAM_167[2] = {11, 1};
static const int RPARAM_168[2] = {12, 1};
static const int RPARAM_169[2] = {13, 1};
static const int RPARAM_170[2] = {14, 1};
static const int RPARAM_171[2] = {15, 1};
static const int RPARAM_172[2] = {16, 1};
static const int RPARAM_173[2] = {17, 1};
static const int IPARAM_174[2] = {0, 1};
static const int IPARAM_175[2] = {1, 1};
static const int IPARAM_176[2] = {2, 1};
static const int IPARAM_177[2] = {3, 1};
static const int IPARAM_178[2] = {4, 1};
// Submodel MECMAS21 . 4
static const int RPARAM_179[2] = {0, 1};
static const int RPARAM_180[2] = {1, 1};
static const int RPARAM_181[2] = {2, 1};
static const int RPARAM_182[2] = {3, 1};
static const int RPARAM_183[2] = {4, 1};
static const int RPARAM_184[2] = {5, 1};
static const int RPARAM_185[2] = {6, 1};
static const int RPARAM_186[2] = {7, 1};
static const int RPARAM_187[2] = {8, 1};
static const int RPARAM_188[2] = {9, 1};
static const int RPARAM_189[2] = {10, 1};
static const int RPARAM_190[2] = {11, 1};
static const int RPARAM_191[2] = {12, 1};
static const int RPARAM_192[2] = {13, 1};
static const int RPARAM_193[2] = {14, 1};
static const int RPARAM_194[2] = {15, 1};
static const int RPARAM_195[2] = {16, 1};
static const int RPARAM_196[2] = {17, 1};
static const int IPARAM_197[2] = {0, 1};
static const int IPARAM_198[2] = {1, 1};
static const int IPARAM_199[2] = {2, 1};
static const int IPARAM_200[2] = {3, 1};
static const int IPARAM_201[2] = {4, 1};
// Submodel MECMAS21 . 5
static const int RPARAM_202[2] = {0, 1};
static const int RPARAM_203[2] = {1, 1};
static const int RPARAM_204[2] = {2, 1};
static const int RPARAM_205[2] = {3, 1};
static const int RPARAM_206[2] = {4, 1};
static const int RPARAM_207[2] = {5, 1};
static const int RPARAM_208[2] = {6, 1};
static const int RPARAM_209[2] = {7, 1};
static const int RPARAM_210[2] = {8, 1};
static const int RPARAM_211[2] = {9, 1};
static const int RPARAM_212[2] = {10, 1};
static const int RPARAM_213[2] = {11, 1};
static const int RPARAM_214[2] = {12, 1};
static const int RPARAM_215[2] = {13, 1};
static const int RPARAM_216[2] = {14, 1};
static const int RPARAM_217[2] = {15, 1};
static const int RPARAM_218[2] = {16, 1};
static const int RPARAM_219[2] = {17, 1};
static const int IPARAM_220[2] = {0, 1};
static const int IPARAM_221[2] = {1, 1};
static const int IPARAM_222[2] = {2, 1};
static const int IPARAM_223[2] = {3, 1};
static const int IPARAM_224[2] = {4, 1};
// Submodel LMECHN1 . 2
static const int IPARAM_225[2] = {0, 1};
// Submodel MECMAS21 . 6
static const int RPARAM_226[2] = {0, 1};
static const int RPARAM_227[2] = {1, 1};
static const int RPARAM_228[2] = {2, 1};
static const int RPARAM_229[2] = {3, 1};
static const int RPARAM_230[2] = {4, 1};
static const int RPARAM_231[2] = {5, 1};
static const int RPARAM_232[2] = {6, 1};
static const int RPARAM_233[2] = {7, 1};
static const int RPARAM_234[2] = {8, 1};
static const int RPARAM_235[2] = {9, 1};
static const int RPARAM_236[2] = {10, 1};
static const int RPARAM_237[2] = {11, 1};
static const int RPARAM_238[2] = {12, 1};
static const int RPARAM_239[2] = {13, 1};
static const int RPARAM_240[2] = {14, 1};
static const int RPARAM_241[2] = {15, 1};
static const int RPARAM_242[2] = {16, 1};
static const int RPARAM_243[2] = {17, 1};
static const int IPARAM_244[2] = {0, 1};
static const int IPARAM_245[2] = {1, 1};
static const int IPARAM_246[2] = {2, 1};
static const int IPARAM_247[2] = {3, 1};
static const int IPARAM_248[2] = {4, 1};
// Submodel PNCH012 . 1
static const int RPARAM_249[2] = {0, 1};
static const int RPARAM_250[2] = {1, 1};
static const int RPARAM_251[2] = {2, 1};
static const int RPARAM_252[2] = {3, 1};
static const int IPARAM_253[2] = {0, 1};
// Submodel PNCH012 . 2
static const int RPARAM_254[2] = {0, 1};
static const int RPARAM_255[2] = {1, 1};
static const int RPARAM_256[2] = {2, 1};
static const int RPARAM_257[2] = {3, 1};
static const int IPARAM_258[2] = {0, 1};
// Submodel PNCH012 . 3
static const int RPARAM_259[2] = {0, 1};
static const int RPARAM_260[2] = {1, 1};
static const int RPARAM_261[2] = {2, 1};
static const int RPARAM_262[2] = {3, 1};
static const int IPARAM_263[2] = {0, 1};
// Submodel PNCH012 . 4
static const int RPARAM_264[2] = {0, 1};
static const int RPARAM_265[2] = {1, 1};
static const int RPARAM_266[2] = {2, 1};
static const int RPARAM_267[2] = {3, 1};
static const int IPARAM_268[2] = {0, 1};
// Submodel PNCH023 . 1
static const int RPARAM_269[2] = {0, 1};
static const int RPARAM_270[2] = {1, 1};
static const int RPARAM_271[2] = {2, 1};
static const int RPARAM_272[2] = {3, 1};
static const int IPARAM_273[2] = {0, 1};
// Submodel PNOR001 . 1
static const int RPARAM_274[2] = {0, 1};
static const int RPARAM_275[2] = {1, 1};
static const int RPARAM_276[2] = {2, 1};
static const int RPARAM_277[2] = {3, 1};
static const int IPARAM_278[2] = {0, 1};
static const int IPARAM_279[2] = {1, 1};
// Submodel PNOR001 . 2
static const int RPARAM_280[2] = {0, 1};
static const int RPARAM_281[2] = {1, 1};
static const int RPARAM_282[2] = {2, 1};
static const int RPARAM_283[2] = {3, 1};
static const int IPARAM_284[2] = {0, 1};
static const int IPARAM_285[2] = {1, 1};
// Submodel PNCH023 . 2
static const int RPARAM_286[2] = {0, 1};
static const int RPARAM_287[2] = {1, 1};
static const int RPARAM_288[2] = {2, 1};
static const int RPARAM_289[2] = {3, 1};
static const int IPARAM_290[2] = {0, 1};
// Submodel PNOR001 . 3
static const int RPARAM_291[2] = {0, 1};
static const int RPARAM_292[2] = {1, 1};
static const int RPARAM_293[2] = {2, 1};
static const int RPARAM_294[2] = {3, 1};
static const int IPARAM_295[2] = {0, 1};
static const int IPARAM_296[2] = {1, 1};
// Submodel PNOR001 . 4
static const int RPARAM_297[2] = {0, 1};
static const int RPARAM_298[2] = {1, 1};
static const int RPARAM_299[2] = {2, 1};
static const int RPARAM_300[2] = {3, 1};
static const int IPARAM_301[2] = {0, 1};
static const int IPARAM_302[2] = {1, 1};
// Submodel PNVO001 . 1
static const int RPARAM_303[2] = {0, 1};
static const int RPARAM_304[2] = {1, 1};
static const int RPARAM_305[2] = {2, 1};
static const int RPARAM_306[2] = {3, 1};
static const int IPARAM_307[2] = {0, 1};
static const int IPARAM_308[2] = {1, 1};
// Submodel PNVO001 . 2
static const int RPARAM_309[2] = {0, 1};
static const int RPARAM_310[2] = {1, 1};
static const int RPARAM_311[2] = {2, 1};
static const int RPARAM_312[2] = {3, 1};
static const int IPARAM_313[2] = {0, 1};
static const int IPARAM_314[2] = {1, 1};
// Submodel PNVO001 . 3
static const int RPARAM_315[2] = {0, 1};
static const int RPARAM_316[2] = {1, 1};
static const int RPARAM_317[2] = {2, 1};
static const int RPARAM_318[2] = {3, 1};
static const int IPARAM_319[2] = {0, 1};
static const int IPARAM_320[2] = {1, 1};
// Submodel PNVO001 . 4
static const int RPARAM_321[2] = {0, 1};
static const int RPARAM_322[2] = {1, 1};
static const int RPARAM_323[2] = {2, 1};
static const int RPARAM_324[2] = {3, 1};
static const int IPARAM_325[2] = {0, 1};
static const int IPARAM_326[2] = {1, 1};
// Submodel PNL0002 . 1
static const int RPARAM_327[2] = {0, 1};
static const int RPARAM_328[2] = {1, 1};
static const int RPARAM_329[2] = {2, 1};
static const int RPARAM_330[2] = {3, 1};
static const int RPARAM_331[2] = {4, 1};
static const int RPARAM_332[2] = {5, 1};
static const int IPARAM_333[2] = {0, 1};
static const int IPARAM_334[2] = {1, 1};
// Submodel PNL0002 . 2
static const int RPARAM_335[2] = {0, 1};
static const int RPARAM_336[2] = {1, 1};
static const int RPARAM_337[2] = {2, 1};
static const int RPARAM_338[2] = {3, 1};
static const int RPARAM_339[2] = {4, 1};
static const int RPARAM_340[2] = {5, 1};
static const int IPARAM_341[2] = {0, 1};
static const int IPARAM_342[2] = {1, 1};
// Submodel PNL0002 . 3
static const int RPARAM_343[2] = {0, 1};
static const int RPARAM_344[2] = {1, 1};
static const int RPARAM_345[2] = {2, 1};
static const int RPARAM_346[2] = {3, 1};
static const int RPARAM_347[2] = {4, 1};
static const int RPARAM_348[2] = {5, 1};
static const int IPARAM_349[2] = {0, 1};
static const int IPARAM_350[2] = {1, 1};
// Submodel PNL0001 . 5
static const int RPARAM_351[2] = {0, 1};
static const int RPARAM_352[2] = {1, 1};
static const int RPARAM_353[2] = {2, 1};
static const int RPARAM_354[2] = {3, 1};
static const int RPARAM_355[2] = {4, 1};
static const int RPARAM_356[2] = {5, 1};
static const int IPARAM_357[2] = {0, 1};
static const int IPARAM_358[2] = {1, 1};
// Submodel PNL0001 . 6
static const int RPARAM_359[2] = {0, 1};
static const int RPARAM_360[2] = {1, 1};
static const int RPARAM_361[2] = {2, 1};
static const int RPARAM_362[2] = {3, 1};
static const int RPARAM_363[2] = {4, 1};
static const int RPARAM_364[2] = {5, 1};
static const int IPARAM_365[2] = {0, 1};
static const int IPARAM_366[2] = {1, 1};
// Submodel PNL0001 . 7
static const int RPARAM_367[2] = {0, 1};
static const int RPARAM_368[2] = {1, 1};
static const int RPARAM_369[2] = {2, 1};
static const int RPARAM_370[2] = {3, 1};
static const int RPARAM_371[2] = {4, 1};
static const int RPARAM_372[2] = {5, 1};
static const int IPARAM_373[2] = {0, 1};
static const int IPARAM_374[2] = {1, 1};
// Submodel PNL0001 . 8
static const int RPARAM_375[2] = {0, 1};
static const int RPARAM_376[2] = {1, 1};
static const int RPARAM_377[2] = {2, 1};
static const int RPARAM_378[2] = {3, 1};
static const int RPARAM_379[2] = {4, 1};
static const int RPARAM_380[2] = {5, 1};
static const int IPARAM_381[2] = {0, 1};
static const int IPARAM_382[2] = {1, 1};
// Submodel PNL00R . 1
static const int RPARAM_383[2] = {0, 1};
static const int RPARAM_384[2] = {1, 1};
static const int RPARAM_385[2] = {2, 1};
static const int IPARAM_386[2] = {0, 1};
// Submodel PNL00R . 2
static const int RPARAM_387[2] = {0, 1};
static const int RPARAM_388[2] = {1, 1};
static const int RPARAM_389[2] = {2, 1};
static const int IPARAM_390[2] = {0, 1};
// Submodel PNL0002 . 4
static const int RPARAM_391[2] = {0, 1};
static const int RPARAM_392[2] = {1, 1};
static const int RPARAM_393[2] = {2, 1};
static const int RPARAM_394[2] = {3, 1};
static const int RPARAM_395[2] = {4, 1};
static const int RPARAM_396[2] = {5, 1};
static const int IPARAM_397[2] = {0, 1};
static const int IPARAM_398[2] = {1, 1};
// Submodel LMECHN1 . 1
static const int IPARAM_399[2] = {0, 1};
// Submodel LSTP00A . 1
static const int RPARAM_400[2] = {0, 1};
static const int RPARAM_401[2] = {1, 1};
static const int RPARAM_402[2] = {2, 1};
static const int RPARAM_403[2] = {3, 1};
static const int RPARAM_404[2] = {4, 1};
static const int RPARAM_405[2] = {5, 1};
static const int RPARAM_406[2] = {6, 1};
static const int RPARAM_407[2] = {7, 1};
static const int IPARAM_408[2] = {0, 1};
static const int IPARAM_409[2] = {1, 1};
// Submodel LSTP00A . 2
static const int RPARAM_410[2] = {0, 1};
static const int RPARAM_411[2] = {1, 1};
static const int RPARAM_412[2] = {2, 1};
static const int RPARAM_413[2] = {3, 1};
static const int RPARAM_414[2] = {4, 1};
static const int RPARAM_415[2] = {5, 1};
static const int RPARAM_416[2] = {6, 1};
static const int RPARAM_417[2] = {7, 1};
static const int IPARAM_418[2] = {0, 1};
static const int IPARAM_419[2] = {1, 1};
// Submodel LSTP00A . 3
static const int RPARAM_420[2] = {0, 1};
static const int RPARAM_421[2] = {1, 1};
static const int RPARAM_422[2] = {2, 1};
static const int RPARAM_423[2] = {3, 1};
static const int RPARAM_424[2] = {4, 1};
static const int RPARAM_425[2] = {5, 1};
static const int RPARAM_426[2] = {6, 1};
static const int RPARAM_427[2] = {7, 1};
static const int IPARAM_428[2] = {0, 1};
static const int IPARAM_429[2] = {1, 1};
// Submodel LSTP00A . 4
static const int RPARAM_430[2] = {0, 1};
static const int RPARAM_431[2] = {1, 1};
static const int RPARAM_432[2] = {2, 1};
static const int RPARAM_433[2] = {3, 1};
static const int RPARAM_434[2] = {4, 1};
static const int RPARAM_435[2] = {5, 1};
static const int RPARAM_436[2] = {6, 1};
static const int RPARAM_437[2] = {7, 1};
static const int IPARAM_438[2] = {0, 1};
static const int IPARAM_439[2] = {1, 1};
// Submodel PNL0003 . 1
static const int RPARAM_440[2] = {0, 1};
static const int RPARAM_441[2] = {1, 1};
static const int RPARAM_442[2] = {2, 1};
static const int RPARAM_443[2] = {3, 1};
static const int RPARAM_444[2] = {4, 1};
static const int RPARAM_445[2] = {5, 1};
static const int IPARAM_446[2] = {0, 1};
static const int IPARAM_447[2] = {1, 1};
// Submodel PNL0003 . 2
static const int RPARAM_448[2] = {0, 1};
static const int RPARAM_449[2] = {1, 1};
static const int RPARAM_450[2] = {2, 1};
static const int RPARAM_451[2] = {3, 1};
static const int RPARAM_452[2] = {4, 1};
static const int RPARAM_453[2] = {5, 1};
static const int IPARAM_454[2] = {0, 1};
static const int IPARAM_455[2] = {1, 1};
// Submodel PNL0003 . 3
static const int RPARAM_456[2] = {0, 1};
static const int RPARAM_457[2] = {1, 1};
static const int RPARAM_458[2] = {2, 1};
static const int RPARAM_459[2] = {3, 1};
static const int RPARAM_460[2] = {4, 1};
static const int RPARAM_461[2] = {5, 1};
static const int IPARAM_462[2] = {0, 1};
static const int IPARAM_463[2] = {1, 1};
// Submodel PNL0003 . 4
static const int RPARAM_464[2] = {0, 1};
static const int RPARAM_465[2] = {1, 1};
static const int RPARAM_466[2] = {2, 1};
static const int RPARAM_467[2] = {3, 1};
static const int RPARAM_468[2] = {4, 1};
static const int RPARAM_469[2] = {5, 1};
static const int IPARAM_470[2] = {0, 1};
static const int IPARAM_471[2] = {1, 1};
// Submodel PNL0001 . 1
static const int RPARAM_472[2] = {0, 1};
static const int RPARAM_473[2] = {1, 1};
static const int RPARAM_474[2] = {2, 1};
static const int RPARAM_475[2] = {3, 1};
static const int RPARAM_476[2] = {4, 1};
static const int RPARAM_477[2] = {5, 1};
static const int IPARAM_478[2] = {0, 1};
static const int IPARAM_479[2] = {1, 1};
// Submodel PNL0001 . 2
static const int RPARAM_480[2] = {0, 1};
static const int RPARAM_481[2] = {1, 1};
static const int RPARAM_482[2] = {2, 1};
static const int RPARAM_483[2] = {3, 1};
static const int RPARAM_484[2] = {4, 1};
static const int RPARAM_485[2] = {5, 1};
static const int IPARAM_486[2] = {0, 1};
static const int IPARAM_487[2] = {1, 1};
// Submodel PNL0001 . 3
static const int RPARAM_488[2] = {0, 1};
static const int RPARAM_489[2] = {1, 1};
static const int RPARAM_490[2] = {2, 1};
static const int RPARAM_491[2] = {3, 1};
static const int RPARAM_492[2] = {4, 1};
static const int RPARAM_493[2] = {5, 1};
static const int IPARAM_494[2] = {0, 1};
static const int IPARAM_495[2] = {1, 1};
// Submodel PNL0001 . 4
static const int RPARAM_496[2] = {0, 1};
static const int RPARAM_497[2] = {1, 1};
static const int RPARAM_498[2] = {2, 1};
static const int RPARAM_499[2] = {3, 1};
static const int RPARAM_500[2] = {4, 1};
static const int RPARAM_501[2] = {5, 1};
static const int IPARAM_502[2] = {0, 1};
static const int IPARAM_503[2] = {1, 1};
static const int* PIA[504] = {
RPARAM_0, RPARAM_1, RPARAM_2, RPARAM_3, RPARAM_4, RPARAM_5, RPARAM_6, RPARAM_7, RPARAM_8, IPARAM_9
, IPARAM_10, IPARAM_11, IPARAM_12, TPARAM_13, TPARAM_14, TPARAM_15, TPARAM_16, TPARAM_17, TPARAM_18, TPARAM_19
, RPARAM_20, RPARAM_21, RPARAM_22, RPARAM_23, RPARAM_24, RPARAM_25, RPARAM_26, RPARAM_27, RPARAM_28, RPARAM_29
, RPARAM_30, RPARAM_31, RPARAM_32, RPARAM_33, RPARAM_34, RPARAM_35, RPARAM_36, RPARAM_37, RPARAM_38, RPARAM_39
, RPARAM_40, RPARAM_41, RPARAM_42, RPARAM_43, RPARAM_44, IPARAM_45, IPARAM_46, RPARAM_47, RPARAM_48, RPARAM_49
, RPARAM_50, RPARAM_51, RPARAM_52, RPARAM_53, RPARAM_54, RPARAM_55, RPARAM_56, RPARAM_57, RPARAM_58, RPARAM_59
, RPARAM_60, RPARAM_61, RPARAM_62, RPARAM_63, RPARAM_64, RPARAM_65, RPARAM_66, RPARAM_67, RPARAM_68, RPARAM_69
, RPARAM_70, RPARAM_71, IPARAM_72, IPARAM_73, RPARAM_74, RPARAM_75, RPARAM_76, RPARAM_77, IPARAM_78, RPARAM_79
, RPARAM_80, RPARAM_81, RPARAM_82, IPARAM_83, RPARAM_84, RPARAM_85, RPARAM_86, RPARAM_87, IPARAM_88, RPARAM_89
, RPARAM_90, RPARAM_91, RPARAM_92, IPARAM_93, RPARAM_94, RPARAM_95, RPARAM_96, IPARAM_97, RPARAM_98, RPARAM_99
, RPARAM_100, IPARAM_101, RPARAM_102, RPARAM_103, RPARAM_104, IPARAM_105, RPARAM_106, RPARAM_107, RPARAM_108, IPARAM_109
, RPARAM_110, RPARAM_111, RPARAM_112, RPARAM_113, RPARAM_114, RPARAM_115, RPARAM_116, RPARAM_117, RPARAM_118, RPARAM_119
, RPARAM_120, RPARAM_121, RPARAM_122, RPARAM_123, RPARAM_124, RPARAM_125, RPARAM_126, RPARAM_127, IPARAM_128, IPARAM_129
, IPARAM_130, IPARAM_131, IPARAM_132, RPARAM_133, RPARAM_134, RPARAM_135, RPARAM_136, RPARAM_137, RPARAM_138, RPARAM_139
, RPARAM_140, RPARAM_141, RPARAM_142, RPARAM_143, RPARAM_144, RPARAM_145, RPARAM_146, RPARAM_147, RPARAM_148, RPARAM_149
, RPARAM_150, IPARAM_151, IPARAM_152, IPARAM_153, IPARAM_154, IPARAM_155, RPARAM_156, RPARAM_157, RPARAM_158, RPARAM_159
, RPARAM_160, RPARAM_161, RPARAM_162, RPARAM_163, RPARAM_164, RPARAM_165, RPARAM_166, RPARAM_167, RPARAM_168, RPARAM_169
, RPARAM_170, RPARAM_171, RPARAM_172, RPARAM_173, IPARAM_174, IPARAM_175, IPARAM_176, IPARAM_177, IPARAM_178, RPARAM_179
, RPARAM_180, RPARAM_181, RPARAM_182, RPARAM_183, RPARAM_184, RPARAM_185, RPARAM_186, RPARAM_187, RPARAM_188, RPARAM_189
, RPARAM_190, RPARAM_191, RPARAM_192, RPARAM_193, RPARAM_194, RPARAM_195, RPARAM_196, IPARAM_197, IPARAM_198, IPARAM_199
, IPARAM_200, IPARAM_201, RPARAM_202, RPARAM_203, RPARAM_204, RPARAM_205, RPARAM_206, RPARAM_207, RPARAM_208, RPARAM_209
, RPARAM_210, RPARAM_211, RPARAM_212, RPARAM_213, RPARAM_214, RPARAM_215, RPARAM_216, RPARAM_217, RPARAM_218, RPARAM_219
, IPARAM_220, IPARAM_221, IPARAM_222, IPARAM_223, IPARAM_224, IPARAM_225, RPARAM_226, RPARAM_227, RPARAM_228, RPARAM_229
, RPARAM_230, RPARAM_231, RPARAM_232, RPARAM_233, RPARAM_234, RPARAM_235, RPARAM_236, RPARAM_237, RPARAM_238, RPARAM_239
, RPARAM_240, RPARAM_241, RPARAM_242, RPARAM_243, IPARAM_244, IPARAM_245, IPARAM_246, IPARAM_247, IPARAM_248, RPARAM_249
, RPARAM_250, RPARAM_251, RPARAM_252, IPARAM_253, RPARAM_254, RPARAM_255, RPARAM_256, RPARAM_257, IPARAM_258, RPARAM_259
, RPARAM_260, RPARAM_261, RPARAM_262, IPARAM_263, RPARAM_264, RPARAM_265, RPARAM_266, RPARAM_267, IPARAM_268, RPARAM_269
, RPARAM_270, RPARAM_271, RPARAM_272, IPARAM_273, RPARAM_274, RPARAM_275, RPARAM_276, RPARAM_277, IPARAM_278, IPARAM_279
, RPARAM_280, RPARAM_281, RPARAM_282, RPARAM_283, IPARAM_284, IPARAM_285, RPARAM_286, RPARAM_287, RPARAM_288, RPARAM_289
, IPARAM_290, RPARAM_291, RPARAM_292, RPARAM_293, RPARAM_294, IPARAM_295, IPARAM_296, RPARAM_297, RPARAM_298, RPARAM_299
, RPARAM_300, IPARAM_301, IPARAM_302, RPARAM_303, RPARAM_304, RPARAM_305, RPARAM_306, IPARAM_307, IPARAM_308, RPARAM_309
, RPARAM_310, RPARAM_311, RPARAM_312, IPARAM_313, IPARAM_314, RPARAM_315, RPARAM_316, RPARAM_317, RPARAM_318, IPARAM_319
, IPARAM_320, RPARAM_321, RPARAM_322, RPARAM_323, RPARAM_324, IPARAM_325, IPARAM_326, RPARAM_327, RPARAM_328, RPARAM_329
, RPARAM_330, RPARAM_331, RPARAM_332, IPARAM_333, IPARAM_334, RPARAM_335, RPARAM_336, RPARAM_337, RPARAM_338, RPARAM_339
, RPARAM_340, IPARAM_341, IPARAM_342, RPARAM_343, RPARAM_344, RPARAM_345, RPARAM_346, RPARAM_347, RPARAM_348, IPARAM_349
, IPARAM_350, RPARAM_351, RPARAM_352, RPARAM_353, RPARAM_354, RPARAM_355, RPARAM_356, IPARAM_357, IPARAM_358, RPARAM_359
, RPARAM_360, RPARAM_361, RPARAM_362, RPARAM_363, RPARAM_364, IPARAM_365, IPARAM_366, RPARAM_367, RPARAM_368, RPARAM_369
, RPARAM_370, RPARAM_371, RPARAM_372, IPARAM_373, IPARAM_374, RPARAM_375, RPARAM_376, RPARAM_377, RPARAM_378, RPARAM_379
, RPARAM_380, IPARAM_381, IPARAM_382, RPARAM_383, RPARAM_384, RPARAM_385, IPARAM_386, RPARAM_387, RPARAM_388, RPARAM_389
, IPARAM_390, RPARAM_391, RPARAM_392, RPARAM_393, RPARAM_394, RPARAM_395, RPARAM_396, IPARAM_397, IPARAM_398, IPARAM_399
, RPARAM_400, RPARAM_401, RPARAM_402, RPARAM_403, RPARAM_404, RPARAM_405, RPARAM_406, RPARAM_407, IPARAM_408, IPARAM_409
, RPARAM_410, RPARAM_411, RPARAM_412, RPARAM_413, RPARAM_414, RPARAM_415, RPARAM_416, RPARAM_417, IPARAM_418, IPARAM_419
, RPARAM_420, RPARAM_421, RPARAM_422, RPARAM_423, RPARAM_424, RPARAM_425, RPARAM_426, RPARAM_427, IPARAM_428, IPARAM_429
, RPARAM_430, RPARAM_431, RPARAM_432, RPARAM_433, RPARAM_434, RPARAM_435, RPARAM_436, RPARAM_437, IPARAM_438, IPARAM_439
, RPARAM_440, RPARAM_441, RPARAM_442, RPARAM_443, RPARAM_444, RPARAM_445, IPARAM_446, IPARAM_447, RPARAM_448, RPARAM_449
, RPARAM_450, RPARAM_451, RPARAM_452, RPARAM_453, IPARAM_454, IPARAM_455, RPARAM_456, RPARAM_457, RPARAM_458, RPARAM_459
, RPARAM_460, RPARAM_461, IPARAM_462, IPARAM_463, RPARAM_464, RPARAM_465, RPARAM_466, RPARAM_467, RPARAM_468, RPARAM_469
, IPARAM_470, IPARAM_471, RPARAM_472, RPARAM_473, RPARAM_474, RPARAM_475, RPARAM_476, RPARAM_477, IPARAM_478, IPARAM_479
, RPARAM_480, RPARAM_481, RPARAM_482, RPARAM_483, RPARAM_484, RPARAM_485, IPARAM_486, IPARAM_487, RPARAM_488, RPARAM_489
, RPARAM_490, RPARAM_491, RPARAM_492, RPARAM_493, IPARAM_494, IPARAM_495, RPARAM_496, RPARAM_497, RPARAM_498, RPARAM_499
, RPARAM_500, RPARAM_501, IPARAM_502, IPARAM_503
};
static const int** NGIA = NULL;
static const int* NIA = NULL;
static const int SUBSIMU[81][6][2] = {
{{9, 274}, {4, 74}, {7, 0}, {0, 104}, {0, 116}, {0, 2}}
, {{0, 12}, {0, 4}, {0, 0}, {0, 4}, {0, 0}, {0, 0}}
, {{0, 30}, {0, 9}, {0, 0}, {0, 6}, {0, 12}, {0, 0}}
, {{0, 48}, {0, 14}, {0, 0}, {0, 8}, {0, 24}, {0, 0}}
, {{0, 66}, {0, 19}, {0, 0}, {0, 10}, {0, 36}, {0, 0}}
, {{0, 156}, {0, 45}, {0, 0}, {0, 26}, {0, 86}, {0, 0}}
, {{0, 156}, {0, 45}, {0, 0}, {0, 26}, {0, 86}, {0, 0}}
, {{0, 160}, {0, 46}, {0, 0}, {0, 28}, {0, 88}, {0, 0}}
, {{0, 160}, {0, 46}, {0, 0}, {0, 28}, {0, 88}, {0, 0}}
, {{0, 164}, {0, 47}, {0, 0}, {0, 30}, {0, 90}, {0, 0}}
, {{0, 164}, {0, 47}, {0, 0}, {0, 30}, {0, 90}, {0, 0}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 180}, {0, 53}, {0, 0}, {0, 39}, {0, 95}, {0, 0}}
, {{0, 180}, {0, 53}, {0, 0}, {0, 39}, {0, 95}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{25, 192}, {2, 58}, {0, 0}, {11, 46}, {3, 98}, {1, 0}}
, {{25, 217}, {2, 60}, {0, 0}, {11, 57}, {3, 101}, {1, 1}}
, {{4, 246}, {1, 64}, {0, 0}, {6, 71}, {1, 106}, {0, 2}}
, {{4, 254}, {1, 67}, {0, 0}, {6, 80}, {1, 109}, {0, 2}}
, {{4, 262}, {1, 70}, {0, 0}, {6, 89}, {1, 112}, {0, 2}}
, {{4, 270}, {1, 73}, {0, 0}, {6, 98}, {1, 115}, {0, 2}}
, {{0, 168}, {0, 48}, {0, 0}, {0, 32}, {0, 92}, {0, 0}}
, {{0, 192}, {0, 58}, {0, 0}, {0, 46}, {0, 98}, {0, 0}}
, {{3, 0}, {1, 0}, {0, 0}, {1, 0}, {0, 0}, {0, 0}}
, {{3, 3}, {1, 1}, {0, 0}, {1, 1}, {0, 0}, {0, 0}}
, {{3, 6}, {1, 2}, {0, 0}, {1, 2}, {0, 0}, {0, 0}}
, {{3, 9}, {1, 3}, {0, 0}, {1, 3}, {0, 0}, {0, 0}}
, {{18, 12}, {5, 4}, {0, 0}, {2, 4}, {12, 0}, {0, 0}}
, {{18, 30}, {5, 9}, {0, 0}, {2, 6}, {12, 12}, {0, 0}}
, {{18, 48}, {5, 14}, {0, 0}, {2, 8}, {12, 24}, {0, 0}}
, {{18, 66}, {5, 19}, {0, 0}, {2, 10}, {12, 36}, {0, 0}}
, {{18, 84}, {5, 25}, {0, 0}, {2, 12}, {12, 48}, {0, 0}}
, {{0, 134}, {1, 38}, {0, 0}, {0, 22}, {0, 72}, {0, 0}}
, {{18, 134}, {5, 39}, {0, 0}, {2, 22}, {12, 72}, {0, 0}}
, {{4, 152}, {1, 44}, {0, 0}, {2, 24}, {2, 84}, {0, 0}}
, {{4, 156}, {1, 45}, {0, 0}, {2, 26}, {2, 86}, {0, 0}}
, {{4, 160}, {1, 46}, {0, 0}, {2, 28}, {2, 88}, {0, 0}}
, {{4, 164}, {1, 47}, {0, 0}, {2, 30}, {2, 90}, {0, 0}}
, {{4, 168}, {1, 48}, {0, 0}, {1, 32}, {1, 92}, {0, 0}}
, {{4, 172}, {2, 49}, {0, 0}, {3, 33}, {1, 93}, {0, 0}}
, {{4, 176}, {2, 51}, {0, 0}, {3, 36}, {1, 94}, {0, 0}}
, {{4, 180}, {1, 53}, {0, 0}, {1, 39}, {1, 95}, {0, 0}}
, {{4, 184}, {2, 54}, {0, 0}, {3, 40}, {1, 96}, {0, 0}}
, {{4, 188}, {2, 56}, {0, 0}, {3, 43}, {1, 97}, {0, 0}}
, {{4, 242}, {2, 62}, {0, 0}, {3, 68}, {2, 104}, {0, 2}}
, {{4, 250}, {2, 65}, {0, 0}, {3, 77}, {2, 107}, {0, 2}}
, {{4, 258}, {2, 68}, {0, 0}, {3, 86}, {2, 110}, {0, 2}}
, {{4, 266}, {2, 71}, {0, 0}, {3, 95}, {2, 113}, {0, 2}}
, {{6, 319}, {2, 90}, {0, 7}, {8, 146}, {1, 122}, {0, 2}}
, {{6, 325}, {2, 92}, {0, 7}, {8, 154}, {1, 123}, {0, 2}}
, {{6, 331}, {2, 94}, {0, 7}, {8, 162}, {1, 124}, {0, 2}}
, {{6, 349}, {2, 100}, {0, 7}, {7, 184}, {1, 127}, {0, 2}}
, {{6, 355}, {2, 102}, {0, 7}, {7, 191}, {1, 128}, {0, 2}}
, {{6, 361}, {2, 104}, {0, 7}, {7, 198}, {1, 129}, {0, 2}}
, {{6, 367}, {2, 106}, {0, 7}, {7, 205}, {1, 130}, {0, 2}}
, {{3, 373}, {1, 108}, {0, 7}, {5, 212}, {1, 131}, {0, 2}}
, {{3, 376}, {1, 109}, {0, 7}, {5, 217}, {1, 132}, {0, 2}}
, {{6, 379}, {2, 110}, {0, 7}, {8, 222}, {1, 133}, {0, 2}}
, {{0, 84}, {1, 24}, {0, 0}, {0, 12}, {0, 48}, {0, 0}}
, {{8, 102}, {2, 30}, {0, 0}, {2, 14}, {3, 60}, {0, 0}}
, {{8, 110}, {2, 32}, {0, 0}, {2, 16}, {3, 63}, {0, 0}}
, {{8, 118}, {2, 34}, {0, 0}, {2, 18}, {3, 66}, {0, 0}}
, {{8, 126}, {2, 36}, {0, 0}, {2, 20}, {3, 69}, {0, 0}}
, {{6, 307}, {2, 86}, {0, 7}, {7, 132}, {1, 120}, {0, 2}}
, {{6, 313}, {2, 88}, {0, 7}, {7, 139}, {1, 121}, {0, 2}}
, {{6, 337}, {2, 96}, {0, 7}, {7, 170}, {1, 125}, {0, 2}}
, {{6, 343}, {2, 98}, {0, 7}, {7, 177}, {1, 126}, {0, 2}}
, {{6, 283}, {2, 78}, {0, 7}, {7, 104}, {1, 116}, {0, 2}}
, {{6, 289}, {2, 80}, {0, 7}, {7, 111}, {1, 117}, {0, 2}}
, {{6, 295}, {2, 82}, {0, 7}, {7, 118}, {1, 118}, {0, 2}}
, {{6, 301}, {2, 84}, {0, 7}, {7, 125}, {1, 119}, {0, 2}}
};
static const S_AMESubStructuralInfo STLI_0 = {1, NULL, NULL, NULL, &PIA[0], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_1 = {1, &EVIA[0], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_2 = {2, &EVIA[1], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_3 = {3, &EVIA[2], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_4 = {4, &EVIA[3], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_5 = {1, &EVIA[4], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_6 = {2, &EVIA[8], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_7 = {3, &EVIA[12], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_8 = {4, &EVIA[16], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_9 = {5, &EVIA[20], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_10 = {6, &EVIA[24], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_11 = {7, &EVIA[28], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_12 = {8, &EVIA[32], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_13 = {5, &EVIA[36], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_14 = {6, &EVIA[37], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_15 = {7, &EVIA[38], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_16 = {8, &EVIA[39], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_17 = {1, &EVIA[40], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_18 = {2, &EVIA[58], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_19 = {3, &EVIA[76], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_20 = {4, &EVIA[94], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_21 = {1, &EVIA[112], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_22 = {2, &EVIA[136], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_23 = {3, &EVIA[160], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_24 = {4, &EVIA[184], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_25 = {1, &EVIA[208], NULL, PVIA, &PIA[20], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_26 = {2, &EVIA[209], NULL, PVIA, &PIA[47], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_27 = {1, &EVIA[210], &IVIA[0], PVIA, &PIA[74], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_28 = {2, &EVIA[211], &IVIA[3], PVIA, &PIA[79], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_29 = {3, &EVIA[212], &IVIA[6], PVIA, &PIA[84], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_30 = {4, &EVIA[213], &IVIA[9], PVIA, &PIA[89], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_31 = {1, &EVIA[214], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_32 = {2, &EVIA[216], NULL, PVIA, NULL, NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_33 = {1, &EVIA[218], &IVIA[12], PVIA, &PIA[94], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_34 = {2, &EVIA[236], &IVIA[13], PVIA, &PIA[98], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_35 = {3, &EVIA[254], &IVIA[14], PVIA, &PIA[102], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_36 = {4, &EVIA[272], &IVIA[15], PVIA, &PIA[106], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_37 = {1, &EVIA[290], &IVIA[16], PVIA, &PIA[110], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_38 = {2, &EVIA[298], &IVIA[36], PVIA, &PIA[133], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_39 = {3, &EVIA[306], &IVIA[56], PVIA, &PIA[156], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_40 = {4, &EVIA[314], &IVIA[76], PVIA, &PIA[179], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_41 = {5, &EVIA[322], &IVIA[96], PVIA, &PIA[202], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_42 = {2, &EVIA[330], NULL, PVIA, &PIA[225], SP18, NULL, NULL};
static const S_AMESubStructuralInfo STLI_43 = {6, &EVIA[336], &IVIA[116], PVIA, &PIA[226], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_44 = {1, &EVIA[344], &IVIA[136], PVIA, &PIA[249], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_45 = {2, &EVIA[368], &IVIA[138], PVIA, &PIA[254], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_46 = {3, &EVIA[392], &IVIA[140], PVIA, &PIA[259], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_47 = {4, &EVIA[416], &IVIA[142], PVIA, &PIA[264], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_48 = {1, &EVIA[440], &IVIA[144], PVIA, &PIA[269], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_49 = {1, &EVIA[448], &IVIA[145], PVIA, &PIA[274], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_50 = {2, &EVIA[456], &IVIA[147], PVIA, &PIA[280], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_51 = {2, &EVIA[464], &IVIA[149], PVIA, &PIA[286], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_52 = {3, &EVIA[472], &IVIA[150], PVIA, &PIA[291], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_53 = {4, &EVIA[480], &IVIA[152], PVIA, &PIA[297], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_54 = {1, &EVIA[488], &IVIA[154], PVIA, &PIA[303], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_55 = {2, &EVIA[497], &IVIA[157], PVIA, &PIA[309], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_56 = {3, &EVIA[506], &IVIA[160], PVIA, &PIA[315], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_57 = {4, &EVIA[515], &IVIA[163], PVIA, &PIA[321], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_58 = {1, &EVIA[524], &IVIA[166], PVIA, &PIA[327], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_59 = {2, &EVIA[532], &IVIA[173], PVIA, &PIA[335], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_60 = {3, &EVIA[540], &IVIA[180], PVIA, &PIA[343], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_61 = {5, &EVIA[548], &IVIA[187], PVIA, &PIA[351], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_62 = {6, &EVIA[556], &IVIA[192], PVIA, &PIA[359], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_63 = {7, &EVIA[564], &IVIA[197], PVIA, &PIA[367], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_64 = {8, &EVIA[572], &IVIA[202], PVIA, &PIA[375], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_65 = {1, &EVIA[580], &IVIA[207], PVIA, &PIA[383], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_66 = {2, &EVIA[588], &IVIA[211], PVIA, &PIA[387], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_67 = {4, &EVIA[596], &IVIA[215], PVIA, &PIA[391], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_68 = {1, &EVIA[604], NULL, PVIA, &PIA[399], SP12, NULL, NULL};
static const S_AMESubStructuralInfo STLI_69 = {1, &EVIA[610], &IVIA[222], PVIA, &PIA[400], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_70 = {2, &EVIA[616], &IVIA[230], PVIA, &PIA[410], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_71 = {3, &EVIA[622], &IVIA[238], PVIA, &PIA[420], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_72 = {4, &EVIA[628], &IVIA[246], PVIA, &PIA[430], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_73 = {1, &EVIA[634], &IVIA[254], PVIA, &PIA[440], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_74 = {2, &EVIA[642], &IVIA[261], PVIA, &PIA[448], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_75 = {3, &EVIA[650], &IVIA[268], PVIA, &PIA[456], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_76 = {4, &EVIA[658], &IVIA[275], PVIA, &PIA[464], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_77 = {1, &EVIA[666], &IVIA[282], PVIA, &PIA[472], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_78 = {2, &EVIA[674], &IVIA[287], PVIA, &PIA[480], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_79 = {3, &EVIA[682], &IVIA[292], PVIA, &PIA[488], NULL, NULL, NULL};
static const S_AMESubStructuralInfo STLI_80 = {4, &EVIA[690], &IVIA[297], PVIA, &PIA[496], NULL, NULL, NULL};
/* ******************* Function prototypes ************ */
extern void pngd00prein_(int *n, double *RP, int *IP, char **TP
);
extern void pngd00in_(int *n, double *RP, int *IP, char **TP);
extern void pngd00_(int *n, double *RP, int *IP, char **TP);
extern void f000in_(int *n, double *y0);
extern void pnpl01in_(int *n, double *y0, double *y1, double *y2
, double *y3);
extern AMEModelStatus ud00_in(const S_AMESubIntf *sitf);
extern AMEModelStatus ud00_calc(const S_AMESubIntf *sitf);
extern AMEModelStatus ud00_end(const S_AMESubIntf *sitf);
extern AMEModelStatus step0_in(const S_AMESubIntf *sitf);
extern AMEModelStatus step0_calc(const S_AMESubIntf *sitf);
extern AMEModelStatus step0_end(const S_AMESubIntf *sitf);
extern void forcin_(int *n);
extern void pnor001in_(int *n, double *RP, int *IP, double *RS
, int *IS);
extern void pnor001_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *ve5, double *vi6
, double *vi7, double *RP, int *IP, double *RS
, int *IS);
extern void pnvo001in_(int *n, double *RP, int *IP, double *RS
, int *IS);
extern void pnvo001_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *ve5, double *ve6
, double *vi7, double *vi8, double *vi9, double *RP
, int *IP, double *RS, int *IS);
extern void pnl0002in_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1);
extern void pnl0002_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *ve5, double *ve6
, double *ve7, double *vi8, double *vidot8
, double *vi9, double *vidot9, double *vi10
, double *vi11, double *vi12, double *vi13
, double *vi14, double *RP, int *IP, double *RS
, int *IS);
extern void pnl00rin_(int *n, double *RP, int *IP, double *RS
, int *IS);
extern void pnl00r_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *ve5, double *vi6
, double *vi7, double *vi8, double *vi9, double *RP
, int *IP, double *RS, int *IS);
extern void lstp00ain_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1, double *y2
, double *y3);
extern void lstp00a_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *vi5, double *vi6
, double *vi7, double *vidot7, double *vi8
, double *vi9, double *vidot9, double *vi10
, double *vidot10, double *vi11, double *vi12
, double *vidot12, double *RP, int *IP, double *RS
, int *IS, int *flag);
extern void pnch023in_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1);
extern void pnch023_(int *n, double *ve0, double *vedot0, double *ve1
, double *vedot1, double *ve2, double *ve3
, double *ve4, double *ve5, double *vi6, double *RP
, int *IP, double *RS, int *IS);
extern void pnl0003in_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1, double *y2
, double *y3);
extern void pnl0003_(int *n, double *ve0, double *vedot0, double *ve1
, double *vedot1, double *ve2, double *ve3
, double *ve4, double *vedot4, double *ve5
, double *vedot5, double *ve6, double *ve7
, double *vi8, double *vi9, double *vi10, double *vi11
, double *vi12, double *vi13, double *vi14
, double *RP, int *IP, double *RS, int *IS
);
extern void mecmas21in_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1, double *y2
, double *y3, double *y4, double *y5, double *y6
, double *y7, double *y8, double *y9, double *y10
, double *y11);
extern void mecmas21_(int *n, double *ve0, double *vedot0, double *ve1
, double *vedot1, double *ve2, double *ve3
, double *ve4, double *vi5, double *vi6, double *vi7
, double *vi8, double *vi9, double *vi10, double *vidot10
, double *vi11, double *vi12, double *vidot12
, double *vi13, double *vidot13, double *vi14
, double *vi15, double *vidot15, double *vi16
, double *vidot16, double *vi17, double *vi18
, double *vidot18, double *vi19, double *vidot19
, double *vi20, double *vi21, double *vidot21
, double *vi22, double *vi23, double *vidot23
, double *vi24, double *vidot24, double *RP
, int *IP, double *RS, int *IS);
extern void lmechn1in_(int *n, int *SP_1, int *IP);
extern void lmechn1_(int *n, int *SP_1, double *port_1_v3, double *port_2_v1
, double *port_2_v2, double *port_2_v3, int *IP
);
extern void pn3node2in_(int *n, double *y0, double *y1, double *y2
, double *y3);
extern void pnrp17in_(int *n, double *RP, int *IP, double *RS
, double *y0, double *y1);
extern void pnrp17_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *ve5, double *ve6
, double *ve7, double *ve8, double *ve9, double *ve10
, double *ve11, double *vi12, double *RP, int *IP
, double *RS);
extern double pnrp17_macro0_(int *n, double *m0, double *m1, double *RP
, int *IP, double *RS);
extern double pnrp17_macro1_(int *n, double *m0, double *m1, double *RP
, int *IP, double *RS);
extern void p4node2in_(int *n, double *y0, double *y1, double *y2
, double *y3, double *y4, double *y5);
extern void pnl0001in_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1);
extern void pnl0001_(int *n, double *ve0, double *ve1, double *ve2
, double *ve3, double *ve4, double *vedot4
, double *ve5, double *vedot5, double *ve6
, double *ve7, double *vi8, double *vi9, double *vi10
, double *vi11, double *vi12, double *RP, int *IP
, double *RS, int *IS);
extern void pnch012in_(int *n, double *RP, int *IP, double *RS
, int *IS, double *y0, double *y1, double *y2
, double *y3, double *y4, double *y5, double *y6
, double *y7, double *y8, double *y9);
extern void pnch012_(int *n, double *ve0, double *vedot0, double *ve1
, double *vedot1, double *ve2, double *ve3
, double *ve4, double *ve5, double *ve6, double *ve7
, double *ve8, double *ve9, double *ve10, double *ve11
, double *ve12, double *ve13, double *ve14
, double *ve15, double *ve16, double *ve17
, double *vi18, double *vi19, double *RP, int *IP
, double *RS, int *IS);
/* ****************** Here comes the functions ************ */
static void PreInitialize(AMESIMSYSTEM *amesys, double *y)
{
int n = 0;
double *v = amesys->v;
double *Z = amesys->discrete_states;
double *dbk_wk = amesys->pModel->dbk_wk;
const double t = getstarttime_();
S_AMESubIntf sitf = {amesys, NULL, NULL, t, NULL, v, NULL};
AMEModelStatus status = AME_MODEL_OK;
double dummy[6];
(void)n;
/* Assign continuous state variables calculated by the integrator */
#if( (AME_MODEL_ISEXPLICIT == 0) && (AME_NBOF_SOLVER_STATES > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_SOLVER_STATES; idxState++) {
v[GcontStateVarNum[idxState]] = y[idxState];
}
}
#elif( (AME_MODEL_ISEXPLICIT == 1) && (AME_NBOF_EXPLICIT_STATE > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_EXPLICIT_STATE; idxState++) {
v[GcontStateVarNum[idxState]] = y[idxState];
}
}
#endif
/* Assign discrete state variables */
#if( AME_NBOF_DISCRETE_STATE > 0 )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_DISCRETE_STATE; idxState++) {
v[GdiscStateVarNum[idxState]] = Z[idxState];
}
}
#endif
InitializeUnitsManagerAsDefault();
n = 1;
pngd00prein_(&n, RP62, IP62, TP62);
/* Assign continuous state variables initialized by submodels */
#if( (AME_MODEL_ISEXPLICIT == 0) && (AME_NBOF_SOLVER_STATES > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_SOLVER_STATES; idxState++) {
y[idxState] = v[GcontStateVarNum[idxState]];
}
}
#elif( (AME_MODEL_ISEXPLICIT == 1) && (AME_NBOF_EXPLICIT_STATE > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_EXPLICIT_STATE; idxState++) {
y[idxState] = v[GcontStateVarNum[idxState]];
}
}
#endif
/* Assign discrete state initialized by submodels */
#if( AME_NBOF_DISCRETE_STATE > 0 )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_DISCRETE_STATE; idxState++) {
Z[idxState] = v[GdiscStateVarNum[idxState]];
}
}
#endif
if(status & AME_MODEL_FATAL) AmeExit(1);
}
static void Initialize(AMESIMSYSTEM *amesys, double *y)
{
int n;
double *v = amesys->v;
double *Z = amesys->discrete_states;
double *dbk_wk = amesys->pModel->dbk_wk;
const double t = getstarttime_();
S_AMESubIntf sitf = {amesys, NULL, NULL, t, NULL, v, NULL};
AMEModelStatus status = AME_MODEL_OK;
double dummy[6];
(void)n;
/* Assign continuous state variables */
#if( (AME_MODEL_ISEXPLICIT == 0) && (AME_NBOF_SOLVER_STATES > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_SOLVER_STATES; idxState++) {
v[GcontStateVarNum[idxState]] = y[idxState];
}
}
#elif( (AME_MODEL_ISEXPLICIT == 1) && (AME_NBOF_EXPLICIT_STATE > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_EXPLICIT_STATE; idxState++) {
v[GcontStateVarNum[idxState]] = y[idxState];
}
}
#endif
/* Assign discrete state variables */
#if( AME_NBOF_DISCRETE_STATE > 0 )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_DISCRETE_STATE; idxState++) {
v[GdiscStateVarNum[idxState]] = Z[idxState];
}
}
#endif
n = 1;
pngd00in_(&n, RP62, IP62, TP62);
n = 1;
f000in_(&n, &v[83]);
n = 2;
f000in_(&n, &v[97]);
n = 3;
f000in_(&n, &v[111]);
n = 4;
f000in_(&n, &v[125]);
n = 1;
pnpl01in_(&n, &v[212], &v[213], &v[214], &v[215]);
n = 2;
pnpl01in_(&n, &v[206], &v[207], &v[208], &v[209]);
n = 3;
pnpl01in_(&n, &v[232], &v[233], &v[234], &v[235]);
n = 4;
pnpl01in_(&n, &v[226], &v[227], &v[228], &v[229]);
n = 5;
pnpl01in_(&n, &v[252], &v[253], &v[254], &v[255]);
n = 6;
pnpl01in_(&n, &v[246], &v[247], &v[248], &v[249]);
n = 7;
pnpl01in_(&n, &v[272], &v[273], &v[274], &v[275]);
n = 8;
pnpl01in_(&n, &v[266], &v[267], &v[268], &v[269]);
n = 5;
f000in_(&n, &v[13]);
n = 6;
f000in_(&n, &v[33]);
n = 7;
f000in_(&n, &v[53]);
n = 8;
f000in_(&n, &v[73]);
sitf.structuralInfo = &STLI_25;
sitf.simulationInfo = &amesys->pModel->subArray[25];
status |= ud00_in(&sitf);
if(status & AME_MODEL_FATAL) goto _amefunc_init_end;
sitf.structuralInfo = &STLI_26;
sitf.simulationInfo = &amesys->pModel->subArray[26];
status |= ud00_in(&sitf);
if(status & AME_MODEL_FATAL) goto _amefunc_init_end;
sitf.structuralInfo = &STLI_27;
sitf.simulationInfo = &amesys->pModel->subArray[27];
status |= step0_in(&sitf);
if(status & AME_MODEL_FATAL) goto _amefunc_init_end;
sitf.structuralInfo = &STLI_28;
sitf.simulationInfo = &amesys->pModel->subArray[28];
status |= step0_in(&sitf);
if(status & AME_MODEL_FATAL) goto _amefunc_init_end;
sitf.structuralInfo = &STLI_29;
sitf.simulationInfo = &amesys->pModel->subArray[29];
status |= step0_in(&sitf);
if(status & AME_MODEL_FATAL) goto _amefunc_init_end;
sitf.structuralInfo = &STLI_30;
sitf.simulationInfo = &amesys->pModel->subArray[30];
status |= step0_in(&sitf);
if(status & AME_MODEL_FATAL) goto _amefunc_init_end;
n = 1;
forcin_(&n);
n = 2;
forcin_(&n);
n = 1;
pnor001in_(&n, RP38, IP38, RS38, IS38);
n = 2;
pnor001in_(&n, RP39, IP39, RS39, IS39);
n = 3;
pnor001in_(&n, RP43, IP43, RS43, IS43);
n = 4;
pnor001in_(&n, RP44, IP44, RS44, IS44);
n = 1;
pnvo001in_(&n, RP54, IP54, RS54, IS54);
n = 2;
pnvo001in_(&n, RP56, IP56, RS56, IS56);
n = 3;
pnvo001in_(&n, RP58, IP58, RS58, IS58);
n = 4;
pnvo001in_(&n, RP60, IP60, RS60, IS60);
n = 1;
pnl0002in_(&n, RP83, IP83, RS83, IS83, &v[570], &v[571]);
n = 2;
pnl0002in_(&n, RP84, IP84, RS84, IS84, &v[577], &v[578]);
n = 3;
pnl0002in_(&n, RP85, IP85, RS85, IS85, &v[584], &v[585]);
n = 5;
pnl0001in_(&n, RP90, IP90, RS90, IS90, &v[290], &v[291]);
n = 6;
pnl0001in_(&n, RP91, IP91, RS91, IS91, &v[296], &v[297]);
n = 7;
pnl0001in_(&n, RP92, IP92, RS92, IS92, &v[347], &v[348]);
n = 8;
pnl0001in_(&n, RP93, IP93, RS93, IS93, &v[353], &v[354]);
n = 1;
pnl00rin_(&n, RP94, IP94, RS94, IS94);
n = 2;
pnl00rin_(&n, RP101, IP101, RS101, IS101);
n = 4;
pnl0002in_(&n, RP102, IP102, RS102, IS102, &v[633], &v[634]
);
n = 1;
lstp00ain_(&n, RP14, IP14, RS14, IS14, NULL, NULL, NULL, NULL
);
n = 2;
lstp00ain_(&n, RP15, IP15, RS15, IS15, NULL, NULL, NULL, NULL
);
n = 3;
lstp00ain_(&n, RP16, IP16, RS16, IS16, NULL, NULL, NULL, NULL
);
n = 4;
lstp00ain_(&n, RP17, IP17, RS17, IS17, NULL, NULL, NULL, NULL
);
n = 1;
pnch023in_(&n, RP37, IP37, RS37, IS37, &v[283], &v[284]);
n = 2;
pnch023in_(&n, RP42, IP42, RS42, IS42, &v[340], &v[341]);
n = 1;
pnl0003in_(&n, RP81, IP81, RS81, IS81, &v[365], &v[366], &v[515]
, &v[516]);
n = 2;
pnl0003in_(&n, RP82, IP82, RS82, IS82, &v[383], &v[384], &v[526]
, &v[527]);
n = 3;
pnl0003in_(&n, RP86, IP86, RS86, IS86, &v[308], &v[309], &v[493]
, &v[494]);
n = 4;
pnl0003in_(&n, RP87, IP87, RS87, IS87, &v[326], &v[327], &v[504]
, &v[505]);
n = 1;
mecmas21in_(&n, RP5, IP5, RS5, IS5, &v[6], &v[7], NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
n = 2;
mecmas21in_(&n, RP7, IP7, RS7, IS7, &v[26], &v[27], NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
n = 3;
mecmas21in_(&n, RP9, IP9, RS9, IS9, &v[46], &v[47], NULL, NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
n = 4;
mecmas21in_(&n, RP11, IP11, RS11, IS11, &v[66], &v[67], NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
n = 1;
{
lmechn1in_(&n, &SP12[0], IP12);
}
n = 5;
mecmas21in_(&n, RP13, IP13, RS13, IS13, &v[153], &v[154], NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
n = 1;
pn3node2in_(&n, &v[304], &v[305], &v[316], &v[317]);
n = 2;
pn3node2in_(&n, &v[322], &v[323], &v[334], &v[335]);
n = 3;
pn3node2in_(&n, &v[361], &v[362], &v[373], &v[374]);
n = 4;
pn3node2in_(&n, &v[379], &v[380], &v[391], &v[392]);
n = 1;
pnrp17in_(&n, RP0, IP0, RS0, &v[2], &v[3]);
n = 2;
pnrp17in_(&n, RP1, IP1, RS1, &v[22], &v[23]);
n = 3;
pnrp17in_(&n, RP2, IP2, RS2, &v[42], &v[43]);
n = 4;
pnrp17in_(&n, RP3, IP3, RS3, &v[62], &v[63]);
n = 2;
{
lmechn1in_(&n, &SP18[0], IP18);
}
n = 6;
mecmas21in_(&n, RP19, IP19, RS19, IS19, &v[182], &v[183], NULL
, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
n = 1;
p4node2in_(&n, &v[397], &v[398], &v[409], &v[410], &v[415]
, &v[416]);
n = 2;
p4node2in_(&n, &v[421], &v[422], &v[433], &v[434], &v[439]
, &v[440]);
n = 3;
p4node2in_(&n, &v[445], &v[446], &v[457], &v[458], &v[463]
, &v[464]);
n = 4;
p4node2in_(&n, &v[469], &v[470], &v[481], &v[482], &v[487]
, &v[488]);
n = 1;
pnl0001in_(&n, RP76, IP76, RS76, IS76, &v[473], &v[474]);
n = 2;
pnl0001in_(&n, RP77, IP77, RS77, IS77, &v[449], &v[450]);
n = 3;
pnl0001in_(&n, RP79, IP79, RS79, IS79, &v[425], &v[426]);
n = 4;
pnl0001in_(&n, RP80, IP80, RS80, IS80, &v[401], &v[402]);
n = 1;
pnch012in_(&n, RP20, IP20, RS20, IS20, &v[204], &v[205], &v[202]
, &v[203], &dummy[0], &dummy[1], &dummy[2], &dummy[3], &dummy[4]
, &dummy[5]);
n = 2;
pnch012in_(&n, RP23, IP23, RS23, IS23, &v[224], &v[225], &v[222]
, &v[223], &dummy[0], &dummy[1], &dummy[2], &dummy[3], &dummy[4]
, &dummy[5]);
n = 3;
pnch012in_(&n, RP26, IP26, RS26, IS26, &v[244], &v[245], &v[242]
, &v[243], &dummy[0], &dummy[1], &dummy[2], &dummy[3], &dummy[4]
, &dummy[5]);
n = 4;
pnch012in_(&n, RP29, IP29, RS29, IS29, &v[264], &v[265], &v[262]
, &v[263], &dummy[0], &dummy[1], &dummy[2], &dummy[3], &dummy[4]
, &dummy[5]);
/* Assign continuous state variables initialized by submodels */
#if( (AME_MODEL_ISEXPLICIT == 0) && (AME_NBOF_SOLVER_STATES > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_SOLVER_STATES; idxState++) {
y[idxState] = v[GcontStateVarNum[idxState]];
}
}
#elif( (AME_MODEL_ISEXPLICIT == 1) && (AME_NBOF_EXPLICIT_STATE > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_EXPLICIT_STATE; idxState++) {
y[idxState] = v[GcontStateVarNum[idxState]];
}
}
#endif
/* Assign discrete state initialized by submodels */
#if( AME_NBOF_DISCRETE_STATE > 0 )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_DISCRETE_STATE; idxState++) {
Z[idxState] = v[GdiscStateVarNum[idxState]];
}
}
#endif
_amefunc_init_end:
if(status & AME_MODEL_FATAL) AmeExit(1);
}
#define AME_HAS_ENABLED_SUBMODEL 0
static void localFuncEval(AMESIMSYSTEM *amesys, double t, double *y, double *yprime, double *delta, int *flag)
{
int sflag, oflag, n, panic, i=0;
int *oldflag, *newflag;
double *v = amesys->v;
double *Z = amesys->discrete_states;
double *input = amesys->inputs;
double *output = amesys->outputs;
double *dbk_wk = amesys->pModel->dbk_wk;
AMEModelStatus status = AME_MODEL_OK;
#if(AME_MODEL_ISEXPLICIT == 1)
double *dot = yprime;
S_AMESubIntf sitf = {amesys, NULL, NULL, t, &sflag, v, dot};
#if(AME_HAS_ENABLED_SUBMODEL == 1)
memset(dot,0,AME_NBOF_SOLVER_STATES*sizeof(double));
#elif (AME_NBOF_EXPLICIT_STATE == 0)
dot[0] = 0.0;
#endif
#else
double dot[AME_NBOF_SOLVER_STATES];
S_AMESubIntf sitf = {amesys, NULL, NULL, t, &sflag, v, dot};
/* Initialize the dot vector to the yprime vector. */
memcpy((void *)dot, (void *)yprime, AME_NBOF_SOLVER_STATES*sizeof(double));
#endif
SetGlobalSystem(amesys);
(void)n;
#if(defined(AME_COSIM) && (AME_NBOF_INPUTS > 0))
if(amesys->doInterpol) {
if( getInputsCosimSlave(amesys->csSlave, t, input) != AME_NO_ERROR ) {
AmeExit(1);
}
}
#endif
/* Record old value of flag (oflag) and set
flag value for use in submodels (sflag).
Also get addresses of main discontinuity flags. */
oflag = *flag;
sflag = *flag;
if(amesys->first_call)
{
GetFlagAddresses(&amesys->oldflag, &amesys->newflag);
}
oldflag = amesys->oldflag;
newflag = amesys->newflag;
/* Initialize everything ready for potential calls to stepdn
in submodels. */
panic = 0;
getredstep();
if(isstabrun_())
{
t = amesys->simOptions->fixedTime;
sitf.t = t;
}
else if(*flag == 2)
{
/* Record current simulation time for message passing. */
SetSimTime(t);
}
/* Record current simulation time for ametim_(). */
SetTimeAtThisStep(t);
if (holdinputs_())
{
/* We reset artificially the time to the initial value
to give the illusion of held inputs. */
t = getstarttime_();
sitf.t = t;
}
/* Assign the state variables y[] calculated by the integrator
to the appropriate variables v[]. */
/* Assign continuous state variables calculated by the integrator */
#if( (AME_MODEL_ISEXPLICIT == 0) && (AME_NBOF_SOLVER_STATES > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_SOLVER_STATES; idxState++) {
v[GcontStateVarNum[idxState]] = y[idxState];
}
}
#elif( (AME_MODEL_ISEXPLICIT == 1) && (AME_NBOF_EXPLICIT_STATE > 0) )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_EXPLICIT_STATE; idxState++) {
v[GcontStateVarNum[idxState]] = y[idxState];
}
}
#endif
/* Assign discrete state variables */
#if( AME_NBOF_DISCRETE_STATE > 0 )
{
int idxState;
for(idxState = 0; idxState < AME_NBOF_DISCRETE_STATE; idxState++) {
v[GdiscStateVarNum[idxState]] = Z[idxState];
}
}
#endif
/* Assign the interface input variables to the appropriate variable v(). */
#if(AME_NBOF_INPUTS > 0)
{
int idxInput;
for(idxInput = 0; idxInput < AME_NBOF_INPUTS; idxInput++) {
v[GInputVarNum[idxInput]] = input[idxInput];
}
}
#endif
#if(AME_MODEL_ISEXPLICIT == 1)
/* The following call ensures that lsoda does not integrate past
time amesys->t_end_of_time_slice. This does not matter in a standard AMESim run but is
very important with cosimulation. */
#ifdef AME_COSIM
*oldflag = *newflag = sflag;
discInput(&amesys->t_end_of_time_slice);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag,&sflag,&oflag,&panic,"_TunableParam",1);
#endif
#else
if(*flag == 5)
{
DPerturbIfNecessary(amesys, flag);
}
#ifdef AME_COSIM
*oldflag = *newflag = sflag;
discInput(&amesys->t_end_of_time_slice);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag,&sflag,&oflag,&panic,"_TunableParam",1);
#endif
#endif
/* Call submodel calculation subroutine in the order
that ensures the input requirements of each submodel
are satisfied. */
#if (NB_REAL_TUNABLE_PARAM > 0) || (NB_INT_TUNABLE_PARAM > 0)
if(*flag == 0)
{
int idxParam;
#if (NB_REAL_TUNABLE_PARAM > 0)
for(idxParam = 0; idxParam < NB_REAL_TUNABLE_PARAM; idxParam++) {
v[GRealTunableParam[idxParam][1]] = amesys->pModel->realParamArray[GRealTunableParam[idxParam][0]];
}
#endif
#if(NB_INT_TUNABLE_PARAM > 0)
for(idxParam = 0; idxParam < NB_INT_TUNABLE_PARAM; idxParam++) {
v[GIntTunableParam[idxParam][1]] = amesys->pModel->integerParamArray[GIntTunableParam[idxParam][0]];
}
#endif
}
#endif
n = 1;
*oldflag = *newflag = sflag;
pngd00_(&n, RP62, IP62, TP62);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNGD00",1);
v[312] = v[304]+v[316];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[313] = v[305]+v[317];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[330] = v[322]+v[334];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[331] = v[323]+v[335];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[369] = v[361]+v[373];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[370] = v[362]+v[374];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[387] = v[379]+v[391];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[388] = v[380]+v[392];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[405] = v[397]+v[409]+v[415];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[406] = v[398]+v[410]+v[416];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[429] = v[421]+v[433]+v[439];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[430] = v[422]+v[434]+v[440];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[453] = v[445]+v[457]+v[463];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[454] = v[446]+v[458]+v[464];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[477] = v[469]+v[481]+v[487];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[478] = v[470]+v[482]+v[488];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
{
*oldflag = *newflag = sflag;
sitf.structuralInfo = &STLI_25;
sitf.simulationInfo = &amesys->pModel->subArray[25];
status |= ud00_calc(&sitf);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag, &sflag, &oflag, &panic, "UD00", 1);
}
{
*oldflag = *newflag = sflag;
sitf.structuralInfo = &STLI_26;
sitf.simulationInfo = &amesys->pModel->subArray[26];
status |= ud00_calc(&sitf);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag, &sflag, &oflag, &panic, "UD00", 2);
}
{
*oldflag = *newflag = sflag;
sitf.structuralInfo = &STLI_27;
sitf.simulationInfo = &amesys->pModel->subArray[27];
status |= step0_calc(&sitf);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag, &sflag, &oflag, &panic, "STEP0", 1);
}
{
*oldflag = *newflag = sflag;
sitf.structuralInfo = &STLI_28;
sitf.simulationInfo = &amesys->pModel->subArray[28];
status |= step0_calc(&sitf);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag, &sflag, &oflag, &panic, "STEP0", 2);
}
{
*oldflag = *newflag = sflag;
sitf.structuralInfo = &STLI_29;
sitf.simulationInfo = &amesys->pModel->subArray[29];
status |= step0_calc(&sitf);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag, &sflag, &oflag, &panic, "STEP0", 3);
}
{
*oldflag = *newflag = sflag;
sitf.structuralInfo = &STLI_30;
sitf.simulationInfo = &amesys->pModel->subArray[30];
status |= step0_calc(&sitf);
AME_POST_SUBMODCALL_WITH_DISCON(amesys, flag, &sflag, &oflag, &panic, "STEP0", 4);
}
v[186] = v[280];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[152] = v[491];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[17] = v[6] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[18] = v[7] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[37] = v[26] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[38] = v[27] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[57] = v[46] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[58] = v[47] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[77] = v[66] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[78] = v[67] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[80] = -v[6] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[81] = -v[7] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[94] = -v[26] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[95] = -v[27] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[108] = -v[46] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[109] = -v[47] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[122] = -v[66] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[123] = -v[67] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[148] = -v[153] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[149] = -v[154] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[70] = v[182] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[71] = v[183] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[50] = v[182] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[51] = v[183] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[30] = v[182] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[31] = v[183] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[10] = v[182] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[11] = v[183] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[187] = -v[182] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[188] = -v[183] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[210] = v[204] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[211] = v[205] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[0] = v[204] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[1] = v[205] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[216] = v[204] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[217] = v[205] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[230] = v[224] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[231] = v[225] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[20] = v[224] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[21] = v[225] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[236] = v[224] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[237] = v[225] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[250] = v[244] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[251] = v[245] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[40] = v[244] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[41] = v[245] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[256] = v[244] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[257] = v[245] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[270] = v[264] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[271] = v[265] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[60] = v[264] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[61] = v[265] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[276] = v[264] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[277] = v[265] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[287] = v[283] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[288] = v[284] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnor001_(&n, &v[285], &v[286], &v[287], &v[288], &v[290], &v[291]
, &v[294], &v[295], RP38, IP38, RS38, IS38);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNOR001",1);
v[292] = -v[285] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[293] = -v[286] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
pnor001_(&n, &v[298], &v[299], &v[296], &v[297], &v[283], &v[284]
, &v[300], &v[301], RP39, IP39, RS39, IS39);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNOR001",2);
v[281] = -v[298] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[282] = -v[299] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[306] = v[308] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[307] = v[309] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[318] = v[308] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[319] = v[309] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[324] = v[326] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[325] = v[327] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[336] = v[326] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[337] = v[327] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[344] = v[340] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[345] = v[341] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 3;
*oldflag = *newflag = sflag;
pnor001_(&n, &v[342], &v[343], &v[344], &v[345], &v[347], &v[348]
, &v[351], &v[352], RP43, IP43, RS43, IS43);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNOR001",3);
v[349] = -v[342] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[350] = -v[343] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 4;
*oldflag = *newflag = sflag;
pnor001_(&n, &v[355], &v[356], &v[353], &v[354], &v[340], &v[341]
, &v[357], &v[358], RP44, IP44, RS44, IS44);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNOR001",4);
v[338] = -v[355] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[339] = -v[356] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[363] = v[365] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[364] = v[366] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[375] = v[365] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[376] = v[366] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[381] = v[383] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[382] = v[384] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[393] = v[383] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[394] = v[384] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[399] = v[401] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[400] = v[402] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[411] = v[401] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[412] = v[402] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[417] = v[401] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[418] = v[402] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[423] = v[425] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[424] = v[426] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[435] = v[425] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[436] = v[426] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[441] = v[425] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[442] = v[426] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[447] = v[449] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[448] = v[450] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[459] = v[449] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[460] = v[450] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[465] = v[449] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[466] = v[450] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[471] = v[473] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[472] = v[474] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[483] = v[473] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[484] = v[474] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[489] = v[473] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[490] = v[474] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnvo001_(&n, &v[492], &v[413], &v[414], &v[417], &v[418], &v[493]
, &v[494], &v[497], &v[498], &v[499], RP54, IP54, RS54, IS54
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNVO001",1);
v[495] = -v[413] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[496] = -v[414] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
pnvo001_(&n, &v[503], &v[437], &v[438], &v[441], &v[442], &v[504]
, &v[505], &v[508], &v[509], &v[510], RP56, IP56, RS56, IS56
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNVO001",2);
v[506] = -v[437] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[507] = -v[438] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 3;
*oldflag = *newflag = sflag;
pnvo001_(&n, &v[514], &v[461], &v[462], &v[465], &v[466], &v[515]
, &v[516], &v[519], &v[520], &v[521], RP58, IP58, RS58, IS58
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNVO001",3);
v[517] = -v[461] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[518] = -v[462] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 4;
*oldflag = *newflag = sflag;
pnvo001_(&n, &v[525], &v[485], &v[486], &v[489], &v[490], &v[526]
, &v[527], &v[530], &v[531], &v[532], RP60, IP60, RS60, IS60
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNVO001",4);
v[528] = -v[485] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[529] = -v[486] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0002",1);
n = 2;
*oldflag = *newflag = sflag;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0002",2);
n = 3;
*oldflag = *newflag = sflag;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0002",3);
n = 5;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",5);
n = 6;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",6);
n = 7;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",7);
n = 8;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",8);
n = 1;
*oldflag = *newflag = sflag;
pnl00r_(&n, &v[324], &v[325], &v[371], &v[372], &v[375], &v[376]
, &v[625], &v[626], &v[627], &v[628], RP94, IP94, RS94, IS94
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL00R",1);
v[320] = -v[371] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[321] = -v[372] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
pnl00r_(&n, &v[381], &v[382], &v[314], &v[315], &v[318], &v[319]
, &v[629], &v[630], &v[631], &v[632], RP101, IP101, RS101
, IS101);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL00R",2);
v[377] = -v[314] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[378] = -v[315] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 4;
*oldflag = *newflag = sflag;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0002",4);
n = 1;
*oldflag = *newflag = sflag;
v[12] = pnrp17_macro1_(&n, &v[1], &v[13], RP0, IP0, RS0);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",1);
v[14] = v[10] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[15] = v[11] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
v[32] = pnrp17_macro1_(&n, &v[21], &v[33], RP1, IP1, RS1);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",2);
v[34] = v[30] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[35] = v[31] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 3;
*oldflag = *newflag = sflag;
v[52] = pnrp17_macro1_(&n, &v[41], &v[53], RP2, IP2, RS2);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",3);
v[54] = v[50] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[55] = v[51] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 4;
*oldflag = *newflag = sflag;
v[72] = pnrp17_macro1_(&n, &v[61], &v[73], RP3, IP3, RS3);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",4);
v[74] = v[70] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[75] = v[71] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[137] = v[148] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[138] = v[149] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[140] = v[148] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[141] = v[149] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[143] = v[148] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[144] = v[149] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[146] = v[148] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[147] = v[149] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
lstp00a_(&n, &v[16], &v[17], &v[18], &v[137], &v[138], &v[166]
, &v[167], NULL, NULL, &v[168], NULL, NULL, NULL, NULL, &v[169]
, NULL, NULL, RP14, IP14, RS14, IS14, &sflag);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"LSTP00A",1);
v[136] = v[16] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
lstp00a_(&n, &v[36], &v[37], &v[38], &v[140], &v[141], &v[170]
, &v[171], NULL, NULL, &v[172], NULL, NULL, NULL, NULL, &v[173]
, NULL, NULL, RP15, IP15, RS15, IS15, &sflag);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"LSTP00A",2);
v[139] = v[36] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 3;
*oldflag = *newflag = sflag;
lstp00a_(&n, &v[56], &v[57], &v[58], &v[143], &v[144], &v[174]
, &v[175], NULL, NULL, &v[176], NULL, NULL, NULL, NULL, &v[177]
, NULL, NULL, RP16, IP16, RS16, IS16, &sflag);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"LSTP00A",3);
v[142] = v[56] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 4;
*oldflag = *newflag = sflag;
lstp00a_(&n, &v[76], &v[77], &v[78], &v[146], &v[147], &v[178]
, &v[179], NULL, NULL, &v[180], NULL, NULL, NULL, NULL, &v[181]
, NULL, NULL, RP17, IP17, RS17, IS17, &sflag);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"LSTP00A",4);
v[145] = v[76] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNCH023",1);
v[310] = v[302]+v[314];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[311] = v[303]+v[315];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[328] = v[320]+v[332];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[329] = v[321]+v[333];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNCH023",2);
v[367] = v[359]+v[371];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[368] = v[360]+v[372];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[385] = v[377]+v[389];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[386] = v[378]+v[390];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[403] = v[395]+v[407]+v[413];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[404] = v[396]+v[408]+v[414];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[427] = v[419]+v[431]+v[437];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[428] = v[420]+v[432]+v[438];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[451] = v[443]+v[455]+v[461];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[452] = v[444]+v[456]+v[462];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[475] = v[467]+v[479]+v[485];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
v[476] = v[468]+v[480]+v[486];
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0003",1);
n = 2;
*oldflag = *newflag = sflag;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0003",2);
n = 3;
*oldflag = *newflag = sflag;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0003",3);
n = 4;
*oldflag = *newflag = sflag;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0003",4);
n = 1;
*oldflag = *newflag = sflag;
v[9] = pnrp17_macro0_(&n, &v[1], &v[16], RP0, IP0, RS0);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",1);
n = 2;
*oldflag = *newflag = sflag;
v[29] = pnrp17_macro0_(&n, &v[21], &v[36], RP1, IP1, RS1);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",2);
n = 3;
*oldflag = *newflag = sflag;
v[49] = pnrp17_macro0_(&n, &v[41], &v[56], RP2, IP2, RS2);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",3);
n = 4;
*oldflag = *newflag = sflag;
v[69] = pnrp17_macro0_(&n, &v[61], &v[76], RP3, IP3, RS3);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",4);
n = 1;
*oldflag = *newflag = sflag;
mecmas21_(&n, &v[6], &dot[0], &v[7], &dot[1], &v[8], &v[9]
, &v[83], &v[84], &v[85], &v[86], &v[87], &v[88], NULL, NULL
, &v[89], NULL, NULL, NULL, NULL, &v[90], NULL, NULL, NULL
, NULL, &v[91], NULL, NULL, NULL, NULL, &v[92], NULL, NULL
, &v[93], NULL, NULL, NULL, NULL, RP5, IP5, RS5, IS5);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"MECMAS21",1);
v[82] = -v[8] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 2;
*oldflag = *newflag = sflag;
mecmas21_(&n, &v[26], &dot[2], &v[27], &dot[3], &v[28], &v[29]
, &v[97], &v[98], &v[99], &v[100], &v[101], &v[102], NULL
, NULL, &v[103], NULL, NULL, NULL, NULL, &v[104], NULL, NULL
, NULL, NULL, &v[105], NULL, NULL, NULL, NULL, &v[106], NULL
, NULL, &v[107], NULL, NULL, NULL, NULL, RP7, IP7, RS7, IS7
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"MECMAS21",2);
v[96] = -v[28] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 3;
*oldflag = *newflag = sflag;
mecmas21_(&n, &v[46], &dot[4], &v[47], &dot[5], &v[48], &v[49]
, &v[111], &v[112], &v[113], &v[114], &v[115], &v[116], NULL
, NULL, &v[117], NULL, NULL, NULL, NULL, &v[118], NULL, NULL
, NULL, NULL, &v[119], NULL, NULL, NULL, NULL, &v[120], NULL
, NULL, &v[121], NULL, NULL, NULL, NULL, RP9, IP9, RS9, IS9
);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"MECMAS21",3);
v[110] = -v[48] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 4;
*oldflag = *newflag = sflag;
mecmas21_(&n, &v[66], &dot[6], &v[67], &dot[7], &v[68], &v[69]
, &v[125], &v[126], &v[127], &v[128], &v[129], &v[130], NULL
, NULL, &v[131], NULL, NULL, NULL, NULL, &v[132], NULL, NULL
, NULL, NULL, &v[133], NULL, NULL, NULL, NULL, &v[134], NULL
, NULL, &v[135], NULL, NULL, NULL, NULL, RP11, IP11, RS11
, IS11);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"MECMAS21",4);
v[124] = -v[68] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"LMECHN1",1);
n = 5;
*oldflag = *newflag = sflag;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"MECMAS21",5);
v[150] = -v[155] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",1);
n = 2;
*oldflag = *newflag = sflag;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",2);
n = 3;
*oldflag = *newflag = sflag;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",3);
n = 4;
*oldflag = *newflag = sflag;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNRP17",4);
n = 2;
*oldflag = *newflag = sflag;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"LMECHN1",2);
n = 6;
*oldflag = *newflag = sflag;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"MECMAS21",6);
v[189] = -v[184] /* Duplicate variable. */;
AME_POST_SUBMODCALL_NO_DISCON(amesys,flag);
n = 1;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",1);
n = 2;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",2);
n = 3;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",3);
n = 4;
*oldflag = *newflag = sflag;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNL0001",4);
n = 1;
*oldflag = *newflag = sflag;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNCH012",1);
n = 2;
*oldflag = *newflag = sflag;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNCH012",2);
n = 3;
*oldflag = *newflag = sflag;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNCH012",3);
n = 4;
*oldflag = *newflag = sflag;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
AME_POST_SUBMODCALL_WITH_DISCON(amesys,flag,&sflag,&oflag,&panic,"PNCH012",4);
/* Set interface outputs here. */
#if(AME_NBOF_OUTPUTS > 0)
{
int idxOutput;
for(idxOutput = 0; idxOutput < AME_NBOF_OUTPUTS; idxOutput++) {
output[idxOutput] = v[GOutputVarNum[idxOutput]];
}
}
#endif
#if(AME_MODEL_ISEXPLICIT == 1)
applyStateStatus(dot,AME_NBOF_SOLVER_STATES);
#else
#if( AME_NBOF_EXPLICIT_STATE > 0)
applyStateStatus(dot,AME_NBOF_EXPLICIT_STATE);
for(i=0;i<AME_NBOF_EXPLICIT_STATE;i++)
{
delta[i] = dot[i] - yprime[i];
}
#endif
for(i=AME_NBOF_EXPLICIT_STATE;i<(AME_NBOF_EXPLICIT_STATE + AME_NBOF_IMPLICIT_STATE_DECLARED);i++)
{
delta[i] = dot[i];
}
#endif
if(*flag == 0)
{
/* It is an initialization call and the user
is permitted to change the state variables
and discrete variables. */
updateStatesFromModel(amesys, y, AME_CONTINUOUS_STATE|AME_DISCRETE_STATE);
}
#if( AME_NBOF_DISCRETE_STATE > 0)
if(is_sample_time()) {
/* Change discrete variables */
updateStatesFromModel(amesys, y, AME_DISCRETE_STATE);
}
#endif
UpFECount(amesys);
amesys->first_call = 0;
if(status & AME_MODEL_FATAL) {
AmeExit(1);
}
}
static AMEModelStatus localJFuncEval_0(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[6] = y[col];
v[17] = v[6] /* Duplicate variable. */;
v[80] = -v[6] /* Duplicate variable. */;
n = 1;
lstp00a_(&n, &v[16], &v[17], &v[18], &v[137], &v[138], &v[166]
, &v[167], NULL, NULL, &v[168], NULL, NULL, NULL, NULL, &v[169]
, NULL, NULL, RP14, IP14, RS14, IS14, &sflag);
v[136] = v[16] /* Duplicate variable. */;
n = 1;
v[9] = pnrp17_macro0_(&n, &v[1], &v[16], RP0, IP0, RS0);
n = 1;
mecmas21_(&n, &v[6], &dot[0], &v[7], &dot[1], &v[8], &v[9]
, &v[83], &v[84], &v[85], &v[86], &v[87], &v[88], NULL, NULL
, &v[89], NULL, NULL, NULL, NULL, &v[90], NULL, NULL, NULL
, NULL, &v[91], NULL, NULL, NULL, NULL, &v[92], NULL, NULL
, &v[93], NULL, NULL, NULL, NULL, RP5, IP5, RS5, IS5);
v[82] = -v[8] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
return status;
}
static AMEModelStatus localJFuncEval_1(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[7] = y[col];
v[18] = v[7] /* Duplicate variable. */;
v[81] = -v[7] /* Duplicate variable. */;
n = 1;
lstp00a_(&n, &v[16], &v[17], &v[18], &v[137], &v[138], &v[166]
, &v[167], NULL, NULL, &v[168], NULL, NULL, NULL, NULL, &v[169]
, NULL, NULL, RP14, IP14, RS14, IS14, &sflag);
v[136] = v[16] /* Duplicate variable. */;
n = 1;
v[9] = pnrp17_macro0_(&n, &v[1], &v[16], RP0, IP0, RS0);
n = 1;
mecmas21_(&n, &v[6], &dot[0], &v[7], &dot[1], &v[8], &v[9]
, &v[83], &v[84], &v[85], &v[86], &v[87], &v[88], NULL, NULL
, &v[89], NULL, NULL, NULL, NULL, &v[90], NULL, NULL, NULL
, NULL, &v[91], NULL, NULL, NULL, NULL, &v[92], NULL, NULL
, &v[93], NULL, NULL, NULL, NULL, RP5, IP5, RS5, IS5);
v[82] = -v[8] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
return status;
}
static AMEModelStatus localJFuncEval_2(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[26] = y[col];
v[37] = v[26] /* Duplicate variable. */;
v[94] = -v[26] /* Duplicate variable. */;
n = 2;
lstp00a_(&n, &v[36], &v[37], &v[38], &v[140], &v[141], &v[170]
, &v[171], NULL, NULL, &v[172], NULL, NULL, NULL, NULL, &v[173]
, NULL, NULL, RP15, IP15, RS15, IS15, &sflag);
v[139] = v[36] /* Duplicate variable. */;
n = 2;
v[29] = pnrp17_macro0_(&n, &v[21], &v[36], RP1, IP1, RS1);
n = 2;
mecmas21_(&n, &v[26], &dot[2], &v[27], &dot[3], &v[28], &v[29]
, &v[97], &v[98], &v[99], &v[100], &v[101], &v[102], NULL
, NULL, &v[103], NULL, NULL, NULL, NULL, &v[104], NULL, NULL
, NULL, NULL, &v[105], NULL, NULL, NULL, NULL, &v[106], NULL
, NULL, &v[107], NULL, NULL, NULL, NULL, RP7, IP7, RS7, IS7
);
v[96] = -v[28] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_3(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[27] = y[col];
v[38] = v[27] /* Duplicate variable. */;
v[95] = -v[27] /* Duplicate variable. */;
n = 2;
lstp00a_(&n, &v[36], &v[37], &v[38], &v[140], &v[141], &v[170]
, &v[171], NULL, NULL, &v[172], NULL, NULL, NULL, NULL, &v[173]
, NULL, NULL, RP15, IP15, RS15, IS15, &sflag);
v[139] = v[36] /* Duplicate variable. */;
n = 2;
v[29] = pnrp17_macro0_(&n, &v[21], &v[36], RP1, IP1, RS1);
n = 2;
mecmas21_(&n, &v[26], &dot[2], &v[27], &dot[3], &v[28], &v[29]
, &v[97], &v[98], &v[99], &v[100], &v[101], &v[102], NULL
, NULL, &v[103], NULL, NULL, NULL, NULL, &v[104], NULL, NULL
, NULL, NULL, &v[105], NULL, NULL, NULL, NULL, &v[106], NULL
, NULL, &v[107], NULL, NULL, NULL, NULL, RP7, IP7, RS7, IS7
);
v[96] = -v[28] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_4(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[46] = y[col];
v[57] = v[46] /* Duplicate variable. */;
v[108] = -v[46] /* Duplicate variable. */;
n = 3;
lstp00a_(&n, &v[56], &v[57], &v[58], &v[143], &v[144], &v[174]
, &v[175], NULL, NULL, &v[176], NULL, NULL, NULL, NULL, &v[177]
, NULL, NULL, RP16, IP16, RS16, IS16, &sflag);
v[142] = v[56] /* Duplicate variable. */;
n = 3;
v[49] = pnrp17_macro0_(&n, &v[41], &v[56], RP2, IP2, RS2);
n = 3;
mecmas21_(&n, &v[46], &dot[4], &v[47], &dot[5], &v[48], &v[49]
, &v[111], &v[112], &v[113], &v[114], &v[115], &v[116], NULL
, NULL, &v[117], NULL, NULL, NULL, NULL, &v[118], NULL, NULL
, NULL, NULL, &v[119], NULL, NULL, NULL, NULL, &v[120], NULL
, NULL, &v[121], NULL, NULL, NULL, NULL, RP9, IP9, RS9, IS9
);
v[110] = -v[48] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_5(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[47] = y[col];
v[58] = v[47] /* Duplicate variable. */;
v[109] = -v[47] /* Duplicate variable. */;
n = 3;
lstp00a_(&n, &v[56], &v[57], &v[58], &v[143], &v[144], &v[174]
, &v[175], NULL, NULL, &v[176], NULL, NULL, NULL, NULL, &v[177]
, NULL, NULL, RP16, IP16, RS16, IS16, &sflag);
v[142] = v[56] /* Duplicate variable. */;
n = 3;
v[49] = pnrp17_macro0_(&n, &v[41], &v[56], RP2, IP2, RS2);
n = 3;
mecmas21_(&n, &v[46], &dot[4], &v[47], &dot[5], &v[48], &v[49]
, &v[111], &v[112], &v[113], &v[114], &v[115], &v[116], NULL
, NULL, &v[117], NULL, NULL, NULL, NULL, &v[118], NULL, NULL
, NULL, NULL, &v[119], NULL, NULL, NULL, NULL, &v[120], NULL
, NULL, &v[121], NULL, NULL, NULL, NULL, RP9, IP9, RS9, IS9
);
v[110] = -v[48] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_6(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[66] = y[col];
v[77] = v[66] /* Duplicate variable. */;
v[122] = -v[66] /* Duplicate variable. */;
n = 4;
lstp00a_(&n, &v[76], &v[77], &v[78], &v[146], &v[147], &v[178]
, &v[179], NULL, NULL, &v[180], NULL, NULL, NULL, NULL, &v[181]
, NULL, NULL, RP17, IP17, RS17, IS17, &sflag);
v[145] = v[76] /* Duplicate variable. */;
n = 4;
v[69] = pnrp17_macro0_(&n, &v[61], &v[76], RP3, IP3, RS3);
n = 4;
mecmas21_(&n, &v[66], &dot[6], &v[67], &dot[7], &v[68], &v[69]
, &v[125], &v[126], &v[127], &v[128], &v[129], &v[130], NULL
, NULL, &v[131], NULL, NULL, NULL, NULL, &v[132], NULL, NULL
, NULL, NULL, &v[133], NULL, NULL, NULL, NULL, &v[134], NULL
, NULL, &v[135], NULL, NULL, NULL, NULL, RP11, IP11, RS11
, IS11);
v[124] = -v[68] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_7(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[67] = y[col];
v[78] = v[67] /* Duplicate variable. */;
v[123] = -v[67] /* Duplicate variable. */;
n = 4;
lstp00a_(&n, &v[76], &v[77], &v[78], &v[146], &v[147], &v[178]
, &v[179], NULL, NULL, &v[180], NULL, NULL, NULL, NULL, &v[181]
, NULL, NULL, RP17, IP17, RS17, IS17, &sflag);
v[145] = v[76] /* Duplicate variable. */;
n = 4;
v[69] = pnrp17_macro0_(&n, &v[61], &v[76], RP3, IP3, RS3);
n = 4;
mecmas21_(&n, &v[66], &dot[6], &v[67], &dot[7], &v[68], &v[69]
, &v[125], &v[126], &v[127], &v[128], &v[129], &v[130], NULL
, NULL, &v[131], NULL, NULL, NULL, NULL, &v[132], NULL, NULL
, NULL, NULL, &v[133], NULL, NULL, NULL, NULL, &v[134], NULL
, NULL, &v[135], NULL, NULL, NULL, NULL, RP11, IP11, RS11
, IS11);
v[124] = -v[68] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_8(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[153] = y[col];
v[148] = -v[153] /* Duplicate variable. */;
v[137] = v[148] /* Duplicate variable. */;
v[140] = v[148] /* Duplicate variable. */;
v[143] = v[148] /* Duplicate variable. */;
v[146] = v[148] /* Duplicate variable. */;
n = 1;
lstp00a_(&n, &v[16], &v[17], &v[18], &v[137], &v[138], &v[166]
, &v[167], NULL, NULL, &v[168], NULL, NULL, NULL, NULL, &v[169]
, NULL, NULL, RP14, IP14, RS14, IS14, &sflag);
v[136] = v[16] /* Duplicate variable. */;
n = 2;
lstp00a_(&n, &v[36], &v[37], &v[38], &v[140], &v[141], &v[170]
, &v[171], NULL, NULL, &v[172], NULL, NULL, NULL, NULL, &v[173]
, NULL, NULL, RP15, IP15, RS15, IS15, &sflag);
v[139] = v[36] /* Duplicate variable. */;
n = 3;
lstp00a_(&n, &v[56], &v[57], &v[58], &v[143], &v[144], &v[174]
, &v[175], NULL, NULL, &v[176], NULL, NULL, NULL, NULL, &v[177]
, NULL, NULL, RP16, IP16, RS16, IS16, &sflag);
v[142] = v[56] /* Duplicate variable. */;
n = 4;
lstp00a_(&n, &v[76], &v[77], &v[78], &v[146], &v[147], &v[178]
, &v[179], NULL, NULL, &v[180], NULL, NULL, NULL, NULL, &v[181]
, NULL, NULL, RP17, IP17, RS17, IS17, &sflag);
v[145] = v[76] /* Duplicate variable. */;
n = 1;
v[9] = pnrp17_macro0_(&n, &v[1], &v[16], RP0, IP0, RS0);
n = 2;
v[29] = pnrp17_macro0_(&n, &v[21], &v[36], RP1, IP1, RS1);
n = 3;
v[49] = pnrp17_macro0_(&n, &v[41], &v[56], RP2, IP2, RS2);
n = 4;
v[69] = pnrp17_macro0_(&n, &v[61], &v[76], RP3, IP3, RS3);
n = 1;
mecmas21_(&n, &v[6], &dot[0], &v[7], &dot[1], &v[8], &v[9]
, &v[83], &v[84], &v[85], &v[86], &v[87], &v[88], NULL, NULL
, &v[89], NULL, NULL, NULL, NULL, &v[90], NULL, NULL, NULL
, NULL, &v[91], NULL, NULL, NULL, NULL, &v[92], NULL, NULL
, &v[93], NULL, NULL, NULL, NULL, RP5, IP5, RS5, IS5);
v[82] = -v[8] /* Duplicate variable. */;
n = 2;
mecmas21_(&n, &v[26], &dot[2], &v[27], &dot[3], &v[28], &v[29]
, &v[97], &v[98], &v[99], &v[100], &v[101], &v[102], NULL
, NULL, &v[103], NULL, NULL, NULL, NULL, &v[104], NULL, NULL
, NULL, NULL, &v[105], NULL, NULL, NULL, NULL, &v[106], NULL
, NULL, &v[107], NULL, NULL, NULL, NULL, RP7, IP7, RS7, IS7
);
v[96] = -v[28] /* Duplicate variable. */;
n = 3;
mecmas21_(&n, &v[46], &dot[4], &v[47], &dot[5], &v[48], &v[49]
, &v[111], &v[112], &v[113], &v[114], &v[115], &v[116], NULL
, NULL, &v[117], NULL, NULL, NULL, NULL, &v[118], NULL, NULL
, NULL, NULL, &v[119], NULL, NULL, NULL, NULL, &v[120], NULL
, NULL, &v[121], NULL, NULL, NULL, NULL, RP9, IP9, RS9, IS9
);
v[110] = -v[48] /* Duplicate variable. */;
n = 4;
mecmas21_(&n, &v[66], &dot[6], &v[67], &dot[7], &v[68], &v[69]
, &v[125], &v[126], &v[127], &v[128], &v[129], &v[130], NULL
, NULL, &v[131], NULL, NULL, NULL, NULL, &v[132], NULL, NULL
, NULL, NULL, &v[133], NULL, NULL, NULL, NULL, &v[134], NULL
, NULL, &v[135], NULL, NULL, NULL, NULL, RP11, IP11, RS11
, IS11);
v[124] = -v[68] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_9(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[154] = y[col];
v[149] = -v[154] /* Duplicate variable. */;
v[138] = v[149] /* Duplicate variable. */;
v[141] = v[149] /* Duplicate variable. */;
v[144] = v[149] /* Duplicate variable. */;
v[147] = v[149] /* Duplicate variable. */;
n = 1;
lstp00a_(&n, &v[16], &v[17], &v[18], &v[137], &v[138], &v[166]
, &v[167], NULL, NULL, &v[168], NULL, NULL, NULL, NULL, &v[169]
, NULL, NULL, RP14, IP14, RS14, IS14, &sflag);
v[136] = v[16] /* Duplicate variable. */;
n = 2;
lstp00a_(&n, &v[36], &v[37], &v[38], &v[140], &v[141], &v[170]
, &v[171], NULL, NULL, &v[172], NULL, NULL, NULL, NULL, &v[173]
, NULL, NULL, RP15, IP15, RS15, IS15, &sflag);
v[139] = v[36] /* Duplicate variable. */;
n = 3;
lstp00a_(&n, &v[56], &v[57], &v[58], &v[143], &v[144], &v[174]
, &v[175], NULL, NULL, &v[176], NULL, NULL, NULL, NULL, &v[177]
, NULL, NULL, RP16, IP16, RS16, IS16, &sflag);
v[142] = v[56] /* Duplicate variable. */;
n = 4;
lstp00a_(&n, &v[76], &v[77], &v[78], &v[146], &v[147], &v[178]
, &v[179], NULL, NULL, &v[180], NULL, NULL, NULL, NULL, &v[181]
, NULL, NULL, RP17, IP17, RS17, IS17, &sflag);
v[145] = v[76] /* Duplicate variable. */;
n = 1;
v[9] = pnrp17_macro0_(&n, &v[1], &v[16], RP0, IP0, RS0);
n = 2;
v[29] = pnrp17_macro0_(&n, &v[21], &v[36], RP1, IP1, RS1);
n = 3;
v[49] = pnrp17_macro0_(&n, &v[41], &v[56], RP2, IP2, RS2);
n = 4;
v[69] = pnrp17_macro0_(&n, &v[61], &v[76], RP3, IP3, RS3);
n = 1;
mecmas21_(&n, &v[6], &dot[0], &v[7], &dot[1], &v[8], &v[9]
, &v[83], &v[84], &v[85], &v[86], &v[87], &v[88], NULL, NULL
, &v[89], NULL, NULL, NULL, NULL, &v[90], NULL, NULL, NULL
, NULL, &v[91], NULL, NULL, NULL, NULL, &v[92], NULL, NULL
, &v[93], NULL, NULL, NULL, NULL, RP5, IP5, RS5, IS5);
v[82] = -v[8] /* Duplicate variable. */;
n = 2;
mecmas21_(&n, &v[26], &dot[2], &v[27], &dot[3], &v[28], &v[29]
, &v[97], &v[98], &v[99], &v[100], &v[101], &v[102], NULL
, NULL, &v[103], NULL, NULL, NULL, NULL, &v[104], NULL, NULL
, NULL, NULL, &v[105], NULL, NULL, NULL, NULL, &v[106], NULL
, NULL, &v[107], NULL, NULL, NULL, NULL, RP7, IP7, RS7, IS7
);
v[96] = -v[28] /* Duplicate variable. */;
n = 3;
mecmas21_(&n, &v[46], &dot[4], &v[47], &dot[5], &v[48], &v[49]
, &v[111], &v[112], &v[113], &v[114], &v[115], &v[116], NULL
, NULL, &v[117], NULL, NULL, NULL, NULL, &v[118], NULL, NULL
, NULL, NULL, &v[119], NULL, NULL, NULL, NULL, &v[120], NULL
, NULL, &v[121], NULL, NULL, NULL, NULL, RP9, IP9, RS9, IS9
);
v[110] = -v[48] /* Duplicate variable. */;
n = 4;
mecmas21_(&n, &v[66], &dot[6], &v[67], &dot[7], &v[68], &v[69]
, &v[125], &v[126], &v[127], &v[128], &v[129], &v[130], NULL
, NULL, &v[131], NULL, NULL, NULL, NULL, &v[132], NULL, NULL
, NULL, NULL, &v[133], NULL, NULL, NULL, NULL, &v[134], NULL
, NULL, &v[135], NULL, NULL, NULL, NULL, RP11, IP11, RS11
, IS11);
v[124] = -v[68] /* Duplicate variable. */;
n = 1;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[136];
port_1_v3[1] = v[139];
port_1_v3[2] = v[142];
port_1_v3[3] = v[145];
lmechn1_(&n, &SP12[0], port_1_v3, &v[151], &v[148], &v[149]
, IP12);
}
n = 5;
mecmas21_(&n, &v[153], &dot[8], &v[154], &dot[9], &v[155], &v[152]
, &v[151], &v[156], &v[157], &v[158], &v[159], &v[160], NULL
, NULL, &v[161], NULL, NULL, NULL, NULL, &v[162], NULL, NULL
, NULL, NULL, &v[163], NULL, NULL, NULL, NULL, &v[164], NULL
, NULL, &v[165], NULL, NULL, NULL, NULL, RP13, IP13, RS13
, IS13);
v[150] = -v[155] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_10(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[182] = y[col];
v[70] = v[182] /* Duplicate variable. */;
v[50] = v[182] /* Duplicate variable. */;
v[30] = v[182] /* Duplicate variable. */;
v[10] = v[182] /* Duplicate variable. */;
v[187] = -v[182] /* Duplicate variable. */;
v[14] = v[10] /* Duplicate variable. */;
v[34] = v[30] /* Duplicate variable. */;
v[54] = v[50] /* Duplicate variable. */;
v[74] = v[70] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 2;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
n = 6;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
v[189] = -v[184] /* Duplicate variable. */;
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_11(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[183] = y[col];
v[71] = v[183] /* Duplicate variable. */;
v[51] = v[183] /* Duplicate variable. */;
v[31] = v[183] /* Duplicate variable. */;
v[11] = v[183] /* Duplicate variable. */;
v[188] = -v[183] /* Duplicate variable. */;
v[15] = v[11] /* Duplicate variable. */;
v[35] = v[31] /* Duplicate variable. */;
v[55] = v[51] /* Duplicate variable. */;
v[75] = v[71] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 2;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
n = 6;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
v[189] = -v[184] /* Duplicate variable. */;
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_12(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[204] = y[col];
v[210] = v[204] /* Duplicate variable. */;
v[0] = v[204] /* Duplicate variable. */;
v[216] = v[204] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
return status;
}
static AMEModelStatus localJFuncEval_13(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[205] = y[col];
v[211] = v[205] /* Duplicate variable. */;
v[1] = v[205] /* Duplicate variable. */;
v[217] = v[205] /* Duplicate variable. */;
n = 1;
v[12] = pnrp17_macro1_(&n, &v[1], &v[13], RP0, IP0, RS0);
n = 1;
v[9] = pnrp17_macro0_(&n, &v[1], &v[16], RP0, IP0, RS0);
n = 1;
mecmas21_(&n, &v[6], &dot[0], &v[7], &dot[1], &v[8], &v[9]
, &v[83], &v[84], &v[85], &v[86], &v[87], &v[88], NULL, NULL
, &v[89], NULL, NULL, NULL, NULL, &v[90], NULL, NULL, NULL
, NULL, &v[91], NULL, NULL, NULL, NULL, &v[92], NULL, NULL
, &v[93], NULL, NULL, NULL, NULL, RP5, IP5, RS5, IS5);
v[82] = -v[8] /* Duplicate variable. */;
n = 1;
pnrp17_(&n, &v[4], &v[5], &v[0], &v[1], &v[9], &v[6], &v[7]
, &v[12], &v[10], &v[11], &v[13], &v[16], &v[19], RP0, IP0
, RS0);
n = 2;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
n = 6;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
v[189] = -v[184] /* Duplicate variable. */;
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
return status;
}
static AMEModelStatus localJFuncEval_14(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[224] = y[col];
v[230] = v[224] /* Duplicate variable. */;
v[20] = v[224] /* Duplicate variable. */;
v[236] = v[224] /* Duplicate variable. */;
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_15(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[225] = y[col];
v[231] = v[225] /* Duplicate variable. */;
v[21] = v[225] /* Duplicate variable. */;
v[237] = v[225] /* Duplicate variable. */;
n = 2;
v[32] = pnrp17_macro1_(&n, &v[21], &v[33], RP1, IP1, RS1);
n = 2;
v[29] = pnrp17_macro0_(&n, &v[21], &v[36], RP1, IP1, RS1);
n = 2;
mecmas21_(&n, &v[26], &dot[2], &v[27], &dot[3], &v[28], &v[29]
, &v[97], &v[98], &v[99], &v[100], &v[101], &v[102], NULL
, NULL, &v[103], NULL, NULL, NULL, NULL, &v[104], NULL, NULL
, NULL, NULL, &v[105], NULL, NULL, NULL, NULL, &v[106], NULL
, NULL, &v[107], NULL, NULL, NULL, NULL, RP7, IP7, RS7, IS7
);
v[96] = -v[28] /* Duplicate variable. */;
n = 2;
pnrp17_(&n, &v[24], &v[25], &v[20], &v[21], &v[29], &v[26]
, &v[27], &v[32], &v[30], &v[31], &v[33], &v[36], &v[39]
, RP1, IP1, RS1);
n = 2;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
n = 6;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
v[189] = -v[184] /* Duplicate variable. */;
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_16(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[244] = y[col];
v[250] = v[244] /* Duplicate variable. */;
v[40] = v[244] /* Duplicate variable. */;
v[256] = v[244] /* Duplicate variable. */;
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_17(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[245] = y[col];
v[251] = v[245] /* Duplicate variable. */;
v[41] = v[245] /* Duplicate variable. */;
v[257] = v[245] /* Duplicate variable. */;
n = 3;
v[52] = pnrp17_macro1_(&n, &v[41], &v[53], RP2, IP2, RS2);
n = 3;
v[49] = pnrp17_macro0_(&n, &v[41], &v[56], RP2, IP2, RS2);
n = 3;
mecmas21_(&n, &v[46], &dot[4], &v[47], &dot[5], &v[48], &v[49]
, &v[111], &v[112], &v[113], &v[114], &v[115], &v[116], NULL
, NULL, &v[117], NULL, NULL, NULL, NULL, &v[118], NULL, NULL
, NULL, NULL, &v[119], NULL, NULL, NULL, NULL, &v[120], NULL
, NULL, &v[121], NULL, NULL, NULL, NULL, RP9, IP9, RS9, IS9
);
v[110] = -v[48] /* Duplicate variable. */;
n = 3;
pnrp17_(&n, &v[44], &v[45], &v[40], &v[41], &v[49], &v[46]
, &v[47], &v[52], &v[50], &v[51], &v[53], &v[56], &v[59]
, RP2, IP2, RS2);
n = 2;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
n = 6;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
v[189] = -v[184] /* Duplicate variable. */;
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_18(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[264] = y[col];
v[270] = v[264] /* Duplicate variable. */;
v[60] = v[264] /* Duplicate variable. */;
v[276] = v[264] /* Duplicate variable. */;
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_19(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[265] = y[col];
v[271] = v[265] /* Duplicate variable. */;
v[61] = v[265] /* Duplicate variable. */;
v[277] = v[265] /* Duplicate variable. */;
n = 4;
v[72] = pnrp17_macro1_(&n, &v[61], &v[73], RP3, IP3, RS3);
n = 4;
v[69] = pnrp17_macro0_(&n, &v[61], &v[76], RP3, IP3, RS3);
n = 4;
mecmas21_(&n, &v[66], &dot[6], &v[67], &dot[7], &v[68], &v[69]
, &v[125], &v[126], &v[127], &v[128], &v[129], &v[130], NULL
, NULL, &v[131], NULL, NULL, NULL, NULL, &v[132], NULL, NULL
, NULL, NULL, &v[133], NULL, NULL, NULL, NULL, &v[134], NULL
, NULL, &v[135], NULL, NULL, NULL, NULL, RP11, IP11, RS11
, IS11);
v[124] = -v[68] /* Duplicate variable. */;
n = 4;
pnrp17_(&n, &v[64], &v[65], &v[60], &v[61], &v[69], &v[66]
, &v[67], &v[72], &v[70], &v[71], &v[73], &v[76], &v[79]
, RP3, IP3, RS3);
n = 2;
{ /* DBK specific start. */
double *port_1_v3 = &(dbk_wk[0]);
port_1_v3[0] = v[72];
port_1_v3[1] = v[52];
port_1_v3[2] = v[32];
port_1_v3[3] = v[12];
lmechn1_(&n, &SP18[0], port_1_v3, &v[185], &v[182], &v[183]
, IP18);
}
n = 6;
mecmas21_(&n, &v[182], &dot[10], &v[183], &dot[11], &v[184]
, &v[185], &v[186], &v[190], &v[191], &v[192], &v[193], &v[194]
, NULL, NULL, &v[195], NULL, NULL, NULL, NULL, &v[196], NULL
, NULL, NULL, NULL, &v[197], NULL, NULL, NULL, NULL, &v[198]
, NULL, NULL, &v[199], NULL, NULL, NULL, NULL, RP19, IP19
, RS19, IS19);
v[189] = -v[184] /* Duplicate variable. */;
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_20(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[283] = y[col];
v[287] = v[283] /* Duplicate variable. */;
n = 1;
pnor001_(&n, &v[285], &v[286], &v[287], &v[288], &v[290], &v[291]
, &v[294], &v[295], RP38, IP38, RS38, IS38);
v[292] = -v[285] /* Duplicate variable. */;
v[293] = -v[286] /* Duplicate variable. */;
n = 2;
pnor001_(&n, &v[298], &v[299], &v[296], &v[297], &v[283], &v[284]
, &v[300], &v[301], RP39, IP39, RS39, IS39);
v[281] = -v[298] /* Duplicate variable. */;
v[282] = -v[299] /* Duplicate variable. */;
n = 5;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
n = 6;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
n = 1;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_21(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[284] = y[col];
v[288] = v[284] /* Duplicate variable. */;
n = 1;
pnor001_(&n, &v[285], &v[286], &v[287], &v[288], &v[290], &v[291]
, &v[294], &v[295], RP38, IP38, RS38, IS38);
v[292] = -v[285] /* Duplicate variable. */;
v[293] = -v[286] /* Duplicate variable. */;
n = 2;
pnor001_(&n, &v[298], &v[299], &v[296], &v[297], &v[283], &v[284]
, &v[300], &v[301], RP39, IP39, RS39, IS39);
v[281] = -v[298] /* Duplicate variable. */;
v[282] = -v[299] /* Duplicate variable. */;
n = 5;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
n = 6;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
n = 1;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_22(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[290] = y[col];
n = 1;
pnor001_(&n, &v[285], &v[286], &v[287], &v[288], &v[290], &v[291]
, &v[294], &v[295], RP38, IP38, RS38, IS38);
v[292] = -v[285] /* Duplicate variable. */;
v[293] = -v[286] /* Duplicate variable. */;
n = 5;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
n = 1;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
return status;
}
static AMEModelStatus localJFuncEval_23(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[291] = y[col];
n = 1;
pnor001_(&n, &v[285], &v[286], &v[287], &v[288], &v[290], &v[291]
, &v[294], &v[295], RP38, IP38, RS38, IS38);
v[292] = -v[285] /* Duplicate variable. */;
v[293] = -v[286] /* Duplicate variable. */;
n = 5;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
n = 1;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
return status;
}
static AMEModelStatus localJFuncEval_24(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[296] = y[col];
n = 2;
pnor001_(&n, &v[298], &v[299], &v[296], &v[297], &v[283], &v[284]
, &v[300], &v[301], RP39, IP39, RS39, IS39);
v[281] = -v[298] /* Duplicate variable. */;
v[282] = -v[299] /* Duplicate variable. */;
n = 6;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
n = 1;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_25(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[297] = y[col];
n = 2;
pnor001_(&n, &v[298], &v[299], &v[296], &v[297], &v[283], &v[284]
, &v[300], &v[301], RP39, IP39, RS39, IS39);
v[281] = -v[298] /* Duplicate variable. */;
v[282] = -v[299] /* Duplicate variable. */;
n = 6;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
n = 1;
pnch023_(&n, &v[283], &dot[20], &v[284], &dot[21], &v[281]
, &v[282], &v[285], &v[286], &v[289], RP37, IP37, RS37, IS37
);
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_26(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[308] = y[col];
v[306] = v[308] /* Duplicate variable. */;
v[318] = v[308] /* Duplicate variable. */;
n = 5;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
n = 2;
pnl00r_(&n, &v[381], &v[382], &v[314], &v[315], &v[318], &v[319]
, &v[629], &v[630], &v[631], &v[632], RP101, IP101, RS101
, IS101);
v[377] = -v[314] /* Duplicate variable. */;
v[378] = -v[315] /* Duplicate variable. */;
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
return status;
}
static AMEModelStatus localJFuncEval_27(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[309] = y[col];
v[307] = v[309] /* Duplicate variable. */;
v[319] = v[309] /* Duplicate variable. */;
n = 5;
pnl0001_(&n, &v[302], &v[303], &v[306], &v[307], &v[290], &dot[22]
, &v[291], &dot[23], &v[292], &v[293], &v[605], &v[606]
, &v[607], &v[608], &v[609], RP90, IP90, RS90, IS90);
n = 2;
pnl00r_(&n, &v[381], &v[382], &v[314], &v[315], &v[318], &v[319]
, &v[629], &v[630], &v[631], &v[632], RP101, IP101, RS101
, IS101);
v[377] = -v[314] /* Duplicate variable. */;
v[378] = -v[315] /* Duplicate variable. */;
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
return status;
}
static AMEModelStatus localJFuncEval_28(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[326] = y[col];
v[324] = v[326] /* Duplicate variable. */;
v[336] = v[326] /* Duplicate variable. */;
n = 6;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
n = 1;
pnl00r_(&n, &v[324], &v[325], &v[371], &v[372], &v[375], &v[376]
, &v[625], &v[626], &v[627], &v[628], RP94, IP94, RS94, IS94
);
v[320] = -v[371] /* Duplicate variable. */;
v[321] = -v[372] /* Duplicate variable. */;
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_29(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[327] = y[col];
v[325] = v[327] /* Duplicate variable. */;
v[337] = v[327] /* Duplicate variable. */;
n = 6;
pnl0001_(&n, &v[332], &v[333], &v[336], &v[337], &v[296], &dot[24]
, &v[297], &dot[25], &v[298], &v[299], &v[610], &v[611]
, &v[612], &v[613], &v[614], RP91, IP91, RS91, IS91);
n = 1;
pnl00r_(&n, &v[324], &v[325], &v[371], &v[372], &v[375], &v[376]
, &v[625], &v[626], &v[627], &v[628], RP94, IP94, RS94, IS94
);
v[320] = -v[371] /* Duplicate variable. */;
v[321] = -v[372] /* Duplicate variable. */;
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_30(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[340] = y[col];
v[344] = v[340] /* Duplicate variable. */;
n = 3;
pnor001_(&n, &v[342], &v[343], &v[344], &v[345], &v[347], &v[348]
, &v[351], &v[352], RP43, IP43, RS43, IS43);
v[349] = -v[342] /* Duplicate variable. */;
v[350] = -v[343] /* Duplicate variable. */;
n = 4;
pnor001_(&n, &v[355], &v[356], &v[353], &v[354], &v[340], &v[341]
, &v[357], &v[358], RP44, IP44, RS44, IS44);
v[338] = -v[355] /* Duplicate variable. */;
v[339] = -v[356] /* Duplicate variable. */;
n = 7;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
n = 8;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
n = 2;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
return status;
}
static AMEModelStatus localJFuncEval_31(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[341] = y[col];
v[345] = v[341] /* Duplicate variable. */;
n = 3;
pnor001_(&n, &v[342], &v[343], &v[344], &v[345], &v[347], &v[348]
, &v[351], &v[352], RP43, IP43, RS43, IS43);
v[349] = -v[342] /* Duplicate variable. */;
v[350] = -v[343] /* Duplicate variable. */;
n = 4;
pnor001_(&n, &v[355], &v[356], &v[353], &v[354], &v[340], &v[341]
, &v[357], &v[358], RP44, IP44, RS44, IS44);
v[338] = -v[355] /* Duplicate variable. */;
v[339] = -v[356] /* Duplicate variable. */;
n = 7;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
n = 8;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
n = 2;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
return status;
}
static AMEModelStatus localJFuncEval_32(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[347] = y[col];
n = 3;
pnor001_(&n, &v[342], &v[343], &v[344], &v[345], &v[347], &v[348]
, &v[351], &v[352], RP43, IP43, RS43, IS43);
v[349] = -v[342] /* Duplicate variable. */;
v[350] = -v[343] /* Duplicate variable. */;
n = 7;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
n = 2;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
return status;
}
static AMEModelStatus localJFuncEval_33(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[348] = y[col];
n = 3;
pnor001_(&n, &v[342], &v[343], &v[344], &v[345], &v[347], &v[348]
, &v[351], &v[352], RP43, IP43, RS43, IS43);
v[349] = -v[342] /* Duplicate variable. */;
v[350] = -v[343] /* Duplicate variable. */;
n = 7;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
n = 2;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
return status;
}
static AMEModelStatus localJFuncEval_34(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[353] = y[col];
n = 4;
pnor001_(&n, &v[355], &v[356], &v[353], &v[354], &v[340], &v[341]
, &v[357], &v[358], RP44, IP44, RS44, IS44);
v[338] = -v[355] /* Duplicate variable. */;
v[339] = -v[356] /* Duplicate variable. */;
n = 8;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
n = 2;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
return status;
}
static AMEModelStatus localJFuncEval_35(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[354] = y[col];
n = 4;
pnor001_(&n, &v[355], &v[356], &v[353], &v[354], &v[340], &v[341]
, &v[357], &v[358], RP44, IP44, RS44, IS44);
v[338] = -v[355] /* Duplicate variable. */;
v[339] = -v[356] /* Duplicate variable. */;
n = 8;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
n = 2;
pnch023_(&n, &v[340], &dot[30], &v[341], &dot[31], &v[338]
, &v[339], &v[342], &v[343], &v[346], RP42, IP42, RS42, IS42
);
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
return status;
}
static AMEModelStatus localJFuncEval_36(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[365] = y[col];
v[363] = v[365] /* Duplicate variable. */;
v[375] = v[365] /* Duplicate variable. */;
n = 7;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
n = 1;
pnl00r_(&n, &v[324], &v[325], &v[371], &v[372], &v[375], &v[376]
, &v[625], &v[626], &v[627], &v[628], RP94, IP94, RS94, IS94
);
v[320] = -v[371] /* Duplicate variable. */;
v[321] = -v[372] /* Duplicate variable. */;
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_37(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[366] = y[col];
v[364] = v[366] /* Duplicate variable. */;
v[376] = v[366] /* Duplicate variable. */;
n = 7;
pnl0001_(&n, &v[359], &v[360], &v[363], &v[364], &v[347], &dot[32]
, &v[348], &dot[33], &v[349], &v[350], &v[615], &v[616]
, &v[617], &v[618], &v[619], RP92, IP92, RS92, IS92);
n = 1;
pnl00r_(&n, &v[324], &v[325], &v[371], &v[372], &v[375], &v[376]
, &v[625], &v[626], &v[627], &v[628], RP94, IP94, RS94, IS94
);
v[320] = -v[371] /* Duplicate variable. */;
v[321] = -v[372] /* Duplicate variable. */;
v[328] = v[320]+v[332];
v[329] = v[321]+v[333];
v[367] = v[359]+v[371];
v[368] = v[360]+v[372];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
return status;
}
static AMEModelStatus localJFuncEval_38(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[383] = y[col];
v[381] = v[383] /* Duplicate variable. */;
v[393] = v[383] /* Duplicate variable. */;
n = 8;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
n = 2;
pnl00r_(&n, &v[381], &v[382], &v[314], &v[315], &v[318], &v[319]
, &v[629], &v[630], &v[631], &v[632], RP101, IP101, RS101
, IS101);
v[377] = -v[314] /* Duplicate variable. */;
v[378] = -v[315] /* Duplicate variable. */;
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
return status;
}
static AMEModelStatus localJFuncEval_39(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[384] = y[col];
v[382] = v[384] /* Duplicate variable. */;
v[394] = v[384] /* Duplicate variable. */;
n = 8;
pnl0001_(&n, &v[389], &v[390], &v[393], &v[394], &v[353], &dot[34]
, &v[354], &dot[35], &v[355], &v[356], &v[620], &v[621]
, &v[622], &v[623], &v[624], RP93, IP93, RS93, IS93);
n = 2;
pnl00r_(&n, &v[381], &v[382], &v[314], &v[315], &v[318], &v[319]
, &v[629], &v[630], &v[631], &v[632], RP101, IP101, RS101
, IS101);
v[377] = -v[314] /* Duplicate variable. */;
v[378] = -v[315] /* Duplicate variable. */;
v[310] = v[302]+v[314];
v[311] = v[303]+v[315];
v[385] = v[377]+v[389];
v[386] = v[378]+v[390];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
return status;
}
static AMEModelStatus localJFuncEval_40(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[401] = y[col];
v[399] = v[401] /* Duplicate variable. */;
v[411] = v[401] /* Duplicate variable. */;
v[417] = v[401] /* Duplicate variable. */;
n = 1;
pnvo001_(&n, &v[492], &v[413], &v[414], &v[417], &v[418], &v[493]
, &v[494], &v[497], &v[498], &v[499], RP54, IP54, RS54, IS54
);
v[495] = -v[413] /* Duplicate variable. */;
v[496] = -v[414] /* Duplicate variable. */;
n = 2;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
n = 4;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_41(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[402] = y[col];
v[400] = v[402] /* Duplicate variable. */;
v[412] = v[402] /* Duplicate variable. */;
v[418] = v[402] /* Duplicate variable. */;
n = 1;
pnvo001_(&n, &v[492], &v[413], &v[414], &v[417], &v[418], &v[493]
, &v[494], &v[497], &v[498], &v[499], RP54, IP54, RS54, IS54
);
v[495] = -v[413] /* Duplicate variable. */;
v[496] = -v[414] /* Duplicate variable. */;
n = 2;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
n = 4;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_42(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[425] = y[col];
v[423] = v[425] /* Duplicate variable. */;
v[435] = v[425] /* Duplicate variable. */;
v[441] = v[425] /* Duplicate variable. */;
n = 2;
pnvo001_(&n, &v[503], &v[437], &v[438], &v[441], &v[442], &v[504]
, &v[505], &v[508], &v[509], &v[510], RP56, IP56, RS56, IS56
);
v[506] = -v[437] /* Duplicate variable. */;
v[507] = -v[438] /* Duplicate variable. */;
n = 2;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
n = 3;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_43(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[426] = y[col];
v[424] = v[426] /* Duplicate variable. */;
v[436] = v[426] /* Duplicate variable. */;
v[442] = v[426] /* Duplicate variable. */;
n = 2;
pnvo001_(&n, &v[503], &v[437], &v[438], &v[441], &v[442], &v[504]
, &v[505], &v[508], &v[509], &v[510], RP56, IP56, RS56, IS56
);
v[506] = -v[437] /* Duplicate variable. */;
v[507] = -v[438] /* Duplicate variable. */;
n = 2;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
n = 3;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_44(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[449] = y[col];
v[447] = v[449] /* Duplicate variable. */;
v[459] = v[449] /* Duplicate variable. */;
v[465] = v[449] /* Duplicate variable. */;
n = 3;
pnvo001_(&n, &v[514], &v[461], &v[462], &v[465], &v[466], &v[515]
, &v[516], &v[519], &v[520], &v[521], RP58, IP58, RS58, IS58
);
v[517] = -v[461] /* Duplicate variable. */;
v[518] = -v[462] /* Duplicate variable. */;
n = 1;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
n = 3;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_45(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[450] = y[col];
v[448] = v[450] /* Duplicate variable. */;
v[460] = v[450] /* Duplicate variable. */;
v[466] = v[450] /* Duplicate variable. */;
n = 3;
pnvo001_(&n, &v[514], &v[461], &v[462], &v[465], &v[466], &v[515]
, &v[516], &v[519], &v[520], &v[521], RP58, IP58, RS58, IS58
);
v[517] = -v[461] /* Duplicate variable. */;
v[518] = -v[462] /* Duplicate variable. */;
n = 1;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
n = 3;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_46(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[473] = y[col];
v[471] = v[473] /* Duplicate variable. */;
v[483] = v[473] /* Duplicate variable. */;
v[489] = v[473] /* Duplicate variable. */;
n = 4;
pnvo001_(&n, &v[525], &v[485], &v[486], &v[489], &v[490], &v[526]
, &v[527], &v[530], &v[531], &v[532], RP60, IP60, RS60, IS60
);
v[528] = -v[485] /* Duplicate variable. */;
v[529] = -v[486] /* Duplicate variable. */;
n = 1;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
n = 4;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_47(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[474] = y[col];
v[472] = v[474] /* Duplicate variable. */;
v[484] = v[474] /* Duplicate variable. */;
v[490] = v[474] /* Duplicate variable. */;
n = 4;
pnvo001_(&n, &v[525], &v[485], &v[486], &v[489], &v[490], &v[526]
, &v[527], &v[530], &v[531], &v[532], RP60, IP60, RS60, IS60
);
v[528] = -v[485] /* Duplicate variable. */;
v[529] = -v[486] /* Duplicate variable. */;
n = 1;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
n = 4;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_48(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[493] = y[col];
n = 1;
pnvo001_(&n, &v[492], &v[413], &v[414], &v[417], &v[418], &v[493]
, &v[494], &v[497], &v[498], &v[499], RP54, IP54, RS54, IS54
);
v[495] = -v[413] /* Duplicate variable. */;
v[496] = -v[414] /* Duplicate variable. */;
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
return status;
}
static AMEModelStatus localJFuncEval_49(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[494] = y[col];
n = 1;
pnvo001_(&n, &v[492], &v[413], &v[414], &v[417], &v[418], &v[493]
, &v[494], &v[497], &v[498], &v[499], RP54, IP54, RS54, IS54
);
v[495] = -v[413] /* Duplicate variable. */;
v[496] = -v[414] /* Duplicate variable. */;
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
n = 3;
pnl0003_(&n, &v[308], &dot[26], &v[309], &dot[27], &v[310]
, &v[311], &v[493], &dot[48], &v[494], &dot[49], &v[495]
, &v[496], &v[591], &v[592], &v[593], &v[594], &v[595], &v[596]
, &v[597], RP86, IP86, RS86, IS86);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
return status;
}
static AMEModelStatus localJFuncEval_50(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[504] = y[col];
n = 2;
pnvo001_(&n, &v[503], &v[437], &v[438], &v[441], &v[442], &v[504]
, &v[505], &v[508], &v[509], &v[510], RP56, IP56, RS56, IS56
);
v[506] = -v[437] /* Duplicate variable. */;
v[507] = -v[438] /* Duplicate variable. */;
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_51(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[505] = y[col];
n = 2;
pnvo001_(&n, &v[503], &v[437], &v[438], &v[441], &v[442], &v[504]
, &v[505], &v[508], &v[509], &v[510], RP56, IP56, RS56, IS56
);
v[506] = -v[437] /* Duplicate variable. */;
v[507] = -v[438] /* Duplicate variable. */;
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
n = 4;
pnl0003_(&n, &v[326], &dot[28], &v[327], &dot[29], &v[328]
, &v[329], &v[504], &dot[50], &v[505], &dot[51], &v[506]
, &v[507], &v[598], &v[599], &v[600], &v[601], &v[602], &v[603]
, &v[604], RP87, IP87, RS87, IS87);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_52(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[515] = y[col];
n = 3;
pnvo001_(&n, &v[514], &v[461], &v[462], &v[465], &v[466], &v[515]
, &v[516], &v[519], &v[520], &v[521], RP58, IP58, RS58, IS58
);
v[517] = -v[461] /* Duplicate variable. */;
v[518] = -v[462] /* Duplicate variable. */;
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_53(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[516] = y[col];
n = 3;
pnvo001_(&n, &v[514], &v[461], &v[462], &v[465], &v[466], &v[515]
, &v[516], &v[519], &v[520], &v[521], RP58, IP58, RS58, IS58
);
v[517] = -v[461] /* Duplicate variable. */;
v[518] = -v[462] /* Duplicate variable. */;
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
n = 1;
pnl0003_(&n, &v[365], &dot[36], &v[366], &dot[37], &v[367]
, &v[368], &v[515], &dot[52], &v[516], &dot[53], &v[517]
, &v[518], &v[556], &v[557], &v[558], &v[559], &v[560], &v[561]
, &v[562], RP81, IP81, RS81, IS81);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_54(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[526] = y[col];
n = 4;
pnvo001_(&n, &v[525], &v[485], &v[486], &v[489], &v[490], &v[526]
, &v[527], &v[530], &v[531], &v[532], RP60, IP60, RS60, IS60
);
v[528] = -v[485] /* Duplicate variable. */;
v[529] = -v[486] /* Duplicate variable. */;
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_55(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[527] = y[col];
n = 4;
pnvo001_(&n, &v[525], &v[485], &v[486], &v[489], &v[490], &v[526]
, &v[527], &v[530], &v[531], &v[532], RP60, IP60, RS60, IS60
);
v[528] = -v[485] /* Duplicate variable. */;
v[529] = -v[486] /* Duplicate variable. */;
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 2;
pnl0003_(&n, &v[383], &dot[38], &v[384], &dot[39], &v[385]
, &v[386], &v[526], &dot[54], &v[527], &dot[55], &v[528]
, &v[529], &v[563], &v[564], &v[565], &v[566], &v[567], &v[568]
, &v[569], RP82, IP82, RS82, IS82);
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_56(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[570] = y[col];
n = 1;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_57(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[571] = y[col];
n = 1;
pnl0002_(&n, &v[443], &v[444], &v[447], &v[448], &v[479], &v[480]
, &v[483], &v[484], &v[570], &dot[56], &v[571], &dot[57]
, &v[572], &v[573], &v[574], &v[575], &v[576], RP83, IP83
, RS83, IS83);
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_58(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[577] = y[col];
n = 2;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_59(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[578] = y[col];
n = 2;
pnl0002_(&n, &v[395], &v[396], &v[399], &v[400], &v[431], &v[432]
, &v[435], &v[436], &v[577], &dot[58], &v[578], &dot[59]
, &v[579], &v[580], &v[581], &v[582], &v[583], RP84, IP84
, RS84, IS84);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
return status;
}
static AMEModelStatus localJFuncEval_60(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[584] = y[col];
n = 3;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_61(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[585] = y[col];
n = 3;
pnl0002_(&n, &v[419], &v[420], &v[423], &v[424], &v[455], &v[456]
, &v[459], &v[460], &v[584], &dot[60], &v[585], &dot[61]
, &v[586], &v[587], &v[588], &v[589], &v[590], RP85, IP85
, RS85, IS85);
v[427] = v[419]+v[431]+v[437];
v[428] = v[420]+v[432]+v[438];
v[451] = v[443]+v[455]+v[461];
v[452] = v[444]+v[456]+v[462];
n = 2;
pnl0001_(&n, &v[240], &v[241], &v[244], &v[245], &v[449], &dot[44]
, &v[450], &dot[45], &v[451], &v[452], &v[541], &v[542]
, &v[543], &v[544], &v[545], RP77, IP77, RS77, IS77);
n = 3;
pnl0001_(&n, &v[220], &v[221], &v[224], &v[225], &v[425], &dot[42]
, &v[426], &dot[43], &v[427], &v[428], &v[546], &v[547]
, &v[548], &v[549], &v[550], RP79, IP79, RS79, IS79);
n = 2;
pnch012_(&n, &v[224], &dot[14], &v[225], &dot[15], &v[220]
, &v[221], &v[222], &v[223], &v[226], &v[227], &v[228], &v[229]
, &v[22], &v[23], &v[24], &v[25], &v[232], &v[233], &v[234]
, &v[235], &v[238], &v[239], RP23, IP23, RS23, IS23);
n = 3;
pnch012_(&n, &v[244], &dot[16], &v[245], &dot[17], &v[240]
, &v[241], &v[242], &v[243], &v[246], &v[247], &v[248], &v[249]
, &v[42], &v[43], &v[44], &v[45], &v[252], &v[253], &v[254]
, &v[255], &v[258], &v[259], RP26, IP26, RS26, IS26);
return status;
}
static AMEModelStatus localJFuncEval_62(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[633] = y[col];
n = 4;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus localJFuncEval_63(AMESIMSYSTEM * amesys, double t, double * y, double * dot, double * v, double * yprime, double * delta, int col)
{
int sflag = 1;
int n;
double *dbk_wk = amesys->pModel->dbk_wk;
S_AMESubIntf sitf = { amesys, NULL, NULL, t, &sflag, v, dot };
AMEModelStatus status = AME_MODEL_OK;
(void)n;
v[634] = y[col];
n = 4;
pnl0002_(&n, &v[407], &v[408], &v[411], &v[412], &v[467], &v[468]
, &v[471], &v[472], &v[633], &dot[62], &v[634], &dot[63]
, &v[635], &v[636], &v[637], &v[638], &v[639], RP102, IP102
, RS102, IS102);
v[403] = v[395]+v[407]+v[413];
v[404] = v[396]+v[408]+v[414];
v[475] = v[467]+v[479]+v[485];
v[476] = v[468]+v[480]+v[486];
n = 1;
pnl0001_(&n, &v[260], &v[261], &v[264], &v[265], &v[473], &dot[46]
, &v[474], &dot[47], &v[475], &v[476], &v[536], &v[537]
, &v[538], &v[539], &v[540], RP76, IP76, RS76, IS76);
n = 4;
pnl0001_(&n, &v[200], &v[201], &v[204], &v[205], &v[401], &dot[40]
, &v[402], &dot[41], &v[403], &v[404], &v[551], &v[552]
, &v[553], &v[554], &v[555], RP80, IP80, RS80, IS80);
n = 1;
pnch012_(&n, &v[204], &dot[12], &v[205], &dot[13], &v[200]
, &v[201], &v[202], &v[203], &v[206], &v[207], &v[208], &v[209]
, &v[2], &v[3], &v[4], &v[5], &v[212], &v[213], &v[214]
, &v[215], &v[218], &v[219], RP20, IP20, RS20, IS20);
n = 4;
pnch012_(&n, &v[264], &dot[18], &v[265], &dot[19], &v[260]
, &v[261], &v[262], &v[263], &v[266], &v[267], &v[268], &v[269]
, &v[62], &v[63], &v[64], &v[65], &v[272], &v[273], &v[274]
, &v[275], &v[278], &v[279], RP29, IP29, RS29, IS29);
return status;
}
static AMEModelStatus (*jfunc_table[])(AMESIMSYSTEM *, double, double *, double *, double *, double *, double *, int) = {
localJFuncEval_0, localJFuncEval_1, localJFuncEval_2, localJFuncEval_3, localJFuncEval_4, localJFuncEval_5
, localJFuncEval_6, localJFuncEval_7, localJFuncEval_8, localJFuncEval_9, localJFuncEval_10, localJFuncEval_11
, localJFuncEval_12, localJFuncEval_13, localJFuncEval_14, localJFuncEval_15, localJFuncEval_16
, localJFuncEval_17, localJFuncEval_18, localJFuncEval_19, localJFuncEval_20, localJFuncEval_21
, localJFuncEval_22, localJFuncEval_23, localJFuncEval_24, localJFuncEval_25, localJFuncEval_26
, localJFuncEval_27, localJFuncEval_28, localJFuncEval_29, localJFuncEval_30, localJFuncEval_31
, localJFuncEval_32, localJFuncEval_33, localJFuncEval_34, localJFuncEval_35, localJFuncEval_36
, localJFuncEval_37, localJFuncEval_38, localJFuncEval_39, localJFuncEval_40, localJFuncEval_41
, localJFuncEval_42, localJFuncEval_43, localJFuncEval_44, localJFuncEval_45, localJFuncEval_46
, localJFuncEval_47, localJFuncEval_48, localJFuncEval_49, localJFuncEval_50, localJFuncEval_51
, localJFuncEval_52, localJFuncEval_53, localJFuncEval_54, localJFuncEval_55, localJFuncEval_56
, localJFuncEval_57, localJFuncEval_58, localJFuncEval_59, localJFuncEval_60, localJFuncEval_61
, localJFuncEval_62, localJFuncEval_63
};
static void localJFuncEval(AMESIMSYSTEM *amesys, double t, double *y, double *yprime, double *delta, int col)
{
int sflag=1; /* Only one flag value is required. */
int n=1, i=0;
double *v = amesys->v;
double *vcopy = amesys->vcopy;
double *input = amesys->inputs;
double *output = amesys->outputs;
double *Z = amesys->discrete_states;
double *dbk_wk = amesys->pModel->dbk_wk;
AMEModelStatus status = AME_MODEL_OK;
#if(AME_MODEL_ISEXPLICIT == 1)
double *dot = yprime;
#else
double dot[AME_NBOF_SOLVER_STATES];
/* Initialize the dot vector to the yprime vector. */
memcpy((void *)dot, (void *)yprime, AME_NBOF_SOLVER_STATES*sizeof(double));
#endif
#if(AME_MODEL_ISEXPLICIT == 0)
/* Initialize everything ready for potential calls to stepdn
in submodels. */
#if(defined(AME_COSIM) && (AME_NBOF_INPUTS > 0))
if(amesys->doInterpol) {
if( getInputsCosimSlave(amesys->csSlave, t, input) != AME_NO_ERROR ) {
AmeExit(1);
}
}
#endif
if(isstabrun_())
{
t = amesys->simOptions->fixedTime;
}
#endif
/* Record current simulation time for ametim_(). */
SetTimeAtThisStep(t);
if (holdinputs_())
{
/* We reset artificially the time to the initial value
to give the illusion of held inputs. */
t = getstarttime_();
}
/* Assign the state variables y[] calculated by the integrator
to the appropriate variables v[] and right calls necessary
for that state in a case of a switch. */
status |= (*jfunc_table[col])(amesys, t, y, dot, v, yprime, delta, col);
UpFECount(amesys);
if(status & AME_MODEL_FATAL) {
AmeExit(1);
}
}
static void EndOfSimulation(AMESIMSYSTEM *amesys)
{
int n=1;
double *y = amesys->states;
double *v = amesys->v;
double *Z = amesys->discrete_states;
double *dbk_wk = amesys->pModel->dbk_wk;
const double t = getfinaltime_();
S_AMESubIntf sitf = {amesys, NULL, NULL, t, NULL, v, NULL};
AMEModelStatus status = AME_MODEL_OK;
double dummy[6];
(void)n;
(void)status;
sitf.structuralInfo = &STLI_30;
sitf.simulationInfo = &amesys->pModel->subArray[30];
status |= step0_end(&sitf);
sitf.structuralInfo = &STLI_29;
sitf.simulationInfo = &amesys->pModel->subArray[29];
status |= step0_end(&sitf);
sitf.structuralInfo = &STLI_28;
sitf.simulationInfo = &amesys->pModel->subArray[28];
status |= step0_end(&sitf);
sitf.structuralInfo = &STLI_27;
sitf.simulationInfo = &amesys->pModel->subArray[27];
status |= step0_end(&sitf);
sitf.structuralInfo = &STLI_26;
sitf.simulationInfo = &amesys->pModel->subArray[26];
status |= ud00_end(&sitf);
sitf.structuralInfo = &STLI_25;
sitf.simulationInfo = &amesys->pModel->subArray[25];
status |= ud00_end(&sitf);
}
static void ameTerminate(AMESIMSYSTEM *amesys)
{
#ifdef AME_WRITE_RUNSTAT
if(amesys->simOptions ) {
if(amesys->simOptions->statistics)
{
WriteRunStats(amesys);
}
}
#endif
#ifdef AME_PROCESS_TIME
ProcessTime(2);
#endif
/* Save state count, discontinuities and finalize the Performance Analyzer */
#ifdef AME_PERFORMANCE_ANALYZER
if(!isfixedstepsolver_()){
PerfAnalyzer_SaveStateCount (amesys);
PerfAnalyzer_SaveDiscontinuities(amesys);
PerfAnalyzer_Close(amesys);
}
#endif
#ifdef AME_RESULT_FILE
amesys->CloseResultFile(amesys);
#endif
EndOfSimulation(amesys);
AmeCallAtEnd(amesys->ameExitStatus);
modelCleanStore(amesys->pModel);
}
#ifdef AME_EXPOSE_JACOBIAN
static int getPartialDerivatives(double *A, double *B, double *C, double *D)
{
int res;
AMESIMSYSTEM *amesys = GetGlobalSystem();
SPARSE_MATRIX *Amat, *Bmat, *Cmat, *Dmat;
#if(AME_MODEL_ISEXPLICIT == 1)
if (amesys->tlast > TLAST_MIN)
res = LDoLinearAnalysisOnDemand(amesys, amesys->numstates,
amesys->tlast, amesys->states,
&Amat, &Bmat, &Cmat, &Dmat);
#else
if (amesys->tlast > TLAST_MIN)
res = DDoLinearAnalysisOnDemand(amesys, amesys->neq,
amesys->tlast,
amesys->states, amesys->dotstates,
&Amat, &Bmat, &Cmat, &Dmat);
#endif
else
res = 0; /* failed: system probably not initialized */
if(res != 0) {
if(Amat) {
GetMatAsDense(Amat,A);
}
if(Bmat) {
GetMatAsDense(Bmat,B);
}
if(Cmat) {
GetMatAsDense(Cmat,C);
}
if(Dmat) {
GetMatAsDense(Dmat,D);
}
FreeSparseMatrix(Amat);
FreeSparseMatrix(Bmat);
FreeSparseMatrix(Cmat);
FreeSparseMatrix(Dmat);
}
return res;
} /* getPartialDerivatives */
static int setLASettingsFromIO(int num_input_index, int num_output_index,
int *input_index, int *output_index, int *nbState)
{
*nbState = AME_NBOF_EXPLICIT_STATE + AME_NBOF_IMPLICIT_STATE;
return SetLADetailsFromIO(AME_NBOF_EXPLICIT_STATE, AME_NBOF_IMPLICIT_STATE,
AME_NBOF_INPUTS, AME_NBOF_OUTPUTS,
num_input_index, num_output_index, input_index, output_index,
GInputVarNum, GOutputVarNum, 0.0, 1.0, 1.0, 0.1);
}
#endif
/* ============================================================== */
static void ModelAmeExit(AMESIMSYSTEM *amesys, int status)
{
/* Will be catch by the state machine */
amesys->ameExitStatus = status;
longjmp(amesys->jump_env, status);
}
#ifdef AME_INPUT_IN_MEMORY
#include "test_mql_4_.ssf.h"
static const char **getssflist(int *num_items)
{
*num_items = savestatusflags_length;
return savestatusflags;
}
#endif
/**************************************************************
* *
* Function load_subdata_tables reads data for lookuptables *
* mostly/only used for realtime *
* *
* 0106429 *
* Move the include outside of function. The include now *
* contains one function per table and a function that calls *
* them all. This reduces the risk that a compiler crashes due *
* to a huge function. *
**************************************************************/
#ifdef AME_TABLES_IN_MEMORY
#include "test_mql_4_.subdata.h"
#endif
static void load_subdata_tables(void)
{
#ifdef AME_TABLES_IN_MEMORY
add_all_tables_to_memory();
#endif
}
/***********************************************************
Purpose : Return Simcenter Amesim version used to generate the model C code
It allows the client to update interface management for
backward compatibility.
Author : J.Andre
Creation : 2016 - 09 - 05
Inputs : None
Outputs : Simcenter Amesim version
Revision :
************************************************************/
static unsigned int AmesysGetVersion()
{
/* Returned number indicates 10000* main verion + 100* SL version + minor */
/* Eg. Rev15 (15.0.0) => 150000 */
/* Eg. Rev15SL1 (15.1.0) => 150100 */
/* Eg. Rev15.0.1 (15.0.1) => 150001 */
return AMEVERSION;
}
/***********************************************************
Purpose : Return SoldTo ID which Simcenter Amesim model has been generated.
Author : J.Andre
Creation : 2017 - 02 - 13
Inputs : None
Outputs : SoldToID
Revision :
************************************************************/
static const char* getSoldToID()
{
return "4553207";
}
#ifdef AME_INPUT_IN_MEMORY
#include "test_mql_4_.globalparams.h"
#endif
/***********************************************************
Purpose : Load and evaluate model parameters from files
Author : J.Andre
Created : 2016 - 09 - 08
Inputs :
amesys : system
errmsg : error message
Outputs : Error code
Revision :
************************************************************/
static AMESystemError loadModelParamFromDisk(AMESIMSYSTEM *amesys, AMESystemError *gpError, AMESystemError *lpError, char *errmsg)
{
AMESystemError ret;
*gpError = AME_NO_ERROR;
*lpError = AME_NO_ERROR;
ret = AmeReadGPFile(amesys);
if(ret == AME_NO_ERROR) {
*gpError = AmeEvalGlobalParamList(amesys, 1, errmsg);
*lpError = loadParameterFromFile(amesys->pModel, GetDataFileName(), errmsg);
}
return ret;
}
#ifdef AME_INPUT_IN_MEMORY
/***********************************************************
Purpose : Load and evaluate model parameters from memory
Author : J.Andre
Created on : 2016 - 09 - 08
Inputs :
amesys : system
errmsg : error message
Outputs : Parameter error code
Revision :
************************************************************/
static AMESystemError loadModelParamFromMemory(AMESIMSYSTEM *amesys, AMESystemError *gpError, AMESystemError *lpError, char * errmsg)
{
#include "test_mql_4_.data.h"
ameAddGlobalParamsFromMemory(amesys,errmsg);
if(amecheckversion(AMESIMRUNTIMEVERSION, __TIME__, __DATE__, NULL)) {
amefprintf(stderr, "A problem with incompatible versions of the AMESim runtime library has been found.");
}
*gpError = AmeEvalGlobalParamList(amesys, 1, errmsg);
*lpError = loadParameterFromDataTable(amesys->pModel, allparams, errmsg);
return AME_NO_ERROR;
}
#endif
/***********************************************************
Purpose : Load and evaluate model parameters
Author : J.Andre
Created on : 2016 - 09 - 08
Inputs :
amesys : system
errmsg : error message
Outputs : Parameter error code
Revision :
************************************************************/
static AMESystemError loadModelParameters(AMESIMSYSTEM *amesys)
{
AMESystemError res = AME_PARAMETER_ERROR;
char errmsg[PATH_MAX+128];
AMESystemError ret_gp = AME_NO_ERROR;
AMESystemError ret_lp = AME_NO_ERROR;
errmsg[0] = '\0';
#ifdef AME_INPUT_IN_MEMORY
#ifdef AME_RT_CAN_READ_FILE
res = loadModelParamFromDisk(amesys, &ret_gp, &ret_lp, errmsg);
if (res != AME_NO_ERROR) {
/* If the file is not there - we say nothing */
if (res != AME_PARAM_FILE_OPEN_ERROR) {
amefprintf(stderr,"%s",errmsg);
amefprintf(stderr,"loadParameterFromFile> %s\n",errmsg);
ClearGPs();
}
}
else {
amefprintf(stderr,"Using data from disk (%s)\n",GetDataFileName());
}
#endif
if(res != AME_NO_ERROR) {
/* Read all from memory */
res = loadModelParamFromMemory(amesys, &ret_gp, &ret_lp, errmsg);
SetGlobalParamReadFile(0);
}
#else
/* Read all from disk */
res = loadModelParamFromDisk(amesys, &ret_gp, &ret_lp, errmsg);
#endif
if( (res != AME_NO_ERROR) || (ret_gp != AME_NO_ERROR) || (ret_lp != AME_NO_ERROR) ) {
amefprintf(stderr,"%s",errmsg);
if( (res != AME_NO_ERROR) || (ret_lp != AME_NO_ERROR) ) {
res = AME_GLOBAL_PARAMETER_ERROR;
}
}
return res;
}
static AMESystemError Input(AMESIMSYSTEM *amesys)
{
int retval;
/* Load data files for submodels */
load_subdata_tables();
/* Load parameters for submodels */
retval = loadModelParameters(amesys);
/* Ensure parameters seen by RT is initialized correctly */
#ifdef AME_MEMORY_ACCESS_RT_EXPORT
RT_Get_Watch_Param(amesys);
#endif
return retval;
}
static int ameSetOptions(AMESIMSYSTEM *amesys,
double tsaveinc,
double maxstepsize,
double tolerance,
int errorcontrol,
int writelevel,
int extradisconprint,
int runstats,
int theruntype,
int thesolvertype)
{
amesys->simOptions->errorType = errorcontrol;
amesys->simOptions->tol = tolerance;
amesys->simOptions->rStrtp = extradisconprint;
amesys->simOptions->statistics = runstats;
amesys->simOptions->solverType = thesolvertype;
amesys->simOptions->runType = theruntype;
amesys->simOptions->iWrite = writelevel;
amesys->simOptions->tInc = tsaveinc;
amesys->simOptions->hMax = maxstepsize;
/* Copy sim option to share with libraries before to modify it */
memcpy(amesys->sharedSimOptions, amesys->simOptions, sizeof(SIMOptions));
if(amesys->simOptions->solverType) {
/* It is the cautious option. The maximum time step
should not exceed the print interval. */
setmaxstep_(&amesys->simOptions->tInc);
}
#if( AME_MODEL_ISEXPLICIT == 1) && (AME_NBOF_EXPLICIT_STATE == 0 )
if(maxstepsize > tsaveinc) {
amefprintf(stderr, "Since the model has no state variable,\n");
amefprintf(stderr, "the maximum time step has been reduced to %gs.\n", tsaveinc);
setmaxstep_(&amesys->simOptions->tInc);
}
#endif
SetInitPrintIntervalFromSimOpts(amesys);
ValidateRuntype(theruntype);
ameSetupTolerance(amesys->simOptions);
return 1;
}
static int ameSetOptionsFixed(AMESIMSYSTEM *amesys,
double printinterval,
int fixed_type,
int fixedOrder,
double fixed_h,
int run_type)
{
amesys->simOptions->iWrite = 2;
ValidateRuntype(run_type);
/* Ensure that runflag StabilizingRun=0. It might have been set to true */
/* due to a previous selection for the variable step integrator. */
ClearStabilizingRun();
amesys->simOptions->fixedOrder = fixedOrder;
amesys->simOptions->fixedStep = 1; /* Yes - fixed step */
amesys->simOptions->fixedH = fixed_h;
amesys->simOptions->tInc = printinterval;
amesys->simOptions->rStrtp = 0; /* No discontinuity printout using fixed step solver */
amesys->simOptions->fixedType = fixed_type;
SetIsUsingFixedSolver(( fixed_type == 1)*100 + (fixed_type != 1)*200 + fixedOrder);
SetFixedTimeStep(fixed_h);
return 1;
}
static int ameInputs(AMESIMSYSTEM *amesys, int numInputs, const double *inputARG)
{
if(numInputs != amesys->numinputs)
{
char error_message[256];
sprintf(error_message, "AMEInputs> Expected %d inputs but got %d\n", amesys->numinputs, numInputs);
DisplayMessage(error_message);
return 0;
}
#if (AME_NBOF_INPUTS > 0)
memcpy(amesys->inputs, inputARG, amesys->numinputs*sizeof(double) );
#endif
return 1;
}
static void doAssembly(AMESIMSYSTEM *amesys)
{
if (IsAssemblyNecessary_())
{
double time = getstarttime_();
double tmp[AME_NBOF_SOLVER_STATES];
int local_flag;
/* Perform the assembly. */
amesys->consflag = 1;
local_flag = 0;
#if(AME_MODEL_ISEXPLICIT == 1)
amesys->FuncEval(amesys, time, amesys->states, tmp, NULL, &local_flag);
#else
amesys->res(amesys, time, amesys->states, amesys->dotstates, tmp, &local_flag);
#endif
amesys->first_call = 1;
amesys->consflag = 2;
local_flag = 0;
#if(AME_MODEL_ISEXPLICIT == 1)
amesys->FuncEval(amesys, time, amesys->states, tmp, NULL, &local_flag);
#else
amesys->res(amesys, time, amesys->states, amesys->dotstates, tmp, &local_flag);
#endif
amesys->first_call = 1;
amesys->consflag = 0;
}
}
static int ameEvalTstart(AMESIMSYSTEM *amesys, const double *modelInputs, double *modelOutputs)
{
#ifndef AMERT
double time = getstarttime_();
ameInputs(amesys, AME_NBOF_INPUTS, modelInputs);
doAssembly(amesys);
/* Initialize, maybe perform an initialising run */
if(isstabrun_())
{
amesys->simOptions->fixedTime = time;
}
amesys->simOptions->stabilOption += 4*amesys->simOptions->solverType;
#if(AME_MODEL_ISEXPLICIT == 1)
if(!IntegrateInit(amesys, time, time))
{
return 0;
}
#else
amesys->internal_discont = 1;
DIntegrateInit(amesys, AME_NBOF_EXPLICIT_STATE, time, getfinaltime_(), amesys->simOptions->tInc, amesys->states,
amesys->dotstates, amesys->simOptions->hMax, AME_NBOF_SOLVER_STATES, amesys->iwork, amesys->simOptions->reltol, amesys->simOptions->abstol, amesys->simOptions->rStrtp, LIW, LRW, amesys->simOptions->statistics,amesys->simOptions->stabilOption, amesys->simOptions->iWrite, amesys->simOptions->minimalDiscont, Gis_constraint);
if(isstabrun_())
{
/* HELP !!!! */
}
#endif
#if (AME_NBOF_OUTPUTS > 0)
memcpy(modelOutputs, amesys->outputs, amesys->numoutputs*sizeof(double) );
#endif
amesys->tlast = time;
return 1;
#else
char error_message[256];
sprintf(error_message, "ameEvalTstart> Should never be called for real-time simulation\n");
DisplayMessage(error_message);
return 0;
#endif
}
static int ameSetUpLockedStatus(AMESIMSYSTEM *amesys)
{
#ifdef AME_INPUT_IN_MEMORY
#include "test_mql_4_.lock.h"
if(0 != SetUpLockedStatesFromMemory(amesys, lockedstates_length, lockedstates_array))
{
amefprintf(stderr,"Failed to set the locked states status.\n");
}
#else
SetUpLockedStates(GetCircuitName());
#endif
return 0;
}
static int ameInitializeConditions(AMESIMSYSTEM *amesys)
{
#ifdef AME_VSOLVER_ACCEPTED
double time = amesys->simOptions->tStart;
/* Initialise some static variables */
setfinaltime_(amesys->simOptions->tFinal);
amesys->first_call=1; /* should this be done or not ?*/
amesys->internal_discont = 1;
amesys->tlast = TLAST_MIN;
memset(amesys->ecount,0,amesys->numstates*sizeof(int));
memset(amesys->dotstates,0,amesys->numstates*sizeof(double));
#if(AME_MODEL_ISEXPLICIT == 0)
memset(amesys->iwork,0,LIW*sizeof(int));
#endif
/* The following statement covers the case where there are
no state variables y. */
#if( AME_NBOF_EXPLICIT_STATE == 0 )
amesys->states[0] = 0.0;
#endif
/* Call Input to read submodel and simulation parameters. */
if(Input(amesys) != AME_NO_ERROR) return 0;
modelSetInitValues(amesys->pModel, amesys->states, amesys->discrete_states);
/* Register print interval that maybe used bys some submodels */
SetInitPrintIntervalFromSimOpts(amesys);
setstarttime_(time);
/* Call pre-initialize function */
PreInitialize(amesys,amesys->states);
#ifndef AME_INPUT_IN_MEMORY
if( NeedReloadInputFiles() != 0 )
{
ClearGPs();
if(Input(amesys) != AME_NO_ERROR) return 0;
modelSetInitValues(amesys->pModel, amesys->states, amesys->discrete_states);
ClearReloadedFiles();
}
#endif
/* Call initialize subroutine to set con and icon array members */
Initialize(amesys,amesys->states);
/* Overwriting initial state values with requests emitted by */
/* submodels that have a more global view (cf. register.c mechanism) */
/* Can also fire some callbacks to 'fix' float and integer store */
OverloadStatesWithRegister(amesys, amesys->states, SVREGISTER_DEFAULT);
CheckSimParams(amesys, &amesys->simOptions->abstol,
&amesys->simOptions->reltol,
&amesys->simOptions->hMax);
#ifdef AME_RESULT_FILE
/* Open file for results. */
amesys->AmeReadFile(amesys, &time, amesys->states);
#endif
if(isconrun_() || isusefinval_())
{
updateStatesFromModel(amesys, amesys->states, AME_CONTINUOUS_STATE|AME_DISCRETE_STATE);
}
/* Read linear analysis specification. */
#ifndef FMI
SetLADetails(GetLAFileName(), amesys->numstates, amesys->numvars, time, amesys->simOptions->reltol, amesys->simOptions->abstol, getfinaltime_()-time);
/* Remove old err file */
remove(GetErrorFileName());
/* Initialize the Performance analyzer */
if(!isfixedstepsolver_()) {
PerfAnalyzer_Init(amesys, time, getfinaltime_() );
}
#endif
if(isconrun_())
setstarttime_(time);
/* Set the locked states info */
ameSetUpLockedStatus(amesys);
return 1;
#else
char error_message[256];
sprintf(error_message, "AMEInitializeConditions> Should never be called for real-time simulation\n");
DisplayMessage(error_message);
return 0;
#endif
}
#if(AME_MODEL_ISEXPLICIT == 1)
static int ameEvalTstartFixed(AMESIMSYSTEM *amesys, const double *modelInputs, double *modelOutputs)
{
double time = getstarttime_();
ameInputs(amesys, AME_NBOF_INPUTS, modelInputs);
doAssembly(amesys);
amesys->tlast = time;
/* Evaluation of the model at tStart */
{
int local_flag = 0;
SetIsPrinting(amesys);
amesys->FuncEval(amesys, time, amesys->states, amesys->yh, NULL, &local_flag);
ClearIsPrinting(amesys);
#if defined(AME_RESULT_FILE) && !defined(STANDALONESIMULATOR)
amesys->OutputResults(amesys, amesys->tlast);
amesys->resultFileStructPtr->lastprinttime = amesys->tlast;
#endif
/* Now, amesys->first_call == 0 (set at the end of FunctionEval) */
}
#if (AME_NBOF_OUTPUTS > 0)
memcpy(modelOutputs, amesys->outputs,amesys->numoutputs*sizeof(double) );
#endif
amesys->tlast = time;
#ifdef AME_PROCESS_TIME
/* Initialization of time timers */
ProcessTime(0);
#endif
return 1;
}
static int ameInitializeConditionsFixed(AMESIMSYSTEM *amesys)
{
double start_time = amesys->simOptions->tStart;
assert(amesys);
amesys->first_call=1; /* should this be done or not ?*/
amesys->tlast=TLAST_MIN;
/* Init solver */
memset(amesys->yh,0,(AME_NBOF_SOLVER_STATES*13)*sizeof(double));
InitFixedStepIntegrate(amesys);
setfinaltime_(amesys->simOptions->tFinal);
/* Call Input to read submodel and simulation parameters. */
if(Input(amesys) != AME_NO_ERROR) return 0;
modelSetInitValues(amesys->pModel, amesys->states, amesys->discrete_states);
SetInitPrintIntervalFromSimOpts(amesys);
setstarttime_(start_time);
/* Call pre-initialize function */
PreInitialize(amesys,amesys->states);
#ifndef AME_INPUT_IN_MEMORY
if( NeedReloadInputFiles() != 0 )
{
ClearGPs();
if(Input(amesys) != AME_NO_ERROR) return 0;
modelSetInitValues(amesys->pModel, amesys->states, amesys->discrete_states);
ClearReloadedFiles();
}
#endif
/* Call initialize subroutine to set con and icon array members */
Initialize(amesys,amesys->states);
/* Overwriting initial state values with requests emitted by */
/* submodels that have a more global view (cf. register.c mechanism) */
/* Can also fire some callbacks to 'fix' float and integer store */
OverloadStatesWithRegister(amesys, amesys->states, SVREGISTER_DEFAULT);
#ifdef AME_RESULT_FILE
/* Open file for results. */
amesys->AmeReadFile(amesys, &start_time, amesys->states);
#endif
if(isconrun_() || isusefinval_())
{
updateStatesFromModel(amesys, amesys->states, AME_CONTINUOUS_STATE|AME_DISCRETE_STATE);
}
/* Set the locked states info */
ameSetUpLockedStatus(amesys);
if(isconrun_()) {
setstarttime_(start_time);
}
return 1;
}
#endif
/*=============================================================================*/
/*=============================================================================*/
/***********************************************************
Purpose : Test request acceptance
Author : J.Andre
Created on : 2016 - 09 - 05
Inputs :
event : entry event
Outputs :
AME_NO_ERROR : event accepted
AME_SEQUENCE_ERROR : event refused
Revision :
************************************************************/
static AMESystemError AmesysControlRequest(AMESIMSYSTEM *amesys, AMESystemCmd event)
{
AMESystemError res = AME_NO_ERROR;
if(!amesys) {
if(event == AME_CMD_GET_MODEL_INFO) {
return AME_NO_ERROR;
}
return AME_SEQUENCE_ERROR;
}
switch(event) {
case AME_CMD_RELEASE: {
if( !(amesys->systemState & (AMESTATE_TERMINATED | AMESTATE_FATAL | AMESTATE_INSTANTIATED)) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_SETUP: {
if( !(amesys->systemState & AMESTATE_INSTANTIATED) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_INITIALIZE: {
if(amesys->systemState != AMESTATE_READY) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_TERMINATE: {
if( !(amesys->systemState & (AMESTATE_RUN | AMESTATE_READY | AMESTATE_ERROR)) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_TSTART: {
if( !(amesys->systemState & AMESTATE_INITIALIZED) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_STEP: {
if( !(amesys->systemState & AMESTATE_RUNNING) ) {
res = AME_SEQUENCE_ERROR;
}
else {
amesys->systemState |= AMESTATE_STEP_IN_PROGRESS;
}
}
break;
case AME_CMD_RESTART: {
/* At this time, it is not still implemented */
/* Depends of clean-up in terminated state and static variables */
res = AME_SEQUENCE_ERROR;
}
break;
case AME_CMD_GET_MODEL_INFO: {
res = AME_NO_ERROR;
}
break;
case AME_CMD_SET_MODEL_PARAM_TUNABLE: {
if( !(amesys->systemState & (AMESTATE_READY | AMESTATE_RUN)) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_SET_MODEL_PARAM:
case AME_CMD_SET_RUN_PARAM:
case AME_CMD_SET_SOLVER_PARAM: {
if(amesys->systemState != AMESTATE_READY) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_GET_MODEL_PARAM:
case AME_CMD_GET_SOLVER_PARAM:
case AME_CMD_GET_RUN_PARAM: {
if( !(amesys->systemState & (AMESTATE_READY | AMESTATE_RUN | AMESTATE_ERROR)) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_REQ_RUN_INTERRUPT: {
if( !(amesys->systemState & (AMESTATE_INSTANTIATED | AMESTATE_READY | AMESTATE_INITIALIZED | AMESTATE_RUNNING)) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_SET_ENV: {
if( !(amesys->systemState & AMESTATE_INSTANTIATED) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
case AME_CMD_FUNCEVAL: {
if( !(amesys->systemState & AMESTATE_RUNNING) ) {
res = AME_SEQUENCE_ERROR;
}
}
break;
default:
res = AME_SEQUENCE_ERROR;
break;
}
return res;
}
/***********************************************************
Purpose : Update state and manage result of request
Author : J.Andre
Created on : 2016 - 09 - 05
Inputs :
event : entry event
reqResult : result of request achievement
Outputs :
AME_NO_ERROR : event accepted
AME_SEQUENCE_ERROR : event refused
Revision :
************************************************************/
static AMESystemError AmesysUpdateState(AMESIMSYSTEM *amesys, AMESystemCmd event, AMESystemError reqResult)
{
unsigned int newState;
AMESystemError res;
if(!amesys) {
return AME_SEQUENCE_ERROR;
}
newState = amesys->systemState; /* Default: no change in state */
res = reqResult; /* Default: no change in result */
switch(event) {
case AME_CMD_INSTANTIATE: {
if(reqResult != AME_NO_ERROR) {
newState = AMESTATE_FATAL;
}
else {
newState = AMESTATE_INSTANTIATED;
}
}
break;
case AME_CMD_SETUP: {
if(reqResult != AME_NO_ERROR) {
newState = AMESTATE_FATAL;
}
else {
newState = AMESTATE_READY;
}
}
break;
case AME_CMD_INITIALIZE: {
if(reqResult != AME_NO_ERROR) {
newState = AMESTATE_ERROR;
}
else {
newState = AMESTATE_INITIALIZED;
}
}
break;
case AME_CMD_TERMINATE: {
if(reqResult != AME_NO_ERROR) {
amesys->systemState = AMESTATE_TERMINATED; /* Avoid automatic call to ameterminate */
newState = AMESTATE_FATAL;
}
else {
newState = AMESTATE_TERMINATED;
}
}
break;
case AME_CMD_TSTART: {
if(reqResult != AME_NO_ERROR) {
newState = AMESTATE_ERROR;
}
else {
newState = AMESTATE_RUNNING;
}
}
break;
case AME_CMD_STEP: {
if(reqResult != AME_NO_ERROR) {
/* test ameExitStatus */
if(reqResult == AME_EXIT_ERROR) {
if(amesys->ameExitStatus == 0) {
/* Simulation stopped early but normally */
amesys->requestinterrupt = 0;
newState = AMESTATE_STOPPED_EARLY;
res = AME_NO_ERROR;
}
else
{
newState = AMESTATE_ERROR;
}
}
else {
newState = AMESTATE_ERROR;
}
}
else if(amesys->requestinterrupt) {
amesys->requestinterrupt = 0;
newState = AMESTATE_STOPPED_END;
}
newState &= ~AMESTATE_STEP_IN_PROGRESS;
}
break;
case AME_CMD_REQ_RUN_INTERRUPT:
break;
case AME_CMD_FUNCEVAL: {
if(reqResult != AME_NO_ERROR) {
/* test ameExitStatus */
if(reqResult == AME_EXIT_ERROR) {
if(amesys->ameExitStatus == 0) {
/* Simulation stopped early but normally */
newState = AMESTATE_STOPPED_EARLY;
res = AME_NO_ERROR;
}
else
{
newState = AMESTATE_ERROR;
}
}
else {
newState = AMESTATE_ERROR;
}
}
}
break;
default:
/* No state change, no exception to catch, just pass result */
break;
}
if(amesys->systemState != newState) {
if(newState == AMESTATE_FATAL) {
if(amesys->systemState & (AMESTATE_RUN | AMESTATE_READY | AMESTATE_ERROR)) {
/* Terminating the simulation */
ameTerminate(amesys);
}
}
#if !defined(STANDALONESIMULATOR)
if(newState & (AMESTATE_FATAL | AMESTATE_ERROR)) {
if(amesys->systemState & AMESTATE_RUN) {
amefprintf(stderr, "Simcenter Amesim model: simulation failed.\n");
}
else if(amesys->systemState & AMESTATE_IDLE) {
amefprintf(stderr, "Simcenter Amesim model: instantiation failed.\n");
}
else if(amesys->systemState & AMESTATE_READY) {
amefprintf(stderr, "Simcenter Amesim model: initialization failed.\n");
}
}
else if(newState & AMESTATE_INITIALIZED) {
amefprintf(stdout, "Simcenter Amesim model: initialization done.\n");
}
else if(newState & AMESTATE_TERMINATED) {
amefprintf(stdout, "Simcenter Amesim model: simulation terminated.\n");
}
else if((newState & AMESTATE_RUNNING) && (amesys->systemState & AMESTATE_INITIALIZED)) {
amefprintf(stdout, "Simcenter Amesim model: simulation started.\n");
}
#endif
/* Update state */
amesys->systemState = newState;
}
if(amesys->systemState == AMESTATE_FATAL) {
/* Greedy error */
res = AME_FATAL_ERROR;
}
return res;
}
/***********************************************************
Purpose : Instantiate the system
Author : J.Andre
Created on : 2016 - 09 - 08
Inputs : None
Outputs : Error code
Revision :
************************************************************/
static AMESystemError AmesysInstantiate(AMESIMSYSTEM **amesysPtr)
{
int jump_ret;
AMESIMSYSTEM *amesys;
AMESystemError result = AME_FATAL_ERROR;
S_AME_Model *pModel;
if(*amesysPtr != NULL) {
return AME_SEQUENCE_ERROR;
}
result = createModel(&pModel, &GmodelDef, GParamInfo, GVarInfo, GsubmodelNameArray,
GcontStateVarNum, GdiscStateVarNum, GFixedVarNum);
if(result == AME_NO_ERROR) {
#if(AME_MODEL_ISEXPLICIT == 1)
amefprintf(stdout, "Instantiating a system with %d unknowns.\n", AME_NBOF_EXPLICIT_STATE);
#else
amefprintf(stdout, "Instantiating a system with %d unknowns.\n", AME_NBOF_SOLVER_STATES);
#endif
if (strcmp(soldToId,"not available") != 0)
amefprintf(stdout, "Simcenter Amesim version: %s (%s).\n", "2404", soldToId);
else
amefprintf(stdout, "Simcenter Amesim version: %s.\n", "2404");
result = createAMESystem(&amesys, pModel, AME_NBOF_SOLVER_STATES, AMEVERSION);
}
#if (AME_NB_SUBMODEL_REF>0)
if(result == AME_NO_ERROR) {
int idx_sub;
for(idx_sub = 0; idx_sub < AME_NB_SUBMODEL_REF; idx_sub++) {
S_AMESubSimuInfo info;
info.rp = SUBSIMU[idx_sub][0][0] > 0 ? &pModel->realParamArray[SUBSIMU[idx_sub][0][1]] : NULL;
info.ip = SUBSIMU[idx_sub][1][0] > 0 ? &pModel->integerParamArray[SUBSIMU[idx_sub][1][1]] : NULL;
info.tp = (const char **)(SUBSIMU[idx_sub][2][0] > 0 ? &pModel->textParamArray[SUBSIMU[idx_sub][2][1]] : NULL);
info.c = SUBSIMU[idx_sub][3][0] > 0 ? &pModel->realStoreArray[SUBSIMU[idx_sub][3][1]] : NULL;
info.ic = SUBSIMU[idx_sub][4][0] > 0 ? &pModel->intStoreArray[SUBSIMU[idx_sub][4][1]] : NULL;
info.ps = SUBSIMU[idx_sub][5][0] > 0 ? &pModel->pointerStoreArray[SUBSIMU[idx_sub][5][1]] : NULL;
info.na = pModel->ptrNetWorkArray;
result |= setSubSimuParam(pModel, idx_sub, &info);
}
}
#endif
if(result == AME_NO_ERROR) {
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* ~try */
SetGlobalSystem(amesys);
#ifdef AME_INPUT_IN_MEMORY
amesys->getssflist = getssflist;
#endif
amesys->consflag = 0;
#if(AME_MODEL_ISEXPLICIT == 1)
amesys->FuncEval = localFuncEval;
amesys->JFuncEval = localJFuncEval;
#else
amesys->res = localFuncEval;
amesys->Jres = localJFuncEval;
#endif
amesys->AmeExit = ModelAmeExit;
amesys->ameExitStatus = 0;
/* Set input directory to current directory */
AmeSetInputDir(amesys,NULL);
/* Set output directory to current directory */
AmeSetOutputDir(amesys,NULL);
/* Set base name of input files, no extension */
AmeSetModelBaseName(amesys,"test_mql_4_", NULL);
result = AME_NO_ERROR;
}
else { /* Catch AmeExit */
result = AME_EXIT_ERROR;
}
}
if(result == AME_NO_ERROR) {
/* Update state and result */
result = AmesysUpdateState(amesys, AME_CMD_INSTANTIATE, result);
}
if(result != AME_NO_ERROR) {
deleteAMESystem(&amesys);
SetGlobalSystem(NULL);
}
else {
*amesysPtr = amesys;
}
return result;
}
static AMESystemError AmesysTerminate(AMESIMSYSTEM *amesys)
{
int jump_ret;
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_TERMINATE);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
if(res == AME_NO_ERROR) { /* Request accepted */
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* ~try */
ameTerminate(amesys);
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_TERMINATE, res);
return res;
}
static AMESystemError AmesysRelease(AMESIMSYSTEM **amesysPtr)
{
AMESystemError res = AME_NO_ERROR;
if(*amesysPtr) {
SetGlobalSystem(*amesysPtr);
res = AmesysControlRequest(*amesysPtr, AME_CMD_RELEASE);
if(res == AME_NO_ERROR) { /* Request accepted */
AmeSignalModelUnload();
res = deleteAMESystem(amesysPtr);
SetGlobalSystem(NULL);
}
}
return res;
}
/***********************************************************
Purpose : Go in Ready state to be able receive external
initialization of model and simulation
Author : J.Andre
Created on : 2016 - 09 - 08
Inputs : loadParam: if true, model parameters are read
Outputs : Error code
Revision :
************************************************************/
static AMESystemError AmesysSetUp(AMESIMSYSTEM *amesys, const int loadParam)
{
int jump_ret;
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SETUP);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* ~try */
amesys->ameExitStatus = 0;
/* Construct file names */
AmeConstructFileName(amesys);
/* Read sim file */
{
SIMOptions opts;
#ifndef AME_INPUT_IN_MEMORY
char errMsg[PATH_MAX+128];
int result = readsimfile(&opts, GetSimFileName(), errMsg);
#else
int result = readsimfromchararrays(&opts, simparams, simparams_length);
#endif
if(result != 0) {
/* Initialyze Amesystem SIMOptions */
memcpy(amesys->simOptions,&opts,sizeof(SIMOptions));
#ifdef AME_RESULT_FILE
amesys->simOptions->outoff = 0;
#else
amesys->simOptions->outoff = 1;
#endif
#ifdef AME_PERFORMANCE_ANALYZER
ALA_Setparam(opts.autoLA, 1, opts.autoLAstep);
DISCLOG_SetParam(1);
#endif
}
else {
res = AME_SETUP_ERROR;
}
}
if(loadParam) {
/* Load parameters */
loadModelParameters(amesys);
}
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_SETUP, res);
return res;
}
/***********************************************************
Purpose : Initialize the model
Author : J.Andre
Created on : 2016 - 09 - 08
Inputs : None
Outputs : Error code
Revision :
************************************************************/
static AMESystemError AmesysInitialize(AMESIMSYSTEM *amesys)
{
int jump_ret;
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_INITIALIZE);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* try */
if(amesys->simOptions->runType & 0x20) {
/* fixed step initialization */
#if(AME_MODEL_ISEXPLICIT == 1)
ameSetOptionsFixed(amesys, amesys->simOptions->tInc, amesys->simOptions->fixedType,
amesys->simOptions->fixedOrder, amesys->simOptions->fixedH, amesys->simOptions->runType);
if(!ameInitializeConditionsFixed(amesys)) {
res = AME_INITIALIZE_ERROR;
}
#else
amefprintf(stderr,"It is not possible to use a fixed step solver\nfor implicit systems.\n");
res = AME_INITIALIZE_ERROR;
#endif
}
else {
#ifdef AME_VSOLVER_ACCEPTED
/* variable step initialization */
ameSetOptions(amesys, amesys->simOptions->tInc, amesys->simOptions->hMax, amesys->simOptions->tol,
amesys->simOptions->errorType, amesys->simOptions->iWrite, amesys->simOptions->rStrtp,
amesys->simOptions->statistics, amesys->simOptions->runType, amesys->simOptions->solverType);
if(!ameInitializeConditions(amesys)) {
res = AME_INITIALIZE_ERROR;
}
#else
amefprintf(stderr,"It is not possible to use a variable step solver\nfor this interface.\n");
res = AME_INITIALIZE_ERROR;
#endif
}
#if defined(AME_MEMORY_ACCESS_RT_EXPORT)
#if (NB_WATCH_VAR>0)
RT_Get_Watch_Var(amesys);
#endif
#endif
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_INITIALIZE, res);
return res;
}
#if(AME_MODEL_ISEXPLICIT == 1)
static void doAFixedStep(AMESIMSYSTEM *amesys, double time)
{
double timerange;
double actual_timestep;
int stepratio;
int stepratio_ceil;
int stepratio_floor;
int i=0;
int zero=0;
double tinc;
int isTimeForPrint=0;
double next_print_time;
if (amesys->first_call)
{
SetIsPrinting(amesys);
amesys->FuncEval(amesys, amesys->tlast, amesys->states, amesys->yh, NULL, &zero);
ClearIsPrinting(amesys);
#if defined(AME_RESULT_FILE) && !defined(STANDALONESIMULATOR)
amesys->OutputResults(amesys, amesys->tlast);
amesys->resultFileStructPtr->lastprinttime = amesys->tlast;
#endif
}
timerange = time - amesys->tlast;
if(timerange <= 0.0)
{
return;
}
if(amesys->simOptions->fixedH > 0.0)
{
stepratio = stepratio_ceil = (int)ceil(timerange/amesys->simOptions->fixedH);
stepratio_floor = (int)floor(timerange/amesys->simOptions->fixedH);
actual_timestep = timerange/(double)stepratio_ceil;
if(fabs(actual_timestep-amesys->simOptions->fixedH) > 0.001*amesys->simOptions->fixedH)
{
if(stepratio_floor == 0)
{
#ifdef AMEDEBUG
amefprintf(stdout,"skipping %14.8e range= %14.8e actual_timestep=%14.8e stepratio_ceil=%d stepratio_floor=%d\n",time, timerange, actual_timestep, stepratio_ceil,stepratio_floor);
#endif
return;
}
#ifdef AMEDEBUGw
amefprintf(stdout,"using floor\n");
amefprintf(stdout,"timerange=%14.8e\n", timerange);
amefprintf(stdout,"actual_timestep=%14.8e\n", actual_timestep);
amefprintf(stdout,"amesys->simOptions->fixedH=%14.8e\n", amesys->simOptions->fixedH);
amefprintf(stdout,"fabs(actual_timestep-amesys->simOptions->fixedH)=%14.8e\n", fabs(actual_timestep-amesys->simOptions->fixedH));
amefprintf(stdout,"stepratio_floor=%d\n", stepratio_floor);
amefprintf(stdout,"stepratio_ceil=%d\n", stepratio_ceil);
#endif
actual_timestep = timerange/(double)stepratio_floor;
stepratio = stepratio_floor;
}
if(fabs(actual_timestep-amesys->simOptions->fixedH) > 0.001*amesys->simOptions->fixedH)
{
#ifdef AMEDEBUGw
amefprintf(stdout,"Adjusting time step %14.8e => %14.8e\n", amesys->simOptions->fixedH, actual_timestep);
amefprintf(stdout,"stepratio_floor=%d\n", stepratio_floor);
amefprintf(stdout,"stepratio_ceil=%d\n", stepratio_ceil);
amefprintf(stdout,"stepratio=%d\n", stepratio);
amefprintf(stdout,"timerange=%14.8e\n", timerange);
#endif
}
}
else
{
/* just single step from the last point in time when we were called */
stepratio=1;
actual_timestep = timerange;
}
#if defined(AME_RESULT_FILE) && !defined(STANDALONESIMULATOR)
if(amesys->resultFileStructPtr && !amesys->resultFileStructPtr->outoff)
{
next_print_time = GetNextPrintTime(&tinc, amesys->resultFileStructPtr->lastprinttime, amesys->simOptions->tFinal, amesys->simOptions->tInc, actual_timestep);
}
#endif
#ifdef AMERT
/* Allow changes of the stepratio - typically on RT platforms. */
{
double localstepratio=floor(IL_test_mql_4_step_ratio);
if (localstepratio >= 1)
{
actual_timestep=timerange/localstepratio;
stepratio = (int)localstepratio;
}
}
#endif
#ifdef STANDALONESIMULATOR
FixedStepIntegrate(amesys,AME_NBOF_SOLVER_STATES,amesys->tlast,time,amesys->simOptions->tInc,amesys->states,
amesys->yh,amesys->simOptions->fixedType,amesys->simOptions->fixedOrder,actual_timestep);
#else
for (i=0; (i<stepratio) && (amesys->requestinterrupt == 0);i++)
{
/*Integrate one step */
if ( amesys->simOptions->fixedType == 1)
{
DoAnABStep(amesys, amesys->numstates, amesys->simOptions->fixedOrder, &amesys->tlast, actual_timestep, amesys->states, amesys->yh);
}
else
{
DoAnRKStep(amesys, amesys->numstates, amesys->simOptions->fixedOrder, &amesys->tlast, actual_timestep, amesys->states, amesys->yh);
}
#ifndef AMERT
isTimeForPrint = amesys->resultFileStructPtr && (!amesys->resultFileStructPtr->outoff && ((amesys->tlast >= next_print_time) || ((next_print_time-amesys->tlast)/tinc < TIME_ROUNDOFF)));
if(isTimeForPrint)
{
#ifdef AME_PROCESS_TIME
ProcessTime(1);
#endif
SetIsPrinting(amesys);
amesys->FuncEval(amesys, amesys->tlast, amesys->states, amesys->yh, NULL, &zero);
ClearIsPrinting(amesys);
amesys->OutputResults(amesys,amesys->tlast);
next_print_time = GetNextPrintTime(&tinc, amesys->tlast, amesys->simOptions->tFinal, amesys->simOptions->tInc, actual_timestep);
}
else
#endif
{
amesys->FuncEval(amesys, amesys->tlast, amesys->states, amesys->yh, NULL, &zero);
}
}
#endif
amesys->tlast = time;
}
#endif
static int ameOutputs(AMESIMSYSTEM *amesys, double timeARG, int numOutputs, double *outputARG)
{
int theprintflag=1;
double *dot;
double *v;
assert(amesys);
v = amesys->v;
dot = amesys->dotstates;
if(numOutputs != amesys->numoutputs)
{
char error_message[256];
sprintf(error_message, "AMEOutputs> Expected %d outputs but got %d\n", amesys->numoutputs, numOutputs);
DisplayMessage(error_message);
AmeExit(1);
}
if (!isdynrun_())
{
/* it is not a dynamic run (neither dynamic nor stabilizing + dynamic) */
/* stabilizing has already been processed during Init.*/
/*Exit */
return 1;
}
if(timeARG < amesys->tlast)
{
DisplayMessage("trying to integrate backwards\n");
return 0;
}
#if(AME_MODEL_ISEXPLICIT == 1)
amesys->t_end_of_time_slice = timeARG;
#ifndef AMERT
if(!isfixedstepsolver_())
{
if(!IntegrateStep(amesys, amesys->tlast, timeARG))
{
DisplayMessage("IntegrateStep failed");
return 0;
}
amesys->tlast = timeARG;
}
else
{
doAFixedStep(amesys, timeARG);
}
#else
doAFixedStep(amesys, timeARG);
#endif
#else
if(!DIntegrateStep(amesys, AME_NBOF_EXPLICIT_STATE, amesys->tlast, timeARG, amesys->simOptions->tInc, amesys->states,
amesys->dotstates, amesys->simOptions->hMax, AME_NBOF_SOLVER_STATES, amesys->iwork, amesys->simOptions->reltol,
amesys->simOptions->abstol, amesys->simOptions->rStrtp, LIW, LRW, amesys->simOptions->statistics,
amesys->simOptions->stabilOption, amesys->simOptions->iWrite, amesys->simOptions->minimalDiscont,
amesys->internal_discont, Gis_constraint, &amesys->requestinterrupt))
{
DisplayMessage("DIntegrateStep failed");
return 0;
}
amesys->tlast = timeARG;
#endif
#if (AME_NBOF_OUTPUTS > 0)
memcpy(outputARG, amesys->outputs, amesys->numoutputs*sizeof(double) );
#endif
return 1;
}
static AMESystemError AmesysComputeAtTstart(AMESIMSYSTEM *amesys, const double *theInputs, double *theOutputs)
{
int jump_ret;
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_TSTART);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* try */
if(amesys->simOptions->runType & 0x20) {
/* fixed step solver */
#if(AME_MODEL_ISEXPLICIT == 1)
if(!ameEvalTstartFixed(amesys, theInputs, theOutputs)) {
res = AME_INITIALIZE_ERROR;
}
#else
amefprintf(stderr,"It is not possible to use a fixed step solver\nfor implicit systems.\n");
res = AME_INITIALIZE_ERROR;
#endif
}
else {
/* variable step solver */
if(!ameEvalTstart(amesys, theInputs, theOutputs)) {
res = AME_INITIALIZE_ERROR;
}
}
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_TSTART, res);
return res;
}
/***********************************************************
Purpose : Do a co-simulation step
Author : J.Andre
Created on : 2016 - 09 - 12
Inputs : None
Outputs : Error code
Revision :
************************************************************/
static AMESystemError AmesysStep(AMESIMSYSTEM *amesys, int stepType, const double t, const double *theInputs, double *theOutputs,
const int doInterpol, const unsigned int *orderTab, const double **polyTab, const E_CS_Reset cs_reset)
{
int jump_ret;
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_STEP);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* try */
#if defined(AME_MEMORY_ACCESS_RT_EXPORT)
#if (NB_WATCH_REAL_PARAM>0) || (NB_WATCH_INT_PARAM>0)
RT_Set_Watch_Param(amesys);
#endif
#endif
#if defined(AME_COSIM) && (AME_NBOF_INPUTS > 0) && (!defined(AMERT))
amesys->doInterpol = doInterpol;
if(amesys->doInterpol) {
stepType = 1;
res = setPolyCosimSlave(amesys->csSlave, orderTab, polyTab);
}
else {
res = setPolyCosimSlaveByInputs(amesys->csSlave, theInputs);
}
#else
amesys->doInterpol = 0;
#endif
if(res == AME_NO_ERROR) {
if(stepType == 0) { /* Do a step */
if(!ameOutputs(amesys, t, AME_NBOF_OUTPUTS, theOutputs)) {
res = AME_STEP_ERROR;
}
#ifndef AMERT
amesys->input_discont = CheckIfColdStartNeed(amesys, theInputs, cs_reset);
/* Need to do something here if no internal disc and disc printout */
AddExtraPrintOut(amesys, amesys->tlast);
#endif
if(amesys->doInterpol == 0) {
if(!ameInputs(amesys, AME_NBOF_INPUTS, theInputs)) {
res = AME_STEP_ERROR;
}
}
}
else { /* Do a step 2 */
#ifndef AMERT
amesys->input_discont = CheckIfColdStartNeed(amesys, theInputs, cs_reset);
/* Need to do something here if no internal disc and disc printout */
res |= changePolynomialSlot(amesys->csSlave);
AddExtraPrintOut(amesys, amesys->tlast);
res |= changePolynomialSlot(amesys->csSlave);
#endif
if(amesys->doInterpol == 0) {
if(!ameInputs(amesys, AME_NBOF_INPUTS, theInputs)) {
res = AME_STEP_ERROR;
}
}
if(!ameOutputs(amesys, t, AME_NBOF_OUTPUTS, theOutputs)) {
res = AME_STEP_ERROR;
}
#ifndef AMERT
if(amesys->doInterpol != 0) {
if( getInputsCosimSlave(amesys->csSlave, t, amesys->inputs) != AME_NO_ERROR ) {
res = AME_STEP_ERROR;
}
}
#endif
}
amesys->num_steps_taken++;
#ifndef AMERT
res |= changePolynomialSlot(amesys->csSlave);
res |= setTciCosimSlave(amesys->csSlave, t);
#endif
}
#if defined(AME_MEMORY_ACCESS_RT_EXPORT)
#if (NB_WATCH_VAR>0)
RT_Get_Watch_Var(amesys);
#endif
#endif
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_STEP, res);
return res;
}
/***********************************************************
Purpose : Set solver parameters
Author : J.Andre
Created on : 2016 - 09 - 09
Inputs : None
Outputs :
Revision :
************************************************************/
static AMESystemError AmesysSetSolverParam(AMESIMSYSTEM *amesys, const solverSettings *solver)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_SOLVER_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialyze Amesystem solver parameters */
simOptSetSolverParam(amesys->simOptions,solver);
}
return res;
}
/***********************************************************
Purpose : Get solver parameters
Author : J.Andre
Created on : 2016 - 09 - 09
Inputs : None
Outputs :
Revision :
************************************************************/
static AMESystemError AmesysGetSolverParam(AMESIMSYSTEM *amesys, solverSettings *solver)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_SOLVER_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialyze Amesystem solver parameters */
simOptGetSolverParam(amesys->simOptions, solver);
}
return res;
}
/***********************************************************
Purpose : Set run parameters
Author : J.Andre
Created on : 2016 - 09 - 09
Inputs : None
Outputs :
Revision :
************************************************************/
static AMESystemError AmesysSetSimParam(AMESIMSYSTEM *amesys, const simSettings *simOpt)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialyze Simulation parameters */
simOptSetSimParam(amesys->simOptions,simOpt);
}
return res;
}
static AMESystemError AmesysGetSimParam(AMESIMSYSTEM *amesys, simSettings *simOpt)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Get Simulation parameters */
simOptGetSimParam(amesys->simOptions, simOpt);
}
return res;
}
static AMESystemError AmesysSetSimItem(AMESIMSYSTEM *amesys, const int Id, const int enabled)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialyze Amesystem solver parameters */
if(simOptSetOneOfSimParam(amesys->simOptions, Id, enabled) != 0) {
res = AME_SETTINGS_ERROR;
}
}
return res;
}
static AMESystemError AmesysGetSimItem(AMESIMSYSTEM *amesys, const int Id, int *enabled)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialyze Amesystem solver parameters */
if(simOptGetOneOfSimParam(amesys->simOptions, Id, enabled) != 0) {
res = AME_SETTINGS_ERROR;
}
}
return res;
}
/***********************************************************
Purpose : Set run parameters
Author : J.Andre
Created on : 2016 - 09 - 09
Inputs : None
Outputs :
Revision :
************************************************************/
static AMESystemError AmesysSetStdOptions(AMESIMSYSTEM *amesys, const stdOptions *stdOpt)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialize standard parameters */
simOptSetStdParam(amesys->simOptions,stdOpt);
}
return res;
}
static AMESystemError AmesysGetStdOptions(AMESIMSYSTEM *amesys, stdOptions *stdOpt)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Get standard parameter */
simOptGetStdParam(amesys->simOptions, stdOpt);
}
return res;
}
static AMESystemError AmesysSetStdItem(AMESIMSYSTEM *amesys, const int Id, const int enabled)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialize standard parameter */
if(simOptSetOneOfStdParam(amesys->simOptions, Id, enabled) != 0) {
res = AME_SETTINGS_ERROR;
}
}
return res;
}
static AMESystemError AmesysGetStdItem(AMESIMSYSTEM *amesys, const int Id, int *enabled)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialize standard parameter */
if(simOptGetOneOfStdParam(amesys->simOptions, Id, enabled) != 0) {
res = AME_SETTINGS_ERROR;
}
}
return res;
}
static AMESystemError AmesysSetALAParam(AMESIMSYSTEM *amesys, const autoLAOptions *alaOpt)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Initialize standard parameters */
simOptSetAlaParam(amesys->simOptions, alaOpt);
}
return res;
}
static AMESystemError AmesysGetALAParam(AMESIMSYSTEM *amesys, autoLAOptions *alaOpt)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
/* Get standard parameter */
simOptGetAlaParam(amesys->simOptions, alaOpt);
}
return res;
}
/***********************************************************
Purpose : Turn off/on results
Author : J.Andre
Created on : 2016 - 09 - 09
Inputs :
outoff : 0 : result file off
1 : result file on
Outputs :
Revision :
************************************************************/
static AMESystemError AmesysEnableResult(AMESIMSYSTEM *amesys, const int out)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
if(out) {
amesys->simOptions->outoff = 0;
}
else {
amesys->simOptions->outoff = 1;
}
}
return res;
}
/***********************************************************
Purpose : Return the state of Amesystem
Author : J.Andre
Created : 2016 - 09 - 05
Inputs : None
Outputs :
state : machine state
Revision :
************************************************************/
static unsigned int AmesysGetState(AMESIMSYSTEM *amesys)
{
if(amesys) {
return amesys->systemState;
}
else {
return AMESTATE_IDLE;
}
}
static AMESystemError AmesysGetModelInfo(unsigned int *numinputs, unsigned int *numoutputs, unsigned int *numstates, unsigned int *numimplicits)
{
*numinputs = AME_NBOF_INPUTS;
*numoutputs = AME_NBOF_OUTPUTS;
*numstates = AME_NBOF_EXPLICIT_STATE;
*numimplicits = AME_NBOF_IMPLICIT_STATE;
return AME_NO_ERROR;
}
static AMESystemError AmesysGetModelPortName(const char **inputName[], const char **outputName[])
{
*inputName = GinputVarTitles;
*outputName = GoutputVarTitles;
return AME_NO_ERROR;
}
static AMESystemError AmesysGetModelNumParam(unsigned int *numParam)
{
*numParam = AME_NBOF_PARAMS;
return AME_NO_ERROR;
}
static AMESystemError AmesysGetParamType(const int nbParam, const int idx[], E_ParamCType paramType[])
{
AMESystemError res = AME_NO_ERROR;
int i;
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
if(i < AME_NBOF_PARAMS) {
switch(GParamInfo[idx[i]].category) {
case E_Int_Param:
paramType[i] = E_CType_IntParam;
break;
case E_Text_Param:
paramType[i] = E_CType_StringParam;
break;
default:
paramType[i] = E_CType_DoubleParam;
break;
}
return AME_NO_ERROR;
}
else {
res = AME_PARAM_IDX_ERROR;
}
}
return res;
}
static AMESystemError AmesysFindParamFromVar(const int nbParam, const int varIdx[], int paramIdx[], E_ParamCategory category[])
{
AMESystemError res = AME_NO_ERROR;
int idx, i;
for(idx = 0; (idx < nbParam) && (res == AME_NO_ERROR); idx++) {
res = AME_PARAM_IDX_ERROR;
for(i = 0; i < AME_NBOF_PARAMS; i++) {
if(GParamInfo[i].varIdx == varIdx[idx]) {
paramIdx[idx] = i;
category[idx] = GParamInfo[i].category;
res = AME_NO_ERROR;
}
}
}
return res;
}
static AMESystemError AmesysGetIntParamValue(AMESIMSYSTEM *amesys, const int nbParam, const int idx[], int value[])
{
AMESystemError res;
int i;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_MODEL_PARAM);
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
res = getIntParameter(amesys->pModel, idx[i], &value[i]);
}
return res;
}
static AMESystemError AmesysGetDoubleParamValue(AMESIMSYSTEM *amesys, const int nbParam, const int idx[], double value[])
{
AMESystemError res;
int i;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_MODEL_PARAM);
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
res = getDoubleParameter(amesys->pModel, idx[i], &value[i]);
}
return res;
}
static AMESystemError AmesysGetStringParamValue(AMESIMSYSTEM *amesys, const int nbParam, const int idx[], const char* value[])
{
AMESystemError res;
int i;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_MODEL_PARAM);
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
res = getStringParameter(amesys->pModel, idx[i], &value[i]);
}
return res;
}
static AMESystemError AmesysSetIntParamValue(AMESIMSYSTEM *amesys, const int nbParam, const int idx[], const int value[])
{
AMESystemError res;
int i;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM_TUNABLE);
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
int isTunable;
res = isParamTunable(amesys->pModel, idx[i], &isTunable);
if(res == AME_NO_ERROR) {
if(isTunable) {
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM_TUNABLE);
}
else {
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM);
}
}
if(res == AME_NO_ERROR) {
res = setIntParameter(amesys->pModel, idx[i], value[i]);
}
if(res == AME_NO_ERROR) {
SignalInputChange();
res = setParamAsUserDefined(amesys->pModel, idx[i]);
}
}
return res;
}
static AMESystemError AmesysSetDoubleParamValue(AMESIMSYSTEM *amesys, const int nbParam, const int idx[], const double value[])
{
AMESystemError res;
int i;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM_TUNABLE);
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
int isTunable;
res = isParamTunable(amesys->pModel, idx[i], &isTunable);
if(res == AME_NO_ERROR) {
if(isTunable) {
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM_TUNABLE);
}
else {
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM);
}
}
if(res == AME_NO_ERROR) {
res = setDoubleParameter(amesys->pModel, idx[i], value[i]);
}
if(res == AME_NO_ERROR) {
SignalInputChange();
res = setParamAsUserDefined(amesys->pModel, idx[i]);
}
}
return res;
}
static AMESystemError AmesysSetStringParamValue(AMESIMSYSTEM *amesys, const int nbParam, const int idx[], const char* value[])
{
AMESystemError res;
int i;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM_TUNABLE);
for(i = 0; (i < nbParam) && (res == AME_NO_ERROR); i++) {
int isTunable;
res = isParamTunable(amesys->pModel, idx[i], &isTunable);
if(res == AME_NO_ERROR) {
if(isTunable) {
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM_TUNABLE);
}
else {
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM);
}
}
if(res == AME_NO_ERROR) {
res = setStringParameter(amesys->pModel,idx[i], value[i]);
}
if(res == AME_NO_ERROR) {
res = setParamAsUserDefined(amesys->pModel, idx[i]);
}
}
return res;
}
static AMESystemError AmesysGetDoubleGlobalParamValue(AMESIMSYSTEM *amesys, const int nbParam, const char* name[], double value[])
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_MODEL_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
int i;
for(i = 0; i<nbParam; i++) {
if(getGlobalParamValueByName(name[i], &value[i]) != no_error) {
res = AME_GLOBAL_PARAMETER_ERROR;
break;
}
}
}
return res;
}
static AMESystemError AmesysGetStringGlobalParamValue(AMESIMSYSTEM *amesys, const int nbParam, const char* name[], const char* value[])
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_GET_MODEL_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
int i;
for(i = 0; i<nbParam; i++) {
if(getTextGlobalParamValueByName(name[i], &value[i]) != no_error) {
res = AME_GLOBAL_PARAMETER_ERROR;
break;
}
}
}
return res;
}
static AMESystemError AmesysSetIntGlobalParamValue(AMESIMSYSTEM *amesys, const int nbParam, const char* name[], const int value[])
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
int i;
for(i = 0; i<nbParam; i++) {
if(ChangeOrAddIntGlobalParamValue(name[i], value[i], 1) != AME_NO_ERROR) {
res = AME_GLOBAL_PARAMETER_ERROR;
break;
}
}
}
return res;
}
static AMESystemError AmesysSetDoubleGlobalParamValue(AMESIMSYSTEM *amesys, const int nbParam, const char* name[], const double value[])
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
int i;
for(i = 0; i<nbParam; i++) {
if(ChangeOrAddRealGlobalParamValue(name[i], value[i], 1) != AME_NO_ERROR) {
res = AME_GLOBAL_PARAMETER_ERROR;
break;
}
}
}
return res;
}
static AMESystemError AmesysSetStringGlobalParamValue(AMESIMSYSTEM *amesys, const int nbParam, const char* name[], const char* value[])
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_MODEL_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
int i;
for(i = 0; i<nbParam; i++) {
if(ChangeOrAddTextGlobalParamValue(name[i], value[i], 1) != AME_NO_ERROR) {
res = AME_GLOBAL_PARAMETER_ERROR;
break;
}
}
}
return res;
}
static AMESystemError AmesysRequestRunInterrupt(AMESIMSYSTEM *amesys)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_REQ_RUN_INTERRUPT);
if(res == AME_NO_ERROR) { /* Request accepted */
amesys->requestinterrupt = 1;
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_REQ_RUN_INTERRUPT, res);
}
return res;
}
static AMESystemError AmesysSetFinalTime(AMESIMSYSTEM *amesys, const double finaltime)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
amesys->simOptions->tFinal = finaltime;
}
return res;
}
static AMESystemError AmesysSetInitTime(AMESIMSYSTEM *amesys, const double inittime)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
amesys->simOptions->tStart = inittime;
}
return res;
}
static AMESystemError AmesysSetPrintInterval(AMESIMSYSTEM *amesys, const double tInc)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
amesys->simOptions->tInc = tInc;
}
return res;
}
static AMESystemError AmesysSetLogger( int (*newameInternalfprintf)(FILE *fp, const char *fmt, va_list ap) )
{
ameInstallFprintf(newameInternalfprintf);
return AME_NO_ERROR;
}
static AMESystemError AmesysSetInputDir(AMESIMSYSTEM *amesys, const char *inputDir)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_ENV);
if(res == AME_NO_ERROR) { /* Request accepted */
AmeSetInputDir(amesys, inputDir);
}
return res;
}
static AMESystemError AmesysSetOutputDir(AMESIMSYSTEM *amesys, const char *outputDir)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_ENV);
if(res == AME_NO_ERROR) { /* Request accepted */
AmeSetOutputDir(amesys, outputDir);
}
return res;
}
static AMESystemError AmesysSetBaseFilesName(AMESIMSYSTEM *amesys, const char *baseName, const char* extension)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_ENV);
if(res == AME_NO_ERROR) { /* Request accepted */
AmeSetModelBaseName(amesys, baseName, extension);
}
return res;
}
static AMESystemError AmesysSetResultFilesName(AMESIMSYSTEM *amesys, const char *outName)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_ENV);
if(res == AME_NO_ERROR) { /* Request accepted */
AmeSetResultFileName(amesys, outName);
}
return res;
}
/* To ensure compliancy with old template and entry points */
static AMESystemError AmesysSetParamAsInitModel(AMESIMSYSTEM *amesys,
double time,
double PrintInterval,
double MaxTimeStep,
double tolerance,
int errCtrl,
int writeLevel,
int extraDisconPrints,
int runStats,
int runType,
int thesolvertype)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
res |= AmesysControlRequest(amesys, AME_CMD_SET_SOLVER_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
SIMOptions *sim_options = amesys->simOptions;
solverSettings solver;
simSettings sim;
stdOptions std;
solver.integType = 0; /* Variable solver */
solver.variable.hMax = MaxTimeStep;
solver.variable.tol = tolerance;
solver.variable.errorType = errCtrl;
simOptSetSolverParam(amesys->simOptions, &solver);
sim.tStart = time;
sim.tFinal = amesys->simOptions->tFinal;
sim.simOpt = 0;
if(runType & 0x01) {
sim.simOpt |= SIMOPT_SIM_CONTINUATION_RUN;
}
if(runType & 0x02) {
sim.simOpt |= SIMOPT_SIM_USE_FINAL_VALUES;
}
if(writeLevel != 2) {
sim.simOpt |= SIMOPT_SIM_MONITOR_TIME;
}
if(runStats) {
sim.simOpt |= SIMOPT_SIM_STATISTICS;
}
if(PrintInterval <= 0) {
sim.tInc = -PrintInterval;
amesys->simOptions->outoff = 1;
}
else {
sim.tInc = PrintInterval;
amesys->simOptions->outoff = 0;
}
simOptSetSimParam(amesys->simOptions, &sim);
std.simMode = ((runType & 0x0c) >> 2);
std.stdOpt = 0;
if(extraDisconPrints) {
std.stdOpt |= SIMOPT_STD_DISC_PRINTOUT;
}
if(runType & 0x10) {
std.stdOpt |= SIMOPT_STD_HOLD_INPUTS;
}
if(amesys->simOptions->stabilOption & 0x01) {
std.stdOpt |= SIMOPT_STD_LOCK_STATES;
}
if(amesys->simOptions->stabilOption & 0x02) {
std.stdOpt |= SIMOPT_STD_DIAGNOSTICS;
}
if(thesolvertype) {
std.stdOpt |= SIMOPT_STD_CAUTIOUS;
}
if(amesys->simOptions->minimalDiscont) {
std.stdOpt |= SIMOPT_STD_MIN_DISC_HANDLING;
}
if(runType & 0x100) {
std.stdOpt |= SIMOPT_STD_DISABLE_OPTIMAZED;
}
if(sim_options->activityIndex & 0x01) {
std.stdOpt |= SIMOPT_STD_ACTIVITY;
}
if(sim_options->activityIndex & 0x02) {
std.stdOpt |= SIMOPT_STD_POWER;
}
if(sim_options->activityIndex & 0x04) {
std.stdOpt |= SIMOPT_STD_ENERGY;
}
simOptSetStdParam(amesys->simOptions, &std);
}
return res;
}
/* To ensure compliancy with old template and entry points */
static AMESystemError AmesysSetParamAsFixedStep(AMESIMSYSTEM *amesys,
double start_time, int run_type, int solver_type,
int runge_kutta_order, double fixed_h, double printinterval)
{
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_SET_RUN_PARAM);
res |= AmesysControlRequest(amesys, AME_CMD_SET_SOLVER_PARAM);
if(res == AME_NO_ERROR) { /* Request accepted */
solverSettings solver;
res = AME_NO_ERROR;
solver.integType = 1; /* Fixed solver */
solver.fixed.fixedH = fixed_h;
solver.fixed.fixedOrder = runge_kutta_order;
solver.fixed.fixedType = solver_type;
simOptSetSolverParam(amesys->simOptions, &solver);
amesys->simOptions->tStart = start_time;
if(printinterval <= 0) {
amesys->simOptions->outoff = 1;
amesys->simOptions->tInc = -printinterval;
}
else {
amesys->simOptions->outoff = 0;
amesys->simOptions->tInc = printinterval;
}
simOptSetOneOfSimParam(amesys->simOptions, SIMOPT_SIM_CONTINUATION_RUN, run_type & 0x01);
simOptSetOneOfSimParam(amesys->simOptions, SIMOPT_SIM_USE_FINAL_VALUES, (run_type & 0x02)>>1);
}
return res;
}
#ifndef AME_COSIM
static AMESystemError AmesysInitME(AMESIMSYSTEM *amesys, int withAssembly)
{
AMESystemError res = AME_NO_ERROR;
int jump_ret;
res = AmesysControlRequest(amesys, AME_CMD_INITIALIZE);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
/* Load parameters */
res = Input(amesys);
/* Set initial values */
modelSetInitValues(amesys->pModel, amesys->states, amesys->discrete_states);
if(res == AME_NO_ERROR) {
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* try */
setstarttime_(amesys->simOptions->tStart);
setfinaltime_(amesys->simOptions->tFinal);
amesys->first_call = 1; /* should this be done or not ?*/
amesys->internal_discont = 1;
amesys->tlast = TLAST_MIN;
memset(amesys->ecount,0,amesys->numstates*sizeof(int));
memset(amesys->dotstates,0,amesys->numstates*sizeof(double));
PreInitialize(amesys,amesys->states);
#ifndef AME_INPUT_IN_MEMORY
if( NeedReloadInputFiles() != 0 )
{
ClearGPs();
Input(amesys);
/* Set initial values */
modelSetInitValues(amesys->pModel, amesys->states, amesys->discrete_states);
ClearReloadedFiles();
}
#endif
Initialize(amesys,amesys->states);
OverloadStatesWithRegister(amesys, amesys->states, SVREGISTER_DEFAULT);
if(withAssembly) {
doAssembly(amesys);
}
amesys->tlast = getstarttime_();
#ifdef AME_PROCESS_TIME
/* Initialization of time timers */
ProcessTime(0);
#endif
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_INITIALIZE, res);
if(res == AME_NO_ERROR) {
/* Go in Run state: simulate acknowledgment of evaluation at t start command */
res = AmesysUpdateState(amesys, AME_CMD_TSTART, res);
#if defined(AME_MEMORY_ACCESS_RT_EXPORT)
#if (NB_WATCH_VAR>0)
RT_Get_Watch_Var(amesys);
#endif
#endif
}
return res;
}
static AMESystemError AmesysFuncEvalME(AMESIMSYSTEM *amesys, double t, double *y, double *yprime, double *delta, int *flag)
{
int jump_ret;
AMESystemError res;
SetGlobalSystem(amesys);
res = AmesysControlRequest(amesys, AME_CMD_FUNCEVAL);
if(res != AME_NO_ERROR) {
/* Request not accepted */
return res;
}
if( (jump_ret = setjmp(amesys->jump_env)) == 0) { /* try */
amesys->doInterpol = 0;
localFuncEval(amesys, t, y, yprime, delta, flag);
}
else { /* Catch AmeExit */
res = AME_EXIT_ERROR;
}
/* Update state and result */
res = AmesysUpdateState(amesys, AME_CMD_FUNCEVAL, res);
return res;
}
#endif
/****************************/
#define SYSNME test_mql_4_
#if defined(STANDALONESIMULATOR) || defined(OLS)
#include "ame_standalone_simulator.h"
#elif defined(FMICS1)
#include "ame_fmics1.h"
#elif defined(FMICS2)
#include "ame_fmics2.h"
#elif defined(FMICS3)
#include "ame_fmics3.h"
#elif defined(FMIME1) || defined(FMIME2)
#if(AME_MODEL_ISEXPLICIT == 0)
#error "FMI for model exchange is not allowed for implicit model."
#elif defined(AMERT)
#error "FMU for real-time is not allowed for model exchange."
#elif defined(FMIME1)
#include "ame_fmime1.h"
#else
#include "ame_fmime2.h"
#endif
#elif defined(FMIX)
#include "ame_user_cosim.h"
#elif defined(AMEUSERCOSIM)
#include "ame_user_cosim.h"
#elif defined(AME_CS_SIMULINK)
#include "ame_simulink_cosim.h"
#elif defined(AME_ME_SIMULINK)
#include "ame_simulink_me.h"
#elif defined(AME_CS_ADAMS)
#include "ame_adams_cosim.h"
#elif defined(AME_ME_ADAMS)
#include "adams_cont.h"
#elif defined(AME_CS_MOTION)
#include "ame_motion_cosim.h"
#elif defined(AME_ME_MOTION)
#include "ame_motion_me.h"
#elif defined(DISCRETEPART)
#include "ame_discrete_part.h"
#elif defined(GEN_COSIM)
#include "gen_cosim.h"
#elif defined(AME_CS_SIMULINK_SCANER)
#include "ame_simulink_scaner.h"
#else
#error "Unknown interface defined. Cannot generate Amesim model code."
#endif