Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestVolumeATh.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.Volume.TestVolumeATh,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestVolumeATh") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestVolumeATh,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestVolumeATh") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8362/0.8362, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00049/0.00049, allocations: 14.3 kB / 237.7 MB, free: 1.828 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06749/0.068, allocations: 31.35 MB / 269.1 MB, free: 7.117 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.Volume.TestVolumeATh): time 1.614/1.682, allocations: 296.4 MB / 0.5522 GB, free: 11.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.486/2.168, allocations: 187.2 MB / 0.735 GB, free: 100 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004735/2.169, allocations: 5.438 kB / 0.735 GB, free: 100 kB / 0.5919 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Volumes/VolumeATh.mo:27:3-29: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/VolumeATh.mo:30:3-32: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/VolumeATh.mo:33:3-35: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/VolumeATh.mo:36:3-38: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/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/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/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/BoundaryConditions/SourceQ.mo:24:3-25:52:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/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/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). Notification: Performance of NFTyping.typeComponents: time 0.0007078/2.169, allocations: 214.5 kB / 0.7352 GB, free: 96 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00077/2.17, allocations: 294.8 kB / 0.7355 GB, free: 92 kB / 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.02688/2.197, allocations: 11.55 MB / 0.7468 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001096/2.198, allocations: 0.9339 MB / 0.7477 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004248/2.198, allocations: 375.7 kB / 0.748 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/2.199, allocations: 374.9 kB / 0.7484 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003629/2.199, allocations: 360.1 kB / 0.7487 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.998e-05/2.199, allocations: 53.56 kB / 0.7488 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03216/2.231, allocations: 17.24 MB / 0.7656 GB, free: 14.17 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003036/2.232, allocations: 160.4 kB / 0.7658 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0005831/2.232, allocations: 387 kB / 0.7661 GB, free: 14.12 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02088/2.253, allocations: 9.299 MB / 0.7752 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/2.253, allocations: 4 kB / 0.7752 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.844e-06/2.253, allocations: 2.438 kB / 0.7752 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.094e-05/2.253, allocations: 0 / 0.7752 GB, free: 10.74 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.005161/2.259, allocations: 2.024 MB / 0.7772 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/2.259, allocations: 10.28 kB / 0.7772 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/2.259, allocations: 82.5 kB / 0.7773 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004595/2.259, allocations: 410.8 kB / 0.7777 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/2.259, allocations: 44.89 kB / 0.7777 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.451e-05/2.259, allocations: 63.75 kB / 0.7778 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009581/2.26, allocations: 0.7489 MB / 0.7785 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/2.26, allocations: 5.875 kB / 0.7785 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.161e-05/2.26, allocations: 25.66 kB / 0.7785 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/2.26, allocations: 32.69 kB / 0.7786 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007054/2.261, allocations: 482 kB / 0.779 GB, free: 8.723 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.003219/2.264, allocations: 4.53 MB / 0.7835 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006412/2.265, allocations: 339.3 kB / 0.7838 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/2.265, allocations: 219 kB / 0.784 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2962/2.561, allocations: 151.4 MB / 0.9318 GB, free: 5.238 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/2.562, allocations: 34.42 kB / 0.9319 GB, free: 5.199 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=81): time 3.446e-06/2.562, allocations: 0 / 0.9319 GB, free: 5.199 MB / 0.7637 GB Notification: Performance of matching and sorting (n=81): time 0.003156/2.565, allocations: 1.146 MB / 0.933 GB, free: 4.25 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/2.565, allocations: 90.55 kB / 0.9331 GB, free: 4.148 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006263/2.565, allocations: 0.4967 MB / 0.9336 GB, free: 3.656 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/2.565, allocations: 29.7 kB / 0.9336 GB, free: 3.621 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/2.566, allocations: 318.9 kB / 0.9339 GB, free: 3.305 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/2.566, allocations: 275.3 kB / 0.9341 GB, free: 3.039 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001581/2.566, allocations: 110 kB / 0.9343 GB, free: 2.926 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001442/2.566, allocations: 380.2 kB / 0.9346 GB, free: 2.547 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/2.567, allocations: 169.4 kB / 0.9348 GB, free: 2.383 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/2.567, allocations: 338.9 kB / 0.9351 GB, free: 1.984 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008124/2.568, allocations: 0.5547 MB / 0.9356 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-06/2.568, allocations: 2.125 kB / 0.9356 GB, free: 1.391 MB / 0.7637 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001479/2.569, allocations: 0.7841 MB / 0.9364 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/2.569, allocations: 8 kB / 0.9364 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/2.569, allocations: 4 kB / 0.9364 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002382/2.572, allocations: 0.7051 MB / 0.9371 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/2.572, allocations: 40.39 kB / 0.9371 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/2.573, allocations: 1.53 MB / 0.9386 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003809/2.574, allocations: 75.11 kB / 0.9387 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/2.574, allocations: 16 kB / 0.9387 GB, free: 14.2 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 14 (lumpedStraightPipe1.C2.b,lumpedStraightPipe1.C1.a,sourceP2.C.b,sourceQ.C.b,controlValve2.C2.b,controlValve2.C1.a,controlValve1.C2.b,controlValve1.C1.a,sink.C.a,volumeATh.Cs2.b,volumeATh.Cs1.b,volumeATh.Ce2.a,volumeATh.Ce1.a,volumeATh.Cs2.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (5,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002518/2.574, allocations: 211.2 kB / 0.9389 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.72e-05/2.574, allocations: 63.19 kB / 0.939 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/2.576, allocations: 1.199 MB / 0.9402 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/2.576, allocations: 3.984 kB / 0.9402 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/2.576, allocations: 0 / 0.9402 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/2.576, allocations: 203.8 kB / 0.9404 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.197e-05/2.576, allocations: 22.19 kB / 0.9404 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002724/2.577, allocations: 11.98 kB / 0.9404 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.03e-05/2.577, allocations: 31.89 kB / 0.9404 GB, free: 12.43 MB / 0.7794 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(controlValve2.T, controlValve2.rho, controlValve2.pro.u, controlValve2.pro.s, controlValve2.pro.cp, controlValve2.pro.ddhp, controlValve2.pro.ddph, controlValve2.pro.duph, controlValve2.pro.duhp, controlValve2.pro.x) = $cse4 Variables: 1: controlValve2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 2: controlValve2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 3: controlValve2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 4: controlValve2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 5: controlValve2.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 6: $cse4.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse4.ddph:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse4.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse4.T:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse4.x: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): controlValve2.deltaP * controlValve2.Cv * abs(controlValve2.Cv) = 1.733e12 * $cse5 / controlValve2.rho ^ 2.0 2/2 (1): $cse5 = ThermoSysPro.Functions.ThermoSquare(controlValve2.Q, controlValve2.eps) 3/3 (1): 0.0 = lumpedStraightPipe1.Q + controlValve1.Q - controlValve2.Q 4/4 (1): $cse7 = ThermoSysPro.Functions.ThermoSquare(controlValve1.Q, controlValve1.eps) 5/5 (1): controlValve1.deltaP * controlValve1.Cv * abs(controlValve1.Cv) = 1.733e12 * $cse7 / controlValve1.rho ^ 2.0 6/6 (10): $cse6 = ThermoSysPro.Properties.Fluid.Ph(controlValve1.Pm, controlValve1.h, controlValve1.mode, controlValve1.fluid) 7/16 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(controlValve1.T, controlValve1.rho, controlValve1.pro.u, controlValve1.pro.s, controlValve1.pro.cp, controlValve1.pro.ddhp, controlValve1.pro.ddph, controlValve1.pro.duph, controlValve1.pro.duhp, controlValve1.pro.x) = $cse6 8/26 (1): controlValve1.Pm = 0.5 * (sourceP2.P0 + volumeATh.P) 9/27 (1): controlValve1.deltaP = sourceP2.P0 - volumeATh.P 10/28 (1): controlValve2.deltaP = volumeATh.P - sink.P0 11/29 (1): controlValve2.Pm = 0.5 * (volumeATh.P + sink.P0) 12/30 (10): $cse4 = ThermoSysPro.Properties.Fluid.Ph(controlValve2.Pm, controlValve2.h, controlValve2.mode, controlValve2.fluid) 13/40 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(controlValve2.T, controlValve2.rho, controlValve2.pro.u, controlValve2.pro.s, controlValve2.pro.cp, controlValve2.pro.ddhp, controlValve2.pro.ddph, controlValve2.pro.duph, controlValve2.pro.duhp, controlValve2.pro.x) = $cse4 14/50 (1): 0.0 = if controlValve1.Q > 0.0 then controlValve1.h - sourceP2.h0 else controlValve1.h - volumeATh.h 15/51 (1): 0.0 = if controlValve2.Q > 0.0 then controlValve2.h - volumeATh.h else controlValve2.h - sink.h0 Variables: 1: controlValve2.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 2: controlValve1.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 3: controlValve2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 4: controlValve2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 5: controlValve2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 6: controlValve2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 7: controlValve2.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 8: $cse4.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse4.ddph:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse4.s:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse4.T:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse4.x:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse4.u:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse4.d:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse4.duph:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse4.duhp:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse4.cp:VARIABLE(protected = true ) type: Real unreplaceable 18: controlValve2.Pm:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 19: controlValve2.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 20: controlValve1.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 21: volumeATh.P:VARIABLE(min = 0.0 start = 3e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure" type: Real 22: controlValve1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 23: controlValve1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 24: controlValve1.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 25: $cse6.x:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse6.duhp:VARIABLE(protected = true ) type: Real unreplaceable 27: controlValve1.Pm:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 28: $cse6.cp:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse6.s:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse6.duph:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse6.u:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse6.d:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse6.ddph:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse6.T:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse6.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 36: controlValve1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 37: controlValve1.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 38: controlValve1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 39: controlValve1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 40: controlValve1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 41: controlValve1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 42: controlValve1.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 43: $cse7:VARIABLE(protected = true ) type: Real unreplaceable 44: controlValve1.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Mass flow rate" type: Real 45: controlValve2.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Mass flow rate" type: Real 46: $cse5:VARIABLE(protected = true ) type: Real unreplaceable 47: controlValve2.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 48: controlValve2.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 49: controlValve2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 50: controlValve2.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 51: controlValve2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" 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.00134/2.578, allocations: 1.129 MB / 0.9415 GB, free: 11.14 MB / 0.7794 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.Book.SimpleExamples.Volume.TestVolumeATh could not be translated