Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.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.Book.SimpleExamples.PressureLoss.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8196/0.8196, allocations: 150.9 MB / 167.2 MB, free: 14.55 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 13.16 kB / 237.7 MB, free: 1.84 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0514/0.05174, allocations: 31.34 MB / 269.1 MB, free: 7.137 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.TestThreeWayValve): time 1.628/1.68, allocations: 296.7 MB / 0.5525 GB, free: 10.87 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.04089/1.72, allocations: 35.31 MB / 0.587 GB, free: 7.406 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/1.721, allocations: 4 kB / 0.587 GB, free: 7.402 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.0005874/1.721, allocations: 216.7 kB / 0.5872 GB, free: 7.191 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005214/1.722, allocations: 309.5 kB / 0.5875 GB, free: 6.887 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.02568/1.748, allocations: 9.925 MB / 0.5972 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/1.749, allocations: 1.058 MB / 0.5982 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005546/1.75, allocations: 461.2 kB / 0.5987 GB, free: 11.41 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004975/1.75, allocations: 426.3 kB / 0.5991 GB, free: 11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000381/1.751, allocations: 386.2 kB / 0.5995 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.749e-05/1.751, allocations: 76 kB / 0.5995 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03024/1.781, allocations: 17.95 MB / 0.6171 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002715/1.781, allocations: 183.3 kB / 0.6172 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000588/1.782, allocations: 453.7 kB / 0.6177 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01991/1.802, allocations: 9.157 MB / 0.6266 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/1.802, allocations: 0 / 0.6266 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.823e-06/1.802, allocations: 0 / 0.6266 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.657e-05/1.802, allocations: 0 / 0.6266 GB, free: 14.76 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.005204/1.807, allocations: 1.984 MB / 0.6286 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/1.807, allocations: 8.031 kB / 0.6286 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/1.807, allocations: 102.8 kB / 0.6287 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005665/1.808, allocations: 452.1 kB / 0.6291 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.753e-05/1.808, allocations: 49.31 kB / 0.6291 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.566e-05/1.808, allocations: 64 kB / 0.6292 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/1.809, allocations: 0.854 MB / 0.63 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/1.809, allocations: 3.984 kB / 0.63 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.752e-05/1.81, allocations: 28 kB / 0.6301 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-05/1.81, allocations: 39.97 kB / 0.6301 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009629/1.811, allocations: 0.5474 MB / 0.6306 GB, free: 10.48 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.06188/1.872, allocations: 29.73 MB / 0.6597 GB, free: 9.688 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008314/1.873, allocations: 388.1 kB / 0.66 GB, free: 9.297 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/1.874, allocations: 271 kB / 0.6603 GB, free: 9.027 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3268/2.201, allocations: 77.73 MB / 0.7362 GB, free: 194.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/2.201, allocations: 41.55 kB / 0.7362 GB, free: 194.2 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=91): time 3.096e-06/2.201, allocations: 0 / 0.7362 GB, free: 194.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=91): time 0.003061/2.204, allocations: 1.264 MB / 0.7375 GB, free: 194 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/2.204, allocations: 86.25 kB / 0.7376 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/2.204, allocations: 0.5082 MB / 0.7381 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/2.204, allocations: 32.23 kB / 0.7381 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/2.204, allocations: 332.1 kB / 0.7384 GB, free: 193.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/2.205, allocations: 297.4 kB / 0.7387 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/2.205, allocations: 128 kB / 0.7388 GB, free: 193.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.05e-05/2.205, allocations: 377.6 kB / 0.7392 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003154/2.205, allocations: 210.2 kB / 0.7394 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003965/2.206, allocations: 368.2 kB / 0.7397 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007552/2.206, allocations: 0.6242 MB / 0.7403 GB, free: 192.8 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/2.206, allocations: 6.812 kB / 0.7403 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.001387/2.208, allocations: 0.8955 MB / 0.7412 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/2.208, allocations: 7.531 kB / 0.7412 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/2.208, allocations: 3.438 kB / 0.7412 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00275/2.211, allocations: 0.9024 MB / 0.7421 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/2.211, allocations: 38.2 kB / 0.7421 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/2.212, allocations: 1.088 MB / 0.7432 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/2.212, allocations: 78.22 kB / 0.7433 GB, free: 192 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.412e-05/2.212, allocations: 21 kB / 0.7433 GB, free: 192 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.0002537/2.213, allocations: 234.2 kB / 0.7435 GB, free: 191.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.161e-05/2.213, allocations: 64.19 kB / 0.7436 GB, free: 191.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/2.215, allocations: 2.128 MB / 0.7457 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/2.215, allocations: 2.109 kB / 0.7457 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/2.215, allocations: 0 / 0.7457 GB, free: 191.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001802/2.215, allocations: 197.1 kB / 0.7458 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.916e-05/2.215, allocations: 21.5 kB / 0.7459 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/2.215, allocations: 10.84 kB / 0.7459 GB, free: 191.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/2.215, allocations: 27.31 kB / 0.7459 GB, free: 191.3 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.001641/2.217, allocations: 2.365 MB / 0.7482 GB, free: 189.1 MB / 0.5919 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestThreeWayValve could not be translated