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") [: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 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 179.5 kB / 8.517 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 221.4 MB / 230.3 MB, free: 7.703 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.001153/0.001153, allocations: 91.41 kB / 281.2 MB, free: 5.453 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.193/0.193, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.416e-06/8.446e-06, allocations: 0 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1504, allocations: 61.91 MB / 0.4941 GB, free: 1.641 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.039/7.189, allocations: 3.17 GB / 3.664 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/7.19, allocations: 79.95 kB / 3.664 GB, free: 13.19 MB / 0.5261 GB Notification: Performance of FrontEnd: time 9.84/17.03, allocations: 3.099 GB / 6.763 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0003488/17.03, allocations: 63.91 kB / 6.763 GB, free: 14.98 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.01605/17.05, allocations: 3.596 MB / 6.767 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/17.05, allocations: 11.97 kB / 6.767 GB, free: 11.33 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00243/17.05, allocations: 316.5 kB / 6.767 GB, free: 11.02 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006819/17.06, allocations: 2.093 MB / 6.769 GB, free: 8.906 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002414/17.06, allocations: 155.1 kB / 6.769 GB, free: 8.742 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/17.06, allocations: 108 kB / 6.769 GB, free: 8.637 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006216/17.06, allocations: 2.925 MB / 6.772 GB, free: 5.707 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007027/17.07, allocations: 3.083 MB / 6.775 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-05/17.07, allocations: 3.938 kB / 6.775 GB, free: 2.441 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006098/17.07, allocations: 8 kB / 6.775 GB, free: 2.434 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002098/17.07, allocations: 211.8 kB / 6.776 GB, free: 2.227 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3147/17.39, allocations: 12.09 MB / 6.787 GB, free: 93.83 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002721/17.39, allocations: 1.942 MB / 6.789 GB, free: 93.8 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/17.39, allocations: 1.171 MB / 6.79 GB, free: 93.79 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008836/17.4, allocations: 5.764 MB / 6.796 GB, free: 90.91 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/17.4, allocations: 56.03 kB / 6.796 GB, free: 90.87 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=160): time 4.298e-06/17.4, allocations: 0 / 6.796 GB, free: 90.87 MB / 0.5573 GB Notification: Performance of matching and sorting (n=259): time 0.4376/17.84, allocations: 31.94 MB / 6.827 GB, free: 88.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/17.84, allocations: 133.1 kB / 6.827 GB, free: 88.68 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002068/17.84, allocations: 1.23 MB / 6.829 GB, free: 88.51 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004147/17.84, allocations: 25.7 kB / 6.829 GB, free: 88.48 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004076/17.84, allocations: 0.8233 MB / 6.829 GB, free: 88.05 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007883/17.84, allocations: 0.8363 MB / 6.83 GB, free: 87.49 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/17.84, allocations: 1.75 kB / 6.83 GB, free: 87.49 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001447/17.84, allocations: 418.7 kB / 6.831 GB, free: 87.18 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/17.84, allocations: 2.157 MB / 6.833 GB, free: 87.18 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003003/17.85, allocations: 2.711 MB / 6.835 GB, free: 86.57 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00978/17.86, allocations: 3.661 MB / 6.839 GB, free: 86.53 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.354e-05/17.86, allocations: 7.75 kB / 6.839 GB, free: 86.53 MB / 0.5573 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.01888/17.88, allocations: 8.248 MB / 6.847 GB, free: 86.28 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001592/17.88, allocations: 6.3 MB / 6.853 GB, free: 79.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-05/17.88, allocations: 22.53 kB / 6.853 GB, free: 79.84 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02003/17.9, allocations: 6.699 MB / 6.86 GB, free: 79.77 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/17.9, allocations: 322 kB / 6.86 GB, free: 79.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01902/17.92, allocations: 9.68 MB / 6.87 GB, free: 78.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005674/17.92, allocations: 221.6 kB / 6.87 GB, free: 78.61 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008573/17.92, allocations: 153.4 kB / 6.87 GB, free: 78.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/17.92, allocations: 3.125 kB / 6.87 GB, free: 78.61 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0152/17.94, allocations: 6.802 MB / 6.877 GB, free: 78.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.89e-05/17.94, allocations: 16.97 kB / 6.877 GB, free: 78.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01603/17.96, allocations: 5.532 MB / 6.882 GB, free: 78.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/17.96, allocations: 394.6 kB / 6.882 GB, free: 78.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01504/17.97, allocations: 7.608 MB / 6.89 GB, free: 77.31 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004665/17.98, allocations: 224 kB / 6.89 GB, free: 77.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008891/17.98, allocations: 134 kB / 6.89 GB, free: 77.29 MB / 0.5573 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.001632/17.98, allocations: 178.9 kB / 6.89 GB, free: 77.18 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/17.98, allocations: 226.2 kB / 6.89 GB, free: 77.06 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02004/18, allocations: 8.376 MB / 6.899 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.975e-05/18, allocations: 37.56 kB / 6.899 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/18, allocations: 3.891 kB / 6.899 GB, free: 76.86 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01452/18.02, allocations: 7.153 MB / 6.906 GB, free: 76.41 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03448/18.05, allocations: 14.87 MB / 6.92 GB, free: 75 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-05/18.05, allocations: 5.141 kB / 6.92 GB, free: 75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009586/18.05, allocations: 175.8 kB / 6.92 GB, free: 75 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02011/18.07, allocations: 6.541 MB / 6.927 GB, free: 73.92 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001072/18.07, allocations: 56.47 kB / 6.927 GB, free: 73.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01953/18.09, allocations: 9.417 MB / 6.936 GB, free: 70.13 MB / 0.5573 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.01133/18.1, allocations: 3.929 MB / 6.94 GB, free: 68.82 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02278/18.13, allocations: 10.9 MB / 6.95 GB, free: 64.88 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002842/18.13, allocations: 0.8109 MB / 6.951 GB, free: 64.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/18.13, allocations: 1.719 kB / 6.951 GB, free: 64.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004015/18.14, allocations: 212 kB / 6.951 GB, free: 64.44 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00069/18.14, allocations: 195.4 kB / 6.952 GB, free: 64.41 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005931/18.14, allocations: 115.3 kB / 6.952 GB, free: 64.39 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001938/18.14, allocations: 0.9054 MB / 6.953 GB, free: 64.01 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01423/18.15, allocations: 3.084 MB / 6.956 GB, free: 63.81 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 (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.01331/18.17, allocations: 2.47 MB / 6.958 GB, free: 63.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02502/18.19, allocations: 8.655 MB / 6.967 GB, free: 56.99 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.348e-05/18.19, allocations: 0 / 6.967 GB, free: 56.99 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009209/18.2, allocations: 3.153 MB / 6.97 GB, free: 54.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005402/18.21, allocations: 0.7697 MB / 6.97 GB, free: 53.77 MB / 0.5573 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]