Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.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.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine") translateModel(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.8318/0.8318, allocations: 150.9 MB / 167.2 MB, free: 14.52 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003661, allocations: 15.48 kB / 237.8 MB, free: 1.77 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05304/0.05341, allocations: 31.34 MB / 269.1 MB, free: 7.059 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.TestSteamEngine): time 1.648/1.701, allocations: 294.9 MB / 0.5508 GB, free: 13.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03521/1.737, allocations: 28.97 MB / 0.5791 GB, free: 15.95 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/1.737, allocations: 4 kB / 0.5791 GB, free: 15.95 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:35:3-37:17: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/Machines/SteamEngine.mo:38:3-39:44: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/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/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). Notification: Performance of NFTyping.typeComponents: time 0.0005633/1.738, allocations: 179.1 kB / 0.5793 GB, free: 15.77 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002447/1.738, allocations: 131 kB / 0.5794 GB, free: 15.64 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/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. Notification: Performance of NFTyping.typeClassSections: time 0.02427/1.762, allocations: 9.566 MB / 0.5887 GB, free: 6.07 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005919/1.763, allocations: 430.1 kB / 0.5892 GB, free: 5.648 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/1.763, allocations: 120.6 kB / 0.5893 GB, free: 5.535 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/1.763, allocations: 183.2 kB / 0.5894 GB, free: 5.355 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001608/1.763, allocations: 135.4 kB / 0.5896 GB, free: 5.223 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/1.763, allocations: 20 kB / 0.5896 GB, free: 5.203 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03147/1.795, allocations: 20.51 MB / 0.6096 GB, free: 0.668 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/1.795, allocations: 47.78 kB / 0.6097 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002135/1.795, allocations: 163.2 kB / 0.6098 GB, free: 472 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01709/1.812, allocations: 8.576 MB / 0.6182 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/1.812, allocations: 0 / 0.6182 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.713e-06/1.812, allocations: 0 / 0.6182 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.564e-05/1.812, allocations: 0 / 0.6182 GB, free: 7.867 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.004048/1.816, allocations: 1.412 MB / 0.6196 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/1.816, allocations: 8.031 kB / 0.6196 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.786e-05/1.817, allocations: 36.47 kB / 0.6196 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/1.817, allocations: 237.2 kB / 0.6198 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/1.817, allocations: 24.56 kB / 0.6199 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/1.817, allocations: 16 kB / 0.6199 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/1.817, allocations: 345.1 kB / 0.6202 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/1.817, allocations: 0 / 0.6202 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/1.817, allocations: 20 kB / 0.6202 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.116e-05/1.817, allocations: 23.91 kB / 0.6203 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000284/1.818, allocations: 212.6 kB / 0.6205 GB, free: 5.441 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.02016/1.838, allocations: 9.942 MB / 0.6302 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/1.838, allocations: 147 kB / 0.6303 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/1.838, allocations: 113.7 kB / 0.6304 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1189/1.957, allocations: 52 MB / 0.6812 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/1.957, allocations: 34.5 kB / 0.6812 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 2.675e-06/1.957, allocations: 0 / 0.6812 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001217/1.958, allocations: 0.5172 MB / 0.6817 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/1.959, allocations: 55.41 kB / 0.6818 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/1.959, allocations: 234 kB / 0.682 GB, free: 384 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/1.959, allocations: 29.7 kB / 0.682 GB, free: 348 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/1.959, allocations: 149.1 kB / 0.6822 GB, free: 192 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/1.959, allocations: 173.3 kB / 0.6823 GB, free: 16 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.876e-05/1.959, allocations: 49.7 kB / 0.6824 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.959, allocations: 342.8 kB / 0.6827 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/1.959, allocations: 84.53 kB / 0.6828 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/1.96, allocations: 149.3 kB / 0.6829 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/1.96, allocations: 258.6 kB / 0.6832 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/1.96, allocations: 0 / 0.6832 GB, free: 15.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005348/1.96, allocations: 353.6 kB / 0.6835 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/1.961, allocations: 4 kB / 0.6835 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/1.961, allocations: 4 kB / 0.6835 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002969/1.961, allocations: 108.8 kB / 0.6836 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.762e-05/1.961, allocations: 8 kB / 0.6836 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005196/1.961, allocations: 0.629 MB / 0.6843 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/1.962, allocations: 31.53 kB / 0.6843 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/1.962, allocations: 8 kB / 0.6843 GB, free: 13.93 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,puitsP.C.a,steamEngine1.C2.b,steamEngine1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001392/1.962, allocations: 142.3 kB / 0.6844 GB, free: 13.78 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.586e-05/1.962, allocations: 27.62 kB / 0.6845 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009257/1.963, allocations: 0.8003 MB / 0.6852 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.963, allocations: 0 / 0.6852 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.963, allocations: 0 / 0.6852 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/1.963, allocations: 120.5 kB / 0.6854 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/1.963, allocations: 11.84 kB / 0.6854 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.088e-05/1.963, allocations: 4 kB / 0.6854 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.819e-05/1.963, allocations: 11.98 kB / 0.6854 GB, free: 12.75 MB / 0.5762 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(steamEngine1.Ts, steamEngine1.pros.d, steamEngine1.pros.u, steamEngine1.pros.s, steamEngine1.pros.cp, steamEngine1.pros.ddhp, steamEngine1.pros.ddph, steamEngine1.pros.duph, steamEngine1.pros.duhp, steamEngine1.pros.x) = $cse3 Variables: 1: steamEngine1.Ts:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Temperature at the outlet" type: Real 2: $cse3.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse3.u:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse3.duhp:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse3.ddph:VARIABLE(protected = true ) type: Real unreplaceable 7: steamEngine1.C2.h:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Specific enthalpy of the fluid crossing the boundary of the control volume" type: Real 8: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse3.d:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse3.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): steamEngine1.C2.h - sourceP.h0 = steamEngine1.xm * steamEngine1.eta_is * (steamEngine1.His - sourceP.h0) 2/2 (1): steamEngine1.xm = 0.5 * (steamEngine1.proe.x + steamEngine1.pros.x) 3/3 (10): $cse3 = ThermoSysPro.Properties.WaterSteam.IF97.Water_Ph(puitsP.P0, steamEngine1.C2.h, steamEngine1.mode_s) 4/13 (10): ThermoSysPro.Properties.WaterSteam.Common.ThermoProperties_ph(steamEngine1.Ts, steamEngine1.pros.d, steamEngine1.pros.u, steamEngine1.pros.s, steamEngine1.pros.cp, steamEngine1.pros.ddhp, steamEngine1.pros.ddph, steamEngine1.pros.duph, steamEngine1.pros.duhp, steamEngine1.pros.x) = $cse3 Variables: 1: steamEngine1.Ts:VARIABLE(min = 200.0 max = 6000.0 start = 288.15 unit = "K" nominal = 300.0 ) "Temperature at the outlet" type: Real 2: $cse3.ddhp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse3.cp:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse3.u:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse3.duhp:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse3.ddph:VARIABLE(protected = true ) type: Real unreplaceable 7: steamEngine1.C2.h:VARIABLE(flow=false start = 1e5 unit = "J/kg" ) "Specific enthalpy of the fluid crossing the boundary of the control volume" type: Real 8: $cse3.x:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse3.d:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse3.T:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse3.duph:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse3.s:VARIABLE(protected = true ) type: Real unreplaceable 13: steamEngine1.pros.cp:VARIABLE(min = 1e-9 max = 1e60 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific heat capacity at constant presure" type: Real 14: steamEngine1.pros.duhp:VARIABLE(unit = "1" ) "Derivative of specific inner energy wrt. specific enthalpy at constant pressure" type: Real 15: steamEngine1.pros.u:VARIABLE(min = -1e8 max = 1e8 unit = "J/kg" nominal = 1e6 ) "Specific inner energy" type: Real 16: steamEngine1.pros.ddhp:VARIABLE(unit = "kg.s2/m5" ) "Derivative of density wrt. specific enthalpy at constant pressure" type: Real 17: steamEngine1.pros.duph:VARIABLE(unit = "m3/kg" ) "Derivative of specific inner energy wrt. pressure at constant specific enthalpy" type: Real 18: steamEngine1.pros.d:VARIABLE(min = 1e-9 max = 1e5 unit = "kg/m3" nominal = 998.0 ) "Density" type: Real 19: steamEngine1.pros.s:VARIABLE(min = -1e6 max = 1e6 unit = "J/(kg.K)" nominal = 1000.0 ) "Specific entropy" type: Real 20: steamEngine1.pros.ddph:VARIABLE(unit = "s2/m2" ) "Derivative of density wrt. pressure at constant specific enthalpy" type: Real 21: steamEngine1.pros.x:VARIABLE(min = 0.0 max = 1.0 unit = "1" ) "Vapor mass fraction" type: Real 22: steamEngine1.xm:VARIABLE(min = 0.0 start = 1.0 ) "Average vapor mass fraction (n.u.)" 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.0008171/1.964, allocations: 396.3 kB / 0.6858 GB, free: 12.35 MB / 0.5762 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoSysPro.Examples.SimpleExamples.TestSteamEngine could not be translated