diff --git a/.travis.yml b/.travis.yml index 85c736f61dd..c1773ac8bb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -110,7 +110,6 @@ env: - TEST_ARG="make test-dymola PACKAGE=\"Buildings.Templates\"" - TEST_ARG="make test-openmodelica PACKAGE=\"Buildings.Templates\"" - TEST_ARG="make test-optimica PACKAGE=\"Buildings.Templates\"" - - TEST_ARG="make test-templates-optimica" - TEST_ARG="make test-templates-dymola" before_install: @@ -180,7 +179,7 @@ script: - | TRAVIS_WAIT=90 if [[ "$TEST_ARG" == *test-templates* ]]; then - TRAVIS_WAIT=180 + TRAVIS_WAIT=120 fi (cd Buildings/Resources/Scripts/travis && travis_wait $TRAVIS_WAIT $TEST_ARG) diff --git a/Buildings/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/VAV/Validation/Controller.mo b/Buildings/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/VAV/Validation/Controller.mo index afcceb0434f..f3aab032d64 100644 --- a/Buildings/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/VAV/Validation/Controller.mo +++ b/Buildings/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/VAV/Validation/Controller.mo @@ -115,11 +115,20 @@ model Controller "Validation controller model" final period=3600) "Freeze protection reset" annotation (Placement(transformation(extent={{-240,-170},{-220,-150}}))); - Buildings.Controls.OBC.CDL.Logical.TrueFalseHold truFalHol( - final trueHoldDuration=1) - "Break loop" - annotation (Placement(transformation(extent={{220,30},{240,50}}))); - + Buildings.Controls.OBC.CDL.Conversions.BooleanToReal booToRea( + final realTrue=1, + final realFalse=0) + "Convert to real" + annotation (Placement(transformation(extent={{190,70},{170,90}}))); + Buildings.Fluid.BaseClasses.ActuatorFilter fil( + final f=5/(2*Modelica.Constants.pi*10), + initType=Modelica.Blocks.Types.Init.InitialOutput, + final y_start=0) + "Filter signal" + annotation (Placement(transformation(extent={{160,70},{140,90}}))); + Buildings.Controls.OBC.CDL.Reals.GreaterThreshold greThr(final t=0.5) + "Compare filtered signal to threshold to trigger true status" + annotation (Placement(transformation(extent={{130,70},{110,90}}))); equation connect(TOut.y, conAHU.TOut) annotation (Line(points={{-218,190},{62,190},{62, 25.4545},{96,25.4545}}, color={0,0,127})); @@ -159,11 +168,6 @@ equation annotation (Line(points={{-218,-160},{-202,-160}}, color={255,0,255})); connect(not1.y, conAHU.u1SofSwiRes) annotation (Line(points={{-178,-160},{56, -160},{56,-76.3636},{96,-76.3636}}, color={255,0,255})); - connect(conAHU.y1SupFan, truFalHol.u) annotation (Line(points={{184,-40},{200, - -40},{200,40},{218,40}}, color={255,0,255})); - connect(truFalHol.y, conAHU.u1SupFan) annotation (Line(points={{242,40},{250, - 40},{250,70},{50,70},{50,16.3636},{96,16.3636}}, - color={255,0,255})); connect(sumDesPopBreZon.y, conAHU.VSumAdjPopBreZon_flow) annotation (Line( points={{-178,100},{38,100},{38,5.45455},{96,5.45455}}, color={0,0,127})); connect(sumDesAreBreZon.y, conAHU.VSumAdjAreBreZon_flow) annotation (Line( @@ -172,6 +176,14 @@ equation {32,-3.63636},{96,-3.63636}}, color={0,0,127})); connect(opeMod.y, conAHU.uAhuOpeMod) annotation (Line(points={{-178,250},{80, 250},{80,38.1818},{96,38.1818}}, color={255,127,0})); + connect(booToRea.y, fil.u) + annotation (Line(points={{168,80},{162,80}}, color={0,0,127})); + connect(fil.y, greThr.u) + annotation (Line(points={{139,80},{132,80}}, color={0,0,127})); + connect(greThr.y, conAHU.u1SupFan) annotation (Line(points={{108,80},{86,80}, + {86,16.3636},{96,16.3636}}, color={255,0,255})); + connect(conAHU.y1SupFan, booToRea.u) annotation (Line(points={{184,-40},{200, + -40},{200,80},{192,80}}, color={255,0,255})); annotation (experiment(StopTime=3600.0, Tolerance=1e-06), __Dymola_Commands(file="modelica://Buildings/Resources/Scripts/Dymola/Controls/OBC/ASHRAE/G36/AHUs/MultiZone/VAV/Validation/Controller.mos" "Simulate and plot"), @@ -184,6 +196,11 @@ Buildings.Controls.OBC.ASHRAE.G36.AHUs.MultiZone.VAV.Controller. ", revisions="