Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.PhaseSeperator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Boundaries.Tests.PhaseSeperator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00127/0.00127, allocations: 176 kB / 16.11 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205 MB / 221.9 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007062/0.0007063, allocations: 94.23 kB / 269.9 MB, free: 8.66 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.5956/0.5956, allocations: 90.51 MB / 408.3 MB, free: 3.934 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002982/0.0002982, allocations: 8 kB / 484.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2325, allocations: 65.81 MB / 0.5378 GB, free: 34.95 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.PhaseSeperator): time 0.08083/0.3134, allocations: 109.2 MB / 0.6444 GB, free: 9.492 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.2784/0.5918, allocations: 86.61 MB / 0.7289 GB, free: 1.109 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.5933, allocations: 32.09 kB / 0.729 GB, free: 1.102 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.002601/0.5959, allocations: 1.3 MB / 0.7302 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.007015/0.603, allocations: 3.014 MB / 0.7332 GB, free: 1.043 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0209/0.6239, allocations: 8.742 MB / 0.7417 GB, free: 0.7891 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.002975/0.6269, allocations: 3.225 MB / 0.7449 GB, free: 452 kB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006322/0.6275, allocations: 0.5777 MB / 0.7454 GB, free: 248 kB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007029/0.6346, allocations: 4.261 MB / 0.7496 GB, free: 14.53 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008813/0.6355, allocations: 1.002 MB / 0.7506 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.6356, allocations: 61.5 kB / 0.7506 GB, free: 14.35 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01969/0.6553, allocations: 11.04 MB / 0.7614 GB, free: 11.82 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0004672/0.6558, allocations: 296.5 kB / 0.7617 GB, free: 11.76 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.657, allocations: 0.9239 MB / 0.7626 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.01832/0.6754, allocations: 8.605 MB / 0.771 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.6754, allocations: 4 kB / 0.771 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.974e-06/0.6754, allocations: 0 / 0.771 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.192e-05/0.6754, allocations: 0 / 0.771 GB, free: 6.543 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.006375/0.6818, allocations: 3.099 MB / 0.774 GB, free: 3.574 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.6819, allocations: 12.02 kB / 0.774 GB, free: 3.562 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002151/0.684, allocations: 433 kB / 0.7745 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.6852, allocations: 0.9571 MB / 0.7754 GB, free: 2.379 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.708e-05/0.6852, allocations: 128.3 kB / 0.7755 GB, free: 2.305 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001899/0.6854, allocations: 167.7 kB / 0.7757 GB, free: 2.195 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003839/0.6893, allocations: 2.114 MB / 0.7777 GB, free: 0.6797 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.384e-05/0.6893, allocations: 3.938 kB / 0.7777 GB, free: 0.6758 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.6895, allocations: 67.19 kB / 0.7778 GB, free: 0.6602 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.33e-05/0.6895, allocations: 39.94 kB / 0.7778 GB, free: 0.625 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003838/0.6933, allocations: 2.016 MB / 0.7798 GB, free: 15.21 MB / 0.5261 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.008942/0.7023, allocations: 9.875 MB / 0.7895 GB, free: 6.004 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00287/0.7052, allocations: 1.274 MB / 0.7907 GB, free: 4.73 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.7062, allocations: 0.6721 MB / 0.7914 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.781/2.488, allocations: 0.8069 GB / 1.598 GB, free: 180.9 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002657/2.49, allocations: 1.024 MB / 1.599 GB, free: 179.8 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=130): time 3.807e-06/2.49, allocations: 0 / 1.599 GB, free: 179.8 MB / 0.6667 GB Notification: Performance of matching and sorting (n=130): time 0.007408/2.498, allocations: 3.455 MB / 1.603 GB, free: 176.3 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/2.498, allocations: 90.11 kB / 1.603 GB, free: 176.2 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009171/2.499, allocations: 0.9561 MB / 1.604 GB, free: 175.3 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 8.929e-05/2.499, allocations: 53.7 kB / 1.604 GB, free: 175.2 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003788/2.499, allocations: 0.7672 MB / 1.604 GB, free: 174.6 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/2.499, allocations: 437.5 kB / 1.605 GB, free: 174.1 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.861e-05/2.499, allocations: 27.94 kB / 1.605 GB, free: 174.1 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 6.127e-05/2.499, allocations: 361.9 kB / 1.605 GB, free: 173.7 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008072/2.5, allocations: 0.503 MB / 1.606 GB, free: 173.2 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009231/2.501, allocations: 0.7893 MB / 1.607 GB, free: 172.3 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001825/2.503, allocations: 1.399 MB / 1.608 GB, free: 170.8 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/2.503, allocations: 4 kB / 1.608 GB, free: 170.8 MB / 0.6667 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.002706/2.506, allocations: 1.745 MB / 1.61 GB, free: 169.1 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/2.506, allocations: 41.7 kB / 1.61 GB, free: 169 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/2.506, allocations: 4 kB / 1.61 GB, free: 169 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003811/2.506, allocations: 139.5 kB / 1.61 GB, free: 168.9 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009512/2.507, allocations: 304.2 kB / 1.61 GB, free: 168.6 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002542/2.51, allocations: 5.432 MB / 1.615 GB, free: 162.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/2.511, allocations: 206.8 kB / 1.616 GB, free: 162.4 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/2.511, allocations: 67.98 kB / 1.616 GB, free: 162.4 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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,flowResistance3.outlet.state.phase,flowResistance.outlet.state.phase,$whenCondition1,receiver.medium.phase,accumulator.medium.phase,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,singleSensorSelect5.inlet.state.phase,twoPhaseSensorSelect6.inlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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.0005279/2.511, allocations: 382.5 kB / 1.616 GB, free: 162 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000228/2.512, allocations: 134.3 kB / 1.616 GB, free: 161.8 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005297/2.517, allocations: 4.878 MB / 1.621 GB, free: 156.9 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/2.517, allocations: 7.969 kB / 1.621 GB, free: 156.9 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/2.517, allocations: 0 / 1.621 GB, free: 156.9 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003247/2.517, allocations: 317.2 kB / 1.621 GB, free: 156.6 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/2.518, allocations: 32 kB / 1.621 GB, free: 156.5 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000848/2.518, allocations: 163.5 kB / 1.621 GB, free: 156.4 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/2.519, allocations: 113.1 kB / 1.621 GB, free: 156.3 MB / 0.6667 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): accumulator.medium.phase = if accumulator.medium.h < $cse7.h or accumulator.medium.h > $cse8.h or accumulator.medium.p > 22064000.0 then 1 else 2 2/2 (13): $cse7 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(accumulator.medium.p) 3/15 (13): $cse8 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(accumulator.medium.p) 4/28 (16): $cse9 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(accumulator.medium.p, accumulator.medium.h, accumulator.medium.phase, 0) 5/44 (1): accumulator.medium.d = $cse9.rho 6/45 (1): accumulator.medium.u = accumulator.medium.h - accumulator.medium.p / accumulator.medium.d Variables: 1: accumulator.medium.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific enthalpy of medium" type: Real 2: $cse9.phase:DISCRETE(protected = true ) type: Integer unreplaceable 3: $cse9.region:DISCRETE(protected = true ) type: Integer unreplaceable 4: $cse8.R:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse8.pt:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse8.s:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse8.pd:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse8.d:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse8.cp:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse8.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 11: $cse8.h:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse8.vp:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse8.T:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse8.cv:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse8.dpT:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse8.vt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse7.d:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse7.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 23: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 27: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 28: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 30: accumulator.medium.p:VARIABLE(flow=false min = 611.657 max = 100000000.0 start = 5000000.0 unit = "Pa" nominal = 100000.0 ) "Absolute pressure of medium" type: Real 31: $cse9.vt:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse9.cp:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse9.vp:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse9.cv:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse9.R:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse9.s:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse9.h:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse9.p:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse9.dpT:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse9.rho:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse9.x:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse9.T:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse9.pd:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse9.pt: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:9746:5-9747:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008195/2.519, allocations: 0.6579 MB / 1.622 GB, free: 155.5 MB / 0.6667 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.