Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss.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.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8415/0.8415, allocations: 150.9 MB / 167.2 MB, free: 14.5 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 17.73 kB / 237.8 MB, free: 1.758 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05666/0.05702, 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.TestSingularPressureLoss): time 1.624/1.681, allocations: 294.7 MB / 0.5506 GB, free: 13.12 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0398/1.721, allocations: 34.42 MB / 0.5842 GB, free: 10.56 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002705/1.722, allocations: 4 kB / 0.5842 GB, free: 10.56 MB / 478.1 MB [/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/SingularPressureLoss.mo:25:3-27:16: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/SingularPressureLoss.mo:28:3-29:52: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.0003574/1.722, allocations: 107.3 kB / 0.5843 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/1.722, allocations: 99.17 kB / 0.5844 GB, free: 10.36 MB / 478.1 MB [/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.02374/1.746, allocations: 9.561 MB / 0.5937 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/1.746, allocations: 330.5 kB / 0.594 GB, free: 460 kB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/1.747, allocations: 116.5 kB / 0.5941 GB, free: 344 kB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/1.747, allocations: 143.4 kB / 0.5943 GB, free: 200 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/1.747, allocations: 107.4 kB / 0.5944 GB, free: 92 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.838e-05/1.747, allocations: 16 kB / 0.5944 GB, free: 76 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02854/1.775, allocations: 17.88 MB / 0.6119 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.868e-05/1.776, allocations: 39.86 kB / 0.6119 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001737/1.776, allocations: 131.3 kB / 0.612 GB, free: 14 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01832/1.794, allocations: 8.402 MB / 0.6202 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/1.794, allocations: 0 / 0.6202 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.923e-06/1.794, allocations: 0 / 0.6202 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.107e-06/1.794, allocations: 0 / 0.6202 GB, free: 5.578 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.00372/1.798, allocations: 1.423 MB / 0.6216 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/1.798, allocations: 8.031 kB / 0.6216 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/1.798, allocations: 39.55 kB / 0.6217 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002328/1.798, allocations: 219.7 kB / 0.6219 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/1.798, allocations: 12.44 kB / 0.6219 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/1.798, allocations: 20 kB / 0.6219 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/1.799, allocations: 290.7 kB / 0.6222 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/1.799, allocations: 0 / 0.6222 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.035e-05/1.799, allocations: 8 kB / 0.6222 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/1.799, allocations: 8 kB / 0.6222 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000246/1.799, allocations: 168.3 kB / 0.6224 GB, free: 3.285 MB / 0.4981 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.03799/1.837, allocations: 18.1 MB / 0.64 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/1.837, allocations: 130.6 kB / 0.6402 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/1.838, allocations: 85.14 kB / 0.6402 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3763/2.214, allocations: 77.73 MB / 0.7161 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/2.214, allocations: 31.97 kB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 3.266e-06/2.214, allocations: 3.281 kB / 0.7162 GB, free: 212.8 MB / 0.5919 GB Notification: Performance of matching and sorting (n=32): time 0.0009075/2.215, allocations: 398.4 kB / 0.7166 GB, free: 212.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/2.215, allocations: 52.34 kB / 0.7166 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/2.215, allocations: 207.2 kB / 0.7168 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.263e-05/2.215, allocations: 27.02 kB / 0.7168 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/2.215, allocations: 152.3 kB / 0.717 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.584e-05/2.215, allocations: 96.16 kB / 0.7171 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.367e-05/2.215, allocations: 50.23 kB / 0.7171 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.959e-05/2.215, allocations: 333.3 kB / 0.7174 GB, free: 212 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/2.216, allocations: 71.83 kB / 0.7175 GB, free: 212 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/2.216, allocations: 112.5 kB / 0.7176 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002433/2.216, allocations: 196.8 kB / 0.7178 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/2.216, allocations: 2.078 kB / 0.7178 GB, free: 211.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003975/2.216, allocations: 282.5 kB / 0.7181 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/2.216, allocations: 4.781 kB / 0.7181 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/2.216, allocations: 2.375 kB / 0.7181 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009055/2.217, allocations: 140.9 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.301e-05/2.217, allocations: 10.78 kB / 0.7182 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004933/2.218, allocations: 0.6163 MB / 0.7188 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/2.218, allocations: 28.88 kB / 0.7188 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/2.218, allocations: 4.75 kB / 0.7189 GB, free: 211.3 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 (singularPressureLoss.C2.b,singularPressureLoss.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001132/2.218, allocations: 142.5 kB / 0.719 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.829e-05/2.218, allocations: 19.53 kB / 0.719 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006045/2.219, allocations: 0.5717 MB / 0.7196 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/2.219, allocations: 3.156 kB / 0.7196 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/2.219, allocations: 0 / 0.7196 GB, free: 210.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.923e-05/2.219, allocations: 105.2 kB / 0.7197 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.326e-05/2.219, allocations: 4 kB / 0.7197 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.331e-05/2.219, allocations: 0 / 0.7197 GB, free: 210.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/2.219, allocations: 6.531 kB / 0.7197 GB, free: 210.8 MB / 0.5919 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(singularPressureLoss.T, singularPressureLoss.rho, singularPressureLoss.pro.u, singularPressureLoss.pro.s, singularPressureLoss.pro.cp, singularPressureLoss.pro.ddhp, singularPressureLoss.pro.ddph, singularPressureLoss.pro.duph, singularPressureLoss.pro.duhp, singularPressureLoss.pro.x) = $cse1 Variables: 1: singularPressureLoss.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 2: singularPressureLoss.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 3: singularPressureLoss.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 4: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse1.u:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse1.duhp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse1.ddph:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse1.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse1.T: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): singularPressureLoss.deltaP = singularPressureLoss.K * $cse2 / singularPressureLoss.rho 2/2 (1): $cse2 = ThermoSysPro.Functions.ThermoSquare(singularPressureLoss.Q, singularPressureLoss.eps) 3/3 (1): 0.0 = if singularPressureLoss.Q > 0.0 then singularPressureLoss.h - SourceP1.h else singularPressureLoss.h - PuitsP1.h 4/4 (10): $cse1 = ThermoSysPro.Properties.Fluid.Ph(singularPressureLoss.Pm, singularPressureLoss.h, singularPressureLoss.mode, singularPressureLoss.fluid) 5/14 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(singularPressureLoss.T, singularPressureLoss.rho, singularPressureLoss.pro.u, singularPressureLoss.pro.s, singularPressureLoss.pro.cp, singularPressureLoss.pro.ddhp, singularPressureLoss.pro.ddph, singularPressureLoss.pro.duph, singularPressureLoss.pro.duhp, singularPressureLoss.pro.x) = $cse1 Variables: 1: singularPressureLoss.pro.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 2: singularPressureLoss.T:VARIABLE(min = 200.0 max = 6000.0 start = 290.0 unit = "K" nominal = 300.0 ) "Fluid temperature" type: Real 3: singularPressureLoss.pro.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 4: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse1.u:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse1.duhp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse1.ddph:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse1.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse1.duph:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse1.d:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 14: singularPressureLoss.h:VARIABLE(start = 1e5 unit = "J/kg" ) "Fluid specific enthalpy" type: Real 15: singularPressureLoss.Q:VARIABLE(start = 100.0 unit = "kg/s" ) "Mass flow rate" type: Real 16: $cse2:VARIABLE(protected = true ) type: Real unreplaceable 17: singularPressureLoss.rho:VARIABLE(min = 1e-9 max = 1e5 start = 998.0 unit = "kg/m3" nominal = 998.0 ) "Fluid density" type: Real 18: singularPressureLoss.pro.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 19: singularPressureLoss.pro.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 20: singularPressureLoss.pro.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 21: singularPressureLoss.pro.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 22: singularPressureLoss.pro.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 23: singularPressureLoss.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.0007872/2.22, allocations: 423.8 kB / 0.7201 GB, free: 210.6 MB / 0.5919 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestSingularPressureLoss could not be translated