Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.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.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8161/0.8161, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003721, allocations: 17.78 kB / 237.7 MB, free: 1.84 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05833/0.05872, allocations: 31.34 MB / 269.1 MB, free: 7.129 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.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve): time 1.651/1.71, allocations: 296.8 MB / 0.5526 GB, free: 10.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5088/2.219, allocations: 187.3 MB / 0.7356 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006342/2.219, allocations: 5.312 kB / 0.7356 GB, free: 0.6953 MB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/DynamicReliefValve.mo:73:3-75:16: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/DynamicReliefValve.mo:76:3-78:33: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/LumpedStraightPipe.mo:49:3-50: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/LumpedStraightPipe.mo:51:3-53: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). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/PressureLosses/LumpedStraightPipe.mo:49:3-50: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/LumpedStraightPipe.mo:51:3-53: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/Volumes/VolumeD.mo:29:3-31:42: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/Volumes/VolumeD.mo:32:3-34: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/VolumeD.mo:35:3-37: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/Volumes/VolumeD.mo:38:3-40:37:writable] Warning: Connector Cs3 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/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). Notification: Performance of NFTyping.typeComponents: time 0.0008267/2.22, allocations: 263 kB / 0.7358 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001363/2.221, allocations: 439 kB / 0.7362 GB, free: 0.6914 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. Notification: Performance of NFTyping.typeClassSections: time 0.02683/2.248, allocations: 11.52 MB / 0.7475 GB, free: 428 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00163/2.25, allocations: 1.188 MB / 0.7487 GB, free: 424 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004999/2.25, allocations: 430.9 kB / 0.7491 GB, free: 364 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005777/2.251, allocations: 483 kB / 0.7495 GB, free: 364 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004914/2.252, allocations: 492.2 kB / 0.75 GB, free: 364 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001148/2.252, allocations: 69.97 kB / 0.7501 GB, free: 364 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03534/2.287, allocations: 20.41 MB / 0.77 GB, free: 14.23 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003567/2.287, allocations: 198 kB / 0.7702 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007413/2.288, allocations: 469.5 kB / 0.7706 GB, free: 14.16 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02724/2.315, allocations: 10.46 MB / 0.7808 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/2.315, allocations: 3.406 kB / 0.7808 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.964e-06/2.315, allocations: 0 / 0.7808 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.226e-05/2.316, allocations: 0 / 0.7808 GB, free: 10.29 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00907/2.325, allocations: 2.379 MB / 0.7832 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/2.325, allocations: 11.73 kB / 0.7832 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/2.325, allocations: 102.5 kB / 0.7833 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/2.325, allocations: 451.5 kB / 0.7837 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.949e-05/2.325, allocations: 78.52 kB / 0.7838 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.515e-05/2.326, allocations: 70.47 kB / 0.7838 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/2.327, allocations: 0.9387 MB / 0.7848 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/2.327, allocations: 5.938 kB / 0.7848 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/2.327, allocations: 31.89 kB / 0.7848 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.635e-05/2.327, allocations: 35.88 kB / 0.7848 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/2.328, allocations: 0.6924 MB / 0.7855 GB, free: 7.926 MB / 0.6075 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.04028/2.368, allocations: 21.6 MB / 0.8066 GB, free: 5.086 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/2.37, allocations: 0.6989 MB / 0.8073 GB, free: 4.621 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005844/2.37, allocations: 389.5 kB / 0.8077 GB, free: 4.395 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3229/2.693, allocations: 159.7 MB / 0.9636 GB, free: 3.496 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001048/2.694, allocations: 484.5 kB / 0.964 GB, free: 3 MB / 0.795 GB Notification: Performance of pre-optimization done (n=111): time 3.587e-06/2.694, allocations: 0 / 0.964 GB, free: 3 MB / 0.795 GB Notification: Performance of matching and sorting (n=111): time 0.00659/2.701, allocations: 1.986 MB / 0.966 GB, free: 0.9961 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/2.701, allocations: 139.7 kB / 0.9661 GB, free: 0.832 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006978/2.702, allocations: 0.5575 MB / 0.9667 GB, free: 272 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.089e-05/2.702, allocations: 37.7 kB / 0.9667 GB, free: 228 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/2.702, allocations: 347.7 kB / 0.967 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/2.702, allocations: 367.8 kB / 0.9674 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/2.703, allocations: 154.2 kB / 0.9675 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000151/2.703, allocations: 399.9 kB / 0.9679 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000593/2.703, allocations: 325.8 kB / 0.9682 GB, free: 14.65 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000734/2.704, allocations: 0.4996 MB / 0.9687 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/2.705, allocations: 0.8706 MB / 0.9695 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/2.705, allocations: 0 / 0.9695 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002124/2.708, allocations: 1.166 MB / 0.9707 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/2.708, allocations: 13.81 kB / 0.9707 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/2.708, allocations: 4.75 kB / 0.9707 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003204/2.711, allocations: 0.9507 MB / 0.9716 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/2.711, allocations: 90.05 kB / 0.9717 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001942/2.713, allocations: 1.147 MB / 0.9728 GB, free: 9.812 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000673/2.714, allocations: 112 kB / 0.9729 GB, free: 9.703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-05/2.714, allocations: 31.98 kB / 0.973 GB, free: 9.672 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 17 (sourceP.C.b,Sink1.C.a,VolumeD1.Cs3.b,VolumeD1.Cs2.b,VolumeD1.Cs1.b,VolumeD1.Ce.a,Pipe1.C2.b,Pipe1.C1.a,Sink2.C.a,Pipe2.C2.b,Pipe2.C1.a,ReliefValve.C2.b,ReliefValve.C1.a,ReliefValve.clapper_is_free,$whenCondition1,$whenCondition2,VolumeD1.Cs2.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 53 * 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.0003746/2.714, allocations: 228.1 kB / 0.9732 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/2.715, allocations: 75.06 kB / 0.9733 GB, free: 9.371 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002849/2.717, allocations: 1.665 MB / 0.9749 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/2.717, allocations: 0 / 0.9749 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/2.717, allocations: 0 / 0.9749 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003398/2.718, allocations: 223.6 kB / 0.9751 GB, free: 7.406 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/2.718, allocations: 19.84 kB / 0.9751 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/2.718, allocations: 37.45 kB / 0.9752 GB, free: 7.352 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/2.719, allocations: 44.38 kB / 0.9752 GB, free: 7.305 MB / 0.8106 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(Pipe2.T, Pipe2.rho, Pipe2.pro.u, Pipe2.pro.s, Pipe2.pro.cp, Pipe2.pro.ddhp, Pipe2.pro.ddph, Pipe2.pro.duph, Pipe2.pro.duhp, Pipe2.pro.x) = $cse5 Variables: 1: Pipe2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 2: Pipe2.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 3: Pipe2.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 4: Pipe2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 5: Pipe2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 6: Pipe2.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 7: Pipe2.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 8: Pipe2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 9: Pipe2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 10: Pipe2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" 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): 0.0 = if noEvent(Pipe1.Q > Pipe1.Qeps) then Pipe1.h - sourceP.h else if noEvent(Pipe1.Q < (-Pipe1.Qeps)) then Pipe1.h - VolumeD1.h else Pipe1.h - 0.5 * ((sourceP.h - VolumeD1.h) * sin(1.5707963267948966 * Pipe1.Q / Pipe1.Qeps) + sourceP.h + VolumeD1.h) 2/2 (1): $cse4 = ThermoSysPro.Functions.ThermoSquare(Pipe1.Q, Pipe1.eps) 3/3 (1): Pipe1.deltaPf = 0.5 * Pipe1.khi * $cse4 / (Pipe1.A ^ 2.0 * Pipe1.rho) 4/4 (1): Pipe1.deltaP = Pipe1.deltaPf + 9.80665 * Pipe1.rho * (Pipe1.z2 - Pipe1.z1) 5/5 (10): $cse3 = ThermoSysPro.Properties.Fluid.Ph(Pipe1.Pm, Pipe1.h, Pipe1.mode, Pipe1.fluid) 6/15 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(Pipe1.T, Pipe1.rho, Pipe1.pro.u, Pipe1.pro.s, Pipe1.pro.cp, Pipe1.pro.ddhp, Pipe1.pro.ddph, Pipe1.pro.duph, Pipe1.pro.duhp, Pipe1.pro.x) = $cse3 7/25 (1): 0.0 = Pipe1.Q + (-Pipe2.Q) - ReliefValve.Q 8/26 (1): $cse8 = ThermoSysPro.Functions.ThermoSquare(ReliefValve.Q, ReliefValve.eps) 9/27 (1): ReliefValve.deltaP * ReliefValve.Cv * abs(ReliefValve.Cv) = 1.733e12 * $cse8 / (ReliefValve.rho * 998.98) 10/28 (10): $cse7 = ThermoSysPro.Properties.WaterSteam.IF97.Water_Ph(ReliefValve.Pm, ReliefValve.h, ReliefValve.mode) 11/38 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(ReliefValve.T, ReliefValve.rho, ReliefValve.pro.u, ReliefValve.pro.s, ReliefValve.pro.cp, ReliefValve.pro.ddhp, ReliefValve.pro.ddph, ReliefValve.pro.duph, ReliefValve.pro.duhp, ReliefValve.pro.x) = $cse7 12/48 (1): ReliefValve.Pm = 0.5 * (VolumeD1.P + Sink1.P0) 13/49 (1): ReliefValve.deltaP = VolumeD1.P - Sink1.P0 14/50 (1): VolumeD1.P - Sink2.P0 = Pipe2.deltaP 15/51 (1): Pipe2.deltaP = Pipe2.deltaPf + 9.80665 * Pipe2.rho * (Pipe2.z2 - Pipe2.z1) 16/52 (1): Pipe2.deltaPf = 0.5 * Pipe2.khi * $cse6 / (Pipe2.A ^ 2.0 * Pipe2.rho) 17/53 (1): $cse6 = ThermoSysPro.Functions.ThermoSquare(Pipe2.Q, Pipe2.eps) 18/54 (1): 0.0 = if noEvent(Pipe2.Q > Pipe2.Qeps) then Pipe2.h - VolumeD1.h else if noEvent(Pipe2.Q < (-Pipe2.Qeps)) then Pipe2.h - Sink2.h else Pipe2.h - 0.5 * ((VolumeD1.h - Sink2.h) * sin(1.5707963267948966 * Pipe2.Q / Pipe2.Qeps) + VolumeD1.h + Sink2.h) 19/55 (10): $cse5 = ThermoSysPro.Properties.Fluid.Ph(Pipe2.Pm, Pipe2.h, Pipe2.mode, Pipe2.fluid) 20/65 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(Pipe2.T, Pipe2.rho, Pipe2.pro.u, Pipe2.pro.s, Pipe2.pro.cp, Pipe2.pro.ddhp, Pipe2.pro.ddph, Pipe2.pro.duph, Pipe2.pro.duhp, Pipe2.pro.x) = $cse5 21/75 (1): Pipe2.Pm = 0.5 * (VolumeD1.P + Sink2.P0) 22/76 (1): sourceP.P - VolumeD1.P = Pipe1.deltaP 23/77 (1): Pipe1.Pm = 0.5 * (sourceP.P + VolumeD1.P) 24/78 (1): 0.0 = if ReliefValve.Q > 0.0 then ReliefValve.h - VolumeD1.h else ReliefValve.h - Sink1.h Variables: 1: ReliefValve.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 2: Pipe1.Pm:VARIABLE(min = 0.0 start = 1.4787951075221882e6 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 3: Pipe1.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 4: Pipe2.Pm:VARIABLE(min = 0.0 start = 199283.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 5: Pipe2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 6: Pipe2.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 7: Pipe2.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 8: Pipe2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 9: Pipe2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 10: Pipe2.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 11: Pipe2.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 12: Pipe2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 13: Pipe2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 14: Pipe2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 15: $cse5.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse5.u:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse5.d:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse5.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse5.x:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse5.duph:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse5.s:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse5.ddph:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse5.duhp:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse5.T:VARIABLE(protected = true ) type: Real unreplaceable 25: Pipe2.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 26: Pipe2.Q:VARIABLE(start = 1335.993983016864 unit = "kg/s" ) "Mass flow rate" type: Real 27: $cse6:VARIABLE(protected = true ) type: Real unreplaceable 28: Pipe2.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 29: Pipe2.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 30: ReliefValve.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 31: VolumeD1.P:VARIABLE(min = 0.0 start = 298566.0 unit = "Pa" nominal = 1e5 ) "Fluid pressure" type: Real 32: ReliefValve.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" protected = true ) "Vapor mass fraction" type: Real 33: ReliefValve.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 protected = true ) "Specific heat capacity at constant presure" type: Real 34: $cse7.d:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse7.ddph:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse7.duph:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse7.u:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse7.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 42: ReliefValve.Pm:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 43: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse7.duhp:VARIABLE(protected = true ) type: Real unreplaceable 45: ReliefValve.pro.ddhp:VARIABLE(unit = "kg.s2/m5" protected = true ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 46: ReliefValve.pro.duhp:VARIABLE(unit = "1" protected = true ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 47: ReliefValve.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 protected = true ) "Specific entropy" type: Real 48: ReliefValve.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 protected = true ) "Specific inner energy" type: Real 49: ReliefValve.pro.duph:VARIABLE(unit = "m3/kg" protected = true ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 50: ReliefValve.pro.ddph:VARIABLE(unit = "s2/m2" protected = true ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 51: ReliefValve.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 52: ReliefValve.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 53: $cse8:VARIABLE(protected = true ) type: Real unreplaceable 54: ReliefValve.Q:VARIABLE(start = 1.4404060369658185e-32 unit = "kg/s" ) "Mass flow rate" type: Real 55: Pipe1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 56: Pipe1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 57: Pipe1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 58: Pipe1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 59: Pipe1.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 60: Pipe1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 61: Pipe1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 62: Pipe1.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 63: Pipe1.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 64: $cse3.u:VARIABLE(protected = true ) type: Real unreplaceable 65: $cse3.s:VARIABLE(protected = true ) type: Real unreplaceable 66: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 67: $cse3.d:VARIABLE(protected = true ) type: Real unreplaceable 68: $cse3.duhp:VARIABLE(protected = true ) type: Real unreplaceable 69: $cse3.T:VARIABLE(protected = true ) type: Real unreplaceable 70: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 71: $cse3.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 72: $cse3.ddph:VARIABLE(protected = true ) type: Real unreplaceable 73: $cse3.duph:VARIABLE(protected = true ) type: Real unreplaceable 74: Pipe1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 75: Pipe1.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 76: Pipe1.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 77: $cse4:VARIABLE(protected = true ) type: Real unreplaceable 78: Pipe1.Q:VARIABLE(start = 100.0 unit = "kg/s" ) "Mass flow rate" type: Real [/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.002257/2.721, allocations: 2.248 MB / 0.9774 GB, free: 4.641 MB / 0.8106 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve could not be translated