Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1200,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8344/0.8344, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003357, allocations: 21.67 kB / 237.8 MB, free: 1.766 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05429/0.05464, allocations: 31.34 MB / 269.1 MB, free: 7.027 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve): time 1.605/1.66, allocations: 296.7 MB / 0.5526 GB, free: 11.18 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.502/2.162, allocations: 187.3 MB / 0.7355 GB, free: 0.7578 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002935/2.162, allocations: 11.25 kB / 0.7355 GB, free: 0.7539 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/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/PressureLosses/Bend.mo:55:3-57: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/Bend.mo:58:3-60:43: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/Diaphragm.mo:30:3-32: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/Diaphragm.mo:33:3-35:37:writable] Warning: Connector C2 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.0006768/2.163, allocations: 411.2 kB / 0.7359 GB, free: 0.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0008525/2.164, allocations: 0.5534 MB / 0.7365 GB, free: 0.7422 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.0296/2.193, allocations: 11.52 MB / 0.7477 GB, free: 484 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001722/2.195, allocations: 1.19 MB / 0.7489 GB, free: 480 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005053/2.196, allocations: 460.8 kB / 0.7493 GB, free: 428 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005888/2.196, allocations: 0.5199 MB / 0.7498 GB, free: 424 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005859/2.197, allocations: 0.6204 MB / 0.7504 GB, free: 424 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001034/2.197, allocations: 66.69 kB / 0.7505 GB, free: 424 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03469/2.232, allocations: 20.35 MB / 0.7704 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004074/2.232, allocations: 309.1 kB / 0.7707 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007296/2.233, allocations: 0.5463 MB / 0.7712 GB, free: 13.87 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02438/2.257, allocations: 10.71 MB / 0.7817 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/2.257, allocations: 0 / 0.7817 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.485e-06/2.257, allocations: 0 / 0.7817 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.273e-05/2.257, allocations: 1.203 kB / 0.7817 GB, free: 9.914 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: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.006201/2.263, allocations: 2.623 MB / 0.7842 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/2.263, allocations: 10.22 kB / 0.7842 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/2.264, allocations: 131.6 kB / 0.7844 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007962/2.264, allocations: 0.6789 MB / 0.785 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.058e-05/2.265, allocations: 76 kB / 0.7851 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.861e-05/2.265, allocations: 61.5 kB / 0.7851 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/2.266, allocations: 0.9153 MB / 0.786 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/2.266, allocations: 9.719 kB / 0.786 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.636e-05/2.266, allocations: 25.22 kB / 0.7861 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.435e-05/2.266, allocations: 28.61 kB / 0.7861 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/2.267, allocations: 0.773 MB / 0.7869 GB, free: 7.297 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.02189/2.289, allocations: 12.73 MB / 0.7993 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/2.291, allocations: 0.6408 MB / 0.7999 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006146/2.291, allocations: 376.5 kB / 0.8003 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3221/2.613, allocations: 159.8 MB / 0.9563 GB, free: 12.13 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009432/2.614, allocations: 460.5 kB / 0.9568 GB, free: 11.66 MB / 0.795 GB Notification: Performance of pre-optimization done (n=109): time 3.717e-06/2.614, allocations: 0 / 0.9568 GB, free: 11.66 MB / 0.795 GB Notification: Performance of matching and sorting (n=109): time 0.007982/2.622, allocations: 2.168 MB / 0.9589 GB, free: 9.477 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/2.622, allocations: 166.7 kB / 0.9591 GB, free: 9.277 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/2.624, allocations: 1.276 MB / 0.9603 GB, free: 7.98 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/2.624, allocations: 37.7 kB / 0.9603 GB, free: 7.938 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003492/2.625, allocations: 470.2 kB / 0.9608 GB, free: 7.477 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.000266/2.625, allocations: 359 kB / 0.9611 GB, free: 7.129 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/2.625, allocations: 154.2 kB / 0.9613 GB, free: 6.973 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001222/2.625, allocations: 341.9 kB / 0.9616 GB, free: 6.633 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/2.626, allocations: 359 kB / 0.9619 GB, free: 6.285 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007472/2.627, allocations: 0.5201 MB / 0.9625 GB, free: 5.703 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/2.628, allocations: 0.8345 MB / 0.9633 GB, free: 4.836 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/2.628, allocations: 0 / 0.9633 GB, free: 4.836 MB / 0.795 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00223/2.63, allocations: 1.239 MB / 0.9645 GB, free: 3.609 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/2.63, allocations: 4 kB / 0.9645 GB, free: 3.605 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/2.63, allocations: 4 kB / 0.9645 GB, free: 3.602 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004362/2.635, allocations: 1.067 MB / 0.9655 GB, free: 2.531 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005092/2.635, allocations: 102.3 kB / 0.9656 GB, free: 2.438 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/2.637, allocations: 1.13 MB / 0.9667 GB, free: 1.289 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000727/2.638, allocations: 103 kB / 0.9668 GB, free: 1.188 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.816e-05/2.638, allocations: 37.88 kB / 0.9669 GB, free: 1.152 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 (diaphragm.C2.b,diaphragm.C1.a,bend.C2.b,bend.C1.a,sourceP.C.b,sinkP.C.a,pipe.C2.b,pipe.C1.a,reliefValve.C2.b,reliefValve.C1.a,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 53 * 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 {(7,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0004699/2.638, allocations: 339.1 kB / 0.9672 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/2.638, allocations: 110.5 kB / 0.9673 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00305/2.641, allocations: 1.687 MB / 0.9689 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/2.641, allocations: 1.781 kB / 0.9689 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/2.641, allocations: 0 / 0.9689 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004899/2.642, allocations: 287.1 kB / 0.9692 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001417/2.642, allocations: 16 kB / 0.9692 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005514/2.643, allocations: 39.95 kB / 0.9693 GB, free: 14.64 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/2.643, allocations: 56.47 kB / 0.9693 GB, free: 14.58 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(diaphragm.T, diaphragm.rho, diaphragm.pro.u, diaphragm.pro.s, diaphragm.pro.cp, diaphragm.pro.ddhp, diaphragm.pro.ddph, diaphragm.pro.duph, diaphragm.pro.duhp, diaphragm.pro.x) = $cse2 Variables: 1: diaphragm.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 2: diaphragm.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 3: diaphragm.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 4: diaphragm.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 5: diaphragm.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 6: diaphragm.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 7: diaphragm.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 8: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse2.duhp:VARIABLE(protected = true ) type: Real unreplaceable [/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): diaphragm.deltaP = 8.0 * diaphragm.khi * $cse3 / (9.869604401089358 * diaphragm.D ^ 4.0 * diaphragm.rho) 2/2 (1): reliefValve.C2.P - sinkP.P0 = diaphragm.deltaP 3/3 (1): reliefValve.deltaP = bend.C2.P - reliefValve.C2.P 4/4 (1): reliefValve.deltaP * reliefValve.Cv * abs(reliefValve.Cv) = 1.733e12 * $cse9 / (reliefValve.rho * 998.98) 5/5 (10): $cse8 = ThermoSysPro.Properties.WaterSteam.IF97.Water_Ph(reliefValve.Pm, diaphragm.h, reliefValve.mode) 6/15 (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) = $cse8 7/25 (1): reliefValve.Pm = 0.5 * (bend.C2.P + reliefValve.C2.P) 8/26 (1): pipe.C2.P - bend.C2.P = bend.deltaP 9/27 (1): bend.deltaP = 8.0 * bend.khi * $cse5 / (9.869604401089358 * bend.D ^ 4.0 * bend.rho) 10/28 (1): $cse5 = ThermoSysPro.Functions.ThermoSquare(diaphragm.Q, bend.eps) 11/29 (1): $cse3 = ThermoSysPro.Functions.ThermoSquare(diaphragm.Q, diaphragm.eps) 12/30 (1): $cse7 = ThermoSysPro.Functions.ThermoSquare(diaphragm.Q, pipe.eps) 13/31 (1): pipe.deltaPf = 0.5 * pipe.khi * $cse7 / (pipe.A ^ 2.0 * pipe.rho) 14/32 (1): pipe.deltaP = pipe.deltaPf + 9.80665 * pipe.rho * (pipe.z2 - pipe.z1) 15/33 (10): $cse6 = ThermoSysPro.Properties.Fluid.Ph(pipe.Pm, diaphragm.h, pipe.mode, pipe.fluid) 16/43 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(pipe.T, pipe.rho, pipe.pro.u, pipe.pro.s, pipe.pro.cp, pipe.pro.ddhp, pipe.pro.ddph, pipe.pro.duph, pipe.pro.duhp, pipe.pro.x) = $cse6 17/53 (1): pipe.Pm = 0.5 * (sourceP.P + pipe.C2.P) 18/54 (1): sourceP.P - pipe.C2.P = pipe.deltaP 19/55 (1): bend.Pm = 0.5 * (pipe.C2.P + bend.C2.P) 20/56 (10): $cse4 = ThermoSysPro.Properties.Fluid.Ph(bend.Pm, diaphragm.h, bend.mode, bend.fluid) 21/66 (1): bend.mu = ThermoSysPro.Properties.WaterSteam.IF97.DynamicViscosity_rhoT(bend.rho, bend.T) 22/67 (1): bend.Re = 4.0 * abs(diaphragm.Q) / (3.141592653589793 * bend.D * bend.mu) 23/68 (1): bend.lambda = if noEvent(bend.Re > 0.0) then 1.0 / (1.8 * log10(bend.Re) - 1.64) ^ 2.0 else 0.0 24/69 (1): bend.khif = 0.0175 * bend.lambda * bend.R0 * bend.delta / bend.D 25/70 (1): bend.khi = bend.khim + bend.khif 26/71 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(bend.T, bend.rho, bend.pro.u, bend.pro.s, bend.pro.cp, bend.pro.ddhp, bend.pro.ddph, bend.pro.duph, bend.pro.duhp, bend.pro.x) = $cse4 27/81 (1): $cse9 = ThermoSysPro.Functions.ThermoSquare(diaphragm.Q, reliefValve.eps) 28/82 (1): 0.0 = if diaphragm.Q > 0.0 then diaphragm.h - bend.C2.h_vol else diaphragm.h - reliefValve.C2.h_vol 29/83 (1): 0.0 = if diaphragm.Q > 0.0 then diaphragm.h - pipe.C2.h_vol else diaphragm.h - bend.C2.h_vol 30/84 (1): 0.0 = if diaphragm.Q > 0.0 then diaphragm.h - sourceP.h else diaphragm.h - pipe.C2.h_vol 31/85 (10): $cse2 = ThermoSysPro.Properties.Fluid.Ph(diaphragm.Pm, diaphragm.h, diaphragm.mode, diaphragm.fluid) 32/95 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(diaphragm.T, diaphragm.rho, diaphragm.pro.u, diaphragm.pro.s, diaphragm.pro.cp, diaphragm.pro.ddhp, diaphragm.pro.ddph, diaphragm.pro.duph, diaphragm.pro.duhp, diaphragm.pro.x) = $cse2 33/105 (1): 0.0 = if diaphragm.Q > 0.0 then diaphragm.h - reliefValve.C2.h_vol else diaphragm.h - sinkP.h 34/106 (1): diaphragm.Pm = 0.5 * (reliefValve.C2.P + sinkP.P0) Variables: 1: diaphragm.Pm:VARIABLE(min = 0.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 2: reliefValve.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 3: diaphragm.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 4: diaphragm.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 5: diaphragm.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 6: diaphragm.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 7: diaphragm.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 8: diaphragm.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 9: diaphragm.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 10: $cse2.T:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse2.x:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse2.duhp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse2.cp:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse2.s:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse2.u:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse2.d:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse2.duph:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse2.ddph:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse2.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 20: diaphragm.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 21: pipe.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 22: bend.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 23: $cse9:VARIABLE(protected = true ) type: Real unreplaceable 24: bend.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 25: bend.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 26: bend.khi:VARIABLE() "Hydraulic pressure loss coefficient" type: Real 27: bend.khif:VARIABLE() "Friction pressure loss coefficient" type: Real 28: bend.lambda:VARIABLE() "Friction pressure loss coefficient" type: Real 29: bend.Re:VARIABLE(unit = "1" ) "Reynolds number" type: Real 30: bend.mu:VARIABLE(min = 0.0 unit = "Pa.s" ) "Fluid dynamic viscosity" type: Real 31: bend.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 32: bend.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 33: bend.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 34: bend.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 35: bend.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 36: bend.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 37: bend.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 38: bend.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 39: $cse4.duhp:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse4.x:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse4.cp:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse4.duph:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse4.s:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse4.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 45: $cse4.d:VARIABLE(protected = true ) type: Real unreplaceable 46: $cse4.T:VARIABLE(protected = true ) type: Real unreplaceable 47: $cse4.u:VARIABLE(protected = true ) type: Real unreplaceable 48: $cse4.ddph:VARIABLE(protected = true ) type: Real unreplaceable 49: bend.Pm:VARIABLE(min = 0.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 50: pipe.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 51: pipe.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 52: pipe.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 53: pipe.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 54: pipe.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 55: pipe.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 56: pipe.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 57: pipe.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 58: pipe.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 59: $cse6.s:VARIABLE(protected = true ) type: Real unreplaceable 60: $cse6.d:VARIABLE(protected = true ) type: Real unreplaceable 61: $cse6.x:VARIABLE(protected = true ) type: Real unreplaceable 62: $cse6.u:VARIABLE(protected = true ) type: Real unreplaceable 63: $cse6.ddph:VARIABLE(protected = true ) type: Real unreplaceable 64: $cse6.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 65: $cse6.cp:VARIABLE(protected = true ) type: Real unreplaceable 66: pipe.Pm:VARIABLE(min = 0.0 start = Pinitial unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 67: $cse6.duhp:VARIABLE(protected = true ) type: Real unreplaceable 68: $cse6.T:VARIABLE(protected = true ) type: Real unreplaceable 69: $cse6.duph:VARIABLE(protected = true ) type: Real unreplaceable 70: pipe.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 71: pipe.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 72: pipe.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 73: pipe.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 74: $cse7:VARIABLE(protected = true ) type: Real unreplaceable 75: $cse3:VARIABLE(protected = true ) type: Real unreplaceable 76: diaphragm.Q:VARIABLE(start = 0.0 unit = "kg/s" ) "Mass flow rate" type: Real 77: $cse5:VARIABLE(protected = true ) type: Real unreplaceable 78: bend.deltaP:VARIABLE(unit = "Pa" ) "Presure loss" type: Real 79: bend.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 80: reliefValve.pro.duph:VARIABLE(unit = "m3/kg" protected = true ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 81: reliefValve.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 protected = true ) "Specific entropy" type: Real 82: reliefValve.pro.ddhp:VARIABLE(unit = "kg.s2/m5" protected = true ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 83: reliefValve.pro.duhp:VARIABLE(unit = "1" protected = true ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 84: reliefValve.pro.ddph:VARIABLE(unit = "s2/m2" protected = true ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 85: $cse8.u:VARIABLE(protected = true ) type: Real unreplaceable 86: reliefValve.Pm:VARIABLE(min = 0.0 start = Pinitial unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 87: $cse8.cp:VARIABLE(protected = true ) type: Real unreplaceable 88: $cse8.d:VARIABLE(protected = true ) type: Real unreplaceable 89: $cse8.x:VARIABLE(protected = true ) type: Real unreplaceable 90: $cse8.ddph:VARIABLE(protected = true ) type: Real unreplaceable 91: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable 92: $cse8.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 93: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 94: $cse8.duph:VARIABLE(protected = true ) type: Real unreplaceable 95: $cse8.duhp:VARIABLE(protected = true ) type: Real unreplaceable 96: reliefValve.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 protected = true ) "Specific inner energy" type: Real 97: reliefValve.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 98: 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 99: reliefValve.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" protected = true ) "Vapor mass fraction" type: Real 100: reliefValve.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 101: reliefValve.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 102: reliefValve.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 103: diaphragm.deltaP:VARIABLE(unit = "Pa" ) "Pressure loss" type: Real 104: diaphragm.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 105: diaphragm.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 106: diaphragm.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" 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.003013/2.646, allocations: 3.484 MB / 0.9727 GB, free: 10.36 MB / 0.8106 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve could not be translated