Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1.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.Fluid.Examples.SimpleExamples.TestStodolaTurbine1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1") translateModel(ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8156/0.8156, allocations: 150.9 MB / 167.2 MB, free: 14.51 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 17.78 kB / 237.8 MB, free: 1.781 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05848/0.05884, allocations: 31.35 MB / 269.1 MB, free: 7.047 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.Fluid.Examples.SimpleExamples.TestStodolaTurbine1): time 1.652/1.711, allocations: 297.1 MB / 0.553 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.5195/2.231, allocations: 198.3 MB / 0.7466 GB, free: 14.77 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005698/2.231, allocations: 16 kB / 0.7466 GB, free: 14.77 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/StodolaTurbine.mo:65:3-66:54:writable] Warning: Connector Ce is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/StodolaTurbine.mo:67:3-68:52:writable] Warning: Connector Cs is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/StodolaTurbine.mo:72:3-76:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/CentrifugalPump.mo:120:3-121:67:writable] Warning: Connector C1 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/CentrifugalPump.mo:122:3-123:65:writable] Warning: Connector C2 is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/Machines/CentrifugalPump.mo:124:3-128:23:writable] Warning: Connector M is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/Machines/Shaft.mo:13:3-15:47:writable] Warning: Connector C2 is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/ElectroMechanics/Machines/Shaft.mo:16:3-18:49:writable] Warning: Connector C1 is not balanced: The number of potential variables (2) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SinkP.mo:46:3-47:67:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Fluid/BoundaryConditions/SourceP.mo:58:3-59:65:writable] Warning: Connector C is not balanced: The number of potential variables (9) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0007307/2.232, allocations: 250.6 kB / 0.7468 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0007455/2.233, allocations: 353.8 kB / 0.7472 GB, free: 14.76 MB / 0.6075 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1445:9-1445:35:writable] Warning: h 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_Ps.mo:71:3-71: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_Ps.mo:71:3-71: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/Fluid/derDensity_derP_derh.mo:63:5-63:84:writable] Warning: T 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.04045/2.273, allocations: 14.88 MB / 0.7617 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001981/2.275, allocations: 1.249 MB / 0.7629 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000908/2.276, allocations: 0.5494 MB / 0.7635 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009998/2.277, allocations: 0.5071 MB / 0.764 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008867/2.278, allocations: 0.5043 MB / 0.7645 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002824/2.278, allocations: 91.5 kB / 0.7645 GB, free: 13.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04521/2.324, allocations: 26.1 MB / 0.79 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003772/2.324, allocations: 329.5 kB / 0.7903 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007292/2.325, allocations: 0.6233 MB / 0.7909 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0326/2.357, allocations: 13.38 MB / 0.804 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/2.357, allocations: 0 / 0.804 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.854e-06/2.357, allocations: 0 / 0.804 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.802e-05/2.357, allocations: 0 / 0.804 GB, free: 14.61 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.008387/2.366, allocations: 3.15 MB / 0.8071 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/2.366, allocations: 12.03 kB / 0.8071 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002357/2.366, allocations: 162 kB / 0.8073 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009879/2.367, allocations: 0.6684 MB / 0.8079 GB, free: 10.53 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/2.367, allocations: 129.4 kB / 0.808 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001295/2.367, allocations: 88 kB / 0.8081 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/2.369, allocations: 1.008 MB / 0.8091 GB, free: 9.238 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.839e-05/2.369, allocations: 4 kB / 0.8091 GB, free: 9.234 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.489e-05/2.369, allocations: 40 kB / 0.8091 GB, free: 9.195 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.902e-05/2.369, allocations: 27.98 kB / 0.8092 GB, free: 9.168 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001667/2.371, allocations: 0.7962 MB / 0.8099 GB, free: 8.371 MB / 0.6231 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.1517/2.523, allocations: 66.4 MB / 0.8748 GB, free: 308 kB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002044/2.525, allocations: 0.7006 MB / 0.8755 GB, free: 15.57 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005923/2.525, allocations: 282 kB / 0.8757 GB, free: 15.3 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7002/3.226, allocations: 159 MB / 1.031 GB, free: 231.7 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/3.226, allocations: 39.72 kB / 1.031 GB, free: 231.7 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=78): time 3.467e-06/3.226, allocations: 0 / 1.031 GB, free: 231.7 MB / 0.8419 GB Notification: Performance of matching and sorting (n=78): time 0.008414/3.234, allocations: 2.283 MB / 1.033 GB, free: 231.3 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.652e-05/3.234, allocations: 61.2 kB / 1.033 GB, free: 231.2 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001695/3.236, allocations: 1.122 MB / 1.034 GB, free: 231.1 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.707e-05/3.236, allocations: 33.95 kB / 1.034 GB, free: 231 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004931/3.237, allocations: 0.63 MB / 1.035 GB, free: 230.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001819/3.237, allocations: 266.5 kB / 1.035 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002773/3.237, allocations: 182.2 kB / 1.036 GB, free: 230.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.046e-05/3.237, allocations: 344.6 kB / 1.036 GB, free: 230.4 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006359/3.238, allocations: 296.6 kB / 1.036 GB, free: 230.4 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007663/3.239, allocations: 0.5183 MB / 1.037 GB, free: 230.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/3.24, allocations: 0.814 MB / 1.037 GB, free: 229.8 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/3.24, allocations: 7.25 kB / 1.037 GB, free: 229.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003477/3.243, allocations: 1.383 MB / 1.039 GB, free: 229.7 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/3.243, allocations: 9.594 kB / 1.039 GB, free: 229.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.014e-05/3.243, allocations: 9.688 kB / 1.039 GB, free: 229.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007964/3.251, allocations: 1.348 MB / 1.04 GB, free: 229.6 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004441/3.252, allocations: 108.4 kB / 1.04 GB, free: 229.6 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/3.254, allocations: 2.812 MB / 1.043 GB, free: 227.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008732/3.255, allocations: 128.5 kB / 1.043 GB, free: 227.5 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.494e-05/3.255, allocations: 36.86 kB / 1.043 GB, free: 227.5 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 12 (sourceP1.fluid1,sourceP1.C.ftype,sourceP.C.ftype,stodolaTurbine.fluid,puitsP.fluid,DynamicCentrifugalPump1.fluid,puitsP1.fluid,sourceP.fluid1,DynamicCentrifugalPump1.C2.diff_on_1,sourceP1.C.diff_on_2,stodolaTurbine.Cs.diff_on_1,sourceP.C.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(3,21), (1,2), (1,2), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005238/3.256, allocations: 316.5 kB / 1.043 GB, free: 227.3 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002199/3.256, allocations: 125.5 kB / 1.044 GB, free: 227.3 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002518/3.259, allocations: 1.418 MB / 1.045 GB, free: 227.1 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/3.259, allocations: 2.484 kB / 1.045 GB, free: 227.1 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/3.259, allocations: 0 / 1.045 GB, free: 227.1 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003731/3.259, allocations: 252.1 kB / 1.045 GB, free: 226.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001394/3.259, allocations: 13.84 kB / 1.045 GB, free: 226.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004788/3.26, allocations: 34.75 kB / 1.045 GB, free: 226.9 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.933e-05/3.26, allocations: 31.83 kB / 1.045 GB, free: 226.9 MB / 0.8419 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(stodolaTurbine.Te, stodolaTurbine.proe.d, stodolaTurbine.proe.u, stodolaTurbine.proe.s, stodolaTurbine.proe.cp, stodolaTurbine.proe.ddhp, stodolaTurbine.proe.ddph, stodolaTurbine.proe.duph, stodolaTurbine.proe.duhp, stodolaTurbine.proe.x) = $cse8 Variables: 1: stodolaTurbine.proe.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 2: stodolaTurbine.proe.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 3: stodolaTurbine.proe.d:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Density" type: Real 4: stodolaTurbine.proe.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 5: stodolaTurbine.proe.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 6: stodolaTurbine.proe.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 7: stodolaTurbine.Te:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Temperature at the inlet" type: Real 8: stodolaTurbine.proe.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 9: stodolaTurbine.proe.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 10: sourceP.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Fluid mass flow rate" 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): sourceP.C.h = if sourceP.Q > 0.0 then 3e6 else puitsP.h 2/2 (10): $cse8 = ThermoSysPro.Properties.Fluid.Ph(sourceP.P0, sourceP.C.h, stodolaTurbine.mode_e, stodolaTurbine.fluid) 3/12 (1): sourceP.Q = if noEvent(sourceP.P0 > stodolaTurbine.pcrit) or noEvent(stodolaTurbine.Te > stodolaTurbine.Tcrit) then sqrt((sourceP.P0 ^ 2.0 - puitsP.P0 ^ 2.0) / (stodolaTurbine.Cst * stodolaTurbine.Te)) else sqrt((sourceP.P0 ^ 2.0 - puitsP.P0 ^ 2.0) / (stodolaTurbine.Cst * stodolaTurbine.Te * stodolaTurbine.proe.x)) 4/13 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(stodolaTurbine.Te, stodolaTurbine.proe.d, stodolaTurbine.proe.u, stodolaTurbine.proe.s, stodolaTurbine.proe.cp, stodolaTurbine.proe.ddhp, stodolaTurbine.proe.ddph, stodolaTurbine.proe.duph, stodolaTurbine.proe.duhp, stodolaTurbine.proe.x) = $cse8 Variables: 1: stodolaTurbine.proe.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 2: stodolaTurbine.proe.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 3: stodolaTurbine.proe.d:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Density" type: Real 4: stodolaTurbine.proe.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 5: stodolaTurbine.proe.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 6: stodolaTurbine.proe.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 7: stodolaTurbine.Te:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Temperature at the inlet" type: Real 8: stodolaTurbine.proe.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 9: stodolaTurbine.proe.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 10: sourceP.Q:VARIABLE(start = 500.0 unit = "kg/s" ) "Fluid mass flow rate" type: Real 11: stodolaTurbine.proe.x:VARIABLE(min = 0.0 max = 1.0 start = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 12: $cse8.cp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse8.duhp:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse8.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse8.x:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse8.duph:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse8.ddph:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse8.u:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse8.d:VARIABLE(protected = true ) type: Real unreplaceable 22: sourceP.C.h:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Specific enthalpy of the fluid crossing the boundary of the control volume" 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.0008713/3.261, allocations: 486.4 kB / 1.046 GB, free: 226.7 MB / 0.8419 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Fluid.Examples.SimpleExamples.TestStodolaTurbine1 could not be translated