Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.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.Undirected.Boundaries.Tests.PhaseSeperator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|accumulator.M|accumulator.U_med|boundaryFore1.rear.m_flow|boundaryRear.fore.m_flow|flowResistance2.rear.m_flow|receiver.M|receiver.U_med|receiver.m_flow_fore|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent|timeTable.nextEventScaled",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|accumulator.M|accumulator.U_med|boundaryFore1.rear.m_flow|boundaryRear.fore.m_flow|flowResistance2.rear.m_flow|receiver.M|receiver.U_med|receiver.m_flow_fore|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent|timeTable.nextEventScaled",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008573/0.0008573, allocations: 171.6 kB / 16.11 MB, free: 5.688 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.176/1.176, allocations: 205 MB / 221.9 MB, free: 9.062 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.0007238/0.0007238, allocations: 88.56 kB / 269.9 MB, free: 8.656 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.5892/0.5892, 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.0002736/0.0002737, allocations: 8.219 kB / 484.9 MB, free: 7.199 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2309, allocations: 65.81 MB / 0.5378 GB, free: 34.98 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator): time 0.3637/0.5946, allocations: 204.3 MB / 0.7373 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.07052/0.6652, allocations: 91.3 MB / 0.8264 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003516/0.6687, allocations: 43.81 kB / 0.8265 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.006635/0.6754, allocations: 2.64 MB / 0.829 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.01924/0.6946, allocations: 6.681 MB / 0.8356 GB, free: 6.395 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.02065/0.7153, allocations: 7.695 MB / 0.8431 GB, free: 14.68 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.006933/0.7223, allocations: 6.5 MB / 0.8494 GB, free: 8.152 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0016/0.7239, allocations: 1.312 MB / 0.8507 GB, free: 6.773 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01461/0.7385, allocations: 8.188 MB / 0.8587 GB, free: 14.46 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/0.741, allocations: 1.897 MB / 0.8605 GB, free: 12.55 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.7413, allocations: 108 kB / 0.8607 GB, free: 12.45 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02467/0.766, allocations: 12.4 MB / 0.8728 GB, free: 36 kB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0008093/0.7669, allocations: 485.3 kB / 0.8732 GB, free: 15.56 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 0.002069/0.769, allocations: 1.753 MB / 0.8749 GB, free: 13.8 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.02463/0.7936, allocations: 11.58 MB / 0.8862 GB, free: 2.191 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.7936, allocations: 0 / 0.8862 GB, free: 2.191 MB / 0.5886 GB Notification: Performance of FrontEnd: time 3.456e-06/0.7936, allocations: 4 kB / 0.8862 GB, free: 2.188 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 7.195e-05/0.7937, allocations: 3.938 kB / 0.8863 GB, free: 2.184 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 919 * Number of variables: 919 Notification: Performance of Generate backend data structure: time 0.01008/0.8038, allocations: 4.762 MB / 0.8909 GB, free: 13.35 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.8039, allocations: 8.031 kB / 0.8909 GB, free: 13.34 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00402/0.8079, allocations: 0.8231 MB / 0.8917 GB, free: 12.52 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001938/0.8098, allocations: 1.478 MB / 0.8932 GB, free: 10.98 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.81, allocations: 275 kB / 0.8934 GB, free: 10.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003815/0.8104, allocations: 347.9 kB / 0.8937 GB, free: 10.37 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007443/0.8179, allocations: 4.196 MB / 0.8978 GB, free: 6.074 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.197e-05/0.8179, allocations: 7.938 kB / 0.8979 GB, free: 6.066 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002511/0.8182, allocations: 148 kB / 0.898 GB, free: 5.922 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.396e-05/0.8183, allocations: 95.98 kB / 0.8981 GB, free: 5.828 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006957/0.8252, allocations: 3.539 MB / 0.9015 GB, free: 2.281 MB / 0.6042 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.2104/1.036, allocations: 23.73 MB / 0.9247 GB, free: 239.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004928/1.041, allocations: 2.173 MB / 0.9268 GB, free: 238.9 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001635/1.042, allocations: 1.02 MB / 0.9278 GB, free: 238.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.371/3.413, allocations: 1.063 GB / 1.991 GB, free: 100.4 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003741/3.417, allocations: 1.626 MB / 1.993 GB, free: 98.79 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=210): time 4.017e-06/3.417, allocations: 0 / 1.993 GB, free: 98.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=210): time 0.0103/3.427, allocations: 4.959 MB / 1.998 GB, free: 93.79 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.087e-05/3.427, allocations: 107.1 kB / 1.998 GB, free: 93.67 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/3.428, allocations: 1.166 MB / 1.999 GB, free: 92.52 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.842e-05/3.428, allocations: 61.7 kB / 1.999 GB, free: 92.46 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005683/3.429, allocations: 1.332 MB / 2 GB, free: 91.22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003116/3.429, allocations: 0.7056 MB / 2.001 GB, free: 90.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.978e-05/3.429, allocations: 40 kB / 2.001 GB, free: 90.48 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.622e-05/3.429, allocations: 378.2 kB / 2.001 GB, free: 90.11 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/3.43, allocations: 0.7655 MB / 2.002 GB, free: 89.34 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/3.432, allocations: 1.195 MB / 2.003 GB, free: 87.96 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/3.434, allocations: 2.149 MB / 2.005 GB, free: 85.65 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/3.434, allocations: 4 kB / 2.005 GB, free: 85.65 MB / 0.6198 GB Notification: Performance of matching and sorting (n=273) (initialization): time 0.003706/3.438, allocations: 2.563 MB / 2.008 GB, free: 83.06 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/3.438, allocations: 41.69 kB / 2.008 GB, free: 83.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/3.438, allocations: 12 kB / 2.008 GB, free: 83 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004239/3.439, allocations: 168.1 kB / 2.008 GB, free: 82.83 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/3.44, allocations: 471.4 kB / 2.009 GB, free: 82.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/3.443, allocations: 5.587 MB / 2.014 GB, free: 76.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/3.444, allocations: 409.7 kB / 2.014 GB, free: 75.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/3.444, allocations: 112 kB / 2.014 GB, free: 75.75 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 31 (accumulator.state_out_fore.phase,receiver.state_out_fore.phase,unidirectionalSensorAdapter7.state.phase,unidirectionalSensorAdapter6.state.phase,unidirectionalSensorAdapter5.state.phase,unidirectionalSensorAdapter4.state.phase,unidirectionalSensorAdapter3.state.phase,unidirectionalSensorAdapter2.state.phase,unidirectionalSensorAdapter1.state.phase,unidirectionalSensorAdapter.state.phase,$whenCondition1,receiver.medium.phase,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,unidirectionalSensorAdapter.fore.state_forwards.phase,unidirectionalSensorAdapter3.rear.state_rearwards.phase,accumulator.medium.phase,unidirectionalSensorAdapter6.rear.state_rearwards.phase,unidirectionalSensorAdapter7.fore.state_forwards.phase,flowResistance2.fore.state_forwards.phase,flowResistance3.rear.state_rearwards.phase,flowResistance.rear.state_rearwards.phase,flowResistance1.fore.state_forwards.phase,flowResistance2.rear.state_rearwards.phase,flowResistance3.fore.state_forwards.phase,flowResistance.fore.state_forwards.phase,flowResistance1.rear.state_rearwards.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (242): * Single equations (assignments): 233 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008442/3.445, allocations: 0.5565 MB / 2.015 GB, free: 75.19 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002882/3.446, allocations: 185.8 kB / 2.015 GB, free: 75 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00783/3.453, allocations: 8.088 MB / 2.023 GB, free: 66.84 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.111e-05/3.453, allocations: 19.89 kB / 2.023 GB, free: 66.82 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/3.453, allocations: 0 / 2.023 GB, free: 66.82 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004605/3.454, allocations: 439.7 kB / 2.024 GB, free: 66.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/3.454, allocations: 40 kB / 2.024 GB, free: 66.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/3.455, allocations: 319.2 kB / 2.024 GB, free: 66.01 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002169/3.456, allocations: 173.7 kB / 2.024 GB, free: 65.84 MB / 0.6198 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 < $cse27.h or accumulator.medium.h > $cse28.h or accumulator.medium.p > 22064000.0 then 1 else 2 2/2 (16): $cse29 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(accumulator.medium.p, accumulator.medium.h, accumulator.medium.phase, 0) 3/18 (1): accumulator.medium.d = $cse29.rho 4/19 (1): accumulator.medium.u = accumulator.medium.h - accumulator.medium.p / accumulator.medium.d 5/20 (13): $cse27 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(accumulator.medium.p) 6/33 (13): $cse28 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(accumulator.medium.p) Variables: 1: $cse28.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 2: $cse28.cp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse28.pd:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse28.h:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse28.R:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse28.d:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse28.dpT:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse28.s:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse28.cv:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse28.vp:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse28.T:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse28.pt:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse28.vt:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse27.cv:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse27.T:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse27.d:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse27.R:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse27.dpT:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse27.cp:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse27.s:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse27.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 22: $cse27.pt:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse27.h:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse27.pd:VARIABLE(protected = true ) type: Real unreplaceable 25: $cse27.vt:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse27.vp:VARIABLE(protected = true ) type: Real unreplaceable 27: 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 28: $cse29.pt:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse29.rho:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse29.region:DISCRETE(protected = true ) type: Integer unreplaceable 31: $cse29.s:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse29.h:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse29.T:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse29.dpT:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse29.R:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse29.p:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse29.x:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse29.cv:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse29.phase:DISCRETE(protected = true ) type: Integer unreplaceable 40: $cse29.vp:VARIABLE(protected = true ) type: Real unreplaceable 41: 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 42: $cse29.vt:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse29.pd:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse29.cp: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.0007897/3.456, allocations: 0.6504 MB / 2.025 GB, free: 65.1 MB / 0.6198 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed.