Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.824/0.824, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003719, allocations: 21.55 kB / 237.8 MB, free: 1.773 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05897/0.05935, allocations: 31.35 MB / 269.1 MB, free: 7.043 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSwitchValve): time 1.616/1.676, allocations: 295.7 MB / 0.5516 GB, free: 12.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5492/2.225, allocations: 186.7 MB / 0.734 GB, free: 328 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002834/2.225, allocations: 4.125 kB / 0.734 GB, free: 328 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.0004019/2.226, allocations: 144.4 kB / 0.7341 GB, free: 328 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.0003088/2.226, allocations: 201.7 kB / 0.7343 GB, free: 324 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.02557/2.251, allocations: 11.33 MB / 0.7454 GB, free: 92 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000824/2.252, allocations: 0.7022 MB / 0.7461 GB, free: 88 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002622/2.253, allocations: 246.3 kB / 0.7463 GB, free: 52 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003253/2.253, allocations: 280.4 kB / 0.7466 GB, free: 52 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002492/2.253, allocations: 253 kB / 0.7468 GB, free: 52 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/2.253, allocations: 39.69 kB / 0.7469 GB, free: 52 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03227/2.285, allocations: 20.09 MB / 0.7665 GB, free: 14 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001569/2.286, allocations: 98.86 kB / 0.7666 GB, free: 13.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004231/2.286, allocations: 281.6 kB / 0.7669 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02082/2.307, allocations: 9.936 MB / 0.7766 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/2.307, allocations: 0 / 0.7766 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.444e-06/2.307, allocations: 0 / 0.7766 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.01e-05/2.307, allocations: 1.203 kB / 0.7766 GB, free: 10.29 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.005675/2.313, allocations: 1.96 MB / 0.7785 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/2.313, allocations: 7.469 kB / 0.7785 GB, free: 9.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/2.313, allocations: 65.66 kB / 0.7785 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003763/2.313, allocations: 325.1 kB / 0.7788 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.793e-05/2.313, allocations: 62.64 kB / 0.7789 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.386e-05/2.313, allocations: 39.16 kB / 0.7789 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006513/2.314, allocations: 0.5528 MB / 0.7795 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/2.314, allocations: 2.344 kB / 0.7795 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/2.314, allocations: 15.03 kB / 0.7795 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.388e-05/2.314, allocations: 27.53 kB / 0.7795 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000435/2.314, allocations: 344.5 kB / 0.7799 GB, free: 8.402 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.0369/2.351, allocations: 19.47 MB / 0.7989 GB, free: 9.719 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007153/2.352, allocations: 328.4 kB / 0.7992 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/2.352, allocations: 193.8 kB / 0.7994 GB, free: 9.418 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3072/2.66, allocations: 151.4 MB / 0.9472 GB, free: 3.789 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005023/2.66, allocations: 297.1 kB / 0.9475 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=71): time 3.106e-06/2.66, allocations: 0 / 0.9475 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of matching and sorting (n=71): time 0.003131/2.663, allocations: 1.107 MB / 0.9486 GB, free: 2.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.305e-05/2.663, allocations: 172.3 kB / 0.9487 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/2.664, allocations: 345.6 kB / 0.9491 GB, free: 1.793 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/2.664, allocations: 33.7 kB / 0.9491 GB, free: 1.754 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001608/2.664, allocations: 227.5 kB / 0.9493 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/2.664, allocations: 231.9 kB / 0.9495 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/2.664, allocations: 102 kB / 0.9496 GB, free: 1.199 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001214/2.664, allocations: 354.8 kB / 0.95 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/2.665, allocations: 153.3 kB / 0.9501 GB, free: 0.6953 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002848/2.665, allocations: 239.4 kB / 0.9503 GB, free: 444 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004221/2.669, allocations: 1.167 MB / 0.9515 GB, free: 15.22 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/2.669, allocations: 0 / 0.9515 GB, free: 15.22 MB / 0.795 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001017/2.67, allocations: 0.6517 MB / 0.9521 GB, free: 14.57 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/2.67, allocations: 37.7 kB / 0.9521 GB, free: 14.53 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/2.67, allocations: 6.234 kB / 0.9522 GB, free: 14.52 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/2.673, allocations: 0.6529 MB / 0.9528 GB, free: 13.87 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/2.673, allocations: 25.41 kB / 0.9528 GB, free: 13.85 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001038/2.674, allocations: 0.9309 MB / 0.9537 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/2.674, allocations: 59.33 kB / 0.9538 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/2.674, allocations: 16 kB / 0.9538 GB, free: 12.82 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.0002684/2.675, allocations: 206.5 kB / 0.954 GB, free: 12.61 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.504e-05/2.675, allocations: 43.44 kB / 0.954 GB, free: 12.57 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/2.676, allocations: 1.134 MB / 0.9551 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/2.676, allocations: 1.203 kB / 0.9551 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/2.676, allocations: 0 / 0.9551 GB, free: 11.36 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/2.677, allocations: 164.2 kB / 0.9553 GB, free: 11.18 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.006e-05/2.677, allocations: 24.58 kB / 0.9553 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/2.677, allocations: 6.25 kB / 0.9553 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.761e-05/2.677, allocations: 28.14 kB / 0.9554 GB, free: 11.13 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.001997/2.679, allocations: 2.129 MB / 0.9574 GB, free: 8.59 MB / 0.795 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestSwitchValve could not be translated