| 1 | package StackOverflowError
|
|---|
| 2 | package ASMx
|
|---|
| 3 | package GenericUnits
|
|---|
| 4 | model Nitri1
|
|---|
| 5 | replaceable model AerationModel = Interfaces.AerationFine constrainedby
|
|---|
| 6 | Interfaces.AerationCommon;
|
|---|
| 7 | model JModel2 = AerationModel;
|
|---|
| 8 | extends JModel2(redeclare model OxygenModel1=Interfaces.partialModel1);
|
|---|
| 9 | equation
|
|---|
| 10 | end Nitri1;
|
|---|
| 11 | end GenericUnits;
|
|---|
| 12 |
|
|---|
| 13 | package Interfaces
|
|---|
| 14 | partial model AerationCommon
|
|---|
| 15 | replaceable model OxygenModel = partialModel1;
|
|---|
| 16 | model JModel = OxygenModel;
|
|---|
| 17 | extends JModel;
|
|---|
| 18 | end AerationCommon;
|
|---|
| 19 |
|
|---|
| 20 | partial model AerationFine
|
|---|
| 21 | replaceable model OxygenModel1 = partialModel2;
|
|---|
| 22 | extends AerationCommon(redeclare model OxygenModel = OxygenModel1);
|
|---|
| 23 | equation
|
|---|
| 24 | end AerationFine;
|
|---|
| 25 |
|
|---|
| 26 | partial model partialModel1
|
|---|
| 27 | end partialModel1;
|
|---|
| 28 |
|
|---|
| 29 | partial model partialModel2
|
|---|
| 30 | end partialModel2;
|
|---|
| 31 | end Interfaces;
|
|---|
| 32 |
|
|---|
| 33 | package Test = WasteWater.ASMx;
|
|---|
| 34 |
|
|---|
| 35 | end ASMx;
|
|---|
| 36 | end StackOverflowError;
|
|---|