Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve.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.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") translateModel(ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.82/0.82, allocations: 150.9 MB / 167.2 MB, free: 14.53 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003408/0.0003408, allocations: 19.95 kB / 237.8 MB, free: 1.777 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05334/0.0537, allocations: 31.34 MB / 269.1 MB, free: 7.035 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.TestIdealSwitchValve): time 1.616/1.67, allocations: 295.5 MB / 0.5514 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5072/2.177, allocations: 186.7 MB / 0.7337 GB, free: 416 kB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/2.177, allocations: 4.031 kB / 0.7338 GB, free: 416 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/IdealSwitchValve.mo:23:3-25: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/IdealSwitchValve.mo:26:3-28: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.0005326/2.178, allocations: 140.2 kB / 0.7339 GB, free: 416 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.000502/2.178, allocations: 163.9 kB / 0.734 GB, free: 416 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.02607/2.205, allocations: 11.33 MB / 0.7451 GB, free: 184 kB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007493/2.205, allocations: 0.6269 MB / 0.7457 GB, free: 180 kB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/2.206, allocations: 227.8 kB / 0.7459 GB, free: 148 kB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002712/2.206, allocations: 255.5 kB / 0.7462 GB, free: 148 kB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/2.206, allocations: 228.2 kB / 0.7464 GB, free: 148 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/2.206, allocations: 37.38 kB / 0.7464 GB, free: 148 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03363/2.24, allocations: 20.31 MB / 0.7663 GB, free: 14.88 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001515/2.24, allocations: 94.94 kB / 0.7664 GB, free: 14.87 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003822/2.24, allocations: 254.3 kB / 0.7666 GB, free: 14.86 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.02248/2.263, allocations: 9.888 MB / 0.7763 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/2.263, allocations: 0 / 0.7763 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.372e-06/2.263, allocations: 0 / 0.7763 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.777e-06/2.263, allocations: 0 / 0.7763 GB, free: 11.19 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.00511/2.268, allocations: 1.911 MB / 0.7781 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/2.268, allocations: 12.09 kB / 0.7781 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/2.268, allocations: 52.94 kB / 0.7782 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/2.268, allocations: 316.1 kB / 0.7785 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.888e-05/2.269, allocations: 58.27 kB / 0.7785 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/2.269, allocations: 39.59 kB / 0.7786 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006577/2.269, allocations: 0.5104 MB / 0.7791 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/2.269, allocations: 5.062 kB / 0.7791 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.225e-05/2.269, allocations: 16.31 kB / 0.7791 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/2.269, allocations: 23.86 kB / 0.7791 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004215/2.27, allocations: 311.4 kB / 0.7794 GB, free: 9.352 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.03624/2.306, allocations: 19.31 MB / 0.7983 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006482/2.307, allocations: 304.6 kB / 0.7986 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/2.307, allocations: 168.9 kB / 0.7987 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.296/2.603, allocations: 151.4 MB / 0.9465 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004395/2.603, allocations: 267.5 kB / 0.9468 GB, free: 4.152 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=60): time 1.954e-06/2.603, allocations: 1.203 kB / 0.9468 GB, free: 4.152 MB / 0.7794 GB Notification: Performance of matching and sorting (n=60): time 0.002459/2.606, allocations: 0.9326 MB / 0.9477 GB, free: 3.199 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/2.606, allocations: 160.5 kB / 0.9479 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003729/2.606, allocations: 349.5 kB / 0.9482 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/2.606, allocations: 29.7 kB / 0.9482 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/2.607, allocations: 220.7 kB / 0.9484 GB, free: 2.406 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/2.607, allocations: 192.7 kB / 0.9486 GB, free: 2.223 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/2.607, allocations: 89.58 kB / 0.9487 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001451/2.607, allocations: 358.9 kB / 0.949 GB, free: 1.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002162/2.607, allocations: 132.3 kB / 0.9492 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/2.607, allocations: 225 kB / 0.9494 GB, free: 1.391 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003258/2.611, allocations: 1.032 MB / 0.9504 GB, free: 328 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/2.611, allocations: 4 kB / 0.9504 GB, free: 324 kB / 0.7794 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0008655/2.612, allocations: 0.5842 MB / 0.951 GB, free: 15.73 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/2.612, allocations: 45.94 kB / 0.951 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/2.612, allocations: 0 / 0.951 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001721/2.613, allocations: 475.5 kB / 0.9515 GB, free: 15.22 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/2.614, allocations: 26.33 kB / 0.9515 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008363/2.614, allocations: 0.8374 MB / 0.9523 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/2.615, allocations: 55.42 kB / 0.9524 GB, free: 14.28 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/2.615, allocations: 16 kB / 0.9524 GB, free: 14.27 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,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002377/2.615, allocations: 208.6 kB / 0.9526 GB, free: 14.05 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/2.615, allocations: 43.44 kB / 0.9526 GB, free: 14.01 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/2.616, allocations: 0.9275 MB / 0.9535 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/2.616, allocations: 3.984 kB / 0.9535 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/2.616, allocations: 0 / 0.9535 GB, free: 13.01 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/2.617, allocations: 148.4 kB / 0.9537 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.291e-05/2.617, allocations: 15.92 kB / 0.9537 GB, free: 12.83 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/2.617, allocations: 8 kB / 0.9537 GB, free: 12.82 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.522e-05/2.617, allocations: 21.17 kB / 0.9537 GB, free: 12.8 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: perteDP2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 2: perteDP2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 3: perteDP2.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 4: perteDP2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 5: perteDP2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 6: perteDP2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 7: perteDP2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 8: perteDP2.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" 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.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" 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): perteDP1.deltaP = perteDP1.deltaPf + 9.80665 * perteDP1.rho * (perteDP1.z2 - perteDP1.z1) 2/2 (1): SwitchValve.C2.P - PuitsP1.P0 = perteDP1.deltaP 3/3 (1): SwitchValve.deltaP = perteDP2.C2.P - SwitchValve.C2.P 4/4 (1): SourceP1.P0 - perteDP2.C2.P = perteDP2.deltaP 5/5 (1): perteDP2.deltaP = perteDP2.deltaPf + 9.80665 * perteDP2.rho * (perteDP2.z2 - perteDP2.z1) 6/6 (1): perteDP2.deltaPf = 0.5 * perteDP2.khi * $cse4 / (perteDP2.A ^ 2.0 * perteDP2.rho) 7/7 (1): $cse4 = ThermoSysPro.Functions.ThermoSquare(perteDP1.Q, perteDP2.eps) 8/8 (1): $cse2 = ThermoSysPro.Functions.ThermoSquare(perteDP1.Q, perteDP1.eps) 9/9 (1): perteDP1.deltaPf = 0.5 * perteDP1.khi * $cse2 / (perteDP1.A ^ 2.0 * perteDP1.rho) 10/10 (1): 0.0 = if perteDP1.Q > 0.0 then perteDP1.h - perteDP2.C2.h_vol else perteDP1.h - SwitchValve.C2.h_vol 11/11 (1): 0.0 = if perteDP1.Q > 0.0 then perteDP1.h - SwitchValve.C2.h_vol else perteDP1.h - PuitsP1.h 12/12 (10): $cse1 = ThermoSysPro.Properties.Fluid.Ph(perteDP1.Pm, perteDP1.h, perteDP1.mode, perteDP1.fluid) 13/22 (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 14/32 (10): $cse3 = ThermoSysPro.Properties.Fluid.Ph(perteDP2.Pm, perteDP1.h, perteDP2.mode, perteDP2.fluid) 15/42 (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 16/52 (1): 0.0 = if perteDP1.Q > 0.0 then perteDP1.h - SourceP1.h else perteDP1.h - perteDP2.C2.h_vol 17/53 (1): 0.0 = if pulse.yL.signal then SwitchValve.deltaP else perteDP1.Q - SwitchValve.Qmin 18/54 (1): perteDP2.Pm = 0.5 * (SourceP1.P0 + perteDP2.C2.P) 19/55 (1): perteDP1.Pm = 0.5 * (SwitchValve.C2.P + PuitsP1.P0) Variables: 1: perteDP1.Pm:VARIABLE(min = 0.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 2: perteDP2.Pm:VARIABLE(min = 0.0 unit = "Pa" nominal = 1e5 ) "Fluid average pressure" type: Real 3: SwitchValve.deltaP:VARIABLE(unit = "Pa" ) "Pressure difference between the inlet and the outlet" type: Real 4: perteDP2.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 5: perteDP2.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 6: perteDP2.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 7: perteDP2.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 8: perteDP2.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 9: perteDP2.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 10: perteDP2.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 11: perteDP2.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" 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.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 14: perteDP2.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 15: $cse3.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse3.duph:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse3.s:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse3.T:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse3.duhp:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse3.ddph:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse3.u:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse3.d:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 25: perteDP1.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 26: perteDP1.pro.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 27: perteDP1.T:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 28: perteDP1.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 29: $cse1.duhp:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse1.ddph:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse1.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse1.d:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse1.duph:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse1.u:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 39: perteDP1.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 40: SwitchValve.C2.h_vol:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy in the control volume" type: Real 41: perteDP1.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 42: $cse2:VARIABLE(protected = true ) type: Real unreplaceable 43: perteDP1.Q:VARIABLE(start = 100.0 unit = "kg/s" ) "Mass flow rate" type: Real 44: $cse4:VARIABLE(protected = true ) type: Real unreplaceable 45: perteDP2.deltaPf:VARIABLE(unit = "Pa" ) "Friction pressure loss" type: Real 46: perteDP2.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 47: perteDP2.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 48: SwitchValve.C2.P:VARIABLE(flow=false min = 0.0 start = 1e5 unit = "Pa" nominal = 1e5 ) "Fluid pressure in the control volume" type: Real 49: perteDP1.deltaP:VARIABLE(unit = "Pa" ) "Total pressure loss" type: Real 50: perteDP1.rho:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 51: perteDP1.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 52: perteDP1.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 53: perteDP1.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 54: perteDP1.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 55: perteDP1.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" 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.001466/2.618, allocations: 1.385 MB / 0.9551 GB, free: 11.22 MB / 0.795 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestIdealSwitchValve could not be translated