Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve.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.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") translateModel(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8256/0.8256, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003938/0.0003938, allocations: 11.91 kB / 237.7 MB, free: 1.832 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05289/0.0533, allocations: 31.34 MB / 269 MB, free: 7.121 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.TestSwitchValve): time 1.617/1.67, allocations: 295.7 MB / 0.5515 GB, free: 12.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4995/2.169, allocations: 186.8 MB / 0.7338 GB, free: 332 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002263/2.17, allocations: 3.844 kB / 0.7338 GB, free: 332 kB / 0.5919 GB [/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/SwitchValve.mo:37:3-39: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/SwitchValve.mo:40:3-42: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/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/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.0004767/2.17, allocations: 145.5 kB / 0.734 GB, free: 332 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003359/2.17, allocations: 189.9 kB / 0.7342 GB, free: 328 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.02779/2.198, allocations: 11.34 MB / 0.7452 GB, free: 92 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0008649/2.199, allocations: 0.6999 MB / 0.7459 GB, free: 92 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/2.199, allocations: 238.7 kB / 0.7462 GB, free: 60 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/2.2, allocations: 285.3 kB / 0.7464 GB, free: 60 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/2.2, allocations: 253.3 kB / 0.7467 GB, free: 56 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.75e-05/2.2, allocations: 39.81 kB / 0.7467 GB, free: 56 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03402/2.234, allocations: 20.11 MB / 0.7664 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001857/2.234, allocations: 97.48 kB / 0.7664 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004884/2.235, allocations: 280.1 kB / 0.7667 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02221/2.257, allocations: 9.937 MB / 0.7764 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/2.257, allocations: 0 / 0.7764 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.302e-06/2.257, allocations: 0 / 0.7764 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.127e-06/2.257, allocations: 4 kB / 0.7764 GB, free: 10.36 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.005232/2.262, allocations: 1.954 MB / 0.7783 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/2.262, allocations: 7.406 kB / 0.7783 GB, free: 9.094 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/2.263, allocations: 68.81 kB / 0.7784 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/2.263, allocations: 329 kB / 0.7787 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/2.263, allocations: 60.48 kB / 0.7788 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.455e-05/2.263, allocations: 42.59 kB / 0.7788 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006499/2.264, allocations: 0.5442 MB / 0.7793 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/2.264, allocations: 2.344 kB / 0.7793 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/2.264, allocations: 19.95 kB / 0.7794 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/2.264, allocations: 27.56 kB / 0.7794 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004436/2.264, allocations: 344 kB / 0.7797 GB, free: 8.48 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.03721/2.301, allocations: 19.47 MB / 0.7987 GB, free: 9.758 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007616/2.302, allocations: 327.9 kB / 0.799 GB, free: 9.562 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002915/2.303, allocations: 190.4 kB / 0.7992 GB, free: 9.461 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3133/2.616, allocations: 151.4 MB / 0.9471 GB, free: 3.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005853/2.616, allocations: 305.6 kB / 0.9473 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=71): time 3.136e-06/2.616, allocations: 4 kB / 0.9474 GB, free: 3.406 MB / 0.7794 GB Notification: Performance of matching and sorting (n=71): time 0.003383/2.62, allocations: 1.107 MB / 0.9484 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.988e-05/2.62, allocations: 163.2 kB / 0.9486 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/2.62, allocations: 349.6 kB / 0.9489 GB, free: 1.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/2.62, allocations: 29.7 kB / 0.9489 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001968/2.621, allocations: 232 kB / 0.9492 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001991/2.621, allocations: 234.4 kB / 0.9494 GB, free: 1.238 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/2.621, allocations: 97.89 kB / 0.9495 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000167/2.621, allocations: 354.8 kB / 0.9498 GB, free: 0.7812 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/2.621, allocations: 151.6 kB / 0.95 GB, free: 0.6328 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003221/2.622, allocations: 245.2 kB / 0.9502 GB, free: 376 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004195/2.626, allocations: 1.169 MB / 0.9513 GB, free: 15.16 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/2.626, allocations: 4 kB / 0.9513 GB, free: 15.15 MB / 0.795 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001117/2.627, allocations: 0.6493 MB / 0.952 GB, free: 14.5 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/2.627, allocations: 33.7 kB / 0.952 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/2.627, allocations: 4 kB / 0.952 GB, free: 14.46 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/2.63, allocations: 0.6512 MB / 0.9527 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/2.63, allocations: 31.52 kB / 0.9527 GB, free: 13.78 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/2.631, allocations: 0.9241 MB / 0.9536 GB, free: 12.83 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/2.631, allocations: 64.45 kB / 0.9536 GB, free: 12.77 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.402e-05/2.631, allocations: 16 kB / 0.9537 GB, free: 12.75 MB / 0.795 GB Warning: Assuming fixed start value for the following 1 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (perteDP1.C2.b,perteDP1.C1.a,perteDP2.C2.b,perteDP2.C1.a,SwitchValve.C2.b,SwitchValve.C1.a,PuitsP1.C.a,SourceP1.C.b,$PRE.pulse.T0,pulse.yL.signal,pulse.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 1 * 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 {(5,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0003084/2.632, allocations: 210.9 kB / 0.9539 GB, free: 12.54 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.333e-05/2.632, allocations: 43.44 kB / 0.9539 GB, free: 12.5 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/2.633, allocations: 1.139 MB / 0.955 GB, free: 11.29 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/2.633, allocations: 3.984 kB / 0.955 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/2.633, allocations: 0 / 0.955 GB, free: 11.28 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/2.634, allocations: 160.2 kB / 0.9552 GB, free: 11.11 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.051e-05/2.634, allocations: 15.84 kB / 0.9552 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/2.634, allocations: 17.2 kB / 0.9552 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/2.634, allocations: 20.2 kB / 0.9552 GB, free: 11.05 MB / 0.795 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(perteDP2.T, perteDP2.rho, perteDP2.pro.u, perteDP2.pro.s, perteDP2.pro.cp, perteDP2.pro.ddhp, perteDP2.pro.ddph, perteDP2.pro.duph, perteDP2.pro.duhp, perteDP2.pro.x) = $cse3 Variables: 1: $cse3.ddph:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse3.d:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse3.u:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse3.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse3.T:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse3.duhp:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse3.duph:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse3.s: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): perteDP1.deltaP = perteDP1.deltaPf + 9.80665 * perteDP1.rho * (perteDP1.z2 - perteDP1.z1) 2/2 (1): perteDP1.deltaPf = 0.5 * perteDP1.khi * $cse2 / (perteDP1.A ^ 2.0 * perteDP1.rho) 3/3 (1): $cse2 = ThermoSysPro.Functions.ThermoSquare(perteDP1.Q, perteDP1.eps) 4/4 (1): $cse4 = ThermoSysPro.Functions.ThermoSquare(perteDP1.Q, perteDP2.eps) 5/5 (1): perteDP2.deltaPf = 0.5 * perteDP2.khi * $cse4 / (perteDP2.A ^ 2.0 * perteDP2.rho) 6/6 (1): perteDP2.deltaP = perteDP2.deltaPf + 9.80665 * perteDP2.rho * (perteDP2.z2 - perteDP2.z1) 7/7 (1): SourceP1.P0 - perteDP2.C2.P = perteDP2.deltaP 8/8 (1): SwitchValve.deltaP = perteDP2.C2.P - SwitchValve.C2.P 9/9 (1): SwitchValve.Pm = 0.5 * (perteDP2.C2.P + SwitchValve.C2.P) 10/10 (10): $cse5 = ThermoSysPro.Properties.Fluid.Ph(SwitchValve.Pm, perteDP1.h, SwitchValve.mode, SwitchValve.fluid) 11/20 (1): 0.0 = if pulse.yL.signal then SwitchValve.deltaP + (-0.5) * SwitchValve.k * ThermoSysPro.Functions.ThermoSquare(perteDP1.Q, SwitchValve.eps) / SwitchValve.rho else perteDP1.Q - SwitchValve.Qmin 12/21 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(SwitchValve.T, SwitchValve.rho, SwitchValve.pro.u, SwitchValve.pro.s, SwitchValve.pro.cp, SwitchValve.pro.ddhp, SwitchValve.pro.ddph, SwitchValve.pro.duph, SwitchValve.pro.duhp, SwitchValve.pro.x) = $cse5 13/31 (1): SwitchValve.C2.P - PuitsP1.P0 = perteDP1.deltaP 14/32 (1): perteDP1.Pm = 0.5 * (SwitchValve.C2.P + PuitsP1.P0) 15/33 (10): $cse1 = ThermoSysPro.Properties.Fluid.Ph(perteDP1.Pm, perteDP1.h, perteDP1.mode, perteDP1.fluid) 16/43 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(perteDP1.T, perteDP1.rho, perteDP1.pro.u, perteDP1.pro.s, perteDP1.pro.cp, perteDP1.pro.ddhp, perteDP1.pro.ddph, perteDP1.pro.duph, perteDP1.pro.duhp, perteDP1.pro.x) = $cse1 17/53 (1): perteDP2.Pm = 0.5 * (SourceP1.P0 + perteDP2.C2.P) 18/54 (10): $cse3 = ThermoSysPro.Properties.Fluid.Ph(perteDP2.Pm, perteDP1.h, perteDP2.mode, perteDP2.fluid) 19/64 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(perteDP2.T, perteDP2.rho, perteDP2.pro.u, perteDP2.pro.s, perteDP2.pro.cp, perteDP2.pro.ddhp, perteDP2.pro.ddph, perteDP2.pro.duph, perteDP2.pro.duhp, perteDP2.pro.x) = $cse3 20/74 (1): 0.0 = if perteDP1.Q > 0.0 then perteDP1.h - perteDP2.C2.h_vol else perteDP1.h - SwitchValve.C2.h_vol 21/75 (1): 0.0 = if perteDP1.Q > 0.0 then perteDP1.h - SourceP1.h else perteDP1.h - perteDP2.C2.h_vol 22/76 (1): 0.0 = if perteDP1.Q > 0.0 then perteDP1.h - SwitchValve.C2.h_vol else perteDP1.h - PuitsP1.h Variables: 1: SwitchValve.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 2: perteDP1.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 3: perteDP2.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 4: perteDP2.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 5: perteDP2.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 6: perteDP2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 7: perteDP2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 8: perteDP2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 9: perteDP2.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 10: perteDP2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 11: perteDP2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 12: perteDP2.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 13: perteDP2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 14: $cse3.ddph:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse3.d:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse3.u:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse3.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse3.T:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse3.duhp:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse3.duph:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse3.s:VARIABLE(protected = true ) type: Real unreplaceable 24: perteDP2.Pm:VARIABLE(min = 0.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 25: perteDP1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 26: perteDP1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 27: perteDP1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 28: perteDP1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 29: $cse1.ddph:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse1.u:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse1.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse1.duph:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse1.duhp:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse1.d:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 39: perteDP1.Pm:VARIABLE(min = 0.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 40: perteDP1.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 41: SwitchValve.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 42: SwitchValve.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 43: SwitchValve.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 44: SwitchValve.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 45: SwitchValve.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 46: SwitchValve.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 47: SwitchValve.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 48: SwitchValve.deltaP:VARIABLE(unit = "Pa" ) "Singular pressure loss" type: Real 49: SwitchValve.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 50: SwitchValve.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 51: SwitchValve.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 52: $cse5.x:VARIABLE(protected = true ) type: Real unreplaceable 53: $cse5.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 54: $cse5.u:VARIABLE(protected = true ) type: Real unreplaceable 55: $cse5.s:VARIABLE(protected = true ) type: Real unreplaceable 56: $cse5.ddph:VARIABLE(protected = true ) type: Real unreplaceable 57: $cse5.d:VARIABLE(protected = true ) type: Real unreplaceable 58: $cse5.duph:VARIABLE(protected = true ) type: Real unreplaceable 59: $cse5.T:VARIABLE(protected = true ) type: Real unreplaceable 60: $cse5.cp:VARIABLE(protected = true ) type: Real unreplaceable 61: $cse5.duhp:VARIABLE(protected = true ) type: Real unreplaceable 62: SwitchValve.Pm:VARIABLE(min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 63: SwitchValve.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 64: perteDP2.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 65: perteDP2.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 66: perteDP2.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 67: $cse4:VARIABLE(protected = true ) type: Real unreplaceable 68: perteDP1.Q:VARIABLE(start = 100.0 unit = "kg/s" ) "Mass flow rate" type: Real 69: $cse2:VARIABLE(protected = true ) type: Real unreplaceable 70: perteDP1.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 71: perteDP1.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 72: perteDP1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 73: perteDP1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 74: perteDP1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 75: perteDP1.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 76: perteDP1.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.002177/2.636, allocations: 2.124 MB / 0.9573 GB, free: 8.523 MB / 0.795 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestSwitchValve could not be translated