Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.003592/0.003592, allocations: 177.3 kB / 7.453 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.287/1.287, allocations: 170.6 MB / 178.4 MB, free: 15.37 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001852/0.001852, allocations: 116.3 kB / 217.7 MB, free: 8.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2068/0.2068, allocations: 37.98 MB / 294.8 MB, free: 9.59 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.386e-06, allocations: 0 / 349.5 MB, free: 37.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1273, allocations: 48.71 MB / 398.2 MB, free: 5.672 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.476/7.603, allocations: 2.559 GB / 2.948 GB, free: 113.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003951/7.604, allocations: 76.81 kB / 2.948 GB, free: 113.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.476/12.08, allocations: 0.9922 GB / 3.94 GB, free: 27.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004281/12.08, allocations: 72.45 kB / 3.94 GB, free: 27.01 MB / 474.7 MB 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.02245/12.1, allocations: 4.286 MB / 3.944 GB, free: 25 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/12.1, allocations: 7.188 kB / 3.944 GB, free: 25 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01006/12.11, allocations: 1.097 MB / 3.945 GB, free: 24.83 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009839/12.12, allocations: 2.244 MB / 3.948 GB, free: 24.35 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005276/12.12, allocations: 205.1 kB / 3.948 GB, free: 24.28 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001695/12.12, allocations: 140.7 kB / 3.948 GB, free: 24.28 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01058/12.14, allocations: 3.513 MB / 3.951 GB, free: 24.27 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01366/12.15, allocations: 3.701 MB / 3.955 GB, free: 23.67 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001732/12.15, allocations: 6.219 kB / 3.955 GB, free: 23.67 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001318/12.15, allocations: 9.75 kB / 3.955 GB, free: 23.67 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000363/12.15, allocations: 231.3 kB / 3.955 GB, free: 23.66 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03892/12.19, allocations: 19.92 MB / 3.975 GB, free: 11.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00377/12.19, allocations: 1.417 MB / 3.976 GB, free: 11.82 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00298/12.2, allocations: 1.313 MB / 3.977 GB, free: 11.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04192/12.24, allocations: 17.06 MB / 3.994 GB, free: 17.27 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001451/12.24, allocations: 56.16 kB / 3.994 GB, free: 17.23 MB / 490.7 MB Notification: Performance of pre-optimization done (n=181): time 1.033e-05/12.24, allocations: 0 / 3.994 GB, free: 17.23 MB / 490.7 MB Notification: Performance of matching and sorting (n=281): time 0.4566/12.7, allocations: 35.28 MB / 4.028 GB, free: 14.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/12.7, allocations: 133.2 kB / 4.029 GB, free: 14.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003384/12.7, allocations: 1.231 MB / 4.03 GB, free: 14.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007609/12.7, allocations: 28.67 kB / 4.03 GB, free: 14.21 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008548/12.7, allocations: 0.9376 MB / 4.031 GB, free: 13.65 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001562/12.7, allocations: 0.89 MB / 4.032 GB, free: 13.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007969/12.7, allocations: 0 / 4.032 GB, free: 13.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004803/12.7, allocations: 427.2 kB / 4.032 GB, free: 12.74 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/12.71, allocations: 2.776 MB / 4.035 GB, free: 12.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004672/12.71, allocations: 3.326 MB / 4.038 GB, free: 12.14 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01904/12.73, allocations: 5.541 MB / 4.043 GB, free: 12 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.985e-05/12.73, allocations: 4.5 kB / 4.043 GB, free: 12 MB / 490.7 MB Notification: Performance of matching and sorting (n=370) (initialization): time 0.036/12.77, allocations: 11.99 MB / 4.055 GB, free: 11.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002115/12.77, allocations: 5.961 MB / 4.061 GB, free: 5.277 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/12.77, allocations: 12 kB / 4.061 GB, free: 5.266 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02432/12.8, allocations: 7.774 MB / 4.068 GB, free: 0.7031 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002036/12.8, allocations: 346 kB / 4.069 GB, free: 464 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03285/12.83, allocations: 12.52 MB / 4.081 GB, free: 9.551 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006717/12.84, allocations: 331.4 kB / 4.081 GB, free: 9.309 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/12.84, allocations: 185.2 kB / 4.082 GB, free: 9.184 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/12.84, allocations: 4 kB / 4.082 GB, free: 9.18 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02894/12.87, allocations: 8.154 MB / 4.09 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-05/12.87, allocations: 16 kB / 4.09 GB, free: 2.949 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01459/12.88, allocations: 3.593 MB / 4.093 GB, free: 176 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004208/12.89, allocations: 0.5853 MB / 4.094 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3514/13.24, allocations: 6.357 MB / 4.1 GB, free: 81.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005389/13.24, allocations: 296.7 kB / 4.1 GB, free: 81.03 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008421/13.24, allocations: 152.9 kB / 4.1 GB, free: 81.03 MB / 0.4948 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.001876/13.25, allocations: 204.3 kB / 4.1 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003252/13.25, allocations: 0.7355 MB / 4.101 GB, free: 80.92 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02797/13.28, allocations: 17.26 MB / 4.118 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.561e-05/13.28, allocations: 97.77 kB / 4.118 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/13.28, allocations: 0 / 4.118 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02256/13.3, allocations: 15.19 MB / 4.133 GB, free: 79.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06176/13.36, allocations: 29.08 MB / 4.161 GB, free: 77.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.813e-05/13.36, allocations: 2.031 kB / 4.161 GB, free: 77.97 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/13.36, allocations: 214.5 kB / 4.162 GB, free: 77.97 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02835/13.39, allocations: 13.39 MB / 4.175 GB, free: 77.64 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001038/13.39, allocations: 74.77 kB / 4.175 GB, free: 77.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0268/13.42, allocations: 16.13 MB / 4.19 GB, free: 76.43 MB / 0.4948 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.01705/13.44, allocations: 8.321 MB / 4.199 GB, free: 75.57 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0507/13.49, allocations: 23.09 MB / 4.221 GB, free: 67.89 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004019/13.49, allocations: 1.029 MB / 4.222 GB, free: 67.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/13.49, allocations: 3.469 kB / 4.222 GB, free: 67.35 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004942/13.5, allocations: 330.8 kB / 4.222 GB, free: 67.34 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009044/13.5, allocations: 267 kB / 4.223 GB, free: 67.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000497/13.5, allocations: 138.2 kB / 4.223 GB, free: 67.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001965/13.5, allocations: 0.8886 MB / 4.224 GB, free: 66.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02229/13.52, allocations: 4.321 MB / 4.228 GB, free: 66.79 MB / 0.4948 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.0267/13.55, allocations: 4.558 MB / 4.232 GB, free: 66.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0285/13.58, allocations: 12.08 MB / 4.244 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/13.58, allocations: 0 / 4.244 GB, free: 55.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01208/13.59, allocations: 6.809 MB / 4.251 GB, free: 49.76 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006786/13.6, allocations: 0.8557 MB / 4.252 GB, free: 49.18 MB / 0.4948 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]