Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.PhaseSeperator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.PhaseSeperator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|accumulator.M|accumulator.U_med|accumulator.m_flow_in|accumulator.m_flow_out|receiver.M|receiver.U_med|receiver.m_flow_out|source.outlet.m_flow|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent|timeTable.nextEventScaled",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.PhaseSeperator") translateModel(ThermofluidStream.Boundaries.Tests.PhaseSeperator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|accumulator.M|accumulator.U_med|accumulator.m_flow_in|accumulator.m_flow_out|receiver.M|receiver.U_med|receiver.m_flow_out|source.outlet.m_flow|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent|timeTable.nextEventScaled",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.PhaseSeperator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 113.9 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 192.3 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.671/0.671, allocations: 91.19 MB / 382.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 79.88 kB / 0.5175 GB, free: 4.141 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.274, allocations: 67.69 MB / 0.5836 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.PhaseSeperator): time 0.09422/0.3683, allocations: 109.9 MB / 0.691 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.3531/0.7215, allocations: 88.71 MB / 0.7776 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.7232, allocations: 61.72 kB / 0.7777 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002849/0.7261, allocations: 1.452 MB / 0.7791 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008375/0.7345, allocations: 3.758 MB / 0.7828 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02585/0.7604, allocations: 10.61 MB / 0.7931 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004156/0.7646, allocations: 3.3 MB / 0.7963 GB, free: 280 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001172/0.7658, allocations: 0.6755 MB / 0.797 GB, free: 104 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01029/0.7761, allocations: 4.78 MB / 0.8017 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002328/0.7785, allocations: 1.429 MB / 0.8031 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000703/0.7792, allocations: 208 kB / 0.8033 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02258/0.8018, allocations: 10.39 MB / 0.8134 GB, free: 11.86 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0008469/0.8027, allocations: 0.5089 MB / 0.8139 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002263/0.8049, allocations: 1.248 MB / 0.8151 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.02075/0.8257, allocations: 8.842 MB / 0.8238 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.8257, allocations: 3.938 kB / 0.8238 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.593e-06/0.8257, allocations: 4 kB / 0.8238 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.41e-05/0.8258, allocations: 0 / 0.8238 GB, free: 4.66 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.007854/0.8337, allocations: 3.723 MB / 0.8274 GB, free: 1.305 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.8337, allocations: 16.03 kB / 0.8274 GB, free: 1.289 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002542/0.8363, allocations: 467 kB / 0.8279 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002656/0.8389, allocations: 1.508 MB / 0.8293 GB, free: 15.64 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-05/0.839, allocations: 132.2 kB / 0.8295 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002285/0.8393, allocations: 178.1 kB / 0.8296 GB, free: 15.44 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004229/0.8435, allocations: 2.068 MB / 0.8316 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.8435, allocations: 0 / 0.8316 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.8437, allocations: 69.31 kB / 0.8317 GB, free: 13.94 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.676e-05/0.8437, allocations: 40 kB / 0.8318 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004139/0.8479, allocations: 1.976 MB / 0.8337 GB, free: 12.52 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.01064/0.8585, allocations: 9.883 MB / 0.8433 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.8616, allocations: 1.228 MB / 0.8445 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.8627, allocations: 0.6303 MB / 0.8452 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.365/4.227, allocations: 1.341 GB / 2.186 GB, free: 231.6 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002723/4.23, allocations: 0.9479 MB / 2.187 GB, free: 230.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=126): time 4.288e-06/4.23, allocations: 0 / 2.187 GB, free: 230.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=126): time 0.008011/4.238, allocations: 3.228 MB / 2.191 GB, free: 227.4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/4.238, allocations: 101.7 kB / 2.191 GB, free: 227.3 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/4.24, allocations: 1.484 MB / 2.192 GB, free: 225.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001031/4.24, allocations: 45.7 kB / 2.192 GB, free: 225.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000529/4.241, allocations: 0.9373 MB / 2.193 GB, free: 225 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002487/4.241, allocations: 424.5 kB / 2.193 GB, free: 224.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003396/4.242, allocations: 270.8 kB / 2.194 GB, free: 224.3 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 6.377e-05/4.242, allocations: 357.9 kB / 2.194 GB, free: 223.9 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008471/4.242, allocations: 491.1 kB / 2.195 GB, free: 223.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009948/4.243, allocations: 0.7676 MB / 2.195 GB, free: 222.6 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/4.245, allocations: 1.339 MB / 2.197 GB, free: 221.1 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/4.245, allocations: 4 kB / 2.197 GB, free: 221.1 MB / 0.8106 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.002879/4.248, allocations: 1.738 MB / 2.198 GB, free: 219.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.391e-05/4.248, allocations: 38.31 kB / 2.198 GB, free: 219.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/4.248, allocations: 8 kB / 2.198 GB, free: 219.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003898/4.249, allocations: 142.1 kB / 2.198 GB, free: 219.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/4.25, allocations: 316.1 kB / 2.199 GB, free: 218.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002721/4.253, allocations: 5.837 MB / 2.204 GB, free: 212.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/4.254, allocations: 134.6 kB / 2.205 GB, free: 212.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/4.254, allocations: 72.52 kB / 2.205 GB, free: 212.2 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 17 (accumulator.state_out.phase,flowResistance2.outlet.state.phase,receiver.state_out.phase,flowResistance1.outlet.state.phase,source1.outlet.state.phase,flowResistance3.outlet.state.phase,flowResistance.outlet.state.phase,source.outlet.state.phase,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,accumulator.medium.phase,receiver.medium.phase,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 153 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005912/4.254, allocations: 396.9 kB / 2.205 GB, free: 211.8 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/4.255, allocations: 185.8 kB / 2.205 GB, free: 211.7 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005725/4.26, allocations: 5.19 MB / 2.21 GB, free: 206.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.65e-05/4.26, allocations: 7.969 kB / 2.21 GB, free: 206.4 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/4.26, allocations: 0 / 2.21 GB, free: 206.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004528/4.261, allocations: 388.8 kB / 2.211 GB, free: 206 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/4.261, allocations: 32 kB / 2.211 GB, free: 206 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007687/4.262, allocations: 67.94 kB / 2.211 GB, free: 205.9 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/4.262, allocations: 115.9 kB / 2.211 GB, free: 205.8 MB / 0.8106 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 (1): accumulator.medium.phase = if accumulator.medium.h < $cse8.h or accumulator.medium.h > $cse9.h or accumulator.medium.p > 2.2064e7 then 1 else 2 2/2 (16): $cse10 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(accumulator.medium.p, accumulator.medium.h, accumulator.medium.phase, 0) 3/18 (1): accumulator.medium.d = $cse10.rho 4/19 (1): accumulator.medium.u = accumulator.medium.h - accumulator.medium.p / accumulator.medium.d 5/20 (13): $cse8 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(accumulator.medium.p) 6/33 (13): $cse9 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(accumulator.medium.p) Variables: 1: $cse9.h:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse9.pt:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse9.vp:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse9.s:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse9.T:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse9.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 7: $cse9.pd:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse9.cp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse9.R_s:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse9.d:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse9.cv:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse9.vt:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse9.dpT:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse8.pd:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse8.dpT:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse8.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 18: $cse8.cp:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse8.d:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse8.pt:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse8.cv:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse8.vt:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse8.R_s:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse8.vp:VARIABLE(protected = true ) type: Real unreplaceable 27: accumulator.medium.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = "Pa" nominal = 1e5 ) "Absolute pressure of medium" type: Real 28: $cse10.pd:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse10.s:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse10.R_s:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse10.T:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse10.cp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse10.phase:DISCRETE(protected = true ) type: Integer unreplaceable 34: $cse10.x:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse10.vp:VARIABLE(protected = true ) type: Real unreplaceable 36: accumulator.medium.h:VARIABLE(flow=false min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Specific enthalpy of medium" type: Real 37: $cse10.cv:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse10.h:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse10.region:DISCRETE(protected = true ) type: Integer unreplaceable 40: $cse10.rho:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse10.dpT:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse10.pt:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse10.vt:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse10.p:VARIABLE(protected = true ) type: Real unreplaceable 45: accumulator.medium.phase:DISCRETE(min = 0 max = 2 start = 1 fixed = false ) "2 for two-phase, 1 for one-phase, 0 if not known" type: Integer [/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.0009011/4.263, allocations: 0.6397 MB / 2.211 GB, free: 205.1 MB / 0.8106 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Boundaries.Tests.PhaseSeperator could not be translated