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.8135/0.8135, allocations: 150.9 MB / 167.2 MB, free: 14.54 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003392, allocations: 17.08 kB / 237.7 MB, free: 1.789 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05033/0.05068, allocations: 31.35 MB / 269.1 MB, free: 7.09 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.642/1.693, allocations: 295.8 MB / 0.5516 GB, free: 12.17 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4984/2.191, allocations: 186.7 MB / 0.734 GB, free: 360 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002767/2.192, allocations: 7.219 kB / 0.734 GB, free: 356 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.0004628/2.192, allocations: 165.5 kB / 0.7342 GB, free: 356 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000361/2.193, allocations: 222.3 kB / 0.7344 GB, free: 356 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.02755/2.22, allocations: 11.53 MB / 0.7456 GB, free: 124 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.001069/2.221, allocations: 0.7028 MB / 0.7463 GB, free: 120 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003047/2.222, allocations: 251.2 kB / 0.7466 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003721/2.222, allocations: 282.2 kB / 0.7468 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/2.222, allocations: 248.3 kB / 0.7471 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.411e-05/2.222, allocations: 39.12 kB / 0.7471 GB, free: 84 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0361/2.258, allocations: 20.1 MB / 0.7667 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001874/2.259, allocations: 100.8 kB / 0.7668 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004497/2.259, allocations: 279.3 kB / 0.7671 GB, free: 14.04 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02782/2.287, allocations: 9.963 MB / 0.7768 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/2.287, allocations: 0 / 0.7768 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.234e-06/2.287, allocations: 0 / 0.7768 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.226e-05/2.287, allocations: 0 / 0.7768 GB, free: 10.34 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.006973/2.294, allocations: 2.034 MB / 0.7788 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.241e-05/2.294, allocations: 10.78 kB / 0.7788 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/2.294, allocations: 63.08 kB / 0.7789 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005652/2.295, allocations: 330.5 kB / 0.7792 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.799e-05/2.295, allocations: 57.8 kB / 0.7792 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.27e-05/2.295, allocations: 43.59 kB / 0.7793 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/2.296, allocations: 0.5499 MB / 0.7798 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/2.296, allocations: 6.344 kB / 0.7798 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/2.296, allocations: 15.03 kB / 0.7798 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.522e-05/2.296, allocations: 24.94 kB / 0.7799 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005498/2.297, allocations: 345.5 kB / 0.7802 GB, free: 8.367 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.0386/2.335, allocations: 19.49 MB / 0.7992 GB, free: 9.598 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007528/2.336, allocations: 332.2 kB / 0.7995 GB, free: 9.398 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/2.336, allocations: 191.6 kB / 0.7997 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3075/2.644, allocations: 151.4 MB / 0.9476 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006314/2.645, allocations: 303.4 kB / 0.9478 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=71): time 4.598e-06/2.645, allocations: 0 / 0.9478 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of matching and sorting (n=71): time 0.003295/2.648, allocations: 1.113 MB / 0.9489 GB, free: 2.027 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/2.648, allocations: 172.4 kB / 0.9491 GB, free: 1.824 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004698/2.648, allocations: 350.7 kB / 0.9494 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/2.649, allocations: 29.7 kB / 0.9495 GB, free: 1.441 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/2.649, allocations: 237.1 kB / 0.9497 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/2.649, allocations: 235.4 kB / 0.9499 GB, free: 0.9805 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/2.649, allocations: 103.3 kB / 0.95 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001382/2.649, allocations: 358.8 kB / 0.9504 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/2.65, allocations: 145.3 kB / 0.9505 GB, free: 380 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002868/2.65, allocations: 251.6 kB / 0.9507 GB, free: 104 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003995/2.654, allocations: 1.167 MB / 0.9519 GB, free: 14.89 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/2.654, allocations: 0 / 0.9519 GB, free: 14.89 MB / 0.795 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001074/2.655, allocations: 0.6599 MB / 0.9525 GB, free: 14.23 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.143e-05/2.655, allocations: 33.7 kB / 0.9525 GB, free: 14.19 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/2.655, allocations: 4.75 kB / 0.9526 GB, free: 14.18 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002396/2.657, allocations: 0.6436 MB / 0.9532 GB, free: 13.54 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/2.658, allocations: 28.39 kB / 0.9532 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/2.659, allocations: 0.9323 MB / 0.9541 GB, free: 12.56 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003214/2.659, allocations: 59.56 kB / 0.9542 GB, free: 12.5 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.809e-05/2.659, allocations: 16.69 kB / 0.9542 GB, free: 12.49 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.0003174/2.659, allocations: 218.4 kB / 0.9544 GB, free: 12.27 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/2.659, allocations: 51.67 kB / 0.9545 GB, free: 12.21 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/2.661, allocations: 1.128 MB / 0.9556 GB, free: 11.02 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/2.661, allocations: 4 kB / 0.9556 GB, free: 11.01 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/2.661, allocations: 0 / 0.9556 GB, free: 11.01 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/2.661, allocations: 172.4 kB / 0.9557 GB, free: 10.82 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.04e-05/2.661, allocations: 15.05 kB / 0.9557 GB, free: 10.81 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/2.662, allocations: 11.98 kB / 0.9557 GB, free: 10.8 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.018e-05/2.662, allocations: 25.3 kB / 0.9558 GB, free: 10.78 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.002108/2.664, allocations: 2.114 MB / 0.9578 GB, free: 8.25 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