Generated Code

The following is c_ida code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

/*
   There are a total of 12 entries in the algebraic variable array.
   There are a total of 1 entries in each of the rate and state variable arrays.
   There are a total of 557 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is VP in component input_values (litre).
 * CONSTANTS[1] is A1K in component parameter_values (minute).
 * CONSTANTS[2] is A2K in component parameter_values (minute).
 * CONSTANTS[3] is A3K in component parameter_values (minute).
 * CONSTANTS[4] is A4K in component parameter_values (minute).
 * CONSTANTS[5] is A4K2 in component parameter_values (minute).
 * CONSTANTS[6] is AARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[7] is AARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[8] is ADHINF in component parameter_values (dimensionless).
 * CONSTANTS[9] is ADHKLL in component parameter_values (dimensionless).
 * CONSTANTS[10] is ADHKUL in component parameter_values (dimensionless).
 * CONSTANTS[11] is ADHPAM in component parameter_values (per_mmHg2).
 * CONSTANTS[12] is ADHPUL in component parameter_values (mmHg).
 * CONSTANTS[13] is ADHTC in component parameter_values (minute).
 * CONSTANTS[14] is ADHVLL in component parameter_values (dimensionless).
 * CONSTANTS[15] is ADHVUL in component parameter_values (dimensionless).
 * CONSTANTS[16] is AH10 in component parameter_values (dimensionless).
 * CONSTANTS[17] is AH11 in component parameter_values (minute).
 * CONSTANTS[18] is AH9 in component parameter_values (per_mmHg).
 * CONSTANTS[19] is AHMNAR in component parameter_values (dimensionless).
 * CONSTANTS[20] is AHTHM in component parameter_values (dimensionless).
 * CONSTANTS[21] is ALCLK in component parameter_values (dimensionless).
 * CONSTANTS[22] is ALDINF in component parameter_values (dimensionless).
 * CONSTANTS[23] is ALDKNS in component parameter_values (dimensionless).
 * CONSTANTS[24] is ALDMM in component parameter_values (dimensionless).
 * CONSTANTS[25] is AM1LL in component parameter_values (dimensionless).
 * CONSTANTS[26] is AM1UL in component parameter_values (dimensionless).
 * CONSTANTS[27] is AMCSNS in component parameter_values (dimensionless).
 * CONSTANTS[28] is AMKM in component parameter_values (dimensionless).
 * CONSTANTS[29] is AMKMUL in component parameter_values (dimensionless).
 * CONSTANTS[30] is AMM1LM in component parameter_values (dimensionless).
 * CONSTANTS[31] is AMM4 in component parameter_values (dimensionless).
 * CONSTANTS[32] is AMNALL in component parameter_values (dimensionless).
 * CONSTANTS[33] is AMNAM in component parameter_values (dimensionless).
 * CONSTANTS[34] is AMNAUL in component parameter_values (dimensionless).
 * CONSTANTS[35] is AMT in component parameter_values (minute).
 * CONSTANTS[36] is ANCSNS in component parameter_values (dimensionless).
 * CONSTANTS[37] is ANGINF in component parameter_values (dimensionless).
 * CONSTANTS[38] is ANGKNS in component parameter_values (dimensionless).
 * CONSTANTS[39] is ANMALD in component parameter_values (dimensionless).
 * CONSTANTS[40] is ANMAM in component parameter_values (dimensionless).
 * CONSTANTS[41] is ANMARL in component parameter_values (dimensionless).
 * CONSTANTS[42] is ANMEM in component parameter_values (dimensionless).
 * CONSTANTS[43] is ANMKEL in component parameter_values (dimensionless).
 * CONSTANTS[44] is ANMKEM in component parameter_values (dimensionless).
 * CONSTANTS[45] is ANMLL in component parameter_values (dimensionless).
 * CONSTANTS[46] is ANMNAM in component parameter_values (dimensionless).
 * CONSTANTS[47] is ANMSLT in component parameter_values (dimensionless).
 * CONSTANTS[48] is ANMTM in component parameter_values (dimensionless).
 * CONSTANTS[49] is ANMUL in component parameter_values (dimensionless).
 * CONSTANTS[50] is ANPTC in component parameter_values (minute).
 * CONSTANTS[51] is ANPXAF in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[52] is ANPXUL in component parameter_values (dimensionless).
 * CONSTANTS[53] is ANT in component parameter_values (minute).
 * CONSTANTS[54] is ANULL in component parameter_values (dimensionless).
 * CONSTANTS[55] is ANUM in component parameter_values (dimensionless).
 * CONSTANTS[56] is ANUVM in component parameter_values (dimensionless).
 * CONSTANTS[57] is ANV in component parameter_values (minute).
 * CONSTANTS[58] is ANXM in component parameter_values (dimensionless).
 * CONSTANTS[59] is ANY in component parameter_values (litre).
 * CONSTANTS[60] is AR1LM in component parameter_values (dimensionless).
 * CONSTANTS[61] is AR2LM in component parameter_values (dimensionless).
 * CONSTANTS[62] is ARF in component parameter_values (dimensionless).
 * CONSTANTS[63] is AUC1 in component parameter_values (dimensionless).
 * CONSTANTS[64] is AUDMP in component parameter_values (minute).
 * CONSTANTS[65] is AUK in component parameter_values (per_minute).
 * CONSTANTS[66] is AUL in component parameter_values (litre).
 * CONSTANTS[67] is AULPM in component parameter_values (dimensionless).
 * CONSTANTS[68] is AUM1 in component parameter_values (dimensionless).
 * CONSTANTS[69] is AUM2 in component parameter_values (dimensionless).
 * CONSTANTS[70] is AUMAX in component parameter_values (dimensionless).
 * CONSTANTS[71] is AUMIN in component parameter_values (dimensionless).
 * CONSTANTS[72] is AUMK1 in component parameter_values (dimensionless).
 * CONSTANTS[73] is AUN1 in component parameter_values (dimensionless).
 * CONSTANTS[74] is AURG in component parameter_values (dimensionless).
 * CONSTANTS[75] is AUS in component parameter_values (dimensionless).
 * CONSTANTS[76] is AUSLP in component parameter_values (dimensionless).
 * CONSTANTS[77] is AUTO in component parameter_values (dimensionless).
 * CONSTANTS[78] is AUTOGN in component parameter_values (dimensionless).
 * CONSTANTS[79] is AUTOSN in component parameter_values (dimensionless).
 * CONSTANTS[80] is AUX in component parameter_values (dimensionless).
 * CONSTANTS[81] is BAROTC in component parameter_values (minute).
 * CONSTANTS[82] is CFC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[83] is CKEEX in component parameter_values (dimensionless).
 * CONSTANTS[84] is CMPTSS in component parameter_values (dimensionless).
 * CONSTANTS[85] is CN2 in component parameter_values (per_mmHg).
 * CONSTANTS[86] is CN7 in component parameter_values (dimensionless).
 * CONSTANTS[87] is CNR in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[88] is CPF in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[89] is CPK in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[90] is CPR in component parameter_values (gram_per_L).
 * CONSTANTS[91] is CV in component parameter_values (L_per_mmHg).
 * CONSTANTS[92] is CRRFLX in component parameter_values (mmHg).
 * CONSTANTS[93] is DIURET in component parameter_values (dimensionless).
 * CONSTANTS[94] is DHDTR in component parameter_values (per_mmHg_per_minute).
 * CONSTANTS[95] is DTNAR in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[96] is DTNARL in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[97] is EARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[98] is EARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[99] is EFAFR in component parameter_values (dimensionless).
 * CONSTANTS[100] is EXC in component parameter_values (dimensionless).
 * CONSTANTS[101] is EXCML in component parameter_values (dimensionless).
 * CONSTANTS[102] is EXCXP in component parameter_values (dimensionless).
 * CONSTANTS[103] is EXCXP2 in component parameter_values (dimensionless).
 * CONSTANTS[104] is EXE in component parameter_values (mmHg).
 * CONSTANTS[105] is GCOPF in component parameter_values (per_mmHg).
 * CONSTANTS[106] is GFLC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[107] is GFNDMP in component parameter_values (dimensionless).
 * CONSTANTS[108] is GFNLL in component parameter_values (L_per_minute).
 * CONSTANTS[109] is GPPD in component parameter_values (dimensionless).
 * CONSTANTS[110] is HM6 in component parameter_values (mmHg).
 * CONSTANTS[111] is HM8 in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[112] is HTAUML in component parameter_values (dimensionless).
 * CONSTANTS[113] is KORGN in component parameter_values (dimensionless).
 * CONSTANTS[114] is KORNER in component parameter_values (dimensionless).
 * CONSTANTS[115] is KORREN in component parameter_values (dimensionless).
 * CONSTANTS[116] is KORTC in component parameter_values (minute).
 * CONSTANTS[117] is LPDE in component parameter_values (dimensionless).
 * CONSTANTS[118] is LPK in component parameter_values (L_per_minute).
 * CONSTANTS[119] is LPPR in component parameter_values (gram_per_minute).
 * CONSTANTS[120] is MDFL1 in component parameter_values (dimensionless).
 * CONSTANTS[121] is MDFLKM in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[122] is MDFLW2 in component parameter_values (dimensionless).
 * CONSTANTS[123] is MDFLWX in component parameter_values (dimensionless).
 * CONSTANTS[124] is MDMP in component parameter_values (dimensionless).
 * CONSTANTS[125] is O2A in component parameter_values (dimensionless).
 * CONSTANTS[126] is O2CHMO in component parameter_values (per_mmHg).
 * CONSTANTS[127] is OMM in component parameter_values (mL_per_minute).
 * CONSTANTS[128] is PA4 in component parameter_values (dimensionless).
 * CONSTANTS[129] is PAEX in component parameter_values (dimensionless).
 * CONSTANTS[130] is PCE in component parameter_values (dimensionless).
 * CONSTANTS[131] is PCR in component parameter_values (mmHg).
 * CONSTANTS[132] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[133] is PGHF in component parameter_values (L_mmHg_per_gram).
 * CONSTANTS[134] is PK2 in component parameter_values (mmHg_per_mL).
 * CONSTANTS[135] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg).
 * CONSTANTS[136] is PLDF in component parameter_values (mmHg).
 * CONSTANTS[137] is PM5 in component parameter_values (per_mmHg).
 * CONSTANTS[138] is PO2ADV in component parameter_values (dimensionless).
 * CONSTANTS[139] is POK in component parameter_values (dimensionless).
 * CONSTANTS[140] is POM in component parameter_values (dimensionless).
 * CONSTANTS[141] is POM2 in component parameter_values (dimensionless).
 * CONSTANTS[142] is PON in component parameter_values (dimensionless).
 * CONSTANTS[143] is POR in component parameter_values (mmHg).
 * CONSTANTS[144] is POZ in component parameter_values (dimensionless).
 * CONSTANTS[145] is PXTP in component parameter_values (mmHg).
 * CONSTANTS[146] is QAOLM in component parameter_values (dimensionless).
 * CONSTANTS[147] is QRF in component parameter_values (L_per_minute).
 * CONSTANTS[148] is RABSC in component parameter_values (per_mmHg).
 * CONSTANTS[149] is RAM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[150] is RAPRSP in component parameter_values (mmHg).
 * CONSTANTS[151] is RAR in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[152] is RCDFDP in component parameter_values (minute).
 * CONSTANTS[153] is RCDFPC in component parameter_values (dimensionless).
 * CONSTANTS[154] is REK in component parameter_values (dimensionless).
 * CONSTANTS[155] is RFABKM in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[156] is RFABDM in component parameter_values (dimensionless).
 * CONSTANTS[157] is RFABDP in component parameter_values (dimensionless).
 * CONSTANTS[158] is RFCDFT in component parameter_values (dimensionless).
 * CONSTANTS[159] is RKC in component parameter_values (per_minute).
 * CONSTANTS[160] is RNAGTC in component parameter_values (minute).
 * CONSTANTS[161] is RNAUAD in component parameter_values (per_minute).
 * CONSTANTS[162] is RPS in component parameter_values (dimensionless).
 * CONSTANTS[163] is RTPPR in component parameter_values (dimensionless).
 * CONSTANTS[164] is RTPPRS in component parameter_values (mmHg).
 * CONSTANTS[165] is RTSPRS in component parameter_values (mmHg).
 * CONSTANTS[166] is RVRS in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[167] is RVSM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[168] is SR in component parameter_values (dimensionless).
 * CONSTANTS[169] is SR2 in component parameter_values (dimensionless).
 * CONSTANTS[170] is SRK in component parameter_values (minute).
 * CONSTANTS[171] is SRK2 in component parameter_values (minute).
 * CONSTANTS[172] is STA in component parameter_values (dimensionless).
 * CONSTANTS[173] is TENSGN in component parameter_values (dimensionless).
 * CONSTANTS[174] is TENSTC in component parameter_values (minute).
 * CONSTANTS[175] is TIMETR in component parameter_values (minute).
 * CONSTANTS[176] is TRNSFS in component parameter_values (dimensionless).
 * CONSTANTS[177] is TRPL in component parameter_values (L_per_minute).
 * CONSTANTS[178] is TSSLML in component parameter_values (dimensionless).
 * CONSTANTS[179] is TSSLTC in component parameter_values (per_minute).
 * CONSTANTS[180] is TVDDL in component parameter_values (minute).
 * CONSTANTS[181] is U in component parameter_values (dimensionless).
 * CONSTANTS[182] is VID1 in component parameter_values (L_per_minute).
 * CONSTANTS[183] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute).
 * CONSTANTS[184] is VNTSTM in component parameter_values (dimensionless).
 * CONSTANTS[185] is VP1 in component parameter_values (dimensionless).
 * CONSTANTS[186] is VPTISS in component parameter_values (litre).
 * CONSTANTS[187] is VTSF in component parameter_values (litre).
 * CONSTANTS[188] is VV9 in component parameter_values (litre).
 * CONSTANTS[189] is X in component parameter_values (dimensionless).
 * CONSTANTS[190] is Z in component parameter_values (dimensionless).
 * CONSTANTS[191] is Z4 in component parameter_values (dimensionless).
 * CONSTANTS[192] is Z5 in component parameter_values (dimensionless).
 * CONSTANTS[193] is Z6 in component parameter_values (dimensionless).
 * CONSTANTS[194] is Z7 in component parameter_values (dimensionless).
 * CONSTANTS[195] is Z10 in component parameter_values (mmHg).
 * CONSTANTS[196] is Z11 in component parameter_values (per_mmHg2).
 * CONSTANTS[197] is Z12 in component parameter_values (dimensionless).
 * CONSTANTS[198] is Z13 in component parameter_values (dimensionless).
 * CONSTANTS[199] is Z14 in component parameter_values (dimensionless).
 * CONSTANTS[200] is Z16 in component parameter_values (dimensionless).
 * CONSTANTS[201] is Z18 in component parameter_values (dimensionless).
 * CONSTANTS[202] is Z19 in component parameter_values (dimensionless).
 * CONSTANTS[203] is KID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[204] is URFORM in component parameter_values (mOsm_per_minute).
 * CONSTANTS[205] is AUV in component parameter_values (dimensionless).
 * CONSTANTS[206] is AUY in component parameter_values (dimensionless).
 * CONSTANTS[207] is O2M in component parameter_values (mL_per_minute).
 * CONSTANTS[208] is NID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[209] is ATRFBM in component parameter_values (dimensionless).
 * CONSTANTS[210] is GBL in component parameter_values (mmHg).
 * CONSTANTS[211] is RNAUGN in component parameter_values (minute_per_L).
 * CONSTANTS[212] is RNAULL in component parameter_values (dimensionless).
 * CONSTANTS[213] is RNAUUL in component parameter_values (dimensionless).
 * CONSTANTS[214] is HSR in component parameter_values (dimensionless).
 * CONSTANTS[215] is HSL in component parameter_values (dimensionless).
 * CONSTANTS[216] is HMK in component parameter_values (dimensionless).
 * CONSTANTS[217] is PO2AMB in component parameter_values (mmHg).
 * CONSTANTS[218] is HKM in component parameter_values (dimensionless).
 * CONSTANTS[219] is DR in component parameter_values (L_per_minute).
 * CONSTANTS[220] is ANPKNS in component parameter_values (dimensionless).
 * CONSTANTS[221] is RMULT1 in component parameter_values (dimensionless).
 * CONSTANTS[222] is GLPCA in component parameter_values (mmHg).
 * CONSTANTS[223] is RFN in component parameter_values (L_per_minute).
 * CONSTANTS[224] is RFABX in component parameter_values (dimensionless).
 * CONSTANTS[225] is ANPINF in component parameter_values (dimensionless).
 * CONSTANTS[226] is FIS in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[227] is CPPD in component parameter_values (gram_per_L).
 * CONSTANTS[228] is TRRBC in component parameter_values (L_per_minute).
 * CONSTANTS[229] is HYL in component parameter_values (gram).
 * CONSTANTS[230] is ATRVM in component parameter_values (litre).
 * CONSTANTS[231] is ADHC_init in component state_variables (dimensionless).
 * CONSTANTS[232] is AHY_init in component state_variables (dimensionless).
 * CONSTANTS[233] is AMC_init in component state_variables (dimensionless).
 * CONSTANTS[234] is AMM1T_init in component state_variables (dimensionless).
 * CONSTANTS[235] is AMM2_init in component state_variables (dimensionless).
 * CONSTANTS[236] is ANC_init in component state_variables (dimensionless).
 * CONSTANTS[237] is ANPC_init in component state_variables (dimensionless).
 * CONSTANTS[238] is ANX1_init in component state_variables (dimensionless).
 * CONSTANTS[239] is AR1T_init in component state_variables (dimensionless).
 * CONSTANTS[240] is AR2T_init in component state_variables (dimensionless).
 * CONSTANTS[241] is AR3T_init in component state_variables (dimensionless).
 * CONSTANTS[242] is AU1_init in component state_variables (dimensionless).
 * CONSTANTS[243] is AU4_init in component state_variables (dimensionless).
 * CONSTANTS[244] is AU6_init in component state_variables (dimensionless).
 * CONSTANTS[245] is DTKA_init in component state_variables (monovalent_mEq_per_minute).
 * CONSTANTS[246] is HMD1_init in component state_variables (dimensionless).
 * CONSTANTS[247] is HPL_init in component state_variables (dimensionless).
 * CONSTANTS[248] is HPR_init in component state_variables (dimensionless).
 * CONSTANTS[249] is KTOT_init in component state_variables (monovalent_mEq).
 * CONSTANTS[250] is NAE_init in component state_variables (monovalent_mEq).
 * CONSTANTS[251] is O2VAD1_init in component state_variables (dimensionless).
 * CONSTANTS[252] is OSV_init in component state_variables (dimensionless).
 * CONSTANTS[253] is OVA_init in component state_variables (mL_per_L).
 * CONSTANTS[254] is OVS_init in component state_variables (dimensionless).
 * CONSTANTS[255] is PAR1_init in component state_variables (mmHg).
 * CONSTANTS[256] is PC_init in component state_variables (mmHg).
 * CONSTANTS[257] is PLUR_init in component state_variables (mOsm).
 * CONSTANTS[258] is PPR1_init in component state_variables (gram).
 * CONSTANTS[259] is PRP_init in component state_variables (gram).
 * CONSTANTS[260] is QO2T_init in component state_variables (mL).
 * CONSTANTS[261] is QOM1_init in component state_variables (mL).
 * CONSTANTS[262] is RNAUG3_init in component state_variables (dimensionless).
 * CONSTANTS[263] is TSP_init in component state_variables (gram).
 * CONSTANTS[264] is TVD_init in component state_variables (L_per_minute).
 * CONSTANTS[265] is VAS1_init in component state_variables (litre).
 * CONSTANTS[266] is VIC_init in component state_variables (litre).
 * CONSTANTS[267] is VLA1_init in component state_variables (litre).
 * CONSTANTS[268] is VPA1_init in component state_variables (litre).
 * CONSTANTS[269] is VPF1_init in component state_variables (litre).
 * CONSTANTS[270] is VP_init in component state_variables (litre).
 * CONSTANTS[271] is VRA1_init in component state_variables (litre).
 * CONSTANTS[272] is VRC_init in component state_variables (litre).
 * CONSTANTS[273] is VTS2_init in component state_variables (litre).
 * CONSTANTS[274] is VTW_init in component state_variables (litre).
 * CONSTANTS[275] is VV6_init in component state_variables (litre).
 * CONSTANTS[276] is VV7_init in component state_variables (litre).
 * CONSTANTS[277] is VVS1_init in component state_variables (litre).
 * VOI is time in component environment (minute).
 * ALGEBRAIC[5] is VIM in component blood_viscosity (dimensionless).
 * ALGEBRAIC[2] is HM in component hematocrit_fraction (dimensionless).
 * ALGEBRAIC[1] is HM1 in component hematocrit_fraction (dimensionless).
 * STATES[0] is VRC in component RBC_volume (litre).
 * CONSTANTS[278] is A1K in component parameter_values (minute).
 * CONSTANTS[279] is A2K in component parameter_values (minute).
 * CONSTANTS[280] is A3K in component parameter_values (minute).
 * CONSTANTS[281] is A4K in component parameter_values (minute).
 * CONSTANTS[282] is A4K2 in component parameter_values (minute).
 * CONSTANTS[283] is AARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[284] is AARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[285] is ADHINF in component parameter_values (dimensionless).
 * CONSTANTS[286] is ADHKLL in component parameter_values (dimensionless).
 * CONSTANTS[287] is ADHKUL in component parameter_values (dimensionless).
 * CONSTANTS[288] is ADHPAM in component parameter_values (per_mmHg2).
 * CONSTANTS[289] is ADHPUL in component parameter_values (mmHg).
 * CONSTANTS[290] is ADHTC in component parameter_values (minute).
 * CONSTANTS[291] is ADHVLL in component parameter_values (dimensionless).
 * CONSTANTS[292] is ADHVUL in component parameter_values (dimensionless).
 * CONSTANTS[293] is AH10 in component parameter_values (dimensionless).
 * CONSTANTS[294] is AH11 in component parameter_values (minute).
 * CONSTANTS[295] is AH9 in component parameter_values (per_mmHg).
 * CONSTANTS[296] is AHMNAR in component parameter_values (dimensionless).
 * CONSTANTS[297] is AHTHM in component parameter_values (dimensionless).
 * CONSTANTS[298] is ALCLK in component parameter_values (dimensionless).
 * CONSTANTS[299] is ALDINF in component parameter_values (dimensionless).
 * CONSTANTS[300] is ALDKNS in component parameter_values (dimensionless).
 * CONSTANTS[301] is ALDMM in component parameter_values (dimensionless).
 * CONSTANTS[302] is AM1LL in component parameter_values (dimensionless).
 * CONSTANTS[303] is AM1UL in component parameter_values (dimensionless).
 * CONSTANTS[304] is AMCSNS in component parameter_values (dimensionless).
 * CONSTANTS[305] is AMKM in component parameter_values (dimensionless).
 * CONSTANTS[306] is AMKMUL in component parameter_values (dimensionless).
 * CONSTANTS[307] is AMM1LM in component parameter_values (dimensionless).
 * CONSTANTS[308] is AMM4 in component parameter_values (dimensionless).
 * CONSTANTS[309] is AMNALL in component parameter_values (dimensionless).
 * CONSTANTS[310] is AMNAM in component parameter_values (dimensionless).
 * CONSTANTS[311] is AMNAUL in component parameter_values (dimensionless).
 * CONSTANTS[312] is AMT in component parameter_values (minute).
 * CONSTANTS[313] is ANCSNS in component parameter_values (dimensionless).
 * CONSTANTS[314] is ANGINF in component parameter_values (dimensionless).
 * CONSTANTS[315] is ANGKNS in component parameter_values (dimensionless).
 * CONSTANTS[316] is ANMALD in component parameter_values (dimensionless).
 * CONSTANTS[317] is ANMAM in component parameter_values (dimensionless).
 * CONSTANTS[318] is ANMARL in component parameter_values (dimensionless).
 * CONSTANTS[319] is ANMEM in component parameter_values (dimensionless).
 * CONSTANTS[320] is ANMKEL in component parameter_values (dimensionless).
 * CONSTANTS[321] is ANMKEM in component parameter_values (dimensionless).
 * CONSTANTS[322] is ANMLL in component parameter_values (dimensionless).
 * CONSTANTS[323] is ANMNAM in component parameter_values (dimensionless).
 * CONSTANTS[324] is ANMSLT in component parameter_values (dimensionless).
 * CONSTANTS[325] is ANMTM in component parameter_values (dimensionless).
 * CONSTANTS[326] is ANMUL in component parameter_values (dimensionless).
 * CONSTANTS[327] is ANPTC in component parameter_values (minute).
 * CONSTANTS[328] is ANPXAF in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[329] is ANPXUL in component parameter_values (dimensionless).
 * CONSTANTS[330] is ANT in component parameter_values (minute).
 * CONSTANTS[331] is ANULL in component parameter_values (dimensionless).
 * CONSTANTS[332] is ANUM in component parameter_values (dimensionless).
 * CONSTANTS[333] is ANUVM in component parameter_values (dimensionless).
 * CONSTANTS[334] is ANV in component parameter_values (minute).
 * CONSTANTS[335] is ANXM in component parameter_values (dimensionless).
 * CONSTANTS[336] is ANY in component parameter_values (litre).
 * CONSTANTS[337] is AR1LM in component parameter_values (dimensionless).
 * CONSTANTS[338] is AR2LM in component parameter_values (dimensionless).
 * CONSTANTS[339] is ARF in component parameter_values (dimensionless).
 * CONSTANTS[340] is AUC1 in component parameter_values (dimensionless).
 * CONSTANTS[341] is AUDMP in component parameter_values (minute).
 * CONSTANTS[342] is AUK in component parameter_values (per_minute).
 * CONSTANTS[343] is AUL in component parameter_values (litre).
 * CONSTANTS[344] is AULPM in component parameter_values (dimensionless).
 * CONSTANTS[345] is AUM1 in component parameter_values (dimensionless).
 * CONSTANTS[346] is AUM2 in component parameter_values (dimensionless).
 * CONSTANTS[347] is AUMAX in component parameter_values (dimensionless).
 * CONSTANTS[348] is AUMIN in component parameter_values (dimensionless).
 * CONSTANTS[349] is AUMK1 in component parameter_values (dimensionless).
 * CONSTANTS[350] is AUN1 in component parameter_values (dimensionless).
 * CONSTANTS[351] is AURG in component parameter_values (dimensionless).
 * CONSTANTS[352] is AUS in component parameter_values (dimensionless).
 * CONSTANTS[353] is AUSLP in component parameter_values (dimensionless).
 * CONSTANTS[354] is AUTO in component parameter_values (dimensionless).
 * CONSTANTS[355] is AUTOGN in component parameter_values (dimensionless).
 * CONSTANTS[356] is AUTOSN in component parameter_values (dimensionless).
 * CONSTANTS[357] is AUX in component parameter_values (dimensionless).
 * CONSTANTS[358] is BAROTC in component parameter_values (minute).
 * CONSTANTS[359] is CFC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[360] is CKEEX in component parameter_values (dimensionless).
 * CONSTANTS[361] is CMPTSS in component parameter_values (dimensionless).
 * CONSTANTS[362] is CN2 in component parameter_values (per_mmHg).
 * CONSTANTS[363] is CN7 in component parameter_values (dimensionless).
 * CONSTANTS[364] is CNR in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[365] is CPF in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[366] is CPK in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[367] is CPR in component parameter_values (gram_per_L).
 * CONSTANTS[368] is CV in component parameter_values (L_per_mmHg).
 * CONSTANTS[369] is CRRFLX in component parameter_values (mmHg).
 * CONSTANTS[370] is DIURET in component parameter_values (dimensionless).
 * CONSTANTS[371] is DHDTR in component parameter_values (per_mmHg_per_minute).
 * CONSTANTS[372] is DTNAR in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[373] is DTNARL in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[374] is EARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[375] is EARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[376] is EFAFR in component parameter_values (dimensionless).
 * CONSTANTS[377] is EXC in component parameter_values (dimensionless).
 * CONSTANTS[378] is EXCML in component parameter_values (dimensionless).
 * CONSTANTS[379] is EXCXP in component parameter_values (dimensionless).
 * CONSTANTS[380] is EXCXP2 in component parameter_values (dimensionless).
 * CONSTANTS[381] is EXE in component parameter_values (mmHg).
 * CONSTANTS[382] is GCOPF in component parameter_values (per_mmHg).
 * CONSTANTS[383] is GFLC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[384] is GFNDMP in component parameter_values (dimensionless).
 * CONSTANTS[385] is GFNLL in component parameter_values (L_per_minute).
 * CONSTANTS[386] is GPPD in component parameter_values (dimensionless).
 * CONSTANTS[387] is HM6 in component parameter_values (mmHg).
 * CONSTANTS[388] is HM8 in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[389] is HTAUML in component parameter_values (dimensionless).
 * CONSTANTS[390] is KORGN in component parameter_values (dimensionless).
 * CONSTANTS[391] is KORNER in component parameter_values (dimensionless).
 * CONSTANTS[392] is KORREN in component parameter_values (dimensionless).
 * CONSTANTS[393] is KORTC in component parameter_values (minute).
 * CONSTANTS[394] is LPDE in component parameter_values (dimensionless).
 * CONSTANTS[395] is LPK in component parameter_values (L_per_minute).
 * CONSTANTS[396] is LPPR in component parameter_values (gram_per_minute).
 * CONSTANTS[397] is MDFL1 in component parameter_values (dimensionless).
 * CONSTANTS[398] is MDFLKM in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[399] is MDFLW2 in component parameter_values (dimensionless).
 * CONSTANTS[400] is MDFLWX in component parameter_values (dimensionless).
 * CONSTANTS[401] is MDMP in component parameter_values (dimensionless).
 * CONSTANTS[402] is O2A in component parameter_values (dimensionless).
 * CONSTANTS[403] is O2CHMO in component parameter_values (per_mmHg).
 * CONSTANTS[404] is OMM in component parameter_values (mL_per_minute).
 * CONSTANTS[405] is PA4 in component parameter_values (dimensionless).
 * CONSTANTS[406] is PAEX in component parameter_values (dimensionless).
 * CONSTANTS[407] is PCE in component parameter_values (dimensionless).
 * CONSTANTS[408] is PCR in component parameter_values (mmHg).
 * CONSTANTS[409] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[410] is PGHF in component parameter_values (L_mmHg_per_gram).
 * CONSTANTS[411] is PK2 in component parameter_values (mmHg_per_mL).
 * CONSTANTS[412] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg).
 * CONSTANTS[413] is PLDF in component parameter_values (mmHg).
 * CONSTANTS[414] is PM5 in component parameter_values (per_mmHg).
 * CONSTANTS[415] is PO2ADV in component parameter_values (dimensionless).
 * CONSTANTS[416] is POK in component parameter_values (dimensionless).
 * CONSTANTS[417] is POM in component parameter_values (dimensionless).
 * CONSTANTS[418] is POM2 in component parameter_values (dimensionless).
 * CONSTANTS[419] is PON in component parameter_values (dimensionless).
 * CONSTANTS[420] is POR in component parameter_values (mmHg).
 * CONSTANTS[421] is POZ in component parameter_values (dimensionless).
 * CONSTANTS[422] is PXTP in component parameter_values (mmHg).
 * CONSTANTS[423] is QAOLM in component parameter_values (dimensionless).
 * CONSTANTS[424] is QRF in component parameter_values (L_per_minute).
 * CONSTANTS[425] is RABSC in component parameter_values (per_mmHg).
 * CONSTANTS[426] is RAM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[427] is RAPRSP in component parameter_values (mmHg).
 * CONSTANTS[428] is RAR in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[429] is RCDFDP in component parameter_values (minute).
 * CONSTANTS[430] is RCDFPC in component parameter_values (dimensionless).
 * CONSTANTS[431] is REK in component parameter_values (dimensionless).
 * CONSTANTS[432] is RFABKM in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[433] is RFABDM in component parameter_values (dimensionless).
 * CONSTANTS[434] is RFABDP in component parameter_values (dimensionless).
 * CONSTANTS[435] is RFCDFT in component parameter_values (dimensionless).
 * CONSTANTS[436] is RKC in component parameter_values (per_minute).
 * CONSTANTS[437] is RNAGTC in component parameter_values (minute).
 * CONSTANTS[438] is RNAUAD in component parameter_values (per_minute).
 * CONSTANTS[439] is RPS in component parameter_values (dimensionless).
 * CONSTANTS[440] is RTPPR in component parameter_values (dimensionless).
 * CONSTANTS[441] is RTPPRS in component parameter_values (mmHg).
 * CONSTANTS[442] is RTSPRS in component parameter_values (mmHg).
 * CONSTANTS[443] is RVRS in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[444] is RVSM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[445] is SR in component parameter_values (dimensionless).
 * CONSTANTS[446] is SR2 in component parameter_values (dimensionless).
 * CONSTANTS[447] is SRK in component parameter_values (minute).
 * CONSTANTS[448] is SRK2 in component parameter_values (minute).
 * CONSTANTS[449] is STA in component parameter_values (dimensionless).
 * CONSTANTS[450] is TENSGN in component parameter_values (dimensionless).
 * CONSTANTS[451] is TENSTC in component parameter_values (minute).
 * CONSTANTS[452] is TIMETR in component parameter_values (minute).
 * CONSTANTS[453] is TRNSFS in component parameter_values (dimensionless).
 * CONSTANTS[454] is TRPL in component parameter_values (L_per_minute).
 * CONSTANTS[455] is TSSLML in component parameter_values (dimensionless).
 * CONSTANTS[456] is TSSLTC in component parameter_values (per_minute).
 * CONSTANTS[457] is TVDDL in component parameter_values (minute).
 * CONSTANTS[458] is U in component parameter_values (dimensionless).
 * CONSTANTS[459] is VID1 in component parameter_values (L_per_minute).
 * CONSTANTS[460] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute).
 * CONSTANTS[461] is VNTSTM in component parameter_values (dimensionless).
 * CONSTANTS[462] is VP1 in component parameter_values (dimensionless).
 * CONSTANTS[463] is VPTISS in component parameter_values (litre).
 * CONSTANTS[464] is VTSF in component parameter_values (litre).
 * CONSTANTS[465] is VV9 in component parameter_values (litre).
 * CONSTANTS[466] is X in component parameter_values (dimensionless).
 * CONSTANTS[467] is Z in component parameter_values (dimensionless).
 * CONSTANTS[468] is Z4 in component parameter_values (dimensionless).
 * CONSTANTS[469] is Z5 in component parameter_values (dimensionless).
 * CONSTANTS[470] is Z6 in component parameter_values (dimensionless).
 * CONSTANTS[471] is Z7 in component parameter_values (dimensionless).
 * CONSTANTS[472] is Z10 in component parameter_values (mmHg).
 * CONSTANTS[473] is Z11 in component parameter_values (per_mmHg2).
 * CONSTANTS[474] is Z12 in component parameter_values (dimensionless).
 * CONSTANTS[475] is Z13 in component parameter_values (dimensionless).
 * CONSTANTS[476] is Z14 in component parameter_values (dimensionless).
 * CONSTANTS[477] is Z16 in component parameter_values (dimensionless).
 * CONSTANTS[478] is Z18 in component parameter_values (dimensionless).
 * CONSTANTS[479] is Z19 in component parameter_values (dimensionless).
 * CONSTANTS[480] is KID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[481] is URFORM in component parameter_values (mOsm_per_minute).
 * CONSTANTS[482] is AUV in component parameter_values (dimensionless).
 * CONSTANTS[483] is AUY in component parameter_values (dimensionless).
 * CONSTANTS[484] is O2M in component parameter_values (mL_per_minute).
 * CONSTANTS[485] is NID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[486] is ATRFBM in component parameter_values (dimensionless).
 * CONSTANTS[487] is GBL in component parameter_values (mmHg).
 * CONSTANTS[488] is RNAUGN in component parameter_values (minute_per_L).
 * CONSTANTS[489] is RNAULL in component parameter_values (dimensionless).
 * CONSTANTS[490] is RNAUUL in component parameter_values (dimensionless).
 * CONSTANTS[491] is HSR in component parameter_values (dimensionless).
 * CONSTANTS[492] is HSL in component parameter_values (dimensionless).
 * CONSTANTS[493] is HMK in component parameter_values (dimensionless).
 * CONSTANTS[494] is PO2AMB in component parameter_values (mmHg).
 * CONSTANTS[495] is HKM in component parameter_values (dimensionless).
 * CONSTANTS[496] is DR in component parameter_values (L_per_minute).
 * CONSTANTS[497] is ANPKNS in component parameter_values (dimensionless).
 * CONSTANTS[498] is RMULT1 in component parameter_values (dimensionless).
 * CONSTANTS[499] is GLPCA in component parameter_values (mmHg).
 * CONSTANTS[500] is RFN in component parameter_values (L_per_minute).
 * CONSTANTS[501] is RFABX in component parameter_values (dimensionless).
 * CONSTANTS[502] is ANPINF in component parameter_values (dimensionless).
 * CONSTANTS[503] is FIS in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[504] is CPPD in component parameter_values (gram_per_L).
 * CONSTANTS[505] is TRRBC in component parameter_values (L_per_minute).
 * CONSTANTS[506] is HYL in component parameter_values (gram).
 * CONSTANTS[507] is ATRVM in component parameter_values (litre).
 * CONSTANTS[508] is ADHC_init in component state_variables (dimensionless).
 * CONSTANTS[509] is AHY_init in component state_variables (dimensionless).
 * CONSTANTS[510] is AMC_init in component state_variables (dimensionless).
 * CONSTANTS[511] is AMM1T_init in component state_variables (dimensionless).
 * CONSTANTS[512] is AMM2_init in component state_variables (dimensionless).
 * CONSTANTS[513] is ANC_init in component state_variables (dimensionless).
 * CONSTANTS[514] is ANPC_init in component state_variables (dimensionless).
 * CONSTANTS[515] is ANX1_init in component state_variables (dimensionless).
 * CONSTANTS[516] is AR1T_init in component state_variables (dimensionless).
 * CONSTANTS[517] is AR2T_init in component state_variables (dimensionless).
 * CONSTANTS[518] is AR3T_init in component state_variables (dimensionless).
 * CONSTANTS[519] is AU1_init in component state_variables (dimensionless).
 * CONSTANTS[520] is AU4_init in component state_variables (dimensionless).
 * CONSTANTS[521] is AU6_init in component state_variables (dimensionless).
 * CONSTANTS[522] is DTKA_init in component state_variables (monovalent_mEq_per_minute).
 * CONSTANTS[523] is HMD1_init in component state_variables (dimensionless).
 * CONSTANTS[524] is HPL_init in component state_variables (dimensionless).
 * CONSTANTS[525] is HPR_init in component state_variables (dimensionless).
 * CONSTANTS[526] is KTOT_init in component state_variables (monovalent_mEq).
 * CONSTANTS[527] is NAE_init in component state_variables (monovalent_mEq).
 * CONSTANTS[528] is O2VAD1_init in component state_variables (dimensionless).
 * CONSTANTS[529] is OSV_init in component state_variables (dimensionless).
 * CONSTANTS[530] is OVA_init in component state_variables (mL_per_L).
 * CONSTANTS[531] is OVS_init in component state_variables (dimensionless).
 * CONSTANTS[532] is PAR1_init in component state_variables (mmHg).
 * CONSTANTS[533] is PC_init in component state_variables (mmHg).
 * CONSTANTS[534] is PLUR_init in component state_variables (mOsm).
 * CONSTANTS[535] is PPR1_init in component state_variables (gram).
 * CONSTANTS[536] is PRP_init in component state_variables (gram).
 * CONSTANTS[537] is QO2T_init in component state_variables (mL).
 * CONSTANTS[538] is QOM1_init in component state_variables (mL).
 * CONSTANTS[539] is RNAUG3_init in component state_variables (dimensionless).
 * CONSTANTS[540] is TSP_init in component state_variables (gram).
 * CONSTANTS[541] is TVD_init in component state_variables (L_per_minute).
 * CONSTANTS[542] is VAS1_init in component state_variables (litre).
 * CONSTANTS[543] is VIC_init in component state_variables (litre).
 * CONSTANTS[544] is VLA1_init in component state_variables (litre).
 * CONSTANTS[545] is VPA1_init in component state_variables (litre).
 * CONSTANTS[546] is VPF1_init in component state_variables (litre).
 * CONSTANTS[547] is VP_init in component state_variables (litre).
 * CONSTANTS[548] is VRA1_init in component state_variables (litre).
 * CONSTANTS[549] is VRC_init in component state_variables (litre).
 * CONSTANTS[550] is VTS2_init in component state_variables (litre).
 * CONSTANTS[551] is VTW_init in component state_variables (litre).
 * CONSTANTS[552] is VV6_init in component state_variables (litre).
 * CONSTANTS[553] is VV7_init in component state_variables (litre).
 * CONSTANTS[554] is VVS1_init in component state_variables (litre).
 * ALGEBRAIC[0] is VB in component hematocrit_fraction (litre).
 * ALGEBRAIC[3] is VIE in component viscosity_due_to_RBCs (dimensionless).
 * ALGEBRAIC[4] is VIB in component blood_viscosity (dimensionless).
 * ALGEBRAIC[8] is HM7 in component oxygen_stimulation (mmHg).
 * CONSTANTS[555] is PO2AM1 in component oxygen_stimulation (mmHg).
 * ALGEBRAIC[6] is HM3 in component oxygen_stimulation (mmHg).
 * CONSTANTS[556] is HM4 in component oxygen_stimulation (mmHg).
 * ALGEBRAIC[7] is HM5 in component oxygen_stimulation (mmHg).
 * ALGEBRAIC[9] is RC1 in component RBC_production (L_per_minute).
 * ALGEBRAIC[10] is RC2 in component RBC_destruction (L_per_minute).
 * ALGEBRAIC[11] is RCD in component RBC_volume (L_per_minute).
 * RATES[0] is d/dt VRC in component RBC_volume (litre).
 * There are a total of 2 condition variables.
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 3.00449;
CONSTANTS[1] = 0.5;
CONSTANTS[2] = 60;
CONSTANTS[3] = 40000;
CONSTANTS[4] = 0.1;
CONSTANTS[5] = 40000;
CONSTANTS[6] = 1;
CONSTANTS[7] = 4;
CONSTANTS[8] = 0;
CONSTANTS[9] = 0.2;
CONSTANTS[10] = 5;
CONSTANTS[11] = 0.3;
CONSTANTS[12] = 85;
CONSTANTS[13] = 15;
CONSTANTS[14] = 0.93617;
CONSTANTS[15] = 2.5;
CONSTANTS[16] = 0.333;
CONSTANTS[17] = 1000;
CONSTANTS[18] = 1;
CONSTANTS[19] = 0.3;
CONSTANTS[20] = 2;
CONSTANTS[21] = 0.3;
CONSTANTS[22] = 0;
CONSTANTS[23] = 0;
CONSTANTS[24] = 2.5;
CONSTANTS[25] = 0;
CONSTANTS[26] = 5;
CONSTANTS[27] = 0.65;
CONSTANTS[28] = 0.5;
CONSTANTS[29] = 12;
CONSTANTS[30] = 0.005;
CONSTANTS[31] = 0.005;
CONSTANTS[32] = 0.04;
CONSTANTS[33] = 0.8;
CONSTANTS[34] = 15;
CONSTANTS[35] = 60;
CONSTANTS[36] = 0.4;
CONSTANTS[37] = 0;
CONSTANTS[38] = 0;
CONSTANTS[39] = 2.5;
CONSTANTS[40] = 1.4;
CONSTANTS[41] = 0.86;
CONSTANTS[42] = 1.6;
CONSTANTS[43] = 0.3;
CONSTANTS[44] = 2;
CONSTANTS[45] = 0.7;
CONSTANTS[46] = 1;
CONSTANTS[47] = 2;
CONSTANTS[48] = 1.5;
CONSTANTS[49] = 1.8;
CONSTANTS[50] = 4;
CONSTANTS[51] = 1.5;
CONSTANTS[52] = 10;
CONSTANTS[53] = 12;
CONSTANTS[54] = 0.8;
CONSTANTS[55] = 6;
CONSTANTS[56] = 0;
CONSTANTS[57] = 5000;
CONSTANTS[58] = 0;
CONSTANTS[59] = -0.2;
CONSTANTS[60] = 0.005;
CONSTANTS[61] = 0.005;
CONSTANTS[62] = 0.5;
CONSTANTS[63] = 0.3;
CONSTANTS[64] = 0.3;
CONSTANTS[65] = 0.004;
CONSTANTS[66] = 1.5;
CONSTANTS[67] = 0;
CONSTANTS[68] = 3;
CONSTANTS[69] = 1;
CONSTANTS[70] = 5.0;
CONSTANTS[71] = 0.4;
CONSTANTS[72] = 0.3;
CONSTANTS[73] = 0.5;
CONSTANTS[74] = 1.0;
CONSTANTS[75] = 1;
CONSTANTS[76] = 1.5;
CONSTANTS[77] = 0;
CONSTANTS[78] = 7;
CONSTANTS[79] = 0.9;
CONSTANTS[80] = 1;
CONSTANTS[81] = 0.16;
CONSTANTS[82] = 0.01167;
CONSTANTS[83] = 4;
CONSTANTS[84] = 2;
CONSTANTS[85] = 0.0212;
CONSTANTS[86] = 0.2;
CONSTANTS[87] = 139;
CONSTANTS[88] = 0.0003;
CONSTANTS[89] = 0.000253;
CONSTANTS[90] = 40;
CONSTANTS[91] = 0.1;
CONSTANTS[92] = 0;
CONSTANTS[93] = 1;
CONSTANTS[94] = 0.05;
CONSTANTS[95] = 0.675;
CONSTANTS[96] = 1e-06;
CONSTANTS[97] = 1;
CONSTANTS[98] = 24;
CONSTANTS[99] = 0;
CONSTANTS[100] = 1;
CONSTANTS[101] = 0.01;
CONSTANTS[102] = 1.0;
CONSTANTS[103] = 0.17;
CONSTANTS[104] = 0;
CONSTANTS[105] = 0.8092;
CONSTANTS[106] = 0.0208333;
CONSTANTS[107] = 3;
CONSTANTS[108] = 0.001;
CONSTANTS[109] = 1.0;
CONSTANTS[110] = 1850;
CONSTANTS[111] = 4.714e-08;
CONSTANTS[112] = 0.4;
CONSTANTS[113] = 1;
CONSTANTS[114] = 0;
CONSTANTS[115] = 0;
CONSTANTS[116] = 10000;
CONSTANTS[117] = 8;
CONSTANTS[118] = 2.728e-14;
CONSTANTS[119] = 0.03;
CONSTANTS[120] = 10;
CONSTANTS[121] = 0.667;
CONSTANTS[122] = 0.005;
CONSTANTS[123] = 0.01;
CONSTANTS[124] = 0;
CONSTANTS[125] = 0.1;
CONSTANTS[126] = 0.01;
CONSTANTS[127] = 57.1;
CONSTANTS[128] = 1;
CONSTANTS[129] = 2;
CONSTANTS[130] = 1;
CONSTANTS[131] = 15;
CONSTANTS[132] = 0;
CONSTANTS[133] = -2;
CONSTANTS[134] = 0.79167;
CONSTANTS[135] = 1.8;
CONSTANTS[136] = 4.2;
CONSTANTS[137] = 30;
CONSTANTS[138] = 0.001;
CONSTANTS[139] = 0.1;
CONSTANTS[140] = 0.04;
CONSTANTS[141] = 2;
CONSTANTS[142] = 0.1;
CONSTANTS[143] = 35;
CONSTANTS[144] = 2;
CONSTANTS[145] = 8;
CONSTANTS[146] = 0.2;
CONSTANTS[147] = 0.15;
CONSTANTS[148] = 0.5;
CONSTANTS[149] = 96.3;
CONSTANTS[150] = 0;
CONSTANTS[151] = 30.52;
CONSTANTS[152] = 2000;
CONSTANTS[153] = 0;
CONSTANTS[154] = 1;
CONSTANTS[155] = 0.03;
CONSTANTS[156] = 0.3;
CONSTANTS[157] = 1;
CONSTANTS[158] = 0;
CONSTANTS[159] = 5.8e-06;
CONSTANTS[160] = 15;
CONSTANTS[161] = 0;
CONSTANTS[162] = 0;
CONSTANTS[163] = 0.9;
CONSTANTS[164] = 15.2;
CONSTANTS[165] = 6;
CONSTANTS[166] = 19.167;
CONSTANTS[167] = 1;
CONSTANTS[168] = 1;
CONSTANTS[169] = 1;
CONSTANTS[170] = 5;
CONSTANTS[171] = 10000;
CONSTANTS[172] = 0;
CONSTANTS[173] = 0;
CONSTANTS[174] = 0.05;
CONSTANTS[175] = 0;
CONSTANTS[176] = 0;
CONSTANTS[177] = 0;
CONSTANTS[178] = 0.15;
CONSTANTS[179] = 0.005;
CONSTANTS[180] = 30;
CONSTANTS[181] = 4;
CONSTANTS[182] = 0.01;
CONSTANTS[183] = 0.01;
CONSTANTS[184] = 1;
CONSTANTS[185] = 0.01;
CONSTANTS[186] = 0.0175;
CONSTANTS[187] = 6;
CONSTANTS[188] = 2.51;
CONSTANTS[189] = 4;
CONSTANTS[190] = 1;
CONSTANTS[191] = 0.5;
CONSTANTS[192] = 0.3;
CONSTANTS[193] = 20;
CONSTANTS[194] = 5;
CONSTANTS[195] = 45;
CONSTANTS[196] = 0.01;
CONSTANTS[197] = 5;
CONSTANTS[198] = 0.625;
CONSTANTS[199] = 5;
CONSTANTS[200] = 5;
CONSTANTS[201] = 5;
CONSTANTS[202] = 5;
CONSTANTS[203] = 0.08;
CONSTANTS[204] = 0.24;
CONSTANTS[205] = 0.55;
CONSTANTS[206] = 0;
CONSTANTS[207] = 164;
CONSTANTS[208] = 0.1;
CONSTANTS[209] = 0;
CONSTANTS[210] = 0;
CONSTANTS[211] = 0.6;
CONSTANTS[212] = 0.3;
CONSTANTS[213] = 10;
CONSTANTS[214] = 1;
CONSTANTS[215] = 1;
CONSTANTS[216] = 90;
CONSTANTS[217] = 150;
CONSTANTS[218] = 0.53333;
CONSTANTS[219] = 0;
CONSTANTS[220] = 0;
CONSTANTS[221] = 1;
CONSTANTS[222] = 1.0;
CONSTANTS[223] = 1.22057;
CONSTANTS[224] = 0.8;
CONSTANTS[225] = 0;
CONSTANTS[226] = 0;
CONSTANTS[227] = 31.9719;
CONSTANTS[228] = 0;
CONSTANTS[229] = 60;
CONSTANTS[230] = 0;
CONSTANTS[231] = 1.0;
CONSTANTS[232] = 0.301963;
CONSTANTS[233] = 1.0;
CONSTANTS[234] = 1.00269;
CONSTANTS[235] = 1.09071;
CONSTANTS[236] = 0.859476;
CONSTANTS[237] = 1.0;
CONSTANTS[238] = 0;
CONSTANTS[239] = 1.02127;
CONSTANTS[240] = 1.01179;
CONSTANTS[241] = 1.1448;
CONSTANTS[242] = 1.00007;
CONSTANTS[243] = -0.060024;
CONSTANTS[244] = 1.00132;
CONSTANTS[245] = 0.0367573;
CONSTANTS[246] = 1;
CONSTANTS[247] = 1.00163;
CONSTANTS[248] = 1.00237;
CONSTANTS[249] = 3622.54;
CONSTANTS[250] = 2109.91;
CONSTANTS[251] = 2.368e-07;
CONSTANTS[252] = 0.694163;
CONSTANTS[253] = 204.497;
CONSTANTS[254] = 0.699673;
CONSTANTS[255] = 103.525;
CONSTANTS[256] = 16.9144;
CONSTANTS[257] = 159.549;
CONSTANTS[258] = 0.419998;
CONSTANTS[259] = 216.243;
CONSTANTS[260] = 72.2362;
CONSTANTS[261] = 48.0839;
CONSTANTS[262] = 0;
CONSTANTS[263] = 279.945;
CONSTANTS[264] = 0.000980838;
CONSTANTS[265] = 0.862514;
CONSTANTS[266] = 25.0404;
CONSTANTS[267] = 0.379883;
CONSTANTS[268] = 0.38131;
CONSTANTS[269] = 0.0123238;
CONSTANTS[270] = 3.00449;
CONSTANTS[271] = 0.100043;
CONSTANTS[272] = 2.00439;
CONSTANTS[273] = 0;
CONSTANTS[274] = 39.8952;
CONSTANTS[275] = 0.0101913;
CONSTANTS[276] = 0.00366525;
CONSTANTS[277] = 3.28246;
CONSTANTS[278] = 0.5;
CONSTANTS[279] = 60;
CONSTANTS[280] = 40000;
CONSTANTS[281] = 0.1;
CONSTANTS[282] = 40000;
CONSTANTS[283] = 1;
CONSTANTS[284] = 4;
CONSTANTS[285] = 0;
CONSTANTS[286] = 0.2;
CONSTANTS[287] = 5;
CONSTANTS[288] = 0.3;
CONSTANTS[289] = 85;
CONSTANTS[290] = 15;
CONSTANTS[291] = 0.93617;
CONSTANTS[292] = 2.5;
CONSTANTS[293] = 0.333;
CONSTANTS[294] = 1000;
CONSTANTS[295] = 1;
CONSTANTS[296] = 0.3;
CONSTANTS[297] = 2;
CONSTANTS[298] = 0.3;
CONSTANTS[299] = 0;
CONSTANTS[300] = 0;
CONSTANTS[301] = 2.5;
CONSTANTS[302] = 0;
CONSTANTS[303] = 5;
CONSTANTS[304] = 0.65;
CONSTANTS[305] = 0.5;
CONSTANTS[306] = 12;
CONSTANTS[307] = 0.005;
CONSTANTS[308] = 0.005;
CONSTANTS[309] = 0.04;
CONSTANTS[310] = 0.8;
CONSTANTS[311] = 15;
CONSTANTS[312] = 60;
CONSTANTS[313] = 0.4;
CONSTANTS[314] = 0;
CONSTANTS[315] = 0;
CONSTANTS[316] = 2.5;
CONSTANTS[317] = 1.4;
CONSTANTS[318] = 0.86;
CONSTANTS[319] = 1.6;
CONSTANTS[320] = 0.3;
CONSTANTS[321] = 2;
CONSTANTS[322] = 0.7;
CONSTANTS[323] = 1;
CONSTANTS[324] = 2;
CONSTANTS[325] = 1.5;
CONSTANTS[326] = 1.8;
CONSTANTS[327] = 4;
CONSTANTS[328] = 1.5;
CONSTANTS[329] = 10;
CONSTANTS[330] = 12;
CONSTANTS[331] = 0.8;
CONSTANTS[332] = 6;
CONSTANTS[333] = 0;
CONSTANTS[334] = 5000;
CONSTANTS[335] = 0;
CONSTANTS[336] = -0.2;
CONSTANTS[337] = 0.005;
CONSTANTS[338] = 0.005;
CONSTANTS[339] = 0.5;
CONSTANTS[340] = 0.3;
CONSTANTS[341] = 0.3;
CONSTANTS[342] = 0.004;
CONSTANTS[343] = 1.5;
CONSTANTS[344] = 0;
CONSTANTS[345] = 3;
CONSTANTS[346] = 1;
CONSTANTS[347] = 5.0;
CONSTANTS[348] = 0.4;
CONSTANTS[349] = 0.3;
CONSTANTS[350] = 0.5;
CONSTANTS[351] = 1.0;
CONSTANTS[352] = 1;
CONSTANTS[353] = 1.5;
CONSTANTS[354] = 0;
CONSTANTS[355] = 7;
CONSTANTS[356] = 0.9;
CONSTANTS[357] = 1;
CONSTANTS[358] = 0.16;
CONSTANTS[359] = 0.01167;
CONSTANTS[360] = 4;
CONSTANTS[361] = 2;
CONSTANTS[362] = 0.0212;
CONSTANTS[363] = 0.2;
CONSTANTS[364] = 139;
CONSTANTS[365] = 0.0003;
CONSTANTS[366] = 0.000253;
CONSTANTS[367] = 40;
CONSTANTS[368] = 0.1;
CONSTANTS[369] = 0;
CONSTANTS[370] = 1;
CONSTANTS[371] = 0.05;
CONSTANTS[372] = 0.675;
CONSTANTS[373] = 1e-06;
CONSTANTS[374] = 1;
CONSTANTS[375] = 24;
CONSTANTS[376] = 0;
CONSTANTS[377] = 1;
CONSTANTS[378] = 0.01;
CONSTANTS[379] = 1.0;
CONSTANTS[380] = 0.17;
CONSTANTS[381] = 0;
CONSTANTS[382] = 0.8092;
CONSTANTS[383] = 0.0208333;
CONSTANTS[384] = 3;
CONSTANTS[385] = 0.001;
CONSTANTS[386] = 1.0;
CONSTANTS[387] = 1850;
CONSTANTS[388] = 4.714e-08;
CONSTANTS[389] = 0.4;
CONSTANTS[390] = 1;
CONSTANTS[391] = 0;
CONSTANTS[392] = 0;
CONSTANTS[393] = 10000;
CONSTANTS[394] = 8;
CONSTANTS[395] = 2.728e-14;
CONSTANTS[396] = 0.03;
CONSTANTS[397] = 10;
CONSTANTS[398] = 0.667;
CONSTANTS[399] = 0.005;
CONSTANTS[400] = 0.01;
CONSTANTS[401] = 0;
CONSTANTS[402] = 0.1;
CONSTANTS[403] = 0.01;
CONSTANTS[404] = 57.1;
CONSTANTS[405] = 1;
CONSTANTS[406] = 2;
CONSTANTS[407] = 1;
CONSTANTS[408] = 15;
CONSTANTS[409] = 0;
CONSTANTS[410] = -2;
CONSTANTS[411] = 0.79167;
CONSTANTS[412] = 1.8;
CONSTANTS[413] = 4.2;
CONSTANTS[414] = 30;
CONSTANTS[415] = 0.001;
CONSTANTS[416] = 0.1;
CONSTANTS[417] = 0.04;
CONSTANTS[418] = 2;
CONSTANTS[419] = 0.1;
CONSTANTS[420] = 35;
CONSTANTS[421] = 2;
CONSTANTS[422] = 8;
CONSTANTS[423] = 0.2;
CONSTANTS[424] = 0.15;
CONSTANTS[425] = 0.5;
CONSTANTS[426] = 96.3;
CONSTANTS[427] = 0;
CONSTANTS[428] = 30.52;
CONSTANTS[429] = 2000;
CONSTANTS[430] = 0;
CONSTANTS[431] = 1;
CONSTANTS[432] = 0.03;
CONSTANTS[433] = 0.3;
CONSTANTS[434] = 1;
CONSTANTS[435] = 0;
CONSTANTS[436] = 5.8e-06;
CONSTANTS[437] = 15;
CONSTANTS[438] = 0;
CONSTANTS[439] = 0;
CONSTANTS[440] = 0.9;
CONSTANTS[441] = 15.2;
CONSTANTS[442] = 6;
CONSTANTS[443] = 19.167;
CONSTANTS[444] = 1;
CONSTANTS[445] = 1;
CONSTANTS[446] = 1;
CONSTANTS[447] = 5;
CONSTANTS[448] = 10000;
CONSTANTS[449] = 0;
CONSTANTS[450] = 0;
CONSTANTS[451] = 0.05;
CONSTANTS[452] = 0;
CONSTANTS[453] = 0;
CONSTANTS[454] = 0;
CONSTANTS[455] = 0.15;
CONSTANTS[456] = 0.005;
CONSTANTS[457] = 30;
CONSTANTS[458] = 4;
CONSTANTS[459] = 0.01;
CONSTANTS[460] = 0.01;
CONSTANTS[461] = 1;
CONSTANTS[462] = 0.01;
CONSTANTS[463] = 0.0175;
CONSTANTS[464] = 6;
CONSTANTS[465] = 2.51;
CONSTANTS[466] = 4;
CONSTANTS[467] = 1;
CONSTANTS[468] = 0.5;
CONSTANTS[469] = 0.3;
CONSTANTS[470] = 20;
CONSTANTS[471] = 5;
CONSTANTS[472] = 45;
CONSTANTS[473] = 0.01;
CONSTANTS[474] = 5;
CONSTANTS[475] = 0.625;
CONSTANTS[476] = 5;
CONSTANTS[477] = 5;
CONSTANTS[478] = 5;
CONSTANTS[479] = 5;
CONSTANTS[480] = 0.08;
CONSTANTS[481] = 0.24;
CONSTANTS[482] = 0.55;
CONSTANTS[483] = 0;
CONSTANTS[484] = 164;
CONSTANTS[485] = 0.1;
CONSTANTS[486] = 0;
CONSTANTS[487] = 0;
CONSTANTS[488] = 0.6;
CONSTANTS[489] = 0.3;
CONSTANTS[490] = 10;
CONSTANTS[491] = 1;
CONSTANTS[492] = 1;
CONSTANTS[493] = 90;
CONSTANTS[494] = 150;
CONSTANTS[495] = 0.53333;
CONSTANTS[496] = 0;
CONSTANTS[497] = 0;
CONSTANTS[498] = 1;
CONSTANTS[499] = 1.0;
CONSTANTS[500] = 1.22057;
CONSTANTS[501] = 0.8;
CONSTANTS[502] = 0;
CONSTANTS[503] = 0;
CONSTANTS[504] = 31.9719;
CONSTANTS[505] = 0;
CONSTANTS[506] = 60;
CONSTANTS[507] = 0;
CONSTANTS[508] = 1.0;
CONSTANTS[509] = 0.301963;
CONSTANTS[510] = 1.0;
CONSTANTS[511] = 1.00269;
CONSTANTS[512] = 1.09071;
CONSTANTS[513] = 0.859476;
CONSTANTS[514] = 1.0;
CONSTANTS[515] = 0;
CONSTANTS[516] = 1.02127;
CONSTANTS[517] = 1.01179;
CONSTANTS[518] = 1.1448;
CONSTANTS[519] = 1.00007;
CONSTANTS[520] = -0.060024;
CONSTANTS[521] = 1.00132;
CONSTANTS[522] = 0.0367573;
CONSTANTS[523] = 1;
CONSTANTS[524] = 1.00163;
CONSTANTS[525] = 1.00237;
CONSTANTS[526] = 3622.54;
CONSTANTS[527] = 2109.91;
CONSTANTS[528] = 2.368e-07;
CONSTANTS[529] = 0.694163;
CONSTANTS[530] = 204.497;
CONSTANTS[531] = 0.699673;
CONSTANTS[532] = 103.525;
CONSTANTS[533] = 16.9144;
CONSTANTS[534] = 159.549;
CONSTANTS[535] = 0.419998;
CONSTANTS[536] = 216.243;
CONSTANTS[537] = 72.2362;
CONSTANTS[538] = 48.0839;
CONSTANTS[539] = 0;
CONSTANTS[540] = 279.945;
CONSTANTS[541] = 0.000980838;
CONSTANTS[542] = 0.862514;
CONSTANTS[543] = 25.0404;
CONSTANTS[544] = 0.379883;
CONSTANTS[545] = 0.38131;
CONSTANTS[546] = 0.0123238;
CONSTANTS[547] = 3.00449;
CONSTANTS[548] = 0.100043;
CONSTANTS[549] = 2.00439;
CONSTANTS[550] = 0;
CONSTANTS[551] = 39.8952;
CONSTANTS[552] = 0.0101913;
CONSTANTS[553] = 0.00366525;
CONSTANTS[554] = 3.28246;
CONSTANTS[555] = (CONSTANTS[494]>80.0000 ? 80.0000 : CONSTANTS[494]);
CONSTANTS[556] = CONSTANTS[494] - 40.0000;
STATES[0] = CONSTANTS[549];
RATES[0] = 0.1001;
}
void
computeResiduals(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
                 double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
resid[0] = RATES[0] - ALGEBRAIC[11];
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
}
void
computeEssentialVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[0] = CONSTANTS[0]+STATES[0];
ALGEBRAIC[1] = STATES[0]/ALGEBRAIC[0];
ALGEBRAIC[2] =  100.000*ALGEBRAIC[1];
ALGEBRAIC[6] =  (CONSTANTS[555] - 40.0000)*ALGEBRAIC[2];
ALGEBRAIC[7] = (CONDVAR[0]<0.00000 ? 0.00000 : ALGEBRAIC[6]+CONSTANTS[556]);
ALGEBRAIC[8] = CONSTANTS[387] - ALGEBRAIC[7];
ALGEBRAIC[9] = (CONDVAR[1]<0.00000 ? 0.00000 :  ALGEBRAIC[8]*CONSTANTS[388]*CONSTANTS[431]+5.00000e-06);
ALGEBRAIC[3] = ALGEBRAIC[2]/( (CONSTANTS[493] - ALGEBRAIC[2])*CONSTANTS[495]);
ALGEBRAIC[4] = ALGEBRAIC[3]+1.50000;
ALGEBRAIC[5] =  0.333300*ALGEBRAIC[4];
ALGEBRAIC[10] =  STATES[0]*CONSTANTS[436]*ALGEBRAIC[5];
ALGEBRAIC[11] = (ALGEBRAIC[9] - ALGEBRAIC[10])+CONSTANTS[505];
}
void
getStateInformation(double* SI)
{
SI[0] = 1.0;
}
void
computeRoots(double VOI, double* CONSTANTS, double* RATES, double* OLDRATES, double* STATES,
             double* OLDSTATES, double* ALGEBRAIC, double* CONDVARS)
{
CONDVAR[0] = (ALGEBRAIC[6]+CONSTANTS[556]) - 0.00000;
CONDVAR[1] = ( ALGEBRAIC[8]*CONSTANTS[388]*CONSTANTS[431]+5.00000e-06) - 0.00000;
}