One of the major present challenges is the worldwide transition from a fossil based energy system to a renewable and sustainable one to maintain the global temperature rise below 2C. Focus must be laid on a sustainable energy generation to avoid negative environmental impacts. Continuous methods of energy generation will be important next to well established, but also highly volatile energy generation based on solar and wind power. Therefore, focus must be led on utilization of yet not used energy sources, especially, of biomass and organic waste streams. Biogas production from so-called energy crops, which are planted on purpose for energy production, got strongly criticized in the last few years. Contrary, biogas production from waste streams can play an important role for the transition to a renewable and sustainable energy system. Same is applicable for the gasification of biomass for syngas production, which is a potential source of renewable hydrogen.Especially, agricultural farms in Developing and Emerging Countries may profit from biogas production, as it helps to reduce their dependency on fossil fuels and reduces the amount of uncontrolled rotting waste. For utilization as substitute for fossil fuels, biogas must be upgraded to biomethane beforehand. Biogas upgrading gains attraction also for European biogas production plants, which typically combust the biogas in a CHP plant for power and heat production, but are dependent on national subsidies. Those subsidies will expire in many European countries in the next years and thus, biogas plant operators are searching for new valorization routes. One route is biogas upgrading to high quality biomethane as substitute for natural gas. However, those upgrading plants are expensive and thus, often not affordable for small agricultural farms or small biogas production plants. Development of a mobile biogas upgrading plant travelling from one biogas plant to the next for on-site biogas upgrading, can make biogas upgrading affordable for small plant operators. One goal of the these was the development and process simulation based optimization of a virtual prototype for mobile biogas upgrading with integrated compression of biomethane to 200 bar for storage. Membrane based upgrading system comprising also cool-drying and adsorptive removal of impurities was based on the analysis of biogas produced in Paraná, Brazil, which was chosen as model region, and on the analysis of suitable biogas upgrading and cleaning technologies. Broad range of biogas composition observed for Brazilian biogas plants covers also the biogas quality typical for European plants.Gas permeation model, developed by TU Wien and based on the solution-diffusion model, was adapted and extended for the optimization of the mobile biogas upgrading process in Aspen Plus. Therefore, permeances _(CH_4 ), _(CO_2 ) and _(H_2 ) of different membranes were examined experimentally and implemented in the model. Further, one membrane type was investigated in a temperature range of 25 C 60 C to develop an Arrhenius based temperature dependency of the solution-diffusion model. This temperature dependency was then implemented in the gas permeation model. Present, the extended gas permeation model can be used for gas separation tasks at ambient to slightly elevated temperatures.First results of the process simulation showed that the mobile biogas upgrading process based on a two-stage membrane separation step can produced biomethane with required minimum purity of 96.5 %mol and 97.0 %mol for Brazil and Austria, respectively. Based on these results, optimization of the process by adapting membrane type, membrane step configuration, operational pressure and temperature was carried out. Optimized mobile upgrading plant allows the production of high quality biomethane with minimum 98.0 %mol CH4 at high CH4 recovery rates above 98 %.Specific energy demand of the process for upgrading 1 m3 biogas was reduced by these optimizations from 0.363 kWh/m3STP,BG to 0.307 k kWh/m3STP,BG. Hence, specific energy demand of the mobile biogas upgrading plant is within the range typical for membrane based upgrading plants. Contrary to common stationary biogas upgrading plants, which typically inject the biomethane at maximum 16 bar to the gas grid, energy intensive compression of the product to 200 bar was included in the simulation to allow direct utilization as fuel. Therefore, specific energy demand can be further decreased to 0.213 kWh/m3STP,BG, if this compression step is not necessary. Optimization was carried out by the solution-diffusion model, which does not consider the influence of certain gas species on the permeance of gases through membranes. Dual-sorption model, which is based on the solution-diffusion model, describes this influences. Therefore, another goal of the work was the development of the dual-sorption model for process simulation. Simplified model with cumulative parameters was developed, as some parameters of the model are accessible only by complex experiments.Syngas production and combustion of thereby produced coal and of the residual stream from H2 purification is carried out at several hundred degrees Celsius. H2 separation from the syngas is carried out optimally at elevated temperatures to avoid extensive cooling of the syngas and reheating of the residual stream. One suitable method for H2 separation is gas permeation by polymer membranes. Still, those membranes are used typically at temperatures below 80C to 100C to avoid changes or destruction of the membrane matrix. Investigation of potentially suitable Matrimid® as membrane material for H2/CO2 at elevated temperatures was carried out in this work. Those experiments were also the basis for the development of the simplified dual-sorption model. Comprehensive mixed gas experiments with ternary H2/CO2/N2, binary H2/CO2 and H2/N2 gas mixtures were carried out at 100 C, 150 C and 200 C and further used for estimation of missing parameters. Experiments showed only slight increase of H2/CO2 selectivity _(H_2/CO_2 ) with rising temperature level and thus, H2 separation from syngas is not efficient with those Matrimid® membranes. Still, those membranes were stable in the investigated temperature range and thus, Matrimid® may be used as basis for membrane development for H2/CO2 separation under harsh conditions. Results from the mixed gas experiments were used for estimation of the dual-sorption parameters at all investigated temperature levels. It was not possible to obtain a temperature dependency of the estimated parameters, which may result from changes in the membrane matrix within 150 C and 200 C not measured with these experiments, or from too vigorous aggregation of the cumulative parameters. Still, developed dual-sorption model calculated the results from the experiments at high accuracy with maximum 10 % deviation. In future, the dual-sorption model may be applied also to other gas separation tasks, like biogas upgrading.