Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00117/0.00117, allocations: 199.6 kB / 8.536 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 90.56 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 45.14 MB / 383.3 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 9.428e-06/9.548e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1585, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.89/8.049, allocations: 3.171 GB / 3.675 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/8.049, allocations: 77.45 kB / 3.675 GB, free: 151.6 MB / 0.5261 GB Notification: Performance of FrontEnd: time 10.54/18.58, allocations: 3.106 GB / 6.78 GB, free: 66.18 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.000254/18.58, allocations: 68.8 kB / 6.781 GB, free: 66.18 MB / 0.573 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.01877/18.6, allocations: 3.608 MB / 6.784 GB, free: 64.48 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 7.018e-05/18.6, allocations: 11.75 kB / 6.784 GB, free: 64.48 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003703/18.61, allocations: 311.4 kB / 6.784 GB, free: 64.34 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008037/18.62, allocations: 2.087 MB / 6.786 GB, free: 63.88 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/18.62, allocations: 153.1 kB / 6.787 GB, free: 63.81 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001163/18.62, allocations: 109.8 kB / 6.787 GB, free: 63.81 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005782/18.62, allocations: 2.931 MB / 6.789 GB, free: 63.8 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004809/18.63, allocations: 3.08 MB / 6.792 GB, free: 63.32 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.467e-05/18.63, allocations: 2.812 kB / 6.793 GB, free: 63.32 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/18.63, allocations: 9.062 kB / 6.793 GB, free: 63.32 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002169/18.63, allocations: 221.4 kB / 6.793 GB, free: 63.32 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02022/18.65, allocations: 12.08 MB / 6.805 GB, free: 58.31 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002745/18.65, allocations: 1.925 MB / 6.806 GB, free: 58.28 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/18.65, allocations: 1.174 MB / 6.808 GB, free: 58.26 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009968/18.66, allocations: 5.768 MB / 6.813 GB, free: 55.32 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/18.66, allocations: 56.28 kB / 6.813 GB, free: 55.28 MB / 0.573 GB Notification: Performance of pre-optimization done (n=160): time 4.619e-06/18.66, allocations: 0 / 6.813 GB, free: 55.28 MB / 0.573 GB Notification: Performance of matching and sorting (n=259): time 0.4571/19.12, allocations: 32.29 MB / 6.845 GB, free: 53.03 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.048e-05/19.12, allocations: 131.6 kB / 6.845 GB, free: 52.9 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002355/19.12, allocations: 1.23 MB / 6.846 GB, free: 52.73 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004466/19.12, allocations: 30.73 kB / 6.846 GB, free: 52.7 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005153/19.12, allocations: 0.8209 MB / 6.847 GB, free: 52.2 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009633/19.12, allocations: 0.8382 MB / 6.848 GB, free: 51.64 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002564/19.12, allocations: 0 / 6.848 GB, free: 51.64 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001765/19.12, allocations: 416 kB / 6.848 GB, free: 51.34 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002981/19.13, allocations: 2.163 MB / 6.85 GB, free: 51.32 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003284/19.13, allocations: 2.711 MB / 6.853 GB, free: 50.72 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/19.14, allocations: 3.873 MB / 6.857 GB, free: 50.68 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.132e-05/19.14, allocations: 3.969 kB / 6.857 GB, free: 50.68 MB / 0.573 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.02119/19.16, allocations: 8.454 MB / 6.865 GB, free: 50.43 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001513/19.17, allocations: 6.304 MB / 6.871 GB, free: 43.99 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.171e-05/19.17, allocations: 16.69 kB / 6.871 GB, free: 43.99 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02058/19.19, allocations: 6.698 MB / 6.878 GB, free: 43.93 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/19.19, allocations: 325.5 kB / 6.878 GB, free: 43.93 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.019/19.21, allocations: 9.655 MB / 6.887 GB, free: 42.76 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005086/19.21, allocations: 221.4 kB / 6.888 GB, free: 42.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007235/19.21, allocations: 148.4 kB / 6.888 GB, free: 42.75 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/19.21, allocations: 3.75 kB / 6.888 GB, free: 42.75 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01618/19.23, allocations: 7.019 MB / 6.895 GB, free: 42.65 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.005e-05/19.23, allocations: 15.56 kB / 6.895 GB, free: 42.65 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.017/19.25, allocations: 5.538 MB / 6.9 GB, free: 42.59 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/19.25, allocations: 399.7 kB / 6.9 GB, free: 42.59 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01527/19.26, allocations: 7.611 MB / 6.908 GB, free: 40.28 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005024/19.27, allocations: 215 kB / 6.908 GB, free: 40.27 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/19.27, allocations: 133.6 kB / 6.908 GB, free: 40.25 MB / 0.573 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.pump.dp_pump:DUMMY_DER(fixed = false ) "Pressure change" type: Real $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[3].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [3] $DER.radiator.statesFM[1].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] output $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 (164): * Single equations (assignments): 162 * 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.001902/19.27, allocations: 193.5 kB / 6.908 GB, free: 40.12 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001324/19.27, allocations: 221.8 kB / 6.909 GB, free: 40 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02377/19.3, allocations: 8.359 MB / 6.917 GB, free: 37.48 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001223/19.3, allocations: 32.59 kB / 6.917 GB, free: 37.48 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/19.3, allocations: 4.719 kB / 6.917 GB, free: 37.48 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0158/19.31, allocations: 7.133 MB / 6.924 GB, free: 35.02 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03634/19.35, allocations: 14.77 MB / 6.938 GB, free: 24.46 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/19.35, allocations: 8.312 kB / 6.938 GB, free: 24.45 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009587/19.35, allocations: 172.7 kB / 6.938 GB, free: 24.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01917/19.37, allocations: 6.55 MB / 6.945 GB, free: 19.38 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001089/19.37, allocations: 45.41 kB / 6.945 GB, free: 19.35 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01886/19.39, allocations: 9.399 MB / 6.954 GB, free: 11.3 MB / 0.573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Pipes.mo:484:9-484:76:writable] Error: Model is structurally singular, error found sorting equations 35: pipe.H_flows[2] = semiLinear(m_flow, pipe.mediums[1].h, pipe.mediums[2].h); 33: heater.statesFM[3].T = 273.058616085119 + 0.0002391265851958049 * pipe.mediums[1].h + -2.214479571349944e-07 * (-101325.0 + pipe.mediums[1].p); 49: pipe.mediums[2].h = 104929.294642565 + 4181.885502948852 * (-298.15 + pipe.mediums[2].T) + 0.0009260700016004721 * (-101325.0 + pipe.mediums[2].p); 46: pipe.mediums[2].d = 997.0480319717385 * (1.0 + 4.515426036491986e-10 * (-101325.0 + pipe.mediums[2].p) + -0.0002571314017648316 * (-298.15 + pipe.mediums[2].T)); 45: pipe.vs[2] = m_flow / (pipe.nParallel * pipe.mediums[2].d * pipe.crossAreas[2]); 52: pipe.H_flows[3] = semiLinear(m_flow, pipe.mediums[2].h, pipe.mediums[2].h); 125: $STATESET1.J[14] = -(pipe.Hb_flows[2] + 0.5 * pipe.vs[2] * pipe.crossAreas[2] * (pipe.mediums[2].p + pipe.flowModel.dps_fg[1] - pipe.mediums[1].p) * pipe.nParallel); 26: 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)); 25: pipe.vs[1] = m_flow / (pipe.nParallel * pipe.mediums[1].d * pipe.crossAreas[1]); 34: pipe.Hb_flows[2] = pipe.H_flows[2] - pipe.H_flows[3]; 23: -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; 48: $cse51 = 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: $cse52 = 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)); 27: pipe.flowModel.Fs_p[1] = 0.5 * (pipe.crossAreas[1] + pipe.crossAreas[2]) * ($cse51 - $cse52) * pipe.flowModel.nParallel; 47: pipe.flowModel.rhos[2] = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.ThermodynamicState(pipe.mediums[2].p, pipe.mediums[2].T)); 28: pipe.flowModel.rhos[1] = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.ThermodynamicState(pipe.mediums[1].p, pipe.mediums[1].T)); 24: pipe.flowModel.dps_fg[1] = -2.0 * pipe.flowModel.Fs_p[1] / (pipe.flowModel.nParallel * (pipe.crossAreas[1] + pipe.crossAreas[2])); 124: $STATESET1.J[13] = $cse50 - Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.WallFriction.massFlowRate_dp_staticHead(pipe.flowModel.dps_fg[1], pipe.flowModel.rhos[1], pipe.flowModel.rhos[2], 0.0008899999999999999, 0.0008899999999999999, 10.0, pipe.flowModel.diameters[1], 0.0, 0.5 * (pipe.crossAreas[1] + pipe.crossAreas[2]), 0.5 * (pipe.roughnesses[1] + pipe.roughnesses[2]), pipe.flowModel.dp_small, pipe.flowModel.Re_turbulent); 22: pipe.Hb_flows[1] = pipe.H_flows[1] - pipe.H_flows[2]; 30: pipe.mediums[1].h = 104929.294642565 + 4181.885502948852 * (-298.15 + pipe.mediums[1].T) + 0.0009260700016004721 * (-101325.0 + pipe.mediums[1].p); 108: m_flow = $cse50 * pipe.flowModel.nParallel; 123: $STATESET1.J[12] = pipe.H_flows[1] - semiLinear(m_flow, heater.mediums[1].h, pipe.mediums[1].h); 18: heater.mediums[1].h = 104929.294642565 + 4181.885502948852 * (-298.15 + heater.mediums[1].T) + 0.0009260700016004721 * (-101325.0 + heater.mediums[1].p); 111: m_flow = $cse41 * heater.flowModel.nParallel; 32: heater.flowModel.rhos[3] = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(pipe.mediums[1].p, heater.statesFM[3].T)); 17: 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)); 1: $cse41 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.WallFriction.massFlowRate_dp_staticHead(heater.flowModel.dps_fg[2], heater.flowModel.rhos[2], heater.flowModel.rhos[3], 0.0008899999999999999, 0.0008899999999999999, heater.pathLengths[2], heater.dimensions[1], 0.0, heater.crossAreas[1], heater.roughnesses[1], 0.5 * heater.flowModel.dp_small, heater.flowModel.Re_turbulent); 31: $cse44 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(pipe.mediums[1].p, heater.statesFM[3].T)); 8: heater.flowModel.dps_fg[2] = -2.0 * heater.flowModel.Fs_p[2] / (heater.flowModel.nParallel * 2.0 * heater.crossAreas[1]); 13: heater.flowModel.Fs_p[2] = heater.crossAreas[1] * ($cse44 - $cse42) * heater.flowModel.nParallel; 15: $cse42 = 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)); for variables heater.statesFM[3].T(92), heater.flowModel.rhos[3](93), $cse51(77), pipe.vs[2](80), $cse29(82), pipe.H_flows[3](74), pipe.Hb_flows[1](101), pipe.H_flows[1](102), pipe.Hb_flows[2](91), heater.H_flows[1](104), pipe.flowModel.rhos[2](78), pipe.flowModel.Fs_p[1](97), pipe.flowModel.dps_fg[1](100), pipe.mediums[2].d(79), pipe.mediums[1].d(98), heater.H_flows[2](103), heater.flowModel.dps_fg[1](112), heater.Hb_flows[1](105), pipe.flowModel.rhos[1](96), $cse41(12), pipe.vs[1](99), $cse42(109), $STATESET1.J[9](9), $cse44(94), heater.flowModel.Fs_p[1](110), heater.flowModel.dps_fg[2](116), $cse52(95), heater.mediums[1].h(123), heater.vs[1](114), m_flow(128), $cse50(15), $cse39.T(35) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01087/19.4, allocations: 3.928 MB / 6.958 GB, free: 8.223 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.4257/19.83, allocations: 11.26 MB / 6.969 GB, free: 101.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0033/19.83, allocations: 0.8103 MB / 6.97 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/19.83, allocations: 3.594 kB / 6.97 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00381/19.83, allocations: 206.3 kB / 6.97 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004913/19.84, allocations: 198.9 kB / 6.97 GB, free: 101.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000371/19.84, allocations: 113 kB / 6.97 GB, free: 101.2 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001484/19.84, allocations: 0.902 MB / 6.971 GB, free: 101.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01325/19.85, allocations: 3.098 MB / 6.974 GB, free: 101.1 MB / 0.573 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 (95): * Single equations (assignments): 89 * 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,18 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.01257/19.86, allocations: 2.46 MB / 6.976 GB, free: 101 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02595/19.89, allocations: 8.655 MB / 6.985 GB, free: 100.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-05/19.89, allocations: 0 / 6.985 GB, free: 100.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01177/19.9, allocations: 3.146 MB / 6.988 GB, free: 100.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006782/19.91, allocations: 0.7901 MB / 6.989 GB, free: 100.7 MB / 0.573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4354:9-4354:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]