Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestFresnelField,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestFresnelField") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestFresnelField,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestFresnelField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8339/0.8339, allocations: 150.9 MB / 167.2 MB, free: 14.65 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003234/0.0003235, allocations: 15.72 kB / 237.8 MB, free: 1.719 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05281/0.05315, allocations: 31.35 MB / 269.1 MB, free: 7.035 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.TestFresnelField): time 1.578/1.631, allocations: 298.4 MB / 0.5542 GB, free: 9.316 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.504/2.135, allocations: 194.9 MB / 0.7446 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/2.137, allocations: 22.75 kB / 0.7446 GB, free: 1.742 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceQ.mo:62:3-63: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/HeatExchangers/DynamicTwoPhaseFlowPipe.mo:233:3-234:54: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/DynamicTwoPhaseFlowPipe.mo:237:3-238:52: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/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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Junctions/MassFlowMultiplier.mo:43:3-44:67:writable] Warning: Connector Ce 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/Junctions/MassFlowMultiplier.mo:45:3-46:65:writable] Warning: Connector Cs 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/Junctions/MassFlowMultiplier.mo:43:3-44:67:writable] Warning: Connector Ce 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/Junctions/MassFlowMultiplier.mo:45:3-46:65:writable] Warning: Connector Cs 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.001103/2.138, allocations: 321.1 kB / 0.7449 GB, free: 1.742 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001951/2.14, allocations: 0.7657 MB / 0.7457 GB, free: 1.703 MB / 0.5919 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.03523/2.175, allocations: 13.27 MB / 0.7586 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0197/2.195, allocations: 29.96 MB / 0.7879 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01481/2.209, allocations: 10.1 MB / 0.7977 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01446/2.224, allocations: 9.5 MB / 0.807 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01885/2.243, allocations: 10.86 MB / 0.8176 GB, free: 5.465 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.007505/2.25, allocations: 1.879 MB / 0.8194 GB, free: 3.586 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0512/2.302, allocations: 23.58 MB / 0.8425 GB, free: 12.49 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0111/2.313, allocations: 7.318 MB / 0.8496 GB, free: 5.32 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.02247/2.335, allocations: 9.26 MB / 0.8587 GB, free: 12.2 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.05867/2.394, allocations: 33.12 MB / 0.891 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/2.394, allocations: 0 / 0.891 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.513e-06/2.394, allocations: 3.938 kB / 0.891 GB, free: 12.77 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0006855/2.395, allocations: 0 / 0.891 GB, free: 12.77 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4357 * Number of variables: 4357 Notification: Performance of Generate backend data structure: time 0.09822/2.493, allocations: 23.28 MB / 0.9138 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/2.493, allocations: 8.031 kB / 0.9138 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007413/2.5, allocations: 1.514 MB / 0.9152 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01617/2.517, allocations: 5.838 MB / 0.9209 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.009877/2.526, allocations: 6.358 MB / 0.9271 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007701/2.534, allocations: 1.179 MB / 0.9283 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08796/2.622, allocations: 32.71 MB / 0.9602 GB, free: 4.504 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004447/2.623, allocations: 39.62 kB / 0.9603 GB, free: 4.488 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006315/2.629, allocations: 500 kB / 0.9608 GB, free: 4 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004431/2.629, allocations: 459.8 kB / 0.9612 GB, free: 3.551 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1202/2.75, allocations: 49.91 MB / 1.01 GB, free: 1.789 MB / 0.8106 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.7964/3.546, allocations: 104.8 MB / 1.112 GB, free: 126.7 MB / 0.8107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0728/3.619, allocations: 32.16 MB / 1.144 GB, free: 107.7 MB / 0.8107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.05039/3.669, allocations: 24.59 MB / 1.168 GB, free: 83.34 MB / 0.8107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2979/3.967, allocations: 156.1 MB / 1.32 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003715/3.968, allocations: 225.3 kB / 1.32 GB, free: 6.957 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3250): time 2.329e-05/3.968, allocations: 0 / 1.32 GB, free: 6.957 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3250): time 0.8657/4.833, allocations: 147.2 MB / 1.464 GB, free: 396 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/4.834, allocations: 246.2 kB / 1.464 GB, free: 395.8 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002478/4.836, allocations: 2.299 MB / 1.467 GB, free: 393.5 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.005424/4.841, allocations: 337.7 kB / 1.467 GB, free: 393.2 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001154/4.843, allocations: 2.261 MB / 1.469 GB, free: 390.9 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.01161/4.854, allocations: 10.8 MB / 1.48 GB, free: 380.2 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01934/4.874, allocations: 4.42 MB / 1.484 GB, free: 375.8 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 5.03e-05/4.874, allocations: 301.1 kB / 1.484 GB, free: 375.5 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0516/4.925, allocations: 21.37 MB / 1.505 GB, free: 354.1 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.05369/4.979, allocations: 24.83 MB / 1.529 GB, free: 328.3 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1035/5.083, allocations: 45.97 MB / 1.574 GB, free: 281.6 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001071/5.083, allocations: 20.56 kB / 1.574 GB, free: 281.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3652) (initialization): time 0.1958/5.279, allocations: 71.74 MB / 1.644 GB, free: 210.1 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.143e-05/5.279, allocations: 38.34 kB / 1.644 GB, free: 210.1 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002706/5.279, allocations: 131.9 kB / 1.644 GB, free: 209.9 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.8554/6.134, allocations: 329.8 MB / 1.967 GB, free: 266 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006183/6.141, allocations: 1.42 MB / 1.968 GB, free: 265 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2068/6.347, allocations: 80.81 MB / 2.047 GB, free: 210.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0298/6.377, allocations: 4.894 MB / 2.052 GB, free: 207 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007052/6.384, allocations: 0.9897 MB / 2.053 GB, free: 206.2 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 309 * Number of states: 0 () * Number of discrete variables: 16 (massFlowMultiplier2.fluid1,massFlowMultiplier1.fluid1,massFlowMultiplier2.Cs.ftype,massFlowMultiplier1.Cs.ftype,massFlowMultiplier2.fluids[1],sourceP.C.ftype,massFlowMultiplier1.fluids[1],dynamicTwoPhaseFlowPipe.fluid,sinkP.fluid,sourceP.fluid1,massFlowMultiplier2.Cs.diff_on_1,massFlowMultiplier2.Ce.diff_on_2,massFlowMultiplier1.Cs.diff_on_1,massFlowMultiplier1.Ce.diff_on_2,dynamicTwoPhaseFlowPipe.C1.diff_on_2,dynamicTwoPhaseFlowPipe.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (615): * Single equations (assignments): 612 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(97,1581)} Notification: Performance of prepare postOptimizeDAE: time 0.01502/6.399, allocations: 3.665 MB / 2.056 GB, free: 203.3 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01026/6.41, allocations: 1.107 MB / 2.057 GB, free: 202.2 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2491/6.659, allocations: 80.21 MB / 2.136 GB, free: 131.5 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000857/6.66, allocations: 105.5 kB / 2.136 GB, free: 131.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000292/6.66, allocations: 63.97 kB / 2.136 GB, free: 131.3 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01861/6.679, allocations: 5.277 MB / 2.141 GB, free: 126 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009218/6.688, allocations: 391.9 kB / 2.141 GB, free: 125.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02841/6.716, allocations: 3.339 MB / 2.145 GB, free: 122.3 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.01143/6.728, allocations: 2.093 MB / 2.147 GB, free: 120.2 MB / 0.9044 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[31], dynamicTwoPhaseFlowPipe.rho2[31], dynamicTwoPhaseFlowPipe.pro2[31].u, dynamicTwoPhaseFlowPipe.pro2[31].s, dynamicTwoPhaseFlowPipe.pro2[31].cp, dynamicTwoPhaseFlowPipe.pro2[31].ddhp, dynamicTwoPhaseFlowPipe.pro2[31].ddph, dynamicTwoPhaseFlowPipe.pro2[31].duph, dynamicTwoPhaseFlowPipe.pro2[31].duhp, dynamicTwoPhaseFlowPipe.pro2[31].x) = $cse95 Variables: 1: dynamicTwoPhaseFlowPipe.rho2[31]:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i" type: Real [31] 2: dynamicTwoPhaseFlowPipe.khi[31]:VARIABLE() "Hydraulic pressure loss coefficient in node i" type: Real [31] 3: dynamicTwoPhaseFlowPipe.rhol2[31]: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] 4: dynamicTwoPhaseFlowPipe.rhov2[31]: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] 5: dynamicTwoPhaseFlowPipe.muv2[31]: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] 6: dynamicTwoPhaseFlowPipe.filo[31]:VARIABLE() "Pressure loss coefficient for two-phase flow" type: Real [31] 7: dynamicTwoPhaseFlowPipe.lambdal[31]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the liquid" type: Real [31] 8: dynamicTwoPhaseFlowPipe.Rel2[31]:VARIABLE(start = 6e4 unit = "1" nominal = 5000.0 ) "Reynolds number in hydraulic node i for the liquid" type: Real [31] 9: dynamicTwoPhaseFlowPipe.mul2[31]: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] 10: dynamicTwoPhaseFlowPipe.T2[31]:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature in hydraulic 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.hb[31] = if dynamicTwoPhaseFlowPipe.Q[31] > 0.0 then dynamicTwoPhaseFlowPipe.h[31] else dynamicTwoPhaseFlowPipe.h[32] 2/2 (1): massFlowMultiplier2.Cs.h = if sinkP.Q > 0.0 then dynamicTwoPhaseFlowPipe.h[32] else sinkP.h 3/3 (1): sinkP.h = ThermoSysPro.Properties.Fluid.SpecificEnthalpy_PT(sinkP.P0, 290.0, sinkP.fluid, sinkP.mode, sinkP.Xco2, sinkP.Xh2o, sinkP.Xo2, sinkP.Xso2) 4/4 (1): 0.0 = dynamicTwoPhaseFlowPipe.Xco2 * massFlowMultiplier2.alpha * dynamicTwoPhaseFlowPipe.Q[31] - sinkP.Xco2 * sinkP.Q 5/5 (1): 0.0 = dynamicTwoPhaseFlowPipe.Xso2 * massFlowMultiplier2.alpha * dynamicTwoPhaseFlowPipe.Q[31] - sinkP.Xso2 * sinkP.Q 6/6 (1): 0.0 = dynamicTwoPhaseFlowPipe.Xo2 * massFlowMultiplier2.alpha * dynamicTwoPhaseFlowPipe.Q[31] - sinkP.Xo2 * sinkP.Q 7/7 (1): 0.0 = dynamicTwoPhaseFlowPipe.Xh2o * massFlowMultiplier2.alpha * dynamicTwoPhaseFlowPipe.Q[31] - sinkP.Xh2o * sinkP.Q 8/8 (1): 0.0 = massFlowMultiplier2.alpha * dynamicTwoPhaseFlowPipe.Q[31] * dynamicTwoPhaseFlowPipe.hb[31] - sinkP.Q * massFlowMultiplier2.Cs.h 9/9 (1): 0.0 = massFlowMultiplier2.alpha * dynamicTwoPhaseFlowPipe.Q[31] - sinkP.Q 10/10 (1): dynamicTwoPhaseFlowPipe.Rev2[31] = abs(4.0 * dynamicTwoPhaseFlowPipe.Q[31] / (3.141592653589793 * dynamicTwoPhaseFlowPipe.Di * dynamicTwoPhaseFlowPipe.muv2[31])) 11/11 (1): dynamicTwoPhaseFlowPipe.lambdav[31] = if noEvent(dynamicTwoPhaseFlowPipe.Rev2[31] > 1.0) then 0.25 / log10(13.0 / dynamicTwoPhaseFlowPipe.Rev2[31] + dynamicTwoPhaseFlowPipe.rugosrel / (3.7 * dynamicTwoPhaseFlowPipe.D)) ^ 2.0 else 0.01 12/12 (1): dynamicTwoPhaseFlowPipe.filo[31] = if noEvent(dynamicTwoPhaseFlowPipe.xv2[31] < 0.0) then 1.0 else if noEvent(dynamicTwoPhaseFlowPipe.xv2[31] >= 0.0) and noEvent(dynamicTwoPhaseFlowPipe.xv2[31] < 0.8) then 1.0 + /*Real*/(dynamicTwoPhaseFlowPipe.a) * dynamicTwoPhaseFlowPipe.xv2[31] * dynamicTwoPhaseFlowPipe.rgliss * exp((-1.1904761904761906e-7) * dynamicTwoPhaseFlowPipe.Pb[31]) / (19.0 + 1e-5 * dynamicTwoPhaseFlowPipe.Pb[31]) else (5.0 + (-5.0) * dynamicTwoPhaseFlowPipe.xv2[31] * dynamicTwoPhaseFlowPipe.rgliss) * (1.0 + /*Real*/(dynamicTwoPhaseFlowPipe.a) * dynamicTwoPhaseFlowPipe.xv2[31] * dynamicTwoPhaseFlowPipe.rgliss * exp((-1.1904761904761906e-7) * dynamicTwoPhaseFlowPipe.Pb[31]) / (19.0 + 1e-5 * dynamicTwoPhaseFlowPipe.Pb[31])) + (-4.0 + 5.0 * dynamicTwoPhaseFlowPipe.xv2[31] * dynamicTwoPhaseFlowPipe.rgliss) * dynamicTwoPhaseFlowPipe.rhol2[31] * dynamicTwoPhaseFlowPipe.lambdav[31] / (dynamicTwoPhaseFlowPipe.lambdal[31] * dynamicTwoPhaseFlowPipe.rhov2[31]) 13/13 (1): dynamicTwoPhaseFlowPipe.xv2[31] = if noEvent(0.5 * (dynamicTwoPhaseFlowPipe.P[31] + dynamicTwoPhaseFlowPipe.P[32]) > dynamicTwoPhaseFlowPipe.pcrit) or noEvent(dynamicTwoPhaseFlowPipe.T2[31] > dynamicTwoPhaseFlowPipe.Tcrit) then 1.0 else dynamicTwoPhaseFlowPipe.pro2[31].x 14/14 (10): $cse95 = ThermoSysPro.Properties.Fluid.Ph(0.5 * (dynamicTwoPhaseFlowPipe.P[31] + dynamicTwoPhaseFlowPipe.P[32]), dynamicTwoPhaseFlowPipe.hb[31], dynamicTwoPhaseFlowPipe.mode, dynamicTwoPhaseFlowPipe.fluid) 15/24 (1): dynamicTwoPhaseFlowPipe.mul2[31] = ThermoSysPro.Properties.Fluid.DynamicViscosity_rhoT(dynamicTwoPhaseFlowPipe.rhol2[31], dynamicTwoPhaseFlowPipe.T2[31], dynamicTwoPhaseFlowPipe.fluid) 16/25 (1): dynamicTwoPhaseFlowPipe.Rel2[31] = abs(4.0 * dynamicTwoPhaseFlowPipe.Q[31] / (3.141592653589793 * dynamicTwoPhaseFlowPipe.Di * dynamicTwoPhaseFlowPipe.mul2[31])) 17/26 (1): dynamicTwoPhaseFlowPipe.lambdal[31] = if noEvent(dynamicTwoPhaseFlowPipe.Rel2[31] > 1.0) then 0.25 / log10(13.0 / dynamicTwoPhaseFlowPipe.Rel2[31] + dynamicTwoPhaseFlowPipe.rugosrel / (3.7 * dynamicTwoPhaseFlowPipe.D)) ^ 2.0 else 0.01 18/27 (1): dynamicTwoPhaseFlowPipe.khi[31] = dynamicTwoPhaseFlowPipe.filo[31] * dynamicTwoPhaseFlowPipe.lambdal[31] * dynamicTwoPhaseFlowPipe.dx2 / dynamicTwoPhaseFlowPipe.D 19/28 (1): dynamicTwoPhaseFlowPipe.muv2[31] = ThermoSysPro.Properties.Fluid.DynamicViscosity_rhoT(dynamicTwoPhaseFlowPipe.rhov2[31], dynamicTwoPhaseFlowPipe.T2[31], dynamicTwoPhaseFlowPipe.fluid) 20/29 (1): dynamicTwoPhaseFlowPipe.rhov2[31] = if noEvent(dynamicTwoPhaseFlowPipe.P[32] > dynamicTwoPhaseFlowPipe.pcrit) or noEvent(dynamicTwoPhaseFlowPipe.T2[31] > dynamicTwoPhaseFlowPipe.Tcrit) then dynamicTwoPhaseFlowPipe.rho2[31] else min(dynamicTwoPhaseFlowPipe.rho2[31], dynamicTwoPhaseFlowPipe.vsat2[31].rho) 21/30 (1): dynamicTwoPhaseFlowPipe.rhol2[31] = if noEvent(dynamicTwoPhaseFlowPipe.P[32] > dynamicTwoPhaseFlowPipe.pcrit) or noEvent(dynamicTwoPhaseFlowPipe.T2[31] > dynamicTwoPhaseFlowPipe.Tcrit) then dynamicTwoPhaseFlowPipe.rho2[31] else max(dynamicTwoPhaseFlowPipe.rho2[31], dynamicTwoPhaseFlowPipe.lsat2[31].rho) 22/31 (1): dynamicTwoPhaseFlowPipe.dpf[31] = 0.5 * dynamicTwoPhaseFlowPipe.dpfCorr * dynamicTwoPhaseFlowPipe.khi[31] * dynamicTwoPhaseFlowPipe.Q[31] * abs(dynamicTwoPhaseFlowPipe.Q[31]) / (dynamicTwoPhaseFlowPipe.A ^ 2.0 * dynamicTwoPhaseFlowPipe.rhol2[31]) 23/32 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(dynamicTwoPhaseFlowPipe.T2[31], dynamicTwoPhaseFlowPipe.rho2[31], dynamicTwoPhaseFlowPipe.pro2[31].u, dynamicTwoPhaseFlowPipe.pro2[31].s, dynamicTwoPhaseFlowPipe.pro2[31].cp, dynamicTwoPhaseFlowPipe.pro2[31].ddhp, dynamicTwoPhaseFlowPipe.pro2[31].ddph, dynamicTwoPhaseFlowPipe.pro2[31].duph, dynamicTwoPhaseFlowPipe.pro2[31].duhp, dynamicTwoPhaseFlowPipe.pro2[31].x) = $cse95 24/42 (1): dynamicTwoPhaseFlowPipe.dpg[31] = 9.80665 * dynamicTwoPhaseFlowPipe.rho2[31] * (dynamicTwoPhaseFlowPipe.z2 - dynamicTwoPhaseFlowPipe.z1) * dynamicTwoPhaseFlowPipe.dx2 / dynamicTwoPhaseFlowPipe.L 25/43 (1): dynamicTwoPhaseFlowPipe.P[31] + (-dynamicTwoPhaseFlowPipe.dpf[31]) - dynamicTwoPhaseFlowPipe.P[32] - dynamicTwoPhaseFlowPipe.dpg[31] = 0.0 Variables: 1: dynamicTwoPhaseFlowPipe.dpf[31]:VARIABLE(unit = "Pa" ) "Friction pressure loss in node i" type: Real [31] 2: dynamicTwoPhaseFlowPipe.dpg[31]:VARIABLE(unit = "Pa" ) "Gravity pressure loss in node i" type: Real [31] 3: dynamicTwoPhaseFlowPipe.rho2[31]:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 1.0 ) "Fluid density in hydraulic node i" type: Real [31] 4: dynamicTwoPhaseFlowPipe.khi[31]:VARIABLE() "Hydraulic pressure loss coefficient in node i" type: Real [31] 5: dynamicTwoPhaseFlowPipe.rhol2[31]: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] 6: dynamicTwoPhaseFlowPipe.rhov2[31]: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] 7: dynamicTwoPhaseFlowPipe.muv2[31]: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] 8: dynamicTwoPhaseFlowPipe.filo[31]:VARIABLE() "Pressure loss coefficient for two-phase flow" type: Real [31] 9: dynamicTwoPhaseFlowPipe.lambdal[31]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the liquid" type: Real [31] 10: dynamicTwoPhaseFlowPipe.Rel2[31]:VARIABLE(start = 6e4 unit = "1" nominal = 5000.0 ) "Reynolds number in hydraulic node i for the liquid" type: Real [31] 11: dynamicTwoPhaseFlowPipe.mul2[31]: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] 12: dynamicTwoPhaseFlowPipe.T2[31]:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature in hydraulic node i" type: Real [31] 13: dynamicTwoPhaseFlowPipe.pro2[31].cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real [31] 14: dynamicTwoPhaseFlowPipe.pro2[31].duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real [31] 15: $cse95.u:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse95.x:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse95.s:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse95.duhp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse95.ddph:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse95.d:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse95.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse95.cp:VARIABLE(protected = true ) type: Real unreplaceable 23: dynamicTwoPhaseFlowPipe.hb[31]:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy at the boundary of node i" type: Real [31] 24: $cse95.T:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse95.duph:VARIABLE(protected = true ) type: Real unreplaceable 26: dynamicTwoPhaseFlowPipe.pro2[31].ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real [31] 27: dynamicTwoPhaseFlowPipe.pro2[31].duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real [31] 28: dynamicTwoPhaseFlowPipe.pro2[31].u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real [31] 29: dynamicTwoPhaseFlowPipe.pro2[31].ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real [31] 30: dynamicTwoPhaseFlowPipe.pro2[31].s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real [31] 31: dynamicTwoPhaseFlowPipe.pro2[31].x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real [31] 32: dynamicTwoPhaseFlowPipe.xv2[31]:VARIABLE() "Vapor mass fraction in hydraulic node i" type: Real [31] 33: dynamicTwoPhaseFlowPipe.lambdav[31]:VARIABLE(start = 0.03 nominal = 0.03 ) "Friction pressure loss coefficient in node i for the vapor)" type: Real [31] 34: dynamicTwoPhaseFlowPipe.Rev2[31]:VARIABLE(start = 1000.0 unit = "1" nominal = 5e5 ) "Reynolds number in hydraulic node i for the vapor" type: Real [31] 35: sinkP.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Fluid mass flow rate" type: Real 36: massFlowMultiplier2.Cs.h:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Specific enthalpy of the fluid crossing the boundary of the control volume" type: Real 37: sinkP.Xh2o:VARIABLE(min = 0.0 max = 1.0 start = 0.05 unit = "1" ) "H2O mass fraction of the fluid crossing the boundary of the control volume" type: Real 38: sinkP.Xo2:VARIABLE(min = 0.0 max = 1.0 start = 0.2 unit = "1" ) "O2 mass fraction of the fluid crossing the boundary of the control volume" type: Real 39: sinkP.Xso2:VARIABLE(min = 0.0 max = 1.0 start = 0.0 unit = "1" ) "SO2 mass fraction of the fluid crossing the boundary of the control volume" type: Real 40: dynamicTwoPhaseFlowPipe.Q[31]:VARIABLE(start = 10.0 unit = "kg/s" nominal = 10.0 ) "Mass flow rate in node i" type: Real [31] 41: sinkP.Xco2:VARIABLE(min = 0.0 max = 1.0 start = 0.01 unit = "1" ) "CO2 mass fraction of the fluid crossing the boundary of the control volume" type: Real 42: sinkP.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 43: dynamicTwoPhaseFlowPipe.h[32]:VARIABLE(start = 82548.43470391157 unit = "J/kg" nominal = 1e6 ) "Fluid specific enthalpy in node i" type: Real [32] [/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.004692/6.733, allocations: 2.684 MB / 2.149 GB, free: 117.2 MB / 0.9044 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Fluid.Examples.SimpleExamples.TestFresnelField could not be translated