Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.003774/0.003774, allocations: 182.5 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.348/1.348, allocations: 194.2 MB / 202.1 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001661/0.001661, allocations: 120.3 kB / 247.1 MB, free: 6.418 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2103/0.2103, allocations: 39.94 MB / 331.9 MB, free: 4.961 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.174e-06/7.193e-06, allocations: 0 / 392.8 MB, free: 75.89 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.12, allocations: 54.87 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.943/6.063, allocations: 2.669 GB / 3.107 GB, free: 67.3 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/6.063, allocations: 72.61 kB / 3.107 GB, free: 67.23 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.189/9.253, allocations: 1.018 GB / 4.124 GB, free: 7.309 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000336/9.253, allocations: 71.84 kB / 4.124 GB, free: 7.242 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: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.01863/9.272, allocations: 4.401 MB / 4.129 GB, free: 2.797 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/9.272, allocations: 8.031 kB / 4.129 GB, free: 2.789 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00956/9.281, allocations: 1.151 MB / 4.13 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2572/9.539, allocations: 2.254 MB / 4.132 GB, free: 64.61 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003921/9.539, allocations: 204.4 kB / 4.132 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00129/9.54, allocations: 137.2 kB / 4.132 GB, free: 64.54 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008238/9.549, allocations: 3.513 MB / 4.136 GB, free: 64.53 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007776/9.557, allocations: 3.703 MB / 4.139 GB, free: 63.94 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.539e-05/9.557, allocations: 7.312 kB / 4.139 GB, free: 63.94 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003024/9.557, allocations: 3.594 kB / 4.139 GB, free: 63.94 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002531/9.557, allocations: 232.9 kB / 4.14 GB, free: 63.93 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02862/9.586, allocations: 19.91 MB / 4.159 GB, free: 52.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/9.588, allocations: 1.423 MB / 4.16 GB, free: 52.39 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001511/9.589, allocations: 1.305 MB / 4.162 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03076/9.62, allocations: 17.06 MB / 4.178 GB, free: 41.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.639e-05/9.62, allocations: 55.34 kB / 4.178 GB, free: 41.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=181): time 3.597e-06/9.62, allocations: 0 / 4.178 GB, free: 41.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=281): time 0.4418/10.06, allocations: 35.28 MB / 4.213 GB, free: 39.55 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/10.06, allocations: 139.4 kB / 4.213 GB, free: 39.42 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/10.06, allocations: 1.233 MB / 4.214 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004707/10.06, allocations: 25.7 kB / 4.214 GB, free: 39.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/10.07, allocations: 0.9376 MB / 4.215 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009358/10.07, allocations: 0.8935 MB / 4.216 GB, free: 38.24 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002875/10.07, allocations: 0 / 4.216 GB, free: 38.24 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001301/10.07, allocations: 427.6 kB / 4.216 GB, free: 37.93 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/10.07, allocations: 2.785 MB / 4.219 GB, free: 37.92 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003701/10.07, allocations: 3.317 MB / 4.222 GB, free: 37.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01755/10.09, allocations: 5.545 MB / 4.228 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.568e-05/10.09, allocations: 3.062 kB / 4.228 GB, free: 37.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=370) (initialization): time 0.03047/10.12, allocations: 11.99 MB / 4.239 GB, free: 37.06 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001807/10.12, allocations: 5.959 MB / 4.245 GB, free: 46.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.12e-05/10.12, allocations: 16.41 kB / 4.245 GB, free: 46.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02153/10.15, allocations: 7.773 MB / 4.253 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/10.15, allocations: 344.2 kB / 4.253 GB, free: 46.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02355/10.17, allocations: 12.52 MB / 4.265 GB, free: 45.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005372/10.18, allocations: 347.8 kB / 4.266 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006576/10.18, allocations: 182 kB / 4.266 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/10.18, allocations: 3.188 kB / 4.266 GB, free: 45.73 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02158/10.2, allocations: 8.151 MB / 4.274 GB, free: 45.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-05/10.2, allocations: 20.31 kB / 4.274 GB, free: 45.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01312/10.21, allocations: 3.586 MB / 4.277 GB, free: 45.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002905/10.21, allocations: 0.4911 MB / 4.278 GB, free: 45.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01036/10.22, allocations: 6.352 MB / 4.284 GB, free: 44.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004386/10.23, allocations: 292.8 kB / 4.284 GB, free: 44.43 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004308/10.23, allocations: 156.3 kB / 4.285 GB, free: 44.43 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.radiator.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [1] $DER.radiator.statesFM[1].p:DUMMY_DER(fixed = false ) "Pressure" type: Real [3] $DER.radiator.statesFM[3].p:DUMMY_DER(fixed = false ) "Pressure" type: Real [3] $DER.tank.level:DUMMY_DER(fixed = false ) "Level height of tank" type: Real $DER.pipe.mediums[2].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [2] $DER.pipe.mediums[1].p:DUMMY_DER(fixed = false ) "Absolute pressure of medium" type: Real [2] output $DER.m_flow:DUMMY_DER(fixed = false ) type: Real $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.tank.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" 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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 174 * 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 85} Notification: Performance of prepare postOptimizeDAE: time 0.001329/10.23, allocations: 194.3 kB / 4.285 GB, free: 44.32 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002369/10.23, allocations: 0.7317 MB / 4.285 GB, free: 44.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02579/10.26, allocations: 17.27 MB / 4.302 GB, free: 43.59 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-05/10.26, allocations: 101.2 kB / 4.302 GB, free: 43.58 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/10.26, allocations: 3.141 kB / 4.302 GB, free: 43.58 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02009/10.28, allocations: 15.18 MB / 4.317 GB, free: 38.93 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05248/10.33, allocations: 29.1 MB / 4.346 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-05/10.33, allocations: 4.25 kB / 4.346 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/10.33, allocations: 214 kB / 4.346 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02852/10.36, allocations: 13.39 MB / 4.359 GB, free: 3.402 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009163/10.36, allocations: 78.56 kB / 4.359 GB, free: 3.344 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.375/10.74, allocations: 16.38 MB / 4.375 GB, free: 75.66 MB / 0.5417 GB Error: Model is structurally singular, error found sorting equations 9: $cse3 = max(0.0, tank.level - tank.portsData[2].height); 106: $cse10 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(tank.vessel_ps_static[2], smooth(0, tank.medium.h), 0, 0); 4: tank.vessel_ps_static[2] = $cse3 * system.g * tank.heatTransfer.states[1].d + tank.p_ambient; 105: $cse11 = Modelica.Media.Water.IF97_Utilities.rho_props_ph(tank.vessel_ps_static[2], smooth(0, tank.medium.h), $cse10); 72: tank.portVelocities[2] = smooth(0, (-m_flow) / ($cse11 * tank.portAreas[2])); 99: $cse45 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe.mediums[1].p, pipe.mediums[1].h, pipe.statesFM[1].phase, 0); 100: pipe.statesFM[1].phase = if pipe.mediums[1].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe.mediums[1].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pipe.mediums[1].p)) or pipe.mediums[1].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe.mediums[1].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pipe.mediums[1].p)) or pipe.mediums[1].p > 22064000.0 then 1 else 2; 97: pipe.statesFM[1].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pipe.mediums[1].p, pipe.mediums[1].h, $cse45); 92: $cse46 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pipe.mediums[2].p, pipe.mediums[2].h, pipe.statesFM[2].phase, 0); 93: pipe.statesFM[2].phase = if pipe.mediums[2].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe.mediums[2].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pipe.mediums[2].p)) or pipe.mediums[2].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pipe.mediums[2].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pipe.mediums[2].p)) or pipe.mediums[2].p > 22064000.0 then 1 else 2; 91: pipe.statesFM[2].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pipe.mediums[2].p, pipe.mediums[2].h, $cse46); 88: pipe.flowModel.Fs_p[1] = 0.5 * (pipe.crossAreas[1] + pipe.crossAreas[2]) * (pipe.mediums[2].p - pipe.mediums[1].p) * pipe.flowModel.nParallel; 98: pipe.statesFM[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pipe.mediums[1].p, pipe.mediums[1].h, $cse45); 96: pipe.flowModel.mus[1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe.statesFM[1].d, pipe.statesFM[1].T, pipe.mediums[1].p, pipe.statesFM[1].phase); 90: pipe.statesFM[2].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pipe.mediums[2].p, pipe.mediums[2].h, $cse46); 89: pipe.flowModel.mus[2] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe.statesFM[2].d, pipe.statesFM[2].T, pipe.mediums[2].p, pipe.statesFM[2].phase); 87: pipe.flowModel.dps_fg[1] = -2.0 * pipe.flowModel.Fs_p[1] / (pipe.flowModel.nParallel * (pipe.crossAreas[1] + pipe.crossAreas[2])); 86: $cse56 = Modelica.Fluid.Pipes.DynamicPipe$pipe.FlowModel$pipe$flowModel.WallFriction.massFlowRate_dp_staticHead(pipe.flowModel.dps_fg[1], pipe.statesFM[1].d, pipe.statesFM[2].d, pipe.flowModel.mus[1], pipe.flowModel.mus[2], 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); 110: tank.heatTransfer.states[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(tank.p_ambient, tank.medium.h, $cse1); 10: $cse2 = max(0.0, tank.level - tank.portsData[1].height); 56: $cse6 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(tank.vessel_ps_static[1], smooth(0, if m_flow > 0.0 then radiator.mediums[1].h else tank.medium.h), 0, 0); 2: tank.vessel_ps_static[1] = $cse2 * system.g * tank.heatTransfer.states[1].d + tank.p_ambient; 55: $cse5 = Modelica.Media.Water.IF97_Utilities.rho_props_ph(tank.vessel_ps_static[1], smooth(0, if m_flow > 0.0 then radiator.mediums[1].h else tank.medium.h), $cse6); 85: m_flow = $cse56 * pipe.flowModel.nParallel; 52: tank.portVelocities[1] = smooth(0, m_flow / ($cse5 * tank.portAreas[1])); 84: tank.ports_H_flow[1] = m_flow * smooth(0, if m_flow > 0.0 then radiator.mediums[1].h else tank.medium.h); 71: tank.ports_E_flow[2] = (-m_flow) * (0.5 * tank.portVelocities[2] ^ 2.0 + system.g * tank.portsData[2].height); 68: tank.ports_H_flow[2] = (-m_flow) * smooth(0, tank.medium.h); 51: tank.ports_E_flow[1] = m_flow * (0.5 * tank.portVelocities[1] ^ 2.0 + system.g * tank.portsData[1].height); 50: tank.Hb_flow = tank.ports_H_flow[1] + tank.ports_H_flow[2] + tank.ports_E_flow[1] + tank.ports_E_flow[2]; 8: tank.heatTransfer.surfaceAreas[1] = tank.crossArea + 3.544907701811032 * sqrt(tank.crossArea) * tank.level; 133: $STATESET1.J[14] = -(tank.Hb_flow + 10.0 * tank.heatTransfer.surfaceAreas[1] * (tank.heatTransfer.T_ambient - tank.heatTransfer.Ts[1])); 112: tank.heatTransfer.states[1].phase = if tank.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(tank.p_ambient, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(tank.p_ambient)) or tank.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(tank.p_ambient, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(tank.p_ambient)) or tank.p_ambient > 22064000.0 then 1 else 2; 109: tank.heatTransfer.Ts[1] = Modelica.Media.Water.IF97_Utilities.T_props_ph(tank.p_ambient, tank.medium.h, $cse1); 111: $cse1 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(tank.p_ambient, tank.medium.h, tank.heatTransfer.states[1].phase, 0); for variables tank.s[2](353), $cse8.x(83), $cse8.dpT(85), $cse10.pt(89), $cse10.phase(90), $cse10.dpT(91), $cse10.pd(92), $cse10.region(93), $cse10.cv(98), $cse32.phase(104), $cse32.cp(107), $cse10.vp(97), $cse32.dpT(109), $cse10.s(95), $cse10.cp(100), $cse32.s(108), $cse10.p(94), $cse3(348), $cse10.x(96), tank.ports_E_flow[2](197), $cse45.rho(125), $cse45.region(128), $cse32.h(118), $cse32.pt(114), $cse32.vt(115), pipe.statesFM[1].phase(123), $cse45.s(130), pipe.statesFM[1].d(140), $cse45.pt(132), pipe.statesFM[1].T(141), $cse45.cp(135), $cse22.vp(146), $cse45.R(139), $cse45.vt(131), pipe.flowModel.mus[1](142), $cse45.cv(137), $cse32.region(116), $cse45.h(134), $cse46.x(161), $cse46.phase(162), $cse46.p(163), $cse46.vp(164), $cse46.vt(165), $cse46.region(166), $cse46.T(167), $cse46.R(168), $cse46.dpT(169), $cse46.cp(170), $cse46.h(171), $cse46.cv(172), $cse46.s(173), $cse46.pd(174), $cse46.pt(175), $cse46.rho(176), pipe.statesFM[2].phase(160), pipe.statesFM[2].T(177), pipe.flowModel.Fs_p[1](180), $cse45.phase(133), $cse22.phase(145), pipe.statesFM[2].d(178), pipe.flowModel.mus[2](179), pipe.flowModel.dps_fg[1](181), radiator.H_flows[1](189), tank.heatTransfer.states[1].d(68), tank.s[1](354), $cse14(203), $cse58(207), $cse6.rho(215), pump.V_flow_single(202), $cse6.phase(216), $cse6.dpT(217), $cse6.T(218), $cse6.pd(220), $cse6.vp(223), $cse4.pt(230), $cse4.R(231), $cse6.pt(222), $cse6.p(226), $cse6.cv(225), $cse4.region(232), $cse4.p(234), tank.ports_penetration[2](346), $cse4.phase(229), tank.ports_H_flow[1](184), $cse19.cp(254), pipe.vs[1](194), pipe.vs[2](192), pump.eta(204), $cse4.cv(239), $cse4.h(241), tank.inFlow[2](352), tank.heatTransfer.states[1].phase(51), tank.heatTransfer.Ts[1](69), $cse1.R(52), $cse1.cv(67), $cse1.vt(54), $cse1.region(61), $cse1.h(55), $cse1.pd(64), $cse1.vp(60), $cse1.p(66), $cse1.T(59), $cse1.s(62), $cse1.rho(53), $cse1.cp(63), $cse1.pt(65), $cse1.phase(58), $cse1.x(56), $cse1.dpT(57), $cse33.T(296) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01413/10.75, allocations: 8.317 MB / 4.383 GB, free: 74.82 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04466/10.8, allocations: 23.08 MB / 4.406 GB, free: 74.06 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003229/10.8, allocations: 1.028 MB / 4.407 GB, free: 73.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009041/10.8, allocations: 8.484 kB / 4.407 GB, free: 73.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00398/10.8, allocations: 329.2 kB / 4.407 GB, free: 73.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006319/10.81, allocations: 275 kB / 4.407 GB, free: 73.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003996/10.81, allocations: 141.6 kB / 4.407 GB, free: 73.92 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001474/10.81, allocations: 0.8867 MB / 4.408 GB, free: 73.81 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02036/10.83, allocations: 4.349 MB / 4.413 GB, free: 73.81 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 52 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse40.phase,$cse40.region,$cse43.phase,$cse43.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse55.phase,$cse55.region,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 82,19 115} Notification: Performance of Backend phase and start with SimCode phase: time 0.02417/10.85, allocations: 4.562 MB / 4.417 GB, free: 73.52 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02774/10.88, allocations: 12.08 MB / 4.429 GB, free: 73.32 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/10.88, allocations: 6.188 kB / 4.429 GB, free: 73.32 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01337/10.89, allocations: 6.799 MB / 4.435 GB, free: 73.23 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006494/10.9, allocations: 0.8554 MB / 4.436 GB, free: 73.22 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]