Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFresnelField.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.Examples.SimpleExamples.TestFresnelField,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFresnelField") translateModel(ThermoSysPro.Examples.SimpleExamples.TestFresnelField,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestFresnelField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8162/0.8162, allocations: 150.9 MB / 167.2 MB, free: 14.49 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003664/0.0003664, allocations: 15.84 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05916/0.05954, allocations: 31.35 MB / 269.1 MB, free: 7.027 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.Examples.SimpleExamples.TestFresnelField): time 1.623/1.682, allocations: 297.4 MB / 0.5532 GB, free: 10.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04305/1.725, allocations: 37.62 MB / 0.59 GB, free: 4.613 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007354/1.726, allocations: 11.94 kB / 0.59 GB, free: 4.602 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceQ.mo:24:3-25:52:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:184:3-185:48:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:188:3-189:46:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Junctions/MassFlowMultiplier.mo:16:3-18:16:writable] Warning: Connector Ce is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Junctions/MassFlowMultiplier.mo:19:3-20:52:writable] Warning: Connector Cs is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Junctions/MassFlowMultiplier.mo:16:3-18:16:writable] Warning: Connector Ce is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Junctions/MassFlowMultiplier.mo:19:3-20:52:writable] Warning: Connector Cs is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0007103/1.727, allocations: 292.6 kB / 0.5903 GB, free: 4.316 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/1.728, allocations: 0.6021 MB / 0.5908 GB, free: 3.711 MB / 478.1 MB [/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.02498/1.753, allocations: 10.57 MB / 0.6012 GB, free: 9.129 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.01953/1.773, allocations: 25.36 MB / 0.6259 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01262/1.785, allocations: 8.751 MB / 0.6345 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01247/1.798, allocations: 8.415 MB / 0.6427 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01605/1.814, allocations: 9.607 MB / 0.6521 GB, free: 4.836 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.005913/1.82, allocations: 1.562 MB / 0.6536 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04071/1.861, allocations: 20.45 MB / 0.6736 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.01137/1.872, allocations: 6.126 MB / 0.6795 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.01479/1.887, allocations: 7.903 MB / 0.6873 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.04089/1.928, allocations: 28.17 MB / 0.7148 GB, free: 4.484 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/1.928, allocations: 0 / 0.7148 GB, free: 4.484 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.663e-06/1.928, allocations: 4 kB / 0.7148 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0005116/1.928, allocations: 0 / 0.7148 GB, free: 4.48 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3640 * Number of variables: 3640 Notification: Performance of Generate backend data structure: time 0.4482/2.376, allocations: 21.24 MB / 0.7355 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/2.377, allocations: 9.812 kB / 0.7355 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006799/2.383, allocations: 1.222 MB / 0.7367 GB, free: 195.6 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01498/2.398, allocations: 4.753 MB / 0.7414 GB, free: 194.6 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.006247/2.405, allocations: 5.084 MB / 0.7463 GB, free: 190.4 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005485/2.41, allocations: 0.9009 MB / 0.7472 GB, free: 190.3 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06625/2.476, allocations: 27.03 MB / 0.7736 GB, free: 170.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000351/2.477, allocations: 3.938 kB / 0.7736 GB, free: 170.7 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004703/2.482, allocations: 352.6 kB / 0.7739 GB, free: 170.4 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002968/2.482, allocations: 383.8 kB / 0.7743 GB, free: 170 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08445/2.566, allocations: 36.75 MB / 0.8102 GB, free: 133.2 MB / 0.5919 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.1249/2.691, allocations: 70.04 MB / 0.8786 GB, free: 60.26 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07007/2.761, allocations: 29.8 MB / 0.9077 GB, free: 30.39 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04611/2.807, allocations: 22.12 MB / 0.9293 GB, free: 8.242 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4259/3.233, allocations: 115.1 MB / 1.042 GB, free: 99.67 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/3.234, allocations: 198.3 kB / 1.042 GB, free: 99.57 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=3019): time 5.968e-05/3.234, allocations: 4 kB / 1.042 GB, free: 99.56 MB / 0.5919 GB Notification: Performance of matching and sorting (n=3019): time 0.8478/4.082, allocations: 143.6 MB / 1.182 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002064/4.082, allocations: 220.7 kB / 1.182 GB, free: 191.8 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/4.083, allocations: 0.7804 MB / 1.183 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.005772/4.089, allocations: 301.9 kB / 1.183 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006979/4.09, allocations: 1.135 MB / 1.184 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0131/4.103, allocations: 9.967 MB / 1.194 GB, free: 183.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0188/4.122, allocations: 3.646 MB / 1.198 GB, free: 182.6 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.021e-05/4.122, allocations: 301.1 kB / 1.198 GB, free: 182.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.04777/4.169, allocations: 18.96 MB / 1.217 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05049/4.22, allocations: 20.67 MB / 1.237 GB, free: 158 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1003/4.32, allocations: 39.01 MB / 1.275 GB, free: 118.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.268e-05/4.32, allocations: 4 kB / 1.275 GB, free: 118.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3151) (initialization): time 0.1878/4.508, allocations: 65.2 MB / 1.339 GB, free: 53.55 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.475e-05/4.508, allocations: 9.406 kB / 1.339 GB, free: 53.55 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002198/4.509, allocations: 67.97 kB / 1.339 GB, free: 53.48 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.058/5.567, allocations: 318.4 MB / 1.649 GB, free: 158.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/5.568, allocations: 265.7 kB / 1.65 GB, free: 157.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2122/5.78, allocations: 80.76 MB / 1.729 GB, free: 97.85 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02613/5.806, allocations: 4.274 MB / 1.733 GB, free: 93.61 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005731/5.812, allocations: 0.7647 MB / 1.734 GB, free: 92.84 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 8 (massFlowMultiplier2.Cs.b,massFlowMultiplier2.Ce.a,massFlowMultiplier1.Cs.b,massFlowMultiplier1.Ce.a,sinkP.C.a,dynamicTwoPhaseFlowPipe.C2.b,dynamicTwoPhaseFlowPipe.C1.a,sourceP.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(91,1517)} Notification: Performance of prepare postOptimizeDAE: time 0.01307/5.825, allocations: 3.006 MB / 1.736 GB, free: 89.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007135/5.832, allocations: 0.9097 MB / 1.737 GB, free: 88.92 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.487/6.319, allocations: 89.64 MB / 1.825 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005315/6.32, allocations: 81.38 kB / 1.825 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002789/6.32, allocations: 57.95 kB / 1.825 GB, free: 176.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01548/6.336, allocations: 4.687 MB / 1.83 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006229/6.342, allocations: 365 kB / 1.83 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0273/6.369, allocations: 3.134 MB / 1.833 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.009122/6.378, allocations: 1.497 MB / 1.834 GB, free: 176.2 MB / 0.6075 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(dynamicTwoPhaseFlowPipe.T2[2], dynamicTwoPhaseFlowPipe.rho2[2], dynamicTwoPhaseFlowPipe.pro2[2].u, dynamicTwoPhaseFlowPipe.pro2[2].s, dynamicTwoPhaseFlowPipe.pro2[2].cp, dynamicTwoPhaseFlowPipe.pro2[2].ddhp, dynamicTwoPhaseFlowPipe.pro2[2].ddph, dynamicTwoPhaseFlowPipe.pro2[2].duph, dynamicTwoPhaseFlowPipe.pro2[2].duhp, dynamicTwoPhaseFlowPipe.pro2[2].x) = $cse37 Variables: 1: dynamicTwoPhaseFlowPipe.pro2[2].duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real [31] 2: dynamicTwoPhaseFlowPipe.lambdal[2]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the liquid" type: Real [31] 3: dynamicTwoPhaseFlowPipe.Rel2[2]:VARIABLE(start = 6e4 unit = "1" nominal = 5000.0 ) "Reynolds number in hydraulic node i for the liquid" type: Real [31] 4: dynamicTwoPhaseFlowPipe.mul2[2]:VARIABLE(min = 0.0 start = 2e-4 unit = "Pa.s" nominal = 2e-4 ) "Dynamic viscosity in hydraulic node i for the liquid" type: Real [31] 5: dynamicTwoPhaseFlowPipe.T2[2]:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature in hydraulic node i" type: Real [31] 6: dynamicTwoPhaseFlowPipe.pro2[2].s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real [31] 7: dynamicTwoPhaseFlowPipe.filo[2]:VARIABLE() "Pressure loss coefficient for two-phase flow" type: Real [31] 8: dynamicTwoPhaseFlowPipe.khi[2]:VARIABLE() "Hydraulic pressure loss coefficient in node i" type: Real [31] 9: dynamicTwoPhaseFlowPipe.dpf[2]:VARIABLE(unit = "Pa" ) "Friction pressure loss in node i" type: Real [31] 10: dynamicTwoPhaseFlowPipe.dpg[2]:VARIABLE(unit = "Pa" ) "Gravity pressure loss in node i" type: Real [31] [/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): dynamicTwoPhaseFlowPipe.rhov2[2] = if noEvent(dynamicTwoPhaseFlowPipe.P[3] > dynamicTwoPhaseFlowPipe.pcrit) or noEvent(dynamicTwoPhaseFlowPipe.T2[2] > dynamicTwoPhaseFlowPipe.Tcrit) then dynamicTwoPhaseFlowPipe.rho2[2] else min(dynamicTwoPhaseFlowPipe.rho2[2], dynamicTwoPhaseFlowPipe.vsat2[2].rho) 2/2 (1): dynamicTwoPhaseFlowPipe.muv2[2] = ThermoSysPro.Properties.WaterSteam.IF97.DynamicViscosity_rhoT(dynamicTwoPhaseFlowPipe.rhov2[2], dynamicTwoPhaseFlowPipe.T2[2]) 3/3 (1): dynamicTwoPhaseFlowPipe.Rev2[2] = abs(4.0 * dynamicTwoPhaseFlowPipe.Q[2] / (3.141592653589793 * dynamicTwoPhaseFlowPipe.Di * dynamicTwoPhaseFlowPipe.muv2[2])) 4/4 (1): dynamicTwoPhaseFlowPipe.lambdav[2] = if noEvent(dynamicTwoPhaseFlowPipe.Rev2[2] > 1.0) then 0.25 / log10(13.0 / dynamicTwoPhaseFlowPipe.Rev2[2] + dynamicTwoPhaseFlowPipe.rugosrel / (3.7 * dynamicTwoPhaseFlowPipe.D)) ^ 2.0 else 0.01 5/5 (1): dynamicTwoPhaseFlowPipe.filo[2] = if noEvent(dynamicTwoPhaseFlowPipe.xv2[2] < 0.0) then 1.0 else if noEvent(dynamicTwoPhaseFlowPipe.xv2[2] >= 0.0) and noEvent(dynamicTwoPhaseFlowPipe.xv2[2] < 0.8) then 1.0 + /*Real*/(dynamicTwoPhaseFlowPipe.a) * dynamicTwoPhaseFlowPipe.xv2[2] * dynamicTwoPhaseFlowPipe.rgliss * exp((-1.1904761904761906e-7) * dynamicTwoPhaseFlowPipe.Pb[2]) / (19.0 + 1e-5 * dynamicTwoPhaseFlowPipe.Pb[2]) else (5.0 + (-5.0) * dynamicTwoPhaseFlowPipe.xv2[2] * dynamicTwoPhaseFlowPipe.rgliss) * (1.0 + /*Real*/(dynamicTwoPhaseFlowPipe.a) * dynamicTwoPhaseFlowPipe.xv2[2] * dynamicTwoPhaseFlowPipe.rgliss * exp((-1.1904761904761906e-7) * dynamicTwoPhaseFlowPipe.Pb[2]) / (19.0 + 1e-5 * dynamicTwoPhaseFlowPipe.Pb[2])) + (-4.0 + 5.0 * dynamicTwoPhaseFlowPipe.xv2[2] * dynamicTwoPhaseFlowPipe.rgliss) * dynamicTwoPhaseFlowPipe.rhol2[2] * dynamicTwoPhaseFlowPipe.lambdav[2] / (dynamicTwoPhaseFlowPipe.lambdal[2] * dynamicTwoPhaseFlowPipe.rhov2[2]) 6/6 (1): dynamicTwoPhaseFlowPipe.xv2[2] = if noEvent(0.5 * (dynamicTwoPhaseFlowPipe.P[2] + dynamicTwoPhaseFlowPipe.P[3]) > dynamicTwoPhaseFlowPipe.pcrit) or noEvent(dynamicTwoPhaseFlowPipe.T2[2] > dynamicTwoPhaseFlowPipe.Tcrit) then 1.0 else dynamicTwoPhaseFlowPipe.pro2[2].x 7/7 (10): $cse37 = ThermoSysPro.Properties.WaterSteam.IF97.Water_Ph(0.5 * (dynamicTwoPhaseFlowPipe.P[2] + dynamicTwoPhaseFlowPipe.P[3]), dynamicTwoPhaseFlowPipe.hb[2], 0) 8/17 (1): dynamicTwoPhaseFlowPipe.dpg[2] = 9.80665 * dynamicTwoPhaseFlowPipe.rho2[2] * (dynamicTwoPhaseFlowPipe.z2 - dynamicTwoPhaseFlowPipe.z1) * dynamicTwoPhaseFlowPipe.dx2 / dynamicTwoPhaseFlowPipe.L 9/18 (1): dynamicTwoPhaseFlowPipe.P[2] + (-dynamicTwoPhaseFlowPipe.dpf[2]) - dynamicTwoPhaseFlowPipe.P[3] - dynamicTwoPhaseFlowPipe.dpg[2] = 0.0 10/19 (1): dynamicTwoPhaseFlowPipe.dpf[2] = 0.5 * dynamicTwoPhaseFlowPipe.dpfCorr * dynamicTwoPhaseFlowPipe.khi[2] * dynamicTwoPhaseFlowPipe.Q[2] * abs(dynamicTwoPhaseFlowPipe.Q[2]) / (dynamicTwoPhaseFlowPipe.A ^ 2.0 * dynamicTwoPhaseFlowPipe.rhol2[2]) 11/20 (1): dynamicTwoPhaseFlowPipe.khi[2] = dynamicTwoPhaseFlowPipe.filo[2] * dynamicTwoPhaseFlowPipe.lambdal[2] * dynamicTwoPhaseFlowPipe.dx2 / dynamicTwoPhaseFlowPipe.D 12/21 (1): dynamicTwoPhaseFlowPipe.mul2[2] = ThermoSysPro.Properties.WaterSteam.IF97.DynamicViscosity_rhoT(dynamicTwoPhaseFlowPipe.rhol2[2], dynamicTwoPhaseFlowPipe.T2[2]) 13/22 (1): dynamicTwoPhaseFlowPipe.Rel2[2] = abs(4.0 * dynamicTwoPhaseFlowPipe.Q[2] / (3.141592653589793 * dynamicTwoPhaseFlowPipe.Di * dynamicTwoPhaseFlowPipe.mul2[2])) 14/23 (1): dynamicTwoPhaseFlowPipe.lambdal[2] = if noEvent(dynamicTwoPhaseFlowPipe.Rel2[2] > 1.0) then 0.25 / log10(13.0 / dynamicTwoPhaseFlowPipe.Rel2[2] + dynamicTwoPhaseFlowPipe.rugosrel / (3.7 * dynamicTwoPhaseFlowPipe.D)) ^ 2.0 else 0.01 15/24 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(dynamicTwoPhaseFlowPipe.T2[2], dynamicTwoPhaseFlowPipe.rho2[2], dynamicTwoPhaseFlowPipe.pro2[2].u, dynamicTwoPhaseFlowPipe.pro2[2].s, dynamicTwoPhaseFlowPipe.pro2[2].cp, dynamicTwoPhaseFlowPipe.pro2[2].ddhp, dynamicTwoPhaseFlowPipe.pro2[2].ddph, dynamicTwoPhaseFlowPipe.pro2[2].duph, dynamicTwoPhaseFlowPipe.pro2[2].duhp, dynamicTwoPhaseFlowPipe.pro2[2].x) = $cse37 16/34 (1): dynamicTwoPhaseFlowPipe.rhol2[2] = if noEvent(dynamicTwoPhaseFlowPipe.P[3] > dynamicTwoPhaseFlowPipe.pcrit) or noEvent(dynamicTwoPhaseFlowPipe.T2[2] > dynamicTwoPhaseFlowPipe.Tcrit) then dynamicTwoPhaseFlowPipe.rho2[2] else max(dynamicTwoPhaseFlowPipe.rho2[2], dynamicTwoPhaseFlowPipe.lsat2[2].rho) 17/35 (1): 0.0 = if noEvent(dynamicTwoPhaseFlowPipe.Q[2] > dynamicTwoPhaseFlowPipe.Qeps) then dynamicTwoPhaseFlowPipe.hb[2] - dynamicTwoPhaseFlowPipe.h[2] else if noEvent(dynamicTwoPhaseFlowPipe.Q[2] < (-dynamicTwoPhaseFlowPipe.Qeps)) then dynamicTwoPhaseFlowPipe.hb[2] - dynamicTwoPhaseFlowPipe.h[3] else dynamicTwoPhaseFlowPipe.hb[2] - 0.5 * ((dynamicTwoPhaseFlowPipe.h[2] - dynamicTwoPhaseFlowPipe.h[3]) * sin(1.5707963267948966 * dynamicTwoPhaseFlowPipe.Q[2] / dynamicTwoPhaseFlowPipe.Qeps) + dynamicTwoPhaseFlowPipe.h[3] + dynamicTwoPhaseFlowPipe.h[2]) Variables: 1: dynamicTwoPhaseFlowPipe.Q[2]:VARIABLE(start = 10.0 unit = "kg/s" nominal = 10.0 ) "Mass flow rate in node i" type: Real [31] 2: dynamicTwoPhaseFlowPipe.rhol2[2]:VARIABLE(min = 0.0 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density in hydraulic node i for the liquid" type: Real [31] 3: dynamicTwoPhaseFlowPipe.pro2[2].duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real [31] 4: dynamicTwoPhaseFlowPipe.lambdal[2]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the liquid" type: Real [31] 5: dynamicTwoPhaseFlowPipe.Rel2[2]:VARIABLE(start = 6e4 unit = "1" nominal = 5000.0 ) "Reynolds number in hydraulic node i for the liquid" type: Real [31] 6: dynamicTwoPhaseFlowPipe.mul2[2]:VARIABLE(min = 0.0 start = 2e-4 unit = "Pa.s" nominal = 2e-4 ) "Dynamic viscosity in hydraulic node i for the liquid" type: Real [31] 7: dynamicTwoPhaseFlowPipe.T2[2]:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature in hydraulic node i" type: Real [31] 8: dynamicTwoPhaseFlowPipe.pro2[2].s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real [31] 9: dynamicTwoPhaseFlowPipe.filo[2]:VARIABLE() "Pressure loss coefficient for two-phase flow" type: Real [31] 10: dynamicTwoPhaseFlowPipe.khi[2]:VARIABLE() "Hydraulic pressure loss coefficient in node i" type: Real [31] 11: dynamicTwoPhaseFlowPipe.dpf[2]:VARIABLE(unit = "Pa" ) "Friction pressure loss in node i" type: Real [31] 12: dynamicTwoPhaseFlowPipe.dpg[2]:VARIABLE(unit = "Pa" ) "Gravity pressure loss in node i" type: Real [31] 13: dynamicTwoPhaseFlowPipe.rho2[2]:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i" type: Real [31] 14: dynamicTwoPhaseFlowPipe.pro2[2].cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real [31] 15: dynamicTwoPhaseFlowPipe.pro2[2].ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real [31] 16: $cse37.cp:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse37.duhp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse37.duph:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse37.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse37.s:VARIABLE(protected = true ) type: Real unreplaceable 21: dynamicTwoPhaseFlowPipe.hb[2]:VARIABLE(unit = "J/kg" ) "Fluid specific enthalpy at the boundary of node i" type: Real [31] 22: $cse37.u:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse37.d:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse37.x:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse37.ddph:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse37.T:VARIABLE(protected = true ) type: Real unreplaceable 27: dynamicTwoPhaseFlowPipe.pro2[2].duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real [31] 28: dynamicTwoPhaseFlowPipe.pro2[2].u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real [31] 29: dynamicTwoPhaseFlowPipe.pro2[2].ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real [31] 30: dynamicTwoPhaseFlowPipe.pro2[2].x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real [31] 31: dynamicTwoPhaseFlowPipe.xv2[2]:VARIABLE() "Vapor mass fraction in hydraulic node i" type: Real [31] 32: dynamicTwoPhaseFlowPipe.lambdav[2]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the vapor)" type: Real [31] 33: dynamicTwoPhaseFlowPipe.Rev2[2]:VARIABLE(start = 1000.0 unit = "1" nominal = 5e5 ) "Reynolds number in hydraulic node i for the vapor" type: Real [31] 34: dynamicTwoPhaseFlowPipe.muv2[2]:VARIABLE(min = 0.0 start = 1e-5 unit = "Pa.s" nominal = 1e-4 ) "Dynamic viscosity in hydraulic node i for the vapor" type: Real [31] 35: dynamicTwoPhaseFlowPipe.rhov2[2]:VARIABLE(min = 0.0 start = 1.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i for the vapor" type: Real [31] [/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.0106/6.389, allocations: 4.06 MB / 1.838 GB, free: 175.1 MB / 0.6075 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestFresnelField could not be translated