<?xml version="1.0" encoding="UTF-8"?>
<PharmML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns="http://www.pharmml.org/pharmml/0.8/PharmML"
    xsi:schemaLocation="http://www.pharmml.org/pharmml/0.8/PharmML"
    xmlns:math="http://www.pharmml.org/pharmml/0.8/Maths"
    xmlns:ct="http://www.pharmml.org/pharmml/0.8/CommonTypes"
    xmlns:ds="http://www.pharmml.org/pharmml/0.8/Dataset"
    xmlns:mdef="http://www.pharmml.org/pharmml/0.8/ModelDefinition"
    xmlns:mstep="http://www.pharmml.org/pharmml/0.8/ModellingSteps"
    xmlns:design="http://www.pharmml.org/pharmml/0.8/TrialDesign"
    writtenVersion="0.8.1">

    <ct:Name>Minimal model generated by nmoutput2so</ct:Name>
    <ModelDefinition xmlns="http://www.pharmml.org/pharmml/0.8/ModelDefinition">
        <VariabilityModel blkId="vm_err" type="residualError">
            <Level referenceLevel="false" symbId="DV"/>
        </VariabilityModel>
        <VariabilityModel blkId="vm_eta" type="parameterVariability">
            <Level referenceLevel="true" symbId="ID"/>
        </VariabilityModel>
        <ParameterModel blkId="pm">
            <PopulationParameter symbId="TVCL"/>
            <PopulationParameter symbId="TVV"/>
            <PopulationParameter symbId="IVCL"/>
            <PopulationParameter symbId="IVV"/>
            <PopulationParameter symbId="SIGMA_1_1_"/>
            <RandomVariable symbId="ETA1">
                <ct:VariabilityReference>
                    <ct:SymbRef blkIdRef="vm_eta" symbIdRef="ID"/>
                </ct:VariabilityReference>
                <Distribution>
                    <ProbOnto xmlns="http://www.pharmml.org/probonto/ProbOnto" name="Normal2">
                        <Parameter name="mean">
                            <ct:Assign>
                                <ct:Real>0</ct:Real>
                            </ct:Assign>
                        </Parameter>
                        <Parameter name="var">
                            <ct:Assign>
                                <ct:SymbRef symbIdRef="IVCL"/>
                            </ct:Assign>
                        </Parameter>
                    </ProbOnto>
                </Distribution>
            </RandomVariable>
            <RandomVariable symbId="ETA2">
                <ct:VariabilityReference>
                    <ct:SymbRef blkIdRef="vm_eta" symbIdRef="ID"/>
                </ct:VariabilityReference>
                <Distribution>
                    <ProbOnto xmlns="http://www.pharmml.org/probonto/ProbOnto" name="Normal2">
                        <Parameter name="mean">
                            <ct:Assign>
                                <ct:Real>0</ct:Real>
                            </ct:Assign>
                        </Parameter>
                        <Parameter name="var">
                            <ct:Assign>
                                <ct:SymbRef symbIdRef="IVV"/>
                            </ct:Assign>
                        </Parameter>
                    </ProbOnto>
                </Distribution>
            </RandomVariable>
            <RandomVariable symbId="EPS1">
                <ct:VariabilityReference>
                    <ct:SymbRef blkIdRef="vm_err" symbIdRef="DV"/>
                </ct:VariabilityReference>
                <Distribution>
                    <ProbOnto xmlns="http://www.pharmml.org/probonto/ProbOnto" name="Normal2">
                        <Parameter name="mean">
                            <ct:Assign>
                                <ct:Real>0</ct:Real>
                            </ct:Assign>
                        </Parameter>
                        <Parameter name="var">
                            <ct:Assign>
                                <ct:SymbRef symbIdRef="SIGMA_1_1_"/>
                            </ct:Assign>
                        </Parameter>
                    </ProbOnto>
                </Distribution>
            </RandomVariable>
        </ParameterModel>
    </ModelDefinition>
    <design:TrialDesign>
        <design:ExternalDataSet toolName="NONMEM" oid="nm_ds">
            <design:ColumnMapping>
                <ds:ColumnRef columnIdRef="ID"/>
                <ct:SymbRef symbIdRef="ID"/>
            </design:ColumnMapping>
            <design:ColumnMapping>
                <ds:ColumnRef columnIdRef="TIME"/>
                <ct:SymbRef symbIdRef="TIME"/>
            </design:ColumnMapping>
            <design:ColumnMapping>
                <ds:ColumnRef columnIdRef="AMT"/>
                <ct:SymbRef symbIdRef="AMT"/>
            </design:ColumnMapping>
            <design:ColumnMapping>
                <ds:ColumnRef columnIdRef="WGT"/>
                <ct:SymbRef symbIdRef="WGT"/>
            </design:ColumnMapping>
            <design:ColumnMapping>
                <ds:ColumnRef columnIdRef="APGR"/>
                <ct:SymbRef symbIdRef="APGR"/>
            </design:ColumnMapping>
            <design:ColumnMapping>
                <ds:ColumnRef columnIdRef="DV"/>
                <ct:SymbRef symbIdRef="DV"/>
            </design:ColumnMapping>
            <DataSet xmlns="http://www.pharmml.org/pharmml/0.8/Dataset">
                <Definition>
                    <Column columnId="ID" columnType="id" valueType="real" columnNum="1"/>
                    <Column columnId="TIME" columnType="undefined" valueType="real" columnNum="2"/>
                    <Column columnId="AMT" columnType="undefined" valueType="real" columnNum="3"/>
                    <Column columnId="WGT" columnType="undefined" valueType="real" columnNum="4"/>
                    <Column columnId="APGR" columnType="undefined" valueType="real" columnNum="5"/>
                    <Column columnId="DV" columnType="dv" valueType="real" columnNum="6"/>
                </Definition>
                <ExternalFile oid="dataset_id">
                    <path>/home/rikard/devel/dummy/pheno.dta</path>
                </ExternalFile>
            </DataSet>
        </design:ExternalDataSet>
    </design:TrialDesign>
</PharmML>