Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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_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_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 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 189.7 kB / 7.802 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.103/1.103, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008654/0.0008654, allocations: 91.38 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1561/0.1561, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.402e-06/6.422e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2503, allocations: 58.84 MB / 476.6 MB, free: 5.234 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.556/4.806, allocations: 3.163 GB / 3.629 GB, free: 92.16 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001628/4.806, allocations: 79.95 kB / 3.629 GB, free: 92.08 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.095/12.9, allocations: 3.088 GB / 6.717 GB, free: 52 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001814/12.9, allocations: 65.03 kB / 6.717 GB, free: 52 MB / 0.5417 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.01244/12.91, allocations: 3.593 MB / 6.721 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/12.91, allocations: 9 kB / 6.721 GB, free: 50.36 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/12.92, allocations: 311.4 kB / 6.721 GB, free: 50.21 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004978/12.92, allocations: 2.096 MB / 6.723 GB, free: 49.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/12.92, allocations: 150.5 kB / 6.723 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002958/12.92, allocations: 108.1 kB / 6.723 GB, free: 49.69 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004177/12.92, allocations: 2.928 MB / 6.726 GB, free: 49.68 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00398/12.93, allocations: 3.076 MB / 6.729 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.532e-05/12.93, allocations: 8.75 kB / 6.729 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002272/12.93, allocations: 5.188 kB / 6.729 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/12.93, allocations: 223.2 kB / 6.729 GB, free: 49.2 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/12.95, allocations: 12.11 MB / 6.741 GB, free: 44.17 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/12.95, allocations: 1.921 MB / 6.743 GB, free: 44.13 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/12.95, allocations: 1.173 MB / 6.744 GB, free: 44.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007286/12.96, allocations: 5.78 MB / 6.75 GB, free: 41.18 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.341e-05/12.96, allocations: 50.41 kB / 6.75 GB, free: 41.14 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=160): time 2.726e-06/12.96, allocations: 0 / 6.75 GB, free: 41.14 MB / 0.5417 GB Notification: Performance of matching and sorting (n=259): time 0.4219/13.38, allocations: 31.94 MB / 6.781 GB, free: 38.82 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/13.38, allocations: 131.8 kB / 6.781 GB, free: 38.69 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/13.38, allocations: 1.235 MB / 6.782 GB, free: 38.52 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002379/13.38, allocations: 25.7 kB / 6.782 GB, free: 38.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/13.38, allocations: 0.8266 MB / 6.783 GB, free: 37.99 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/13.38, allocations: 0.8301 MB / 6.784 GB, free: 37.43 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002418/13.38, allocations: 0 / 6.784 GB, free: 37.43 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001188/13.38, allocations: 420.7 kB / 6.784 GB, free: 37.12 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002455/13.38, allocations: 2.153 MB / 6.786 GB, free: 37.12 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002742/13.39, allocations: 2.719 MB / 6.789 GB, free: 36.51 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01627/13.4, allocations: 5.094 MB / 6.794 GB, free: 36.47 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.371e-05/13.4, allocations: 5.281 kB / 6.794 GB, free: 36.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=352) (initialization): time 0.02385/13.43, allocations: 9.69 MB / 6.804 GB, free: 36.22 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009873/13.43, allocations: 6.301 MB / 6.81 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/13.43, allocations: 18.86 kB / 6.81 GB, free: 29.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01907/13.45, allocations: 6.697 MB / 6.816 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/13.45, allocations: 323.3 kB / 6.817 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01755/13.47, allocations: 9.682 MB / 6.826 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004427/13.47, allocations: 215.1 kB / 6.826 GB, free: 28.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005281/13.47, allocations: 155.9 kB / 6.826 GB, free: 28.54 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/13.47, allocations: 3.875 kB / 6.826 GB, free: 28.54 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0206/13.49, allocations: 8.234 MB / 6.834 GB, free: 28.44 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.011e-05/13.49, allocations: 18.38 kB / 6.834 GB, free: 28.44 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01497/13.51, allocations: 5.536 MB / 6.84 GB, free: 28.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001958/13.51, allocations: 400.9 kB / 6.84 GB, free: 28.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/13.52, allocations: 7.601 MB / 6.848 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003882/13.52, allocations: 212.8 kB / 6.848 GB, free: 27.24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003558/13.53, allocations: 137.2 kB / 6.848 GB, free: 27.24 MB / 0.5417 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.000927/13.53, allocations: 196.7 kB / 6.848 GB, free: 27.11 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004733/13.53, allocations: 219.2 kB / 6.848 GB, free: 27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0159/13.54, allocations: 8.386 MB / 6.857 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.85e-05/13.54, allocations: 29.97 kB / 6.857 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/13.54, allocations: 0 / 6.857 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0123/13.55, allocations: 7.161 MB / 6.864 GB, free: 23.06 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03114/13.59, allocations: 14.89 MB / 6.878 GB, free: 17.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/13.59, allocations: 1.312 kB / 6.878 GB, free: 17.72 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007323/13.59, allocations: 168.3 kB / 6.878 GB, free: 17.72 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01869/13.61, allocations: 6.551 MB / 6.885 GB, free: 16.56 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000438/13.61, allocations: 48.92 kB / 6.885 GB, free: 16.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01616/13.62, allocations: 9.424 MB / 6.894 GB, free: 10.47 MB / 0.5417 GB [/home/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.009449/13.63, allocations: 3.926 MB / 6.898 GB, free: 7.387 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02531/13.66, allocations: 11.6 MB / 6.909 GB, free: 15.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0022/13.66, allocations: 0.8178 MB / 6.91 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005366/13.66, allocations: 4 kB / 6.91 GB, free: 15.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002902/13.66, allocations: 212.9 kB / 6.91 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00048/13.66, allocations: 195.3 kB / 6.91 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003428/13.66, allocations: 112.4 kB / 6.91 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.001536/13.67, allocations: 0.9007 MB / 6.911 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009603/13.67, allocations: 3.096 MB / 6.914 GB, free: 11.02 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.008183/13.68, allocations: 2.451 MB / 6.917 GB, free: 9.207 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02199/13.7, allocations: 8.649 MB / 6.925 GB, free: 1.773 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/13.7, allocations: 0 / 6.925 GB, free: 1.773 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.2307/13.94, allocations: 3.22 MB / 6.928 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004104/13.94, allocations: 0.7588 MB / 6.929 GB, free: 107.7 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]