Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.HeatingSystem") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.8537/0.8537, allocations: 110.8 MB / 118 MB, free: 14.66 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001954/0.001953, allocations: 159.9 kB / 143.7 MB, free: 4.984 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.334e-06/7.423e-06, allocations: 4 kB / 173.4 MB, free: 23.08 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04147/0.0415, allocations: 25.17 MB / 198.6 MB, free: 13.97 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.773/2.815, allocations: 1.454 GB / 1.648 GB, free: 48.55 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/2.815, allocations: 62.52 kB / 1.648 GB, free: 48.55 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.64/6.455, allocations: 0.8962 GB / 2.544 GB, free: 17.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002741/6.455, allocations: 67.83 kB / 2.544 GB, free: 17.12 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 573 * Number of variables: 573 Notification: Performance of Generate backend data structure: time 0.01754/6.473, allocations: 3.907 MB / 2.548 GB, free: 15.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/6.473, allocations: 9.531 kB / 2.548 GB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/6.475, allocations: 304.9 kB / 2.548 GB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005763/6.48, allocations: 1.988 MB / 2.55 GB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004609/6.481, allocations: 200.2 kB / 2.55 GB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/6.482, allocations: 135.1 kB / 2.551 GB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005845/6.488, allocations: 3.066 MB / 2.554 GB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007142/6.495, allocations: 3.292 MB / 2.557 GB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.687e-05/6.495, allocations: 5.719 kB / 2.557 GB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002965/6.495, allocations: 9.094 kB / 2.557 GB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001712/6.496, allocations: 200.2 kB / 2.557 GB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02034/6.516, allocations: 17.85 MB / 2.574 GB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001879/6.518, allocations: 1.462 MB / 2.576 GB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/6.52, allocations: 1.433 MB / 2.577 GB, free: 3.578 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.8217/7.341, allocations: 237 MB / 2.809 GB, free: 72.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.1e-05/7.341, allocations: 55.12 kB / 2.809 GB, free: 72.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=179): time 4.479e-06/7.341, allocations: 0 / 2.809 GB, free: 72.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=234): time 0.1884/7.53, allocations: 20.13 MB / 2.828 GB, free: 70.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/7.53, allocations: 131.8 kB / 2.828 GB, free: 70.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002281/7.532, allocations: 1.051 MB / 2.83 GB, free: 70.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006376/7.533, allocations: 25.7 kB / 2.83 GB, free: 70.28 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Valves.mo:368:7-373:78:writable] Warning: The parameter valve.Av has fixed = false, a start value, start = valve.m_flow_nominal * Modelica.Fluid.Valves.ValveIncompressible$valve.valveCharacteristic(valve.opening_nominal) / sqrt(valve.rho_nominal * valve.dp_nominal) and a binding equation valve.Av = 0.0, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.0006412/7.534, allocations: 0.8093 MB / 2.83 GB, free: 69.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001184/7.535, allocations: 0.7708 MB / 2.831 GB, free: 69.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004813/7.535, allocations: 0 / 2.831 GB, free: 69.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002118/7.536, allocations: 399.7 kB / 2.831 GB, free: 69.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002983/7.539, allocations: 1.912 MB / 2.833 GB, free: 69.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/7.541, allocations: 2.385 MB / 2.836 GB, free: 68.6 MB / 362.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.02343/7.565, allocations: 6.786 MB / 2.842 GB, free: 68.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/7.565, allocations: 8.406 kB / 2.842 GB, free: 68.39 MB / 362.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.01999/7.585, allocations: 7.257 MB / 2.849 GB, free: 68.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/7.585, allocations: 8.672 kB / 2.849 GB, free: 68.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-05/7.585, allocations: 12.38 kB / 2.849 GB, free: 68.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01225/7.597, allocations: 4.359 MB / 2.854 GB, free: 68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/7.599, allocations: 341.1 kB / 2.854 GB, free: 68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02223/7.621, allocations: 8.466 MB / 2.862 GB, free: 66.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006956/7.628, allocations: 331.6 kB / 2.863 GB, free: 66.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001241/7.63, allocations: 148.2 kB / 2.863 GB, free: 66.23 MB / 362.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.heater.mediums[1].p = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.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] 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.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 14 (radiator.state_b.phase,heater.state_a.phase,valve.state_b.phase,valve.state_a.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,radiator.state_a.phase,heater.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 11,19 125} Notification: Performance of prepare postOptimizeDAE: time 0.001596/7.631, allocations: 168.2 kB / 2.863 GB, free: 66.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001831/7.633, allocations: 365.7 kB / 2.863 GB, free: 66.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03161/7.665, allocations: 10.8 MB / 2.874 GB, free: 65.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02515/7.69, allocations: 9.16 MB / 2.883 GB, free: 62.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-05/7.69, allocations: 8 kB / 2.883 GB, free: 62.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02412/7.714, allocations: 9.319 MB / 2.892 GB, free: 56.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2131/7.927, allocations: 16.92 MB / 2.908 GB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/7.927, allocations: 2.375 kB / 2.908 GB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001819/7.929, allocations: 394 kB / 2.909 GB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006895/7.936, allocations: 3.265 MB / 2.912 GB, free: 89.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000536/7.937, allocations: 85.77 kB / 2.912 GB, free: 89.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/7.948, allocations: 9.529 MB / 2.921 GB, free: 84.94 MB / 362.7 MB Error: Too many equations, over-determined system. The model has 40 equation(s) and 37 variable(s). Warning: Equation 11 (size: 1) 0.0 = 0.0 is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: Equations used to solve those variables: Warning: Equation 22 (size: 16) Modelica.Media.Common.IF97BaseTwoPhase(0.0, 0.0, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11) = $DER$$PModelica$PMedia$PWater$PIF97_Utilities$PwaterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0, 0.0, pump_medium_hSeedStateSetJac11) is not big enough to solve for enough variables. Remaining unsolved variables are: $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11 Already solved: Equations used to solve those variables: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Vessels.mo:345:11-375:17:writable] Warning: Equation 23 (size: 1) $STATESET1.J.1.$pDERStateSetJac11.dummyVarStateSetJac11 = -(if tank.level >= tank.portsData[2].height then (-pump_dp_pumpSeedStateSetJac11) - (tank.vessel_ps_static.2.$pDERStateSetJac11.dummyVarStateSetJac11 + 0.5 * tank.portAreas[2] ^ -2.0 * smooth(1, if noEvent((-m_flow) >= tank.m_flow_small) then (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2] * 2.0 * m_flow * m_flow.$pDERStateSetJac11.dummyVarStateSetJac11 + (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * (tank.ports_penetration.2.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.portDensities[2] - tank.ports_penetration[2] * tank.portDensities.2.$pDERStateSetJac11.dummyVarStateSetJac11) / tank.portDensities[2] ^ 2.0 * m_flow ^ 2.0 else if noEvent((-m_flow) <= (-tank.m_flow_small)) then (2.0 * m_flow * m_flow.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.heatTransfer.states[1].d * tank.ports_penetration[2] - m_flow ^ 2.0 * (tank.heatTransfer.states[1].d * tank.ports_penetration.2.$pDERStateSetJac11.dummyVarStateSetJac11 + tank.heatTransfer.states.1.d.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.ports_penetration[2])) * (-1.0 + (tank.portAreas[2] / tank.vesselArea) ^ 2.0 - tank.portsData[2].zeta_out) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]) ^ 2.0 else if noEvent((-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2] >= (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2])) then (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * (tank.ports_penetration.2.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.portDensities[2] - tank.ports_penetration[2] * tank.portDensities.2.$pDERStateSetJac11.dummyVarStateSetJac11) / tank.portDensities[2] ^ 2.0 * $DER$$PModelica$PFluid$PUtilities$PregSquare2$PregSquare2_utility(-m_flow, tank.m_flow_small, (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2], (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]), false, 1.0, -0.0, 0.0, 1.0, 0.0, 0.0) - m_flow.$pDERStateSetJac11.dummyVarStateSetJac11 * $DER$$PModelica$PFluid$PUtilities$PregSquare2$PregSquare2_utility(-m_flow, tank.m_flow_small, (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2], (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]), false, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0) + $DER$$PModelica$PFluid$PUtilities$PregSquare2$PregSquare2_utility(-m_flow, tank.m_flow_small, (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2], (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]), false, 1.0, -0.0, 0.0, 0.0, 1.0, 0.0) * (-1.0 + (tank.portAreas[2] / tank.vesselArea) ^ 2.0 - tank.portsData[2].zeta_out) * (tank.heatTransfer.states[1].d * tank.ports_penetration.2.$pDERStateSetJac11.dummyVarStateSetJac11 + tank.heatTransfer.states.1.d.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.ports_penetration[2]) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]) ^ 2.0 else (-m_flow.$pDERStateSetJac11.dummyVarStateSetJac11) * $DER$$PModelica$PFluid$PUtilities$PregSquare2$PregSquare2_utility(m_flow, tank.m_flow_small, (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]), (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2], false, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0) - $DER$$PModelica$PFluid$PUtilities$PregSquare2$PregSquare2_utility(m_flow, tank.m_flow_small, (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]), (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2], false, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0) * (-1.0 + (tank.portAreas[2] / tank.vesselArea) ^ 2.0 - tank.portsData[2].zeta_out) * (tank.heatTransfer.states[1].d * tank.ports_penetration.2.$pDERStateSetJac11.dummyVarStateSetJac11 + tank.heatTransfer.states.1.d.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.ports_penetration[2]) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]) ^ 2.0 - (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * (tank.ports_penetration.2.$pDERStateSetJac11.dummyVarStateSetJac11 * tank.portDensities[2] - tank.ports_penetration[2] * tank.portDensities.2.$pDERStateSetJac11.dummyVarStateSetJac11) / tank.portDensities[2] ^ 2.0 * $DER$$PModelica$PFluid$PUtilities$PregSquare2$PregSquare2_utility(m_flow, tank.m_flow_small, (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.heatTransfer.states[1].d * tank.ports_penetration[2]), (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portDensities[2], false, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0))) else if tank.s[2] > 0.0 or tank.portsData[2].height >= tank.fluidLevel_max then (-pump_dp_pumpSeedStateSetJac11) - tank.vessel_ps_static.2.$pDERStateSetJac11.dummyVarStateSetJac11 else -m_flow.$pDERStateSetJac11.dummyVarStateSetJac11) is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11 Equations used to solve those variables: Equation 22 (size: 16): Modelica.Media.Common.IF97BaseTwoPhase(0.0, 0.0, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11) = $DER$$PModelica$PMedia$PWater$PIF97_Utilities$PwaterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0, 0.0, pump_medium_hSeedStateSetJac11) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Machines.mo:458:7-458:43:writable] Warning: Equation 24 (size: 1) $STATESET1.J.2.$pDERStateSetJac11.dummyVarStateSetJac11 = pump.W_single.$pDERStateSetJac11.dummyVarStateSetJac11 + -1.25 * (pump.dp_pump * pump.V_flow_single.$pDERStateSetJac11.dummyVarStateSetJac11 + pump_dp_pumpSeedStateSetJac11 * pump.V_flow_single) is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11 Equations used to solve those variables: Equation 22 (size: 16): Modelica.Media.Common.IF97BaseTwoPhase(0.0, 0.0, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11) = $DER$$PModelica$PMedia$PWater$PIF97_Utilities$PwaterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0, 0.0, pump_medium_hSeedStateSetJac11) [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Fluid/Vessels.mo:345:11-375:17:writable] Warning: Equation 25 (size: 1) 0.0 = -(if tank.level >= tank.portsData[2].height then tank.s.2.$pDERStateSetJac11.dummyVarStateSetJac11 - tank_levelSeedStateSetJac11 else if tank.s[2] > 0.0 or tank.portsData[2].height >= tank.fluidLevel_max then tank.s.2.$pDERStateSetJac11.dummyVarStateSetJac11 + m_flow.$pDERStateSetJac11.dummyVarStateSetJac11 else tank.s.2.$pDERStateSetJac11.dummyVarStateSetJac11 - 9.869232667160129e-06 * (((-pump_dp_pumpSeedStateSetJac11) - tank.vessel_ps_static.2.$pDERStateSetJac11.dummyVarStateSetJac11) * (tank.portsData[2].height - tank.level) - (tank.ports[2].p - tank.vessel_ps_static[2]) * tank_levelSeedStateSetJac11)) is not big enough to solve for enough variables. Remaining unsolved variables are: Already solved: $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11 Equations used to solve those variables: Equation 22 (size: 16): Modelica.Media.Common.IF97BaseTwoPhase(0.0, 0.0, $cse23.p.$pDERStateSetJac11.dummyVarStateSetJac11, heater.statesFM.1.T.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.h.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.R.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.cv.$pDERStateSetJac11.dummyVarStateSetJac11, heater.flowModel.rhos.1.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.s.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.pd.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vt.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.vp.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.x.$pDERStateSetJac11.dummyVarStateSetJac11, $cse23.dpT.$pDERStateSetJac11.dummyVarStateSetJac11) = $DER$$PModelica$PMedia$PWater$PIF97_Utilities$PwaterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0, 0.0, pump_medium_hSeedStateSetJac11) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1957:10-1957:88:writable] Error: Internal error function optimizeJacobianMatrix failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1889:9-1889:79:writable] Error: Internal error function createJacobian failed Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 40 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse11.phase,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse37.phase,$cse40.phase,$cse45.phase,$cse45.region,$cse46.phase,$cse46.region,$cse47.phase,$cse50.phase,$cse50.region,$cse51.phase,tank.heatTransfer.states[1].phase,pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[1].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,2 9,2 4,1 1,4 16,2 12,1 1,7 31} [/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]