UdK-VPT / BuildingSystems

Modelica BuildingSystems library
http://modelica-buildingsystems.de/
BSD 3-Clause "New" or "Revised" License
68 stars 33 forks source link

Windows Model with Airpaths - Compilation on JModelica.org #155

Open sohertz opened 3 years ago

sohertz commented 3 years ago

Hello I am currently working with BuildingSystems library and more particularly with the components located in the section Buildings.Constructions.Windows. I use JModelica.org for the compilation and simulation of the generated FMUs.

I am using the current examples of the library. I have been able to compile and simulate the model “Window” (Buildings.Constructions.Examples.Window) but for some reasons the models using “Airpaths” (examples: WindowWithAirpaths, WindowWithAirpathsFlexGeo,SlidingWindow…) do not work.

I am able to compile them (FMU is created) but the simulation never stops. When checking the generated log file, there are errors and warnings regarding convergence issues. Do you know how to solve this? From what I have seen in the models, the additions on 2 airpaths add 4 equations (2x ambience airpathPorts and x2 zone airpathPort) + change of the control (window.y that is directly related to the part of open window and the door modeling).

If someone as any advice how to solve the problem, I would be extremely pleased.

12 first lines of the log file : FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] <Error category="error">Evaluating the derivatives failed at <value name="t"> 2.5884980106344974E-001</value></Error>

FMIL: module = Model, log level = 3: [WARNING][FMU status:Warning] <Warning category="warning">Evaluating the derivatives failed (recoverable error). Returned with <value name="warningFlag">-1</value></Warning>

FMIL: module = Model, log level = 2: [INFO][FMU status:Error] <KinsolError category="error">

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] Error occured in <value name="function">KINSol</value> at <value name="t"> 2.5884980106345318E-001</value> when solving <value name="block">"3"</value>

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] <value name="msg">"The line search algorithm was unable to find an iterate sufficiently distinct from the current iterate."</value>

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] <value name="functionL2Norm"> 1.0000046731458036E-008</value>, <value name="scaledStepLength"> 3.3085943162949953E-024</value>, <value name="tolerance"> 1.0000000000000000E-008</value>

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] </KinsolError>

FMIL: module = Model, log level = 3: [WARNING][FMU status:Warning] <NonConverge category="warning">The equations with initial scaling didn't converge to a solution in <value name="block">"3"</value></NonConverge>

FMIL: module = Model, log level = 2: [INFO][FMU status:Error] <KinsolError category="error">

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] Error occured in <value name="function">KINSol</value> at <value name="t"> 2.5884980106345318E-001</value> when solving <value name="block">"3"</value>

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] <value name="msg">"The line search algorithm was unable to find an iterate sufficiently distinct from the current iterate."</value>

FMIL: module = Model, log level = 2: [ERROR][FMU status:Error] <value name="functionL2Norm"> 8.4315530612195261E-008</value>, <value name="scaledStepLength"> 3.3085943162949953E-024</value>, <value name="tolerance"> 1.0000000000000000E-008</value>