Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve.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.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8221/0.8221, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003834/0.0003835, allocations: 18.33 kB / 237.8 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05486/0.05526, allocations: 31.35 MB / 269.1 MB, free: 7.047 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.TestThreeWayValve): time 1.659/1.714, allocations: 296.8 MB / 0.5527 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04119/1.755, allocations: 35.31 MB / 0.5872 GB, free: 7.457 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000394/1.756, allocations: 8 kB / 0.5872 GB, free: 7.449 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45: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/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/PressureLosses/ThreeWayValve.mo:25:3-27:68: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/PressureLosses/ThreeWayValve.mo:28:3-30:66: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/PressureLosses/ControlValve.mo:45:3-47:43: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/PressureLosses/ControlValve.mo:48:3-50:38: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/PressureLosses/ThreeWayValve.mo:43:3-44:54:writable] Warning: Connector C3 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/PressureLosses/ControlValve.mo:45:3-47:43: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/PressureLosses/ControlValve.mo:48:3-50:38: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/Volumes/VolumeA.mo:25:3-27:42:writable] Warning: Connector Ce1 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/Volumes/VolumeA.mo:28:3-30:37:writable] Warning: Connector Ce2 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/Volumes/VolumeA.mo:31:3-33:37:writable] Warning: Connector Cs1 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/Volumes/VolumeA.mo:38:3-40:43:writable] Warning: Connector Cs2 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/PressureLosses/PipePressureLoss.mo:35:3-37:42: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/PressureLosses/PipePressureLoss.mo:38:3-40:37: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). Notification: Performance of NFTyping.typeComponents: time 0.0006343/1.756, allocations: 213 kB / 0.5874 GB, free: 7.242 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000495/1.757, allocations: 305.5 kB / 0.5877 GB, free: 6.941 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.02477/1.782, allocations: 9.922 MB / 0.5974 GB, free: 13 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001445/1.783, allocations: 1.066 MB / 0.5984 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000542/1.784, allocations: 461.2 kB / 0.5989 GB, free: 11.46 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000493/1.784, allocations: 434.3 kB / 0.5993 GB, free: 11.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003692/1.785, allocations: 378.2 kB / 0.5996 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.471e-05/1.785, allocations: 76 kB / 0.5997 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03021/1.815, allocations: 17.95 MB / 0.6172 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002664/1.815, allocations: 183.3 kB / 0.6174 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005626/1.816, allocations: 453.7 kB / 0.6178 GB, free: 8 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02282/1.839, allocations: 9.169 MB / 0.6268 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.839, allocations: 0 / 0.6268 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.663e-06/1.839, allocations: 0 / 0.6268 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.356e-05/1.839, allocations: 0 / 0.6268 GB, free: 14.8 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.005331/1.844, allocations: 1.98 MB / 0.6287 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/1.844, allocations: 8.031 kB / 0.6287 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/1.844, allocations: 98.81 kB / 0.6288 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/1.845, allocations: 448.1 kB / 0.6292 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/1.845, allocations: 53.25 kB / 0.6293 GB, free: 12.14 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.362e-05/1.845, allocations: 60 kB / 0.6294 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/1.846, allocations: 0.8606 MB / 0.6302 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/1.846, allocations: 3.938 kB / 0.6302 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.101e-05/1.846, allocations: 28 kB / 0.6302 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.3e-05/1.846, allocations: 35.97 kB / 0.6303 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009054/1.847, allocations: 0.5513 MB / 0.6308 GB, free: 10.54 MB / 0.5137 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.05817/1.905, allocations: 29.72 MB / 0.6598 GB, free: 9.742 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007057/1.906, allocations: 384.1 kB / 0.6602 GB, free: 9.359 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003893/1.906, allocations: 275 kB / 0.6605 GB, free: 9.086 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3311/2.238, allocations: 77.73 MB / 0.7364 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/2.238, allocations: 36.14 kB / 0.7364 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=91): time 3.016e-06/2.238, allocations: 0 / 0.7364 GB, free: 194.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=91): time 0.003226/2.241, allocations: 1.27 MB / 0.7376 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/2.241, allocations: 82.66 kB / 0.7377 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005739/2.242, allocations: 0.51 MB / 0.7382 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/2.242, allocations: 29.64 kB / 0.7382 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/2.242, allocations: 337.3 kB / 0.7386 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/2.242, allocations: 300.2 kB / 0.7389 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/2.242, allocations: 121.2 kB / 0.739 GB, free: 193.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.549e-05/2.242, allocations: 386.3 kB / 0.7393 GB, free: 193 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003367/2.243, allocations: 205 kB / 0.7395 GB, free: 193 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/2.243, allocations: 363.1 kB / 0.7399 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008318/2.244, allocations: 0.6304 MB / 0.7405 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/2.244, allocations: 6.875 kB / 0.7405 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001467/2.245, allocations: 0.8896 MB / 0.7414 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/2.245, allocations: 5.844 kB / 0.7414 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/2.245, allocations: 6.688 kB / 0.7414 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002867/2.248, allocations: 0.8972 MB / 0.7423 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/2.248, allocations: 34.5 kB / 0.7423 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001227/2.25, allocations: 1.094 MB / 0.7434 GB, free: 192 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/2.25, allocations: 72.31 kB / 0.7434 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/2.25, allocations: 22.09 kB / 0.7435 GB, free: 191.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 14 (PuitsP2.C.a,threeWayValve.PerteDP1.C2.b,threeWayValve.PerteDP1.C1.a,threeWayValve.VolumeA1.Cs2.b,threeWayValve.VolumeA1.Cs1.b,threeWayValve.VolumeA1.Ce2.a,threeWayValve.VolumeA1.Ce1.a,threeWayValve.Valve2.C2.b,threeWayValve.Valve2.C1.a,threeWayValve.Valve1.C2.b,threeWayValve.Valve1.C1.a,PuitsP1.C.a,SourceP1.C.b,threeWayValve.VolumeA1.Ce2.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(7,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0002646/2.25, allocations: 233.1 kB / 0.7437 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/2.25, allocations: 65.81 kB / 0.7437 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002126/2.252, allocations: 2.14 MB / 0.7458 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/2.253, allocations: 1.125 kB / 0.7458 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/2.253, allocations: 0 / 0.7458 GB, free: 191.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002365/2.253, allocations: 189.4 kB / 0.746 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/2.253, allocations: 26.72 kB / 0.746 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/2.253, allocations: 14.36 kB / 0.746 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/2.253, allocations: 19.38 kB / 0.7461 GB, free: 191.2 MB / 0.5919 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(threeWayValve.Valve1.T, threeWayValve.Valve1.rho, threeWayValve.Valve1.pro.u, threeWayValve.Valve1.pro.s, threeWayValve.Valve1.pro.cp, threeWayValve.Valve1.pro.ddhp, threeWayValve.Valve1.pro.ddph, threeWayValve.Valve1.pro.duph, threeWayValve.Valve1.pro.duhp, threeWayValve.Valve1.pro.x) = $cse6 Variables: 1: threeWayValve.Valve1.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 2: threeWayValve.Valve1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 3: threeWayValve.Valve1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 4: threeWayValve.Valve1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 5: threeWayValve.Valve1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 6: threeWayValve.Valve1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 7: threeWayValve.Valve1.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 8: threeWayValve.Valve1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 9: threeWayValve.Valve1.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 10: threeWayValve.Valve1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real [/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): threeWayValve.Valve2.deltaP * threeWayValve.Valve2.Cv * abs(threeWayValve.Valve2.Cv) = 1.733e12 * $cse5 / threeWayValve.Valve2.rho ^ 2.0 2/2 (1): $cse5 = ThermoSysPro.Functions.ThermoSquare(PuitsP1.Q, threeWayValve.Valve2.eps) 3/3 (1): 0.0 = if PuitsP1.Q > 0.0 then threeWayValve.Valve2.h - threeWayValve.VolumeA1.h else threeWayValve.Valve2.h - PuitsP1.h 4/4 (10): $cse4 = ThermoSysPro.Properties.Fluid.Ph(threeWayValve.Valve2.Pm, threeWayValve.Valve2.h, threeWayValve.Valve2.mode, threeWayValve.Valve2.fluid) 5/14 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(threeWayValve.Valve2.T, threeWayValve.Valve2.rho, threeWayValve.Valve2.pro.u, threeWayValve.Valve2.pro.s, threeWayValve.Valve2.pro.cp, threeWayValve.Valve2.pro.ddhp, threeWayValve.Valve2.pro.ddph, threeWayValve.Valve2.pro.duph, threeWayValve.Valve2.pro.duhp, threeWayValve.Valve2.pro.x) = $cse4 6/24 (1): 0.0 = SourceP1.Q + (-PuitsP1.Q) - PuitsP2.Q 7/25 (1): $cse2 = ThermoSysPro.Functions.ThermoSquare(SourceP1.Q, threeWayValve.PerteDP1.eps) 8/26 (1): threeWayValve.PerteDP1.deltaPf = threeWayValve.PerteDP1.K * $cse2 / threeWayValve.PerteDP1.rho 9/27 (1): threeWayValve.PerteDP1.deltaP = threeWayValve.PerteDP1.deltaPf + threeWayValve.PerteDP1.deltaPg 10/28 (1): threeWayValve.PerteDP1.deltaPg = 9.80665 * threeWayValve.PerteDP1.rho * (threeWayValve.PerteDP1.z2 - threeWayValve.PerteDP1.z1) 11/29 (10): $cse1 = ThermoSysPro.Properties.Fluid.Ph(threeWayValve.PerteDP1.Pm, threeWayValve.PerteDP1.h, threeWayValve.PerteDP1.mode, threeWayValve.PerteDP1.fluid) 12/39 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(threeWayValve.PerteDP1.T, threeWayValve.PerteDP1.rho, threeWayValve.PerteDP1.pro.u, threeWayValve.PerteDP1.pro.s, threeWayValve.PerteDP1.pro.cp, threeWayValve.PerteDP1.pro.ddhp, threeWayValve.PerteDP1.pro.ddph, threeWayValve.PerteDP1.pro.duph, threeWayValve.PerteDP1.pro.duhp, threeWayValve.PerteDP1.pro.x) = $cse1 13/49 (1): threeWayValve.PerteDP1.Pm = 0.5 * (SourceP1.P0 + threeWayValve.VolumeA1.P) 14/50 (1): threeWayValve.Valve1.deltaP = threeWayValve.VolumeA1.P - PuitsP2.P0 15/51 (1): threeWayValve.Valve1.deltaP * threeWayValve.Valve1.Cv * abs(threeWayValve.Valve1.Cv) = 1.733e12 * $cse7 / threeWayValve.Valve1.rho ^ 2.0 16/52 (1): $cse7 = ThermoSysPro.Functions.ThermoSquare(PuitsP2.Q, threeWayValve.Valve1.eps) 17/53 (1): 0.0 = if PuitsP2.Q > 0.0 then threeWayValve.Valve1.h - threeWayValve.VolumeA1.h else threeWayValve.Valve1.h - PuitsP2.h 18/54 (10): $cse6 = ThermoSysPro.Properties.Fluid.Ph(threeWayValve.Valve1.Pm, threeWayValve.Valve1.h, threeWayValve.Valve1.mode, threeWayValve.Valve1.fluid) 19/64 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(threeWayValve.Valve1.T, threeWayValve.Valve1.rho, threeWayValve.Valve1.pro.u, threeWayValve.Valve1.pro.s, threeWayValve.Valve1.pro.cp, threeWayValve.Valve1.pro.ddhp, threeWayValve.Valve1.pro.ddph, threeWayValve.Valve1.pro.duph, threeWayValve.Valve1.pro.duhp, threeWayValve.Valve1.pro.x) = $cse6 20/74 (1): threeWayValve.Valve1.Pm = 0.5 * (threeWayValve.VolumeA1.P + PuitsP2.P0) 21/75 (1): threeWayValve.Valve2.deltaP = threeWayValve.VolumeA1.P - PuitsP1.P0 22/76 (1): threeWayValve.Valve2.Pm = 0.5 * (threeWayValve.VolumeA1.P + PuitsP1.P0) 23/77 (1): SourceP1.P0 - threeWayValve.VolumeA1.P = threeWayValve.PerteDP1.deltaP 24/78 (1): 0.0 = if SourceP1.Q > 0.0 then threeWayValve.PerteDP1.h - SourceP1.h else threeWayValve.PerteDP1.h - threeWayValve.VolumeA1.h Variables: 1: threeWayValve.PerteDP1.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 2: threeWayValve.PerteDP1.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 3: threeWayValve.Valve2.Pm:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 4: threeWayValve.Valve2.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 5: threeWayValve.Valve1.Pm:VARIABLE(min = 0.0 start = 2e5 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 6: threeWayValve.Valve1.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 7: threeWayValve.Valve1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 8: threeWayValve.Valve1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 9: threeWayValve.Valve1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 10: threeWayValve.Valve1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 11: threeWayValve.Valve1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 12: threeWayValve.Valve1.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 13: threeWayValve.Valve1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 14: threeWayValve.Valve1.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 15: threeWayValve.Valve1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 16: $cse6.x:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse6.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse6.duph:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse6.u:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse6.d:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse6.duhp:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse6.ddph:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse6.T:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse6.cp:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse6.s:VARIABLE(protected = true ) type: Real unreplaceable 26: threeWayValve.Valve1.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 27: PuitsP2.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Mass flow rate" type: Real 28: $cse7:VARIABLE(protected = true ) type: Real unreplaceable 29: threeWayValve.Valve1.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 30: threeWayValve.VolumeA1.P:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure" type: Real 31: threeWayValve.PerteDP1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 32: threeWayValve.PerteDP1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 33: threeWayValve.PerteDP1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 34: $cse1.duhp:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 36: threeWayValve.PerteDP1.Pm:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Average fluid pressure" type: Real 37: $cse1.u:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse1.d:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse1.duph:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse1.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse1.ddph:VARIABLE(protected = true ) type: Real unreplaceable 45: threeWayValve.PerteDP1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 46: threeWayValve.PerteDP1.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 47: threeWayValve.PerteDP1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 48: threeWayValve.PerteDP1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 49: threeWayValve.PerteDP1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 50: threeWayValve.PerteDP1.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 51: threeWayValve.PerteDP1.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 52: threeWayValve.PerteDP1.deltaPg:VARIABLE(unit = "Pa" ) "Gravity pressure loss" type: Real 53: threeWayValve.PerteDP1.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 54: $cse2:VARIABLE(protected = true ) type: Real unreplaceable 55: SourceP1.Q:VARIABLE(start = 100.0 unit = "kg/s" ) "Mass flow rate" type: Real 56: threeWayValve.Valve2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 57: threeWayValve.Valve2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 58: threeWayValve.Valve2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 59: threeWayValve.Valve2.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 60: threeWayValve.Valve2.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 61: threeWayValve.Valve2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 62: threeWayValve.Valve2.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 63: threeWayValve.Valve2.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 64: threeWayValve.Valve2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 65: threeWayValve.Valve2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 66: $cse4.u:VARIABLE(protected = true ) type: Real unreplaceable 67: $cse4.duhp:VARIABLE(protected = true ) type: Real unreplaceable 68: $cse4.ddph:VARIABLE(protected = true ) type: Real unreplaceable 69: $cse4.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 70: $cse4.d:VARIABLE(protected = true ) type: Real unreplaceable 71: $cse4.x:VARIABLE(protected = true ) type: Real unreplaceable 72: $cse4.s:VARIABLE(protected = true ) type: Real unreplaceable 73: $cse4.duph:VARIABLE(protected = true ) type: Real unreplaceable 74: $cse4.cp:VARIABLE(protected = true ) type: Real unreplaceable 75: $cse4.T:VARIABLE(protected = true ) type: Real unreplaceable 76: threeWayValve.Valve2.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 77: PuitsP1.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Mass flow rate" type: Real 78: $cse5:VARIABLE(protected = true ) type: Real unreplaceable [/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.001761/2.255, allocations: 2.364 MB / 0.7484 GB, free: 189 MB / 0.5919 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestThreeWayValve could not be translated