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.8249/0.8249, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.000338, allocations: 18.83 kB / 237.8 MB, free: 1.91 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05005/0.0504, allocations: 31.34 MB / 269.1 MB, free: 7.176 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.616/1.666, allocations: 297.3 MB / 0.5532 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4806/2.147, allocations: 193 MB / 0.7417 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005046/2.147, allocations: 18.72 kB / 0.7417 GB, free: 14.89 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.0006655/2.148, allocations: 318.2 kB / 0.742 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001071/2.149, allocations: 0.7505 MB / 0.7427 GB, free: 14.88 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.02831/2.178, allocations: 12.88 MB / 0.7553 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.009337/2.187, allocations: 11.6 MB / 0.7666 GB, free: 13.2 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005519/2.192, allocations: 4.034 MB / 0.7706 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005511/2.198, allocations: 3.815 MB / 0.7743 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007213/2.205, allocations: 4.421 MB / 0.7786 GB, free: 9.809 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002518/2.208, allocations: 0.7133 MB / 0.7793 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03827/2.246, allocations: 21.21 MB / 0.8 GB, free: 20 kB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00421/2.25, allocations: 2.876 MB / 0.8028 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.005976/2.256, allocations: 3.626 MB / 0.8064 GB, free: 9.812 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.03262/2.289, allocations: 18.66 MB / 0.8246 GB, free: 7.992 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/2.289, allocations: 0 / 0.8246 GB, free: 7.992 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.964e-06/2.289, allocations: 0 / 0.8246 GB, free: 7.992 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0001832/2.289, allocations: 4 kB / 0.8246 GB, free: 7.988 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.03937/2.329, allocations: 10.14 MB / 0.8345 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/2.329, allocations: 12.03 kB / 0.8345 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002444/2.331, allocations: 0.5793 MB / 0.8351 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006001/2.337, allocations: 2.433 MB / 0.8375 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002243/2.339, allocations: 1.879 MB / 0.8393 GB, free: 8.566 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001299/2.341, allocations: 455.9 kB / 0.8397 GB, free: 8.121 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02787/2.368, allocations: 11.67 MB / 0.8511 GB, free: 12.38 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.509e-05/2.369, allocations: 0 / 0.8511 GB, free: 12.38 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008297/2.369, allocations: 192 kB / 0.8513 GB, free: 12.19 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001348/2.37, allocations: 163.9 kB / 0.8515 GB, free: 12.03 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04371/2.413, allocations: 16.66 MB / 0.8677 GB, free: 11.35 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.07346/2.487, allocations: 38.85 MB / 0.9057 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03847/2.525, allocations: 13.41 MB / 0.9188 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02183/2.547, allocations: 8.99 MB / 0.9275 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1021/2.649, allocations: 53.7 MB / 0.98 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001192/2.649, allocations: 112.3 kB / 0.9801 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1220): time 1.111e-05/2.649, allocations: 0 / 0.9801 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1220): time 0.3566/3.006, allocations: 42.56 MB / 1.022 GB, free: 432.2 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/3.006, allocations: 126.9 kB / 1.022 GB, free: 432.1 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/3.008, allocations: 1.375 MB / 1.023 GB, free: 432 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.001571/3.009, allocations: 144.3 kB / 1.023 GB, free: 431.9 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004405/3.01, allocations: 0.815 MB / 1.024 GB, free: 431.8 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003308/3.013, allocations: 4.03 MB / 1.028 GB, free: 429.1 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002827/3.016, allocations: 1.546 MB / 1.029 GB, free: 429 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 3.783e-05/3.016, allocations: 306 kB / 1.03 GB, free: 428.7 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0177/3.034, allocations: 7.58 MB / 1.037 GB, free: 428.7 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01885/3.052, allocations: 8.405 MB / 1.045 GB, free: 426.5 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03729/3.09, allocations: 15.98 MB / 1.061 GB, free: 419.1 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.413e-05/3.09, allocations: 4.594 kB / 1.061 GB, free: 419.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1281) (initialization): time 0.05458/3.144, allocations: 22.59 MB / 1.083 GB, free: 398.1 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/3.145, allocations: 8 kB / 1.083 GB, free: 398.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.803e-05/3.145, allocations: 31.98 kB / 1.083 GB, free: 398.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06198/3.207, allocations: 25.26 MB / 1.108 GB, free: 372.8 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01214/3.219, allocations: 1.872 MB / 1.11 GB, free: 370.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0443/3.263, allocations: 47.54 MB / 1.156 GB, free: 320.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01092/3.274, allocations: 1.674 MB / 1.158 GB, free: 319 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001739/3.276, allocations: 351.6 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.003567/3.279, allocations: 1.468 MB / 1.159 GB, free: 317.3 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/3.281, allocations: 466.1 kB / 1.16 GB, free: 316.8 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05645/3.337, allocations: 24.95 MB / 1.184 GB, free: 291.8 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001667/3.337, allocations: 35.86 kB / 1.184 GB, free: 291.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.587e-05/3.338, allocations: 24.55 kB / 1.184 GB, free: 291.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005278/3.343, allocations: 2.047 MB / 1.186 GB, free: 289.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001648/3.344, allocations: 147.5 kB / 1.186 GB, free: 289.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01001/3.354, allocations: 1.139 MB / 1.188 GB, free: 288.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002727/3.357, allocations: 0.6142 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.002026/3.359, allocations: 1.745 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