Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8212/0.8212, allocations: 150.9 MB / 167.2 MB, free: 14.48 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003622, allocations: 19.8 kB / 237.8 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05974/0.06012, allocations: 31.34 MB / 269.1 MB, free: 7.031 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser): time 1.589/1.649, allocations: 297.3 MB / 0.5531 GB, free: 10.59 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5225/2.172, allocations: 193 MB / 0.7416 GB, free: 14.88 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008616/2.173, allocations: 19.31 kB / 0.7416 GB, free: 14.88 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowRiser.mo:243:3-244:52:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/HeatExchangers/DynamicTwoPhaseFlowRiser.mo:247:3-248:50:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.001022/2.174, allocations: 295.7 kB / 0.7419 GB, free: 14.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001722/2.176, allocations: 0.7246 MB / 0.7426 GB, free: 14.87 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh1satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph.mo:69:3-69:60:writable] Warning: dh2satp was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du1satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteamSimple/prop4_Ph_der.mo:167:3-170:49:writable] Warning: du2satp_der was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.03176/2.207, allocations: 12.69 MB / 0.755 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.009484/2.217, allocations: 11.58 MB / 0.7663 GB, free: 13.07 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007487/2.224, allocations: 4.035 MB / 0.7703 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008133/2.233, allocations: 3.816 MB / 0.774 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008342/2.241, allocations: 4.426 MB / 0.7783 GB, free: 9.672 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.003163/2.244, allocations: 0.7112 MB / 0.779 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04437/2.289, allocations: 21.21 MB / 0.7997 GB, free: 56 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.004923/2.293, allocations: 2.872 MB / 0.8025 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.007774/2.301, allocations: 3.615 MB / 0.806 GB, free: 9.867 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.04101/2.342, allocations: 18.67 MB / 0.8243 GB, free: 8.043 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/2.342, allocations: 0 / 0.8243 GB, free: 8.043 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.513e-06/2.342, allocations: 0 / 0.8243 GB, free: 8.043 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0002693/2.343, allocations: 0 / 0.8243 GB, free: 8.043 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1654 * Number of variables: 1654 Notification: Performance of Generate backend data structure: time 0.0403/2.383, allocations: 10.15 MB / 0.8342 GB, free: 13.82 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/2.383, allocations: 12.03 kB / 0.8342 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003341/2.386, allocations: 0.5793 MB / 0.8348 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008848/2.395, allocations: 2.432 MB / 0.8371 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002736/2.398, allocations: 1.879 MB / 0.839 GB, free: 8.613 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002326/2.4, allocations: 455.9 kB / 0.8394 GB, free: 8.168 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03377/2.434, allocations: 11.67 MB / 0.8508 GB, free: 12.42 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/2.434, allocations: 0 / 0.8508 GB, free: 12.42 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001178/2.435, allocations: 184 kB / 0.851 GB, free: 12.24 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001414/2.436, allocations: 169.5 kB / 0.8511 GB, free: 12.07 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04176/2.477, allocations: 16.66 MB / 0.8674 GB, free: 11.39 MB / 0.6856 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.0814/2.559, allocations: 38.84 MB / 0.9053 GB, free: 2.652 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03868/2.598, allocations: 13.42 MB / 0.9184 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0219/2.62, allocations: 8.987 MB / 0.9272 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09821/2.718, allocations: 53.69 MB / 0.9797 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001628/2.718, allocations: 108.4 kB / 0.9798 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1220): time 1.321e-05/2.718, allocations: 0 / 0.9798 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1220): time 0.359/3.077, allocations: 42.56 MB / 1.021 GB, free: 431.8 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/3.077, allocations: 128.3 kB / 1.021 GB, free: 431.7 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001599/3.079, allocations: 1.379 MB / 1.023 GB, free: 431.6 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.001456/3.08, allocations: 143.4 kB / 1.023 GB, free: 431.6 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000448/3.081, allocations: 0.8154 MB / 1.024 GB, free: 431.4 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003545/3.084, allocations: 4.031 MB / 1.028 GB, free: 428.7 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004084/3.088, allocations: 1.547 MB / 1.029 GB, free: 428.6 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 3.71e-05/3.088, allocations: 305.3 kB / 1.029 GB, free: 428.4 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01635/3.105, allocations: 7.575 MB / 1.037 GB, free: 428.3 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01759/3.122, allocations: 8.412 MB / 1.045 GB, free: 426.4 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03359/3.156, allocations: 15.98 MB / 1.061 GB, free: 419.2 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.262e-05/3.156, allocations: 8.219 kB / 1.061 GB, free: 419.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1281) (initialization): time 0.04923/3.205, allocations: 22.59 MB / 1.083 GB, free: 398.1 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/3.205, allocations: 8 kB / 1.083 GB, free: 398.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.959e-05/3.205, allocations: 31.98 kB / 1.083 GB, free: 398.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05831/3.264, allocations: 25.26 MB / 1.107 GB, free: 372.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0121/3.276, allocations: 1.874 MB / 1.109 GB, free: 371 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0407/3.317, allocations: 47.54 MB / 1.156 GB, free: 320.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009941/3.327, allocations: 1.677 MB / 1.157 GB, free: 319.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00192/3.328, allocations: 353.1 kB / 1.158 GB, free: 318.7 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 (sourcePQ.C.ftype,dynamicTwoPhaseFlowRiser.fluid,sinkP.fluid,sourcePQ.fluid1,dynamicTwoPhaseFlowRiser.C1.diff_on_2,dynamicTwoPhaseFlowRiser.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (412): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 21 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 20 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(23,327)} Notification: Performance of prepare postOptimizeDAE: time 0.003758/3.332, allocations: 1.465 MB / 1.159 GB, free: 317.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001316/3.334, allocations: 462.1 kB / 1.16 GB, free: 316.8 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05484/3.388, allocations: 24.95 MB / 1.184 GB, free: 291.8 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001835/3.389, allocations: 35.86 kB / 1.184 GB, free: 291.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.515e-05/3.389, allocations: 23.98 kB / 1.184 GB, free: 291.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005138/3.394, allocations: 2.051 MB / 1.186 GB, free: 289.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002123/3.396, allocations: 140 kB / 1.186 GB, free: 289.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009409/3.405, allocations: 1.139 MB / 1.187 GB, free: 288.4 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002402/3.408, allocations: 0.6181 MB / 1.188 GB, free: 287.7 MB / 0.8262 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(dynamicTwoPhaseFlowRiser.T2[1], dynamicTwoPhaseFlowRiser.rho2[1], dynamicTwoPhaseFlowRiser.pro2[1].u, dynamicTwoPhaseFlowRiser.pro2[1].s, dynamicTwoPhaseFlowRiser.pro2[1].cp, dynamicTwoPhaseFlowRiser.pro2[1].ddhp, dynamicTwoPhaseFlowRiser.pro2[1].ddph, dynamicTwoPhaseFlowRiser.pro2[1].duph, dynamicTwoPhaseFlowRiser.pro2[1].duhp, dynamicTwoPhaseFlowRiser.pro2[1].x) = $cse23 Variables: 1: dynamicTwoPhaseFlowRiser.pro2[1].s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real [11] 2: dynamicTwoPhaseFlowRiser.pro2[1].ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real [11] 3: dynamicTwoPhaseFlowRiser.pro2[1].u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real [11] 4: dynamicTwoPhaseFlowRiser.rho2[1]:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i" type: Real [11] 5: dynamicTwoPhaseFlowRiser.pro2[1].ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real [11] 6: dynamicTwoPhaseFlowRiser.pro2[1].duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real [11] 7: dynamicTwoPhaseFlowRiser.pro2[1].cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real [11] 8: dynamicTwoPhaseFlowRiser.rhol2[1]:VARIABLE(min = 0.0 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density in hydraulic node i for the liquid" type: Real [11] 9: dynamicTwoPhaseFlowRiser.rhov2[1]:VARIABLE(min = 0.0 start = 1.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i for the vapor" type: Real [11] 10: dynamicTwoPhaseFlowRiser.muv2[1]:VARIABLE(min = 0.0 start = 1e-5 unit = "Pa.s" nominal = 1e-4 ) "Dynamic viscosity in hydraulic node i for the vapor" type: Real [11] [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): dynamicTwoPhaseFlowRiser.P[1] + (-dynamicTwoPhaseFlowRiser.dpf[1]) - dynamicTwoPhaseFlowRiser.P[2] - dynamicTwoPhaseFlowRiser.dpg[1] = 0.0 2/2 (1): dynamicTwoPhaseFlowRiser.dpf[1] = 0.5 * dynamicTwoPhaseFlowRiser.dpfCorr * dynamicTwoPhaseFlowRiser.khi[1] * dynamicTwoPhaseFlowRiser.Q[1] * abs(dynamicTwoPhaseFlowRiser.Q[1]) / (dynamicTwoPhaseFlowRiser.A ^ 2.0 * dynamicTwoPhaseFlowRiser.rhol2[1]) 3/3 (1): dynamicTwoPhaseFlowRiser.khi[1] = dynamicTwoPhaseFlowRiser.filo[1] * dynamicTwoPhaseFlowRiser.lambdal[1] * dynamicTwoPhaseFlowRiser.dx2 / dynamicTwoPhaseFlowRiser.D 4/4 (1): dynamicTwoPhaseFlowRiser.filo[1] = if noEvent(dynamicTwoPhaseFlowRiser.xv2[1] < 0.0) then 1.0 else if noEvent(dynamicTwoPhaseFlowRiser.xv2[1] >= 0.0) and noEvent(dynamicTwoPhaseFlowRiser.xv2[1] < 0.8) then 1.0 + /*Real*/(dynamicTwoPhaseFlowRiser.a) * dynamicTwoPhaseFlowRiser.xv2[1] * dynamicTwoPhaseFlowRiser.rgliss * exp((-1.1904761904761906e-7) * dynamicTwoPhaseFlowRiser.Pb[1]) / (19.0 + 1e-5 * dynamicTwoPhaseFlowRiser.Pb[1]) else (5.0 + (-5.0) * dynamicTwoPhaseFlowRiser.xv2[1] * dynamicTwoPhaseFlowRiser.rgliss) * (1.0 + /*Real*/(dynamicTwoPhaseFlowRiser.a) * dynamicTwoPhaseFlowRiser.xv2[1] * dynamicTwoPhaseFlowRiser.rgliss * exp((-1.1904761904761906e-7) * dynamicTwoPhaseFlowRiser.Pb[1]) / (19.0 + 1e-5 * dynamicTwoPhaseFlowRiser.Pb[1])) + (-4.0 + 5.0 * dynamicTwoPhaseFlowRiser.xv2[1] * dynamicTwoPhaseFlowRiser.rgliss) * dynamicTwoPhaseFlowRiser.rhol2[1] * dynamicTwoPhaseFlowRiser.lambdav[1] / (dynamicTwoPhaseFlowRiser.lambdal[1] * dynamicTwoPhaseFlowRiser.rhov2[1]) 5/5 (1): dynamicTwoPhaseFlowRiser.lambdav[1] = if noEvent(dynamicTwoPhaseFlowRiser.Rev2[1] > 1.0) then 0.25 / log10(13.0 / dynamicTwoPhaseFlowRiser.Rev2[1] + dynamicTwoPhaseFlowRiser.rugosrel / (3.7 * dynamicTwoPhaseFlowRiser.D)) ^ 2.0 else 0.01 6/6 (1): dynamicTwoPhaseFlowRiser.Rev2[1] = abs(4.0 * dynamicTwoPhaseFlowRiser.Q[1] / (3.141592653589793 * dynamicTwoPhaseFlowRiser.Di * dynamicTwoPhaseFlowRiser.muv2[1])) 7/7 (1): dynamicTwoPhaseFlowRiser.hb[1] = if dynamicTwoPhaseFlowRiser.Q[1] > 0.0 then dynamicTwoPhaseFlowRiser.h[1] else dynamicTwoPhaseFlowRiser.h[2] 8/8 (10): $cse23 = ThermoSysPro.Properties.Fluid.Ph(0.5 * (dynamicTwoPhaseFlowRiser.P[1] + dynamicTwoPhaseFlowRiser.P[2]), dynamicTwoPhaseFlowRiser.hb[1], dynamicTwoPhaseFlowRiser.mode, dynamicTwoPhaseFlowRiser.fluid) 9/18 (1): dynamicTwoPhaseFlowRiser.xv2[1] = if noEvent(0.5 * (dynamicTwoPhaseFlowRiser.P[1] + dynamicTwoPhaseFlowRiser.P[2]) > dynamicTwoPhaseFlowRiser.pcrit) or noEvent(dynamicTwoPhaseFlowRiser.T2[1] > dynamicTwoPhaseFlowRiser.Tcrit) then 1.0 else dynamicTwoPhaseFlowRiser.pro2[1].x 10/19 (1): dynamicTwoPhaseFlowRiser.mul2[1] = ThermoSysPro.Properties.Fluid.DynamicViscosity_rhoT(dynamicTwoPhaseFlowRiser.rhol2[1], dynamicTwoPhaseFlowRiser.T2[1], dynamicTwoPhaseFlowRiser.fluid) 11/20 (1): dynamicTwoPhaseFlowRiser.Rel2[1] = abs(4.0 * dynamicTwoPhaseFlowRiser.Q[1] / (3.141592653589793 * dynamicTwoPhaseFlowRiser.Di * dynamicTwoPhaseFlowRiser.mul2[1])) 12/21 (1): dynamicTwoPhaseFlowRiser.lambdal[1] = if noEvent(dynamicTwoPhaseFlowRiser.Rel2[1] > 1.0) then 0.25 / log10(13.0 / dynamicTwoPhaseFlowRiser.Rel2[1] + dynamicTwoPhaseFlowRiser.rugosrel / (3.7 * dynamicTwoPhaseFlowRiser.D)) ^ 2.0 else 0.01 13/22 (1): dynamicTwoPhaseFlowRiser.muv2[1] = ThermoSysPro.Properties.Fluid.DynamicViscosity_rhoT(dynamicTwoPhaseFlowRiser.rhov2[1], dynamicTwoPhaseFlowRiser.T2[1], dynamicTwoPhaseFlowRiser.fluid) 14/23 (1): dynamicTwoPhaseFlowRiser.rhov2[1] = if noEvent(dynamicTwoPhaseFlowRiser.P[2] > dynamicTwoPhaseFlowRiser.pcrit) or noEvent(dynamicTwoPhaseFlowRiser.T2[1] > dynamicTwoPhaseFlowRiser.Tcrit) then dynamicTwoPhaseFlowRiser.rho2[1] else min(dynamicTwoPhaseFlowRiser.rho2[1], dynamicTwoPhaseFlowRiser.vsat2[1].rho) 15/24 (1): dynamicTwoPhaseFlowRiser.rhol2[1] = if noEvent(dynamicTwoPhaseFlowRiser.P[2] > dynamicTwoPhaseFlowRiser.pcrit) or noEvent(dynamicTwoPhaseFlowRiser.T2[1] > dynamicTwoPhaseFlowRiser.Tcrit) then dynamicTwoPhaseFlowRiser.rho2[1] else max(dynamicTwoPhaseFlowRiser.rho2[1], dynamicTwoPhaseFlowRiser.lsat2[1].rho) 16/25 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(dynamicTwoPhaseFlowRiser.T2[1], dynamicTwoPhaseFlowRiser.rho2[1], dynamicTwoPhaseFlowRiser.pro2[1].u, dynamicTwoPhaseFlowRiser.pro2[1].s, dynamicTwoPhaseFlowRiser.pro2[1].cp, dynamicTwoPhaseFlowRiser.pro2[1].ddhp, dynamicTwoPhaseFlowRiser.pro2[1].ddph, dynamicTwoPhaseFlowRiser.pro2[1].duph, dynamicTwoPhaseFlowRiser.pro2[1].duhp, dynamicTwoPhaseFlowRiser.pro2[1].x) = $cse23 17/35 (1): dynamicTwoPhaseFlowRiser.dpg[1] = 9.80665 * dynamicTwoPhaseFlowRiser.rho2[1] * (dynamicTwoPhaseFlowRiser.z2 - dynamicTwoPhaseFlowRiser.z1) * dynamicTwoPhaseFlowRiser.dx2 / dynamicTwoPhaseFlowRiser.L Variables: 1: dynamicTwoPhaseFlowRiser.dpg[1]:VARIABLE(unit = "Pa" ) "Gravity pressure loss in node i" type: Real [11] 2: dynamicTwoPhaseFlowRiser.pro2[1].s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real [11] 3: dynamicTwoPhaseFlowRiser.pro2[1].ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real [11] 4: dynamicTwoPhaseFlowRiser.pro2[1].u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real [11] 5: dynamicTwoPhaseFlowRiser.rho2[1]:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i" type: Real [11] 6: dynamicTwoPhaseFlowRiser.pro2[1].ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real [11] 7: dynamicTwoPhaseFlowRiser.pro2[1].duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real [11] 8: dynamicTwoPhaseFlowRiser.pro2[1].cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real [11] 9: dynamicTwoPhaseFlowRiser.rhol2[1]:VARIABLE(min = 0.0 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density in hydraulic node i for the liquid" type: Real [11] 10: dynamicTwoPhaseFlowRiser.rhov2[1]:VARIABLE(min = 0.0 start = 1.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i for the vapor" type: Real [11] 11: dynamicTwoPhaseFlowRiser.muv2[1]:VARIABLE(min = 0.0 start = 1e-5 unit = "Pa.s" nominal = 1e-4 ) "Dynamic viscosity in hydraulic node i for the vapor" type: Real [11] 12: dynamicTwoPhaseFlowRiser.lambdal[1]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the liquid" type: Real [11] 13: dynamicTwoPhaseFlowRiser.Rel2[1]:VARIABLE(start = 6e4 unit = "1" nominal = 5000.0 ) "Reynolds number in hydraulic node i for the liquid" type: Real [11] 14: dynamicTwoPhaseFlowRiser.mul2[1]:VARIABLE(min = 0.0 start = 2e-4 unit = "Pa.s" nominal = 2e-4 ) "Dynamic viscosity in hydraulic node i for the liquid" type: Real [11] 15: dynamicTwoPhaseFlowRiser.T2[1]:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature in hydraulic node i" type: Real [11] 16: dynamicTwoPhaseFlowRiser.xv2[1]:VARIABLE() "Vapor mass fraction in hydraulic node i" type: Real [11] 17: dynamicTwoPhaseFlowRiser.pro2[1].x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real [11] 18: dynamicTwoPhaseFlowRiser.pro2[1].duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real [11] 19: $cse23.x:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse23.T:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse23.cp:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse23.s:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse23.ddph:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse23.u:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse23.d:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse23.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse23.duph:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse23.duhp:VARIABLE(protected = true ) type: Real unreplaceable 29: dynamicTwoPhaseFlowRiser.hb[1]:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy at the boundary of node i" type: Real [11] 30: dynamicTwoPhaseFlowRiser.Q[1]:VARIABLE(start = 0.7975821689256883 unit = "kg/s" nominal = 10.0 ) "Mass flow rate in node i" type: Real [11] 31: dynamicTwoPhaseFlowRiser.Rev2[1]:VARIABLE(start = 1000.0 unit = "1" nominal = 5e5 ) "Reynolds number in hydraulic node i for the vapor" type: Real [11] 32: dynamicTwoPhaseFlowRiser.lambdav[1]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the vapor)" type: Real [11] 33: dynamicTwoPhaseFlowRiser.filo[1]:VARIABLE() "Pressure loss coefficient for two-phase flow" type: Real [11] 34: dynamicTwoPhaseFlowRiser.khi[1]:VARIABLE() "Hydraulic pressure loss coefficient in node i" type: Real [11] 35: dynamicTwoPhaseFlowRiser.dpf[1]:VARIABLE(unit = "Pa" ) "Friction pressure loss in node i" type: Real [11] [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002011/3.41, allocations: 1.743 MB / 1.19 GB, free: 285.8 MB / 0.8262 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicTwoPhaseFlowRiser could not be translated