﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3925	Protected variables are incorrectly written to the result file	Francesco Casella	Per Östlund	"I have some models where I am trying to make the size of the result file more manageable by making protected the internal variables of a model which are not of interest. I can do it in two ways:
- put some variables in a model inside the protected section
- for composite model, declare the sub-models in the protected section, so that their entire contents become protected

In both cases, the corresponding variables are correctly marked as {{{isProtected = ""true"" hideResult = ""false""}}} in the {{{_init.xml}}} file. However, the variables from the first set are correctly not written to the result file, while the variables from the second set are written to the file.

Q1: Why is this happening?

Q2: Shouldn't the simulation runtime use the attributes from the XML file to decide whether or not a variable needs to be saved onto disk?

I can provide the test case privately to any interested developer."	defect	assigned	low	2.0.0	Run-time				
