Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001681/0.00168, allocations: 172 kB / 8.148 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.738/1.738, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001322/0.001321, allocations: 103.7 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2688/0.2688, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.147e-06/9.378e-06, allocations: 0 / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3039/0.3039, allocations: 58.83 MB / 476.5 MB, free: 5.094 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.828/7.132, allocations: 3.163 GB / 3.629 GB, free: 45.23 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/7.132, allocations: 82.41 kB / 3.629 GB, free: 45.19 MB / 0.5105 GB Notification: Performance of FrontEnd: time 11.87/19, allocations: 3.088 GB / 6.717 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003618/19, allocations: 72.34 kB / 6.717 GB, free: 46.09 MB / 0.5261 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.0193/19.02, allocations: 3.59 MB / 6.721 GB, free: 44.36 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/19.02, allocations: 11.03 kB / 6.721 GB, free: 44.36 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002758/19.03, allocations: 318 kB / 6.721 GB, free: 44.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009411/19.04, allocations: 2.076 MB / 6.723 GB, free: 43.76 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002837/19.04, allocations: 158.8 kB / 6.723 GB, free: 43.69 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/19.04, allocations: 112.3 kB / 6.723 GB, free: 43.69 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009467/19.05, allocations: 2.926 MB / 6.726 GB, free: 43.68 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01035/19.06, allocations: 3.075 MB / 6.729 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.457e-05/19.06, allocations: 7.047 kB / 6.729 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004652/19.06, allocations: 3.719 kB / 6.729 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002899/19.06, allocations: 218.2 kB / 6.729 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03472/19.09, allocations: 12.11 MB / 6.741 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00514/19.1, allocations: 1.929 MB / 6.743 GB, free: 38.14 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003145/19.1, allocations: 1.162 MB / 6.744 GB, free: 38.13 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01509/19.12, allocations: 5.777 MB / 6.75 GB, free: 35.18 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/19.12, allocations: 51.62 kB / 6.75 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=160): time 4.849e-06/19.12, allocations: 0 / 6.75 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=259): time 0.9169/20.03, allocations: 31.96 MB / 6.781 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/20.03, allocations: 127.1 kB / 6.781 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003039/20.04, allocations: 1.233 MB / 6.782 GB, free: 32.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009311/20.04, allocations: 25.7 kB / 6.782 GB, free: 32.47 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004835/20.04, allocations: 0.7816 MB / 6.783 GB, free: 31.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001523/20.04, allocations: 0.8332 MB / 6.784 GB, free: 31.35 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005013/20.04, allocations: 0 / 6.784 GB, free: 31.35 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002159/20.04, allocations: 424.1 kB / 6.784 GB, free: 31.04 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005978/20.05, allocations: 2.157 MB / 6.786 GB, free: 31.03 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006661/20.05, allocations: 2.715 MB / 6.789 GB, free: 30.42 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0327/20.09, allocations: 5.094 MB / 6.794 GB, free: 30.38 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-05/20.09, allocations: 9.25 kB / 6.794 GB, free: 30.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.04869/20.13, allocations: 9.578 MB / 6.803 GB, free: 30.19 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001494/20.14, allocations: 6.18 MB / 6.809 GB, free: 23.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-05/20.14, allocations: 17.28 kB / 6.809 GB, free: 23.75 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0351/20.17, allocations: 6.177 MB / 6.815 GB, free: 23.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002768/20.17, allocations: 327.3 kB / 6.816 GB, free: 23.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03577/20.21, allocations: 9.652 MB / 6.825 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007151/20.22, allocations: 224.2 kB / 6.825 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/20.22, allocations: 149.9 kB / 6.826 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/20.22, allocations: 3.594 kB / 6.826 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04316/20.26, allocations: 8.229 MB / 6.834 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.828e-05/20.26, allocations: 16.28 kB / 6.834 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0298/20.29, allocations: 5.191 MB / 6.839 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003676/20.3, allocations: 400.1 kB / 6.839 GB, free: 20.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02616/20.32, allocations: 7.576 MB / 6.846 GB, free: 17.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006908/20.33, allocations: 214 kB / 6.847 GB, free: 17.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00116/20.33, allocations: 134.2 kB / 6.847 GB, free: 17.3 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump.dp_pump:DUMMY_STATE(unit = "Pa" ) "Pressure change" type: Real 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.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real $DER.heater.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] $DER.pipe.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [2] $DER.heater.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.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].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [1] $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.ports[2].h_outflow:DUMMY_DER(fixed = false ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real [2] $DER.radiator.statesFM[3].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [3] $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,17 79} Notification: Performance of prepare postOptimizeDAE: time 0.001701/20.33, allocations: 131.2 kB / 6.847 GB, free: 17.23 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/20.33, allocations: 223.3 kB / 6.847 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03515/20.37, allocations: 8.372 MB / 6.855 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.699e-05/20.37, allocations: 43.17 kB / 6.855 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/20.37, allocations: 0 / 6.855 GB, free: 10.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02883/20.4, allocations: 7.148 MB / 6.862 GB, free: 4.781 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06239/20.46, allocations: 14.93 MB / 6.877 GB, free: 8.938 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.106e-05/20.46, allocations: 4 kB / 6.877 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/20.46, allocations: 171.2 kB / 6.877 GB, free: 8.801 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03949/20.5, allocations: 6.548 MB / 6.883 GB, free: 3.809 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001044/20.5, allocations: 50.25 kB / 6.884 GB, free: 3.777 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2781/20.78, allocations: 9.459 MB / 6.893 GB, free: 102.2 MB / 0.5417 GB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.01908/20.8, allocations: 3.928 MB / 6.897 GB, free: 101.6 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04061/20.84, allocations: 10.89 MB / 6.907 GB, free: 101.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003709/20.84, allocations: 0.8118 MB / 6.908 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/20.85, allocations: 5.828 kB / 6.908 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006835/20.85, allocations: 205.7 kB / 6.908 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001191/20.85, allocations: 197.5 kB / 6.908 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007109/20.85, allocations: 115.7 kB / 6.909 GB, free: 101.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.002303/20.86, allocations: 0.8977 MB / 6.909 GB, free: 101 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01829/20.87, allocations: 3.085 MB / 6.912 GB, free: 101 MB / 0.5417 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.01604/20.89, allocations: 2.461 MB / 6.915 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04092/20.93, allocations: 8.554 MB / 6.923 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/20.93, allocations: 3.719 kB / 6.923 GB, free: 100.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01696/20.95, allocations: 3.126 MB / 6.926 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008363/20.96, allocations: 0.7583 MB / 6.927 GB, free: 100.6 MB / 0.5417 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]