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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009224/0.0009224, allocations: 180.9 kB / 8.006 MB, free: 1.07 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.688/1.688, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009729/0.000973, allocations: 82.62 kB / 261.7 MB, free: 1.676 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.2295/0.2295, allocations: 43.49 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.508e-05/1.521e-05, allocations: 4 kB / 418.3 MB, free: 28.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1364, allocations: 58.86 MB / 477.1 MB, free: 1.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.897/8.033, allocations: 3.163 GB / 3.629 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/8.034, allocations: 80.66 kB / 3.629 GB, free: 84 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 10.31/18.35, allocations: 3.066 GB / 6.695 GB, free: 60.32 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.352e-06/18.35, allocations: 0 / 6.695 GB, free: 60.32 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0003571/18.35, allocations: 69.16 kB / 6.695 GB, free: 60.32 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.01635/18.36, allocations: 3.59 MB / 6.699 GB, free: 58.69 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.291e-05/18.36, allocations: 12.16 kB / 6.699 GB, free: 58.69 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0029/18.37, allocations: 307 kB / 6.699 GB, free: 58.55 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008243/18.37, allocations: 2.075 MB / 6.701 GB, free: 58.09 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/18.37, allocations: 152.6 kB / 6.701 GB, free: 58.02 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001187/18.38, allocations: 109.8 kB / 6.701 GB, free: 58.02 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00703/18.38, allocations: 2.834 MB / 6.704 GB, free: 58.01 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00527/18.39, allocations: 3.01 MB / 6.707 GB, free: 57.53 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.585e-05/18.39, allocations: 8 kB / 6.707 GB, free: 57.53 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002572/18.39, allocations: 3.828 kB / 6.707 GB, free: 57.53 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002235/18.39, allocations: 198.9 kB / 6.707 GB, free: 57.53 MB / 0.5417 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.01604/18.4, allocations: 12 MB / 6.719 GB, free: 52.5 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002908/18.41, allocations: 2.165 MB / 6.721 GB, free: 52.37 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/18.41, allocations: 1.128 MB / 6.722 GB, free: 52.36 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006903/18.42, allocations: 5.634 MB / 6.728 GB, free: 49.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/18.42, allocations: 53.12 kB / 6.728 GB, free: 49.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009074/18.42, allocations: 188.6 kB / 6.728 GB, free: 49.43 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=159): time 3.747e-06/18.42, allocations: 0 / 6.728 GB, free: 49.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=258): time 0.3559/18.77, allocations: 31.09 MB / 6.758 GB, free: 47.12 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.272e-05/18.77, allocations: 132.3 kB / 6.758 GB, free: 46.99 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0024/18.77, allocations: 1.223 MB / 6.76 GB, free: 46.81 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0003847/18.78, allocations: 25.7 kB / 6.76 GB, free: 46.78 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006243/18.78, allocations: 1.071 MB / 6.761 GB, free: 46.29 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006681/18.78, allocations: 0.8312 MB / 6.761 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/18.78, allocations: 0 / 6.761 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000123/18.78, allocations: 413.7 kB / 6.762 GB, free: 45.43 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002344/18.78, allocations: 2.053 MB / 6.764 GB, free: 45.42 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002659/18.78, allocations: 2.615 MB / 6.766 GB, free: 44.81 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01488/18.8, allocations: 4.907 MB / 6.771 GB, free: 44.77 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-05/18.8, allocations: 3.812 kB / 6.771 GB, free: 44.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=351) (initialization): time 0.02254/18.82, allocations: 9.298 MB / 6.78 GB, free: 44.51 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001128/18.82, allocations: 6.309 MB / 6.786 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/18.82, allocations: 18.41 kB / 6.786 GB, free: 38.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01739/18.84, allocations: 6.58 MB / 6.793 GB, free: 38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/18.84, allocations: 319.9 kB / 6.793 GB, free: 38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01665/18.86, allocations: 9.219 MB / 6.802 GB, free: 36.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004874/18.86, allocations: 234.2 kB / 6.802 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004523/18.86, allocations: 147.4 kB / 6.803 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/18.86, allocations: 2.875 kB / 6.803 GB, free: 36.82 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01852/18.88, allocations: 7.899 MB / 6.81 GB, free: 36.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.457e-05/18.88, allocations: 17.53 kB / 6.81 GB, free: 36.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/18.89, allocations: 5.449 MB / 6.816 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/18.9, allocations: 402 kB / 6.816 GB, free: 36.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/18.91, allocations: 7.196 MB / 6.823 GB, free: 35.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003739/18.91, allocations: 236.2 kB / 6.823 GB, free: 35.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003496/18.91, allocations: 132.6 kB / 6.823 GB, free: 35.48 MB / 0.5417 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.0009047/18.91, allocations: 189.3 kB / 6.824 GB, free: 35.35 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004964/18.91, allocations: 222.6 kB / 6.824 GB, free: 35.24 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0135/18.93, allocations: 7.485 MB / 6.831 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/18.93, allocations: 38.39 kB / 6.831 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.105e-06/18.93, allocations: 0 / 6.831 GB, free: 33.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01059/18.94, allocations: 6.616 MB / 6.838 GB, free: 30.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02113/18.96, allocations: 13.66 MB / 6.851 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/18.96, allocations: 2.688 kB / 6.851 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006146/18.96, allocations: 172.8 kB / 6.851 GB, free: 25.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01682/18.98, allocations: 6.458 MB / 6.857 GB, free: 24.29 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006766/18.98, allocations: 46.84 kB / 6.857 GB, free: 24.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0153/18.99, allocations: 8.886 MB / 6.866 GB, free: 17.83 MB / 0.5417 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.008694/19, allocations: 3.788 MB / 6.87 GB, free: 14.84 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01608/19.02, allocations: 10.1 MB / 6.88 GB, free: 6.094 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001849/19.02, allocations: 0.8211 MB / 6.88 GB, free: 5.391 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007936/19.02, allocations: 3.938 kB / 6.88 GB, free: 5.387 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003132/19.02, allocations: 222.4 kB / 6.881 GB, free: 5.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003931/19.02, allocations: 196.2 kB / 6.881 GB, free: 5.133 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003382/19.02, allocations: 117.3 kB / 6.881 GB, free: 5.039 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001472/19.02, allocations: 0.8874 MB / 6.882 GB, free: 4.246 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.71e-07/19.02, allocations: 4 kB / 6.882 GB, free: 4.242 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01055/19.03, allocations: 3.069 MB / 6.885 GB, free: 1.23 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 (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.01012/19.04, allocations: 2.461 MB / 6.887 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02345/19.07, allocations: 8.303 MB / 6.895 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/19.07, allocations: 0 / 6.895 GB, free: 8.324 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009053/19.08, allocations: 3.037 MB / 6.898 GB, free: 5.766 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004806/19.08, allocations: 0.7936 MB / 6.899 GB, free: 5.203 MB / 0.5573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:3851:9-3851:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/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]