Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009421/0.0009421, allocations: 171.8 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.5 MB / 230.7 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008824/0.0008824, allocations: 101 kB / 281.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1856/0.1856, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.94e-05/1.967e-05, allocations: 224 / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1307, allocations: 61.91 MB / 0.4947 GB, free: 1.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.971/9.101, allocations: 3.17 GB / 3.665 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/9.102, allocations: 75.94 kB / 3.665 GB, free: 140.4 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 10.78/19.88, allocations: 3.077 GB / 6.741 GB, free: 58.48 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.457e-06/19.88, allocations: 3.969 kB / 6.741 GB, free: 58.48 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004487/19.88, allocations: 69.45 kB / 6.742 GB, free: 58.48 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.02023/19.9, allocations: 3.584 MB / 6.745 GB, free: 57.14 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 7.311e-05/19.9, allocations: 13.64 kB / 6.745 GB, free: 57.14 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002576/19.9, allocations: 314 kB / 6.745 GB, free: 57 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007666/19.91, allocations: 2.071 MB / 6.747 GB, free: 56.54 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002965/19.91, allocations: 151 kB / 6.747 GB, free: 56.48 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005628/19.91, allocations: 108.3 kB / 6.748 GB, free: 56.48 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007327/19.92, allocations: 2.833 MB / 6.75 GB, free: 56.46 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005368/19.92, allocations: 3.017 MB / 6.753 GB, free: 55.99 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.016e-05/19.92, allocations: 6.312 kB / 6.753 GB, free: 55.99 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000268/19.92, allocations: 5.188 kB / 6.753 GB, free: 55.99 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003887/19.92, allocations: 204.2 kB / 6.754 GB, free: 55.98 MB / 0.5573 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0242/19.95, allocations: 11.98 MB / 6.765 GB, free: 50.98 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004561/19.95, allocations: 2.178 MB / 6.767 GB, free: 50.85 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002033/19.95, allocations: 1.133 MB / 6.768 GB, free: 50.83 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01078/19.96, allocations: 5.627 MB / 6.774 GB, free: 48.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.513e-05/19.96, allocations: 57.53 kB / 6.774 GB, free: 47.98 MB / 0.5573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001447/19.97, allocations: 182.8 kB / 6.774 GB, free: 47.91 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=159): time 6.302e-06/19.97, allocations: 3.531 kB / 6.774 GB, free: 47.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=258): time 0.3648/20.33, allocations: 31.07 MB / 6.805 GB, free: 45.66 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/20.33, allocations: 130.7 kB / 6.805 GB, free: 45.53 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/20.33, allocations: 1.222 MB / 6.806 GB, free: 45.35 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0003687/20.33, allocations: 25.7 kB / 6.806 GB, free: 45.32 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006203/20.33, allocations: 1.074 MB / 6.807 GB, free: 44.83 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007808/20.33, allocations: 0.8257 MB / 6.808 GB, free: 44.27 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/20.33, allocations: 0 / 6.808 GB, free: 44.27 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001516/20.33, allocations: 420.5 kB / 6.808 GB, free: 43.96 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002602/20.34, allocations: 2.049 MB / 6.81 GB, free: 43.96 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/20.34, allocations: 2.612 MB / 6.813 GB, free: 43.36 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009346/20.35, allocations: 3.474 MB / 6.816 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.554e-05/20.35, allocations: 10.62 kB / 6.816 GB, free: 43.31 MB / 0.5573 GB Notification: Performance of matching and sorting (n=351) (initialization): time 0.01617/20.37, allocations: 7.851 MB / 6.824 GB, free: 43.06 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001219/20.37, allocations: 6.316 MB / 6.83 GB, free: 36.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/20.37, allocations: 20.72 kB / 6.83 GB, free: 36.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01812/20.39, allocations: 6.577 MB / 6.836 GB, free: 36.54 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/20.39, allocations: 322.6 kB / 6.837 GB, free: 36.54 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0192/20.41, allocations: 9.213 MB / 6.846 GB, free: 35.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005262/20.41, allocations: 236.9 kB / 6.846 GB, free: 35.37 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009607/20.41, allocations: 151 kB / 6.846 GB, free: 35.37 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/20.41, allocations: 3.688 kB / 6.846 GB, free: 35.37 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01465/20.43, allocations: 6.459 MB / 6.852 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.504e-05/20.43, allocations: 18.34 kB / 6.852 GB, free: 35.25 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01464/20.44, allocations: 5.445 MB / 6.858 GB, free: 35.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002057/20.44, allocations: 400.7 kB / 6.858 GB, free: 35.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/20.46, allocations: 7.202 MB / 6.865 GB, free: 34.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004522/20.46, allocations: 227 kB / 6.865 GB, free: 34.04 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008839/20.46, allocations: 135.4 kB / 6.865 GB, free: 34.04 MB / 0.5573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.ports[2].p:DUMMY_DER(flow=false fixed = false ) "Thermodynamic pressure in the connection point" type: Real [2] $DER.heater.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [1] $DER.heater.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real $DER.radiator.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [1] $DER.radiator.statesFM[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [3] $DER.radiator.statesFM[3].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [3] $DER.pipe.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [2] $DER.pipe.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [2] $DER.pipe.mediums[2].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [2] $DER.pipe.mediums[2].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [2] $DER.radiator.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] $DER.m_flow:DUMMY_DER(fixed = false ) type: Real $DER.tank.medium.d:DUMMY_DER(fixed = false ) "Density of medium" type: Real $DER.tank.level:DUMMY_DER(fixed = false ) "Level height of tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 79,18 78} Notification: Performance of prepare postOptimizeDAE: time 0.001667/20.46, allocations: 200.9 kB / 6.866 GB, free: 33.91 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/20.47, allocations: 222.5 kB / 6.866 GB, free: 33.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01813/20.48, allocations: 7.481 MB / 6.873 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.808e-05/20.48, allocations: 30.56 kB / 6.873 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/20.48, allocations: 3.594 kB / 6.873 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01318/20.5, allocations: 6.621 MB / 6.88 GB, free: 32.89 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02828/20.53, allocations: 13.67 MB / 6.893 GB, free: 27.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/20.53, allocations: 3.938 kB / 6.893 GB, free: 27.57 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007412/20.53, allocations: 175.1 kB / 6.893 GB, free: 27.57 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01727/20.54, allocations: 6.449 MB / 6.899 GB, free: 26.49 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007911/20.54, allocations: 48.25 kB / 6.9 GB, free: 26.48 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01645/20.56, allocations: 8.887 MB / 6.908 GB, free: 22.7 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Media/package.mo:4763:7-4764:44:writable] Error: Model is structurally singular, error found sorting equations 56: pump.medium.h = 104929.294642565 + 4181.885502948852 * (-298.15 + pump.heatTransfer.states[1].T) + 0.0009260700016004721 * (-101325.0 + pump.p_b_nominal); 55: pump.rho = 997.0480319717385 * (1.0 + 4.515426036491986e-10 * (-101325.0 + pump.p_b_nominal) + (-0.0002571314017648316) * (-298.15 + pump.heatTransfer.states[1].T)); 49: $cse49 = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.ThermodynamicState(pipe.mediums[2].p, pipe.mediums[2].T)); 29: $cse50 = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.ThermodynamicState(pipe.mediums[1].p, pipe.mediums[1].T)); 28: pipe.flowModel.Fs_p[1] = 0.5 * (pipe.crossAreas[1] + pipe.crossAreas[2]) * ($cse49 - $cse50) * pipe.flowModel.nParallel; 50: pipe.mediums[2].h = 104929.294642565 + 4181.885502948852 * (-298.15 + pipe.mediums[2].T) + 0.0009260700016004721 * (-101325.0 + pipe.mediums[2].p); 61: $cse41 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(pump.p_b_nominal, heater.statesFM[1].T)); 17: $cse40 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(heater.mediums[1].p, heater.mediums[1].T)); 15: heater.flowModel.Fs_p[1] = heater.crossAreas[1] * ($cse40 - $cse41) * heater.flowModel.nParallel; 111: m_flow = $cse38 * heater.flowModel.nParallel; 60: heater.flowModel.rhos[1] = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(pump.p_b_nominal, heater.statesFM[1].T)); 11: heater.flowModel.dps_fg[1] = (-2.0) * heater.flowModel.Fs_p[1] / (heater.flowModel.nParallel * 2.0 * heater.crossAreas[1]); 1: $cse38 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.WallFriction.massFlowRate_dp_staticHead(heater.flowModel.dps_fg[1], heater.flowModel.rhos[1], heater.flowModel.rhos[2], 0.0008899999999999999, 0.0008899999999999999, heater.pathLengths[1], heater.dimensions[1], 0.0, heater.crossAreas[1], heater.roughnesses[1], 0.5 * heater.flowModel.dp_small, heater.flowModel.Re_turbulent); 18: heater.flowModel.rhos[2] = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(heater.mediums[1].p, heater.mediums[1].T)); 19: heater.mediums[1].h = 104929.294642565 + 4181.885502948852 * (-298.15 + heater.mediums[1].T) + 0.0009260700016004721 * (-101325.0 + heater.mediums[1].p); 31: pipe.mediums[1].h = 104929.294642565 + 4181.885502948852 * (-298.15 + pipe.mediums[1].T) + 0.0009260700016004721 * (-101325.0 + pipe.mediums[1].p); 36: pipe.H_flows[2] = semiLinear(m_flow, pipe.mediums[1].h, pipe.mediums[2].h); 125: $STATESET1.J[14] = pipe.H_flows[1] - semiLinear(m_flow, heater.mediums[1].h, pipe.mediums[1].h); 25: pipe.flowModel.dps_fg[1] = (-2.0) * pipe.flowModel.Fs_p[1] / (pipe.flowModel.nParallel * (pipe.crossAreas[1] + pipe.crossAreas[2])); 23: pipe.Hb_flows[1] = pipe.H_flows[1] - pipe.H_flows[2]; 27: pipe.mediums[1].d = 997.0480319717385 * (1.0 + 4.515426036491986e-10 * (-101325.0 + pipe.mediums[1].p) + (-0.0002571314017648316) * (-298.15 + pipe.mediums[1].T)); 24: -pipe.Hb_flows[1] = 0.5 * pipe.vs[1] * pipe.crossAreas[1] * (pipe.mediums[2].p + pipe.flowModel.dps_fg[1] - pipe.mediums[1].p) * pipe.nParallel; 59: heater.statesFM[1].T = 273.058616085119 + 0.0002391265851958049 * pump.medium.h + (-2.214479571349944e-07) * (-101325.0 + pump.p_b_nominal); 95: tank.ports[2].h_outflow = 104929.294642565 + 4181.885502948852 * (-298.15 + tank.medium.T) + 0.0009260700016004721 * (-101325.0 + tank.p_ambient); 26: pipe.vs[1] = m_flow / (pipe.nParallel * pipe.mediums[1].d * pipe.crossAreas[1]); 58: pump.Hb_flow = m_flow * (smooth(0, tank.ports[2].h_outflow) - smooth(0, pump.medium.h)); 64: pump.eta = Modelica.Fluid.Machines.ControlledPump$pump.efficiencyCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, 0.8); 57: -pump.Hb_flow = pump.W_single * /*Real*/(pump.nParallel); 7: pump.dp_pump = pump.p_b_nominal - tank.ports[2].p; 4: pump.V_flow = m_flow / pump.rho; 124: $STATESET1.J[13] = pump.W_single - pump.dp_pump * pump.V_flow_single / pump.eta; 62: pump.V_flow_single = pump.V_flow / /*Real*/(pump.nParallel); for variables pump.heatTransfer.states[1].T(70), pump.rho(71), pipe.flowModel.rhos[2](77), pipe.mediums[1].d(97), pipe.vs[1](98), $cse49(76), pump.head(63), heater.flowModel.Fs_p[2](110), heater.vs[1](112), $STATESET1.J[9](9), heater.flowModel.rhos[1](66), radiator.mediums[1].h(126), heater.Qb_flows[1](116), heater.flowModel.Fs_p[1](109), heater.heatTransfer.Ts[1](108), $cse50(95), heater.statesFM[3].T(91), $cse41(65), heater.H_flows[2](102), heater.Hb_flows[1](104), pipe.Hb_flows[1](100), heater.H_flows[1](103), pump.medium.h(67), radiator.statesFM[3].T(25), pipe.H_flows[1](101), pump.Hb_flow(68), $STATESET1.J[4](4), pump.W_single(69), heater.mediums[1].h(122), tank.inFlow[2](119), $cse47(26), pump.V_flow(64), pump.eta(62) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.009843/20.57, allocations: 3.794 MB / 6.912 GB, free: 21.35 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01871/20.59, allocations: 10.11 MB / 6.922 GB, free: 16.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002557/20.59, allocations: 0.8237 MB / 6.923 GB, free: 15.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001148/20.59, allocations: 4 kB / 6.923 GB, free: 15.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003761/20.6, allocations: 211.9 kB / 6.923 GB, free: 15.36 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005133/20.6, allocations: 198 kB / 6.923 GB, free: 15.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004552/20.6, allocations: 115.4 kB / 6.923 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001822/20.6, allocations: 0.8903 MB / 6.924 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of sort global known variables: time 3.11e-07/20.6, allocations: 0 / 6.924 GB, free: 14.36 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01316/20.61, allocations: 3.082 MB / 6.927 GB, free: 11.33 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 77,19 107} Notification: Performance of Backend phase and start with SimCode phase: time 0.01387/20.63, allocations: 2.459 MB / 6.929 GB, free: 9.539 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02381/20.65, allocations: 8.298 MB / 6.937 GB, free: 2.461 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/20.65, allocations: 4 kB / 6.937 GB, free: 2.457 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.00911/20.66, allocations: 3.056 MB / 6.94 GB, free: 15.94 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006078/20.67, allocations: 0.7854 MB / 6.941 GB, free: 15.39 MB / 0.573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3851:9-3851:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]