﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2002	Parameterbinding is lost	Christian Schubert	Adrian Pop	"Hi, 

while looking into the division by zero problems, I came across the 
{{{
Modelica.Fluid.Examples.InverseParameterization
}}}
model which fails with
{{{
stdout            | warning | division by zero in partial equation: (pipe2.flowModel.m_flows[1] * pipe2.flowModel.dp_nominal) / pipe2.flowModel.m_flow_nominal because pipe2.flowModel.m_flow_nominal == 0: File: /var/lib/hudson/jobs/OpenModelica_MSL_COVERAGE/workspace/OpenModelica/build/lib/omlibrary/Modelica 3.2.1/Fluid/Pipes.mo Line: 2048
stdout            | warning | at Time=0.000000
stdout            | warning | [line] 2505 | [file] Modelica.Fluid.Examples.InverseParameterization.c
assert            | assert  | division by zero
}}}

The parameter pipe2.flowModel.m_flow_nominal should not be zero, however, since
{{{
  Modelica.Fluid.Pipes.StaticPipe pipe2(
    [...]
    redeclare model FlowModel =
       Modelica.Fluid.Pipes.BaseClasses.FlowModels.NominalLaminarFlow (
        [...]
        m_flow_nominal=1))
}}}
when running instantiateModel I get
{{{
parameter Real pipe1.flowModel.m_flow_nominal(quantity = \""MassFlowRate\"", unit = \""kg/s\"") \""Mass flow rate for dp_nominal (for nominal models)\"";
}}}

So it seems that the (new) binding equation is lost somewhere in the FrontEnd. I ran the model exactly as in the msl32 mos-file so with +d=scodeInstShortcut.

So far I was not able to replicate the problem with a simple test model."	defect	closed	blocker	1.9.0	Frontend	trunk	fixed	lost parameter redeclare	Jens Frenkel Per Östlund
