old_hidden_avoid_double_computation=Hidden.AvoidDoubleComputation;
Hidden.AvoidDoubleComputation=true;
simulateModel("Buildings.DHC.Loads.BaseClasses.Examples.CouplingSpawnZ1",
    method="cvode",
    tolerance=1e-6,
    numberOfIntervals=500,
    stopTime=604800.0,
    resultFile="CouplingSpawnZ1");
Hidden.AvoidDoubleComputation=old_hidden_avoid_double_computation;
createPlot(
    id=1,
    position={1, 20, 492, 682},
    y={"bui.maxTSet.y", "bui.minTSet.y",  "bui.zon.TAir"},
    autoscale=true,
    grid=true
);
createPlot(
    id=1,
    y={"bui.terUni.QActHea_flow"},
    grid=true,
    subPlot=2
);
createPlot(
    id=1,
    y={"bui.terUni.QActCoo_flow"},
    grid=true,
    subPlot=3
);
createPlot(
    id=2,
    position={499, 20, 510, 682},
    y={"supHeaWat.T_in", "bui.terUni.T_aHeaWat_nominal"},
    autoscale=true,
    grid=true
);
createPlot(
    id=2,
    y={"bui.disFloHea.mReq_flow[1]", "bui.disFloHea.mAct_flow[1].y", "bui.disFloHea.m_flow_nominal"},
    grid=true,
    subPlot=2
);
createPlot(
    id=2,
    y={"bui.terUni.QActHea_flow", "bui.terUni.QHea_flow_nominal"},
    grid=true,
    subPlot=3
);
plotExpression(
    apply(CouplingSpawnZ1.bui.terUni.facMul*CouplingSpawnZ1.bui.terUni.QHea_flow_nominal),
    false,
    "facMul*QHea_flow_nominal",
    2);
createPlot(
    id=3,
    position={1016, 21, 485, 681},
    y={"supChiWat.T_in", "bui.terUni.T_aChiWat_nominal"},
    autoscale=true,
    grid=true
);
createPlot(
    id=3,
    y={"bui.disFloCoo.mReq_flow[1]", "bui.disFloCoo.mAct_flow[1].y", "bui.disFloCoo.m_flow_nominal"},
    grid=true,
    subPlot=2
);
createPlot(
    id=3,
    y={"bui.terUni.QActCoo_flow"},
    grid=true,
    subPlot=3
);
plotExpression(
    apply(CouplingSpawnZ1.bui.terUni.facMul*CouplingSpawnZ1.bui.terUni.QCoo_flow_nominal),
    false,
    "facMul*QCoo_flow_nominal",
    3);
