Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.PhaseSeperator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 111.1 kB / 18.68 MB, free: 3.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 200.4 kB / 21.94 MB, free: 76 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.551/1.551, allocations: 225.6 MB / 250.6 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8053/0.8053, allocations: 94.59 MB / 400.4 MB, free: 15.78 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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=1000,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_dev_ThermofluidStream.Boundaries.Tests.PhaseSeperator") translateModel(ThermofluidStream.Boundaries.Tests.PhaseSeperator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.Boundaries.Tests.PhaseSeperator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00374/0.00374, allocations: 90.78 kB / 0.5464 GB, free: 43.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1358, allocations: 71.85 MB / 0.6166 GB, free: 8.574 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.PhaseSeperator): time 0.1262/0.2621, allocations: 111.8 MB / 0.7257 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.4543/0.7164, allocations: 89.74 MB / 0.8134 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003339/0.7198, allocations: 63.44 kB / 0.8134 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003976/0.7237, allocations: 1.457 MB / 0.8148 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.7351, allocations: 3.762 MB / 0.8185 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.03656/0.7717, allocations: 10.62 MB / 0.8289 GB, free: 15.17 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.006157/0.7779, allocations: 3.342 MB / 0.8322 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009194/0.7788, allocations: 433.2 kB / 0.8326 GB, free: 13.85 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01104/0.7898, allocations: 4.808 MB / 0.8373 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002245/0.7921, allocations: 1.455 MB / 0.8387 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000429/0.7925, allocations: 205.3 kB / 0.8389 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02858/0.8211, allocations: 10.42 MB / 0.8491 GB, free: 5.688 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.8225, allocations: 0.5077 MB / 0.8495 GB, free: 5.188 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002785/0.8253, allocations: 1.261 MB / 0.8508 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.03154/0.8568, allocations: 8.895 MB / 0.8595 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.8568, allocations: 0 / 0.8595 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.974e-06/0.8568, allocations: 0 / 0.8595 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.188e-05/0.8569, allocations: 0 / 0.8595 GB, free: 11.67 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: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.01083/0.8678, allocations: 3.863 MB / 0.8632 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.52e-05/0.8678, allocations: 8.031 kB / 0.8632 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002699/0.8705, allocations: 482 kB / 0.8637 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003461/0.874, allocations: 1.549 MB / 0.8652 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.8741, allocations: 127.3 kB / 0.8653 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/0.8744, allocations: 172 kB / 0.8655 GB, free: 5.445 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004747/0.8791, allocations: 2.063 MB / 0.8675 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.431e-05/0.8792, allocations: 0 / 0.8675 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.8793, allocations: 68 kB / 0.8676 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.85e-05/0.8793, allocations: 40 kB / 0.8676 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004541/0.8839, allocations: 1.976 MB / 0.8696 GB, free: 1.25 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.01347/0.8974, allocations: 9.919 MB / 0.8792 GB, free: 6.406 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/0.9007, allocations: 1.128 MB / 0.8803 GB, free: 5.277 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.9018, allocations: 0.5542 MB / 0.8809 GB, free: 4.723 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.814/4.716, allocations: 1.341 GB / 2.222 GB, free: 155 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002591/4.718, allocations: 0.9476 MB / 2.223 GB, free: 154 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=126): time 3.366e-06/4.718, allocations: 0 / 2.223 GB, free: 154 MB / 0.8106 GB Notification: Performance of matching and sorting (n=126): time 0.007646/4.726, allocations: 3.245 MB / 2.226 GB, free: 150.8 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/4.726, allocations: 94.11 kB / 2.227 GB, free: 150.7 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001802/4.728, allocations: 1.498 MB / 2.228 GB, free: 149.2 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.492e-05/4.728, allocations: 49.7 kB / 2.228 GB, free: 149.1 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005633/4.728, allocations: 0.9519 MB / 2.229 GB, free: 148.3 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.00026/4.729, allocations: 451.6 kB / 2.229 GB, free: 148 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003241/4.729, allocations: 270.9 kB / 2.23 GB, free: 147.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 7.509e-05/4.729, allocations: 357.9 kB / 2.23 GB, free: 147.3 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008084/4.73, allocations: 491.1 kB / 2.23 GB, free: 146.9 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009672/4.731, allocations: 0.7652 MB / 2.231 GB, free: 146 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001808/4.733, allocations: 1.355 MB / 2.233 GB, free: 144.5 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/4.733, allocations: 0 / 2.233 GB, free: 144.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=171) (initialization): time 0.002816/4.735, allocations: 1.746 MB / 2.234 GB, free: 142.8 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/4.736, allocations: 44.34 kB / 2.234 GB, free: 142.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/4.736, allocations: 8 kB / 2.234 GB, free: 142.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004031/4.736, allocations: 135.5 kB / 2.234 GB, free: 142.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/4.737, allocations: 321.3 kB / 2.235 GB, free: 142.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002896/4.74, allocations: 5.832 MB / 2.24 GB, free: 135.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/4.741, allocations: 135.4 kB / 2.241 GB, free: 135.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001218/4.741, allocations: 67.92 kB / 2.241 GB, free: 135.7 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.0006559/4.742, allocations: 401.5 kB / 2.241 GB, free: 135.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003062/4.742, allocations: 194.7 kB / 2.241 GB, free: 135.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005687/4.748, allocations: 5.124 MB / 2.246 GB, free: 130 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/4.748, allocations: 3.984 kB / 2.246 GB, free: 130 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/4.748, allocations: 0 / 2.246 GB, free: 130 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005478/4.748, allocations: 402.5 kB / 2.247 GB, free: 129.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/4.749, allocations: 31.94 kB / 2.247 GB, free: 129.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007075/4.749, allocations: 67.94 kB / 2.247 GB, free: 129.6 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/4.749, allocations: 113.1 kB / 2.247 GB, free: 129.5 MB / 0.8106 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9806:5-9807:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009418/4.75, allocations: 0.6409 MB / 2.247 GB, free: 128.8 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 " [Timeout remaining time 655] [Calling sys.exit(0), Time elapsed: 8.254869669966865] Failed to read output from testmodel.py, exit status != 0: 4.7601537220180035 4.767672504 3.908344051 Calling exit ...