Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002089/0.002088, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.208/2.208, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 87.45 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.293/0.293, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.181e-05/2.172e-05, allocations: 4.219 kB / 418.2 MB, free: 41.04 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4142/0.4142, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.687/10.1, allocations: 3.163 GB / 3.629 GB, free: 80.59 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/10.1, allocations: 77.81 kB / 3.629 GB, free: 80.59 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 13.85/23.95, allocations: 3.066 GB / 6.695 GB, free: 64.79 MB / 0.5421 GB Notification: Performance of FrontEnd: time 1.894e-06/23.95, allocations: 0 / 6.695 GB, free: 64.79 MB / 0.5421 GB Notification: Performance of Transformations before backend: time 0.000349/23.95, allocations: 68.31 kB / 6.695 GB, free: 64.78 MB / 0.5421 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.01753/23.97, allocations: 3.589 MB / 6.699 GB, free: 63 MB / 0.5421 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/23.97, allocations: 10.69 kB / 6.699 GB, free: 63 MB / 0.5421 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002673/23.97, allocations: 305.5 kB / 6.699 GB, free: 62.86 MB / 0.5421 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009256/23.98, allocations: 2.068 MB / 6.701 GB, free: 62.39 MB / 0.5421 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003302/23.98, allocations: 147.8 kB / 6.701 GB, free: 62.33 MB / 0.5421 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001131/23.98, allocations: 110.1 kB / 6.701 GB, free: 62.33 MB / 0.5421 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008503/23.99, allocations: 2.835 MB / 6.704 GB, free: 62.32 MB / 0.5421 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/24, allocations: 3.011 MB / 6.707 GB, free: 61.84 MB / 0.5421 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/24, allocations: 9.594 kB / 6.707 GB, free: 61.84 MB / 0.5421 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006449/24, allocations: 3.844 kB / 6.707 GB, free: 61.84 MB / 0.5421 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000382/24, allocations: 206.2 kB / 6.707 GB, free: 61.83 MB / 0.5421 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03213/24.03, allocations: 11.99 MB / 6.719 GB, free: 56.8 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006061/24.04, allocations: 2.179 MB / 6.721 GB, free: 56.66 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002806/24.04, allocations: 1.138 MB / 6.722 GB, free: 56.65 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0144/24.06, allocations: 5.613 MB / 6.728 GB, free: 53.85 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.579e-05/24.06, allocations: 61.14 kB / 6.728 GB, free: 53.8 MB / 0.5421 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001494/24.06, allocations: 188.5 kB / 6.728 GB, free: 53.73 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=159): time 7.654e-06/24.06, allocations: 0 / 6.728 GB, free: 53.73 MB / 0.5421 GB Notification: Performance of matching and sorting (n=258): time 0.7963/24.85, allocations: 31.08 MB / 6.758 GB, free: 51.37 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.748e-05/24.85, allocations: 132.4 kB / 6.758 GB, free: 51.24 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0027/24.86, allocations: 1.222 MB / 6.759 GB, free: 51.06 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.0008445/24.86, allocations: 29.36 kB / 6.76 GB, free: 51.03 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008144/24.86, allocations: 1.033 MB / 6.761 GB, free: 50.46 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.001471/24.86, allocations: 0.8283 MB / 6.761 GB, free: 49.91 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004916/24.86, allocations: 0 / 6.761 GB, free: 49.91 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.0002105/24.86, allocations: 422.1 kB / 6.762 GB, free: 49.6 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004929/24.87, allocations: 2.051 MB / 6.764 GB, free: 49.59 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/24.87, allocations: 2.606 MB / 6.766 GB, free: 48.99 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03004/24.9, allocations: 4.912 MB / 6.771 GB, free: 48.08 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.664e-05/24.9, allocations: 9.344 kB / 6.771 GB, free: 48.07 MB / 0.5421 GB Notification: Performance of matching and sorting (n=351) (initialization): time 0.04249/24.95, allocations: 9.191 MB / 6.78 GB, free: 44.99 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.001279/24.95, allocations: 6.181 MB / 6.786 GB, free: 38.39 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.425e-05/24.95, allocations: 18.16 kB / 6.786 GB, free: 38.38 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03502/24.98, allocations: 6.574 MB / 6.793 GB, free: 33.45 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/24.98, allocations: 324.4 kB / 6.793 GB, free: 33.21 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03026/25.01, allocations: 9.218 MB / 6.802 GB, free: 25.36 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007296/25.02, allocations: 226.7 kB / 6.802 GB, free: 25.22 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/25.02, allocations: 152.9 kB / 6.802 GB, free: 25.1 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/25.02, allocations: 4.312 kB / 6.802 GB, free: 25.09 MB / 0.5421 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03668/25.06, allocations: 7.902 MB / 6.81 GB, free: 18.78 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.54e-05/25.06, allocations: 16 kB / 6.81 GB, free: 18.77 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02502/25.08, allocations: 5.101 MB / 6.815 GB, free: 14.39 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003316/25.09, allocations: 399 kB / 6.815 GB, free: 14 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02107/25.11, allocations: 7.169 MB / 6.822 GB, free: 6.793 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006077/25.12, allocations: 226.4 kB / 6.823 GB, free: 6.59 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009744/25.12, allocations: 138.1 kB / 6.823 GB, free: 6.457 MB / 0.5421 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.ports[2].p:DUMMY_DER(flow=false fixed = false ) "Thermodynamic pressure in the connection point" type: Real [2] $DER.heater.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [1] $DER.heater.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real $DER.radiator.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [1] $DER.radiator.statesFM[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [3] $DER.radiator.statesFM[3].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [3] $DER.pipe.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [2] $DER.pipe.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [2] $DER.pipe.mediums[2].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [2] $DER.pipe.mediums[2].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [2] $DER.radiator.mediums[1].h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real [1] $DER.m_flow:DUMMY_DER(fixed = false ) type: Real $DER.tank.medium.d:DUMMY_DER(fixed = false ) "Density of medium" type: Real $DER.tank.level:DUMMY_DER(fixed = false ) "Level height of tank" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 79,18 78} Notification: Performance of prepare postOptimizeDAE: time 0.001354/25.12, allocations: 189.3 kB / 6.823 GB, free: 6.273 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000936/25.12, allocations: 217.4 kB / 6.823 GB, free: 6.059 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4522/25.57, allocations: 7.487 MB / 6.83 GB, free: 60.32 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.376e-05/25.57, allocations: 39.06 kB / 6.83 GB, free: 60.32 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/25.57, allocations: 1.031 kB / 6.83 GB, free: 60.32 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02447/25.6, allocations: 6.617 MB / 6.837 GB, free: 59.87 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05017/25.65, allocations: 13.66 MB / 6.85 GB, free: 58.79 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-05/25.65, allocations: 3.844 kB / 6.85 GB, free: 58.79 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/25.65, allocations: 169 kB / 6.85 GB, free: 58.79 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03273/25.68, allocations: 6.448 MB / 6.857 GB, free: 58.7 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008889/25.68, allocations: 50.39 kB / 6.857 GB, free: 58.7 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02652/25.71, allocations: 8.884 MB / 6.865 GB, free: 57.61 MB / 0.5421 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Media/package.mo:5805:7-5806:44:writable] Error: Model is structurally singular, error found sorting equations 56: pump.medium.h = 104929.294642565 + 4181.885502948852 * (-298.15 + pump.heatTransfer.states[1].T) + 0.0009260700016004721 * (-101325.0 + pump.p_b_nominal); 55: pump.rho = 997.0480319717385 * (1.0 + 4.515426036491986e-10 * (-101325.0 + pump.p_b_nominal) + (-0.0002571314017648316) * (-298.15 + pump.heatTransfer.states[1].T)); 49: $cse49 = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.ThermodynamicState(pipe.mediums[2].p, pipe.mediums[2].T)); 29: $cse50 = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.Medium.ThermodynamicState(pipe.mediums[1].p, pipe.mediums[1].T)); 28: pipe.flowModel.Fs_p[1] = 0.5 * (pipe.crossAreas[1] + pipe.crossAreas[2]) * ($cse49 - $cse50) * pipe.flowModel.nParallel; 50: pipe.mediums[2].h = 104929.294642565 + 4181.885502948852 * (-298.15 + pipe.mediums[2].T) + 0.0009260700016004721 * (-101325.0 + pipe.mediums[2].p); 61: $cse41 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(pump.p_b_nominal, heater.statesFM[1].T)); 17: $cse40 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.pressure(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(heater.mediums[1].p, heater.mediums[1].T)); 15: heater.flowModel.Fs_p[1] = heater.crossAreas[1] * ($cse40 - $cse41) * heater.flowModel.nParallel; 111: m_flow = $cse38 * heater.flowModel.nParallel; 60: heater.flowModel.rhos[1] = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(pump.p_b_nominal, heater.statesFM[1].T)); 11: heater.flowModel.dps_fg[1] = (-2.0) * heater.flowModel.Fs_p[1] / (heater.flowModel.nParallel * 2.0 * heater.crossAreas[1]); 1: $cse38 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.WallFriction.massFlowRate_dp_staticHead(heater.flowModel.dps_fg[1], heater.flowModel.rhos[1], heater.flowModel.rhos[2], 0.0008899999999999999, 0.0008899999999999999, heater.pathLengths[1], heater.dimensions[1], 0.0, heater.crossAreas[1], heater.roughnesses[1], 0.5 * heater.flowModel.dp_small, heater.flowModel.Re_turbulent); 18: heater.flowModel.rhos[2] = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.density(Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.Medium.ThermodynamicState(heater.mediums[1].p, heater.mediums[1].T)); 19: heater.mediums[1].h = 104929.294642565 + 4181.885502948852 * (-298.15 + heater.mediums[1].T) + 0.0009260700016004721 * (-101325.0 + heater.mediums[1].p); 31: pipe.mediums[1].h = 104929.294642565 + 4181.885502948852 * (-298.15 + pipe.mediums[1].T) + 0.0009260700016004721 * (-101325.0 + pipe.mediums[1].p); 36: pipe.H_flows[2] = semiLinear(m_flow, pipe.mediums[1].h, pipe.mediums[2].h); 125: $STATESET1.J[14] = pipe.H_flows[1] - semiLinear(m_flow, heater.mediums[1].h, pipe.mediums[1].h); 25: pipe.flowModel.dps_fg[1] = (-2.0) * pipe.flowModel.Fs_p[1] / (pipe.flowModel.nParallel * (pipe.crossAreas[1] + pipe.crossAreas[2])); 23: pipe.Hb_flows[1] = pipe.H_flows[1] - pipe.H_flows[2]; 27: pipe.mediums[1].d = 997.0480319717385 * (1.0 + 4.515426036491986e-10 * (-101325.0 + pipe.mediums[1].p) + (-0.0002571314017648316) * (-298.15 + pipe.mediums[1].T)); 24: -pipe.Hb_flows[1] = 0.5 * pipe.vs[1] * pipe.crossAreas[1] * (pipe.mediums[2].p + pipe.flowModel.dps_fg[1] - pipe.mediums[1].p) * pipe.nParallel; 59: heater.statesFM[1].T = 273.058616085119 + 0.0002391265851958049 * pump.medium.h + (-2.214479571349944e-07) * (-101325.0 + pump.p_b_nominal); 95: tank.ports[2].h_outflow = 104929.294642565 + 4181.885502948852 * (-298.15 + tank.medium.T) + 0.0009260700016004721 * (-101325.0 + tank.p_ambient); 26: pipe.vs[1] = m_flow / (pipe.nParallel * pipe.mediums[1].d * pipe.crossAreas[1]); 58: pump.Hb_flow = m_flow * (smooth(0, tank.ports[2].h_outflow) - smooth(0, pump.medium.h)); 64: pump.eta = Modelica.Fluid.Machines.ControlledPump$pump.efficiencyCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, 0.8); 57: -pump.Hb_flow = pump.W_single * /*Real*/(pump.nParallel); 7: pump.dp_pump = pump.p_b_nominal - tank.ports[2].p; 4: pump.V_flow = m_flow / pump.rho; 124: $STATESET1.J[13] = pump.W_single - pump.dp_pump * pump.V_flow_single / pump.eta; 62: pump.V_flow_single = pump.V_flow / /*Real*/(pump.nParallel); for variables pump.heatTransfer.states[1].T(70), pump.rho(71), pipe.flowModel.rhos[2](77), pipe.mediums[1].d(97), pipe.vs[1](98), $cse49(76), pump.head(63), heater.flowModel.Fs_p[2](110), heater.vs[1](112), $STATESET1.J[9](9), heater.flowModel.rhos[1](66), radiator.mediums[1].h(126), heater.Qb_flows[1](116), heater.flowModel.Fs_p[1](109), heater.heatTransfer.Ts[1](108), $cse50(95), heater.statesFM[3].T(91), $cse41(65), heater.H_flows[2](102), heater.Hb_flows[1](104), pipe.Hb_flows[1](100), heater.H_flows[1](103), pump.medium.h(67), radiator.statesFM[3].T(25), pipe.H_flows[1](101), pump.Hb_flow(68), $STATESET1.J[4](4), pump.W_single(69), heater.mediums[1].h(122), tank.inFlow[2](119), $cse47(26), pump.V_flow(64), pump.eta(62) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01619/25.72, allocations: 3.802 MB / 6.869 GB, free: 56.97 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03009/25.75, allocations: 10.11 MB / 6.879 GB, free: 56.55 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003526/25.76, allocations: 0.8159 MB / 6.88 GB, free: 56.46 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00108/25.76, allocations: 3.031 kB / 6.88 GB, free: 56.46 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005925/25.76, allocations: 213.3 kB / 6.88 GB, free: 56.46 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008752/25.77, allocations: 204.4 kB / 6.88 GB, free: 56.45 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005139/25.77, allocations: 110.1 kB / 6.88 GB, free: 56.45 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.001923/25.77, allocations: 0.8969 MB / 6.881 GB, free: 56.34 MB / 0.5421 GB Notification: Performance of sort global known variables: time 7.02e-07/25.77, allocations: 1.125 kB / 6.881 GB, free: 56.34 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01606/25.78, allocations: 3.073 MB / 6.884 GB, free: 56.34 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {15 77,19 107} Notification: Performance of Backend phase and start with SimCode phase: time 0.01545/25.8, allocations: 2.462 MB / 6.887 GB, free: 56.11 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.03588/25.84, allocations: 8.209 MB / 6.895 GB, free: 55.96 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/25.84, allocations: 0 / 6.895 GB, free: 55.96 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.01503/25.85, allocations: 3.03 MB / 6.898 GB, free: 55.88 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007715/25.86, allocations: 0.7911 MB / 6.898 GB, free: 55.87 MB / 0.5421 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3851:9-3851:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]