Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.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_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_ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.001091, allocations: 109.8 kB / 16.42 MB, free: 6.496 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.001105/0.001105, allocations: 188.3 kB / 17.35 MB, free: 5.762 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.346/1.346, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6739/0.6739, allocations: 91.18 MB / 382.4 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 75.88 kB / 0.5175 GB, free: 4.074 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2818, allocations: 67.7 MB / 0.5837 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator): time 0.4557/0.7375, allocations: 205.8 MB / 0.7846 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.08051/0.8181, allocations: 93.23 MB / 0.8757 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003428/0.8215, allocations: 87.5 kB / 0.8757 GB, free: 13.06 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.007491/0.8291, allocations: 2.909 MB / 0.8786 GB, free: 10.13 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0223/0.8514, allocations: 7.944 MB / 0.8863 GB, free: 2.164 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.02588/0.8773, allocations: 9.218 MB / 0.8953 GB, free: 8.918 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.007848/0.8852, allocations: 5.63 MB / 0.9008 GB, free: 3.262 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002423/0.8876, allocations: 1.465 MB / 0.9023 GB, free: 1.734 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01977/0.9074, allocations: 8.851 MB / 0.9109 GB, free: 8.766 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003728/0.9112, allocations: 2.389 MB / 0.9132 GB, free: 6.367 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.001164/0.9124, allocations: 340 kB / 0.9136 GB, free: 6.035 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02959/0.942, allocations: 12.58 MB / 0.9259 GB, free: 9.441 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.9432, allocations: 0.7977 MB / 0.9266 GB, free: 8.641 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.003414/0.9466, allocations: 2.166 MB / 0.9287 GB, free: 6.465 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.02828/0.9749, allocations: 12.34 MB / 0.9408 GB, free: 10.1 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.975, allocations: 0 / 0.9408 GB, free: 10.1 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.924e-06/0.975, allocations: 3.938 kB / 0.9408 GB, free: 10.09 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001732/0.9751, allocations: 4 kB / 0.9408 GB, free: 10.09 MB / 0.6856 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.01446/0.9896, allocations: 5.675 MB / 0.9463 GB, free: 4.34 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.9897, allocations: 8.031 kB / 0.9464 GB, free: 4.332 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005075/0.9948, allocations: 0.8461 MB / 0.9472 GB, free: 3.48 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004388/0.9992, allocations: 2.057 MB / 0.9492 GB, free: 1.371 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.9994, allocations: 267.2 kB / 0.9494 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006403/1, allocations: 355.9 kB / 0.9498 GB, free: 0.7617 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01/1.01, allocations: 4.099 MB / 0.9538 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.119e-05/1.01, allocations: 11.81 kB / 0.9538 GB, free: 12.54 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003598/1.011, allocations: 148 kB / 0.9539 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.292e-05/1.011, allocations: 95.94 kB / 0.954 GB, free: 12.3 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008206/1.019, allocations: 3.437 MB / 0.9574 GB, free: 8.855 MB / 0.7012 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.02585/1.045, allocations: 23.43 MB / 0.9803 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00552/1.05, allocations: 2.104 MB / 0.9823 GB, free: 12.44 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/1.052, allocations: 0.9483 MB / 0.9832 GB, free: 11.49 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.801/4.853, allocations: 1.357 GB / 2.34 GB, free: 268.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004057/4.857, allocations: 1.484 MB / 2.341 GB, free: 267 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=198): time 4.969e-06/4.857, allocations: 4 kB / 2.341 GB, free: 266.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=198): time 0.01113/4.868, allocations: 4.625 MB / 2.346 GB, free: 262.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/4.868, allocations: 103.1 kB / 2.346 GB, free: 262.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00192/4.87, allocations: 1.679 MB / 2.348 GB, free: 260.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001245/4.87, allocations: 57.7 kB / 2.348 GB, free: 260.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007322/4.871, allocations: 1.495 MB / 2.349 GB, free: 259.2 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/4.871, allocations: 0.6641 MB / 2.35 GB, free: 258.5 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004885/4.872, allocations: 443.4 kB / 2.35 GB, free: 258.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 3.026e-05/4.872, allocations: 301.1 kB / 2.35 GB, free: 257.8 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/4.873, allocations: 0.7147 MB / 2.351 GB, free: 257 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001396/4.874, allocations: 1.171 MB / 2.352 GB, free: 255.7 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002704/4.877, allocations: 2.061 MB / 2.354 GB, free: 253.4 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/4.877, allocations: 4 kB / 2.354 GB, free: 253.4 MB / 0.7794 GB Notification: Performance of matching and sorting (n=265) (initialization): time 0.004039/4.881, allocations: 2.515 MB / 2.357 GB, free: 250.9 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.65e-05/4.881, allocations: 49.69 kB / 2.357 GB, free: 250.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/4.881, allocations: 12 kB / 2.357 GB, free: 250.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004606/4.882, allocations: 163.3 kB / 2.357 GB, free: 250.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/4.883, allocations: 487.3 kB / 2.357 GB, free: 250.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/4.886, allocations: 6.024 MB / 2.363 GB, free: 243.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/4.887, allocations: 201.8 kB / 2.364 GB, free: 243.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/4.888, allocations: 108 kB / 2.364 GB, free: 243.3 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 31 (accumulator.state_out_fore.phase,receiver.state_out_fore.phase,boundaryRear1.fore.state_forwards.phase,unidirectionalSensorAdapter7.state.phase,boundaryFore1.rear.state_rearwards.phase,unidirectionalSensorAdapter6.state.phase,unidirectionalSensorAdapter5.state.phase,unidirectionalSensorAdapter4.state.phase,boundaryFore.rear.state_rearwards.phase,unidirectionalSensorAdapter3.state.phase,unidirectionalSensorAdapter2.state.phase,unidirectionalSensorAdapter1.state.phase,boundaryRear.fore.state_forwards.phase,unidirectionalSensorAdapter.state.phase,accumulator.medium.phase,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,receiver.medium.phase,$whenCondition1,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 (250): * Single equations (assignments): 245 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009237/4.889, allocations: 0.579 MB / 2.364 GB, free: 242.7 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003952/4.889, allocations: 225.3 kB / 2.364 GB, free: 242.5 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008652/4.898, allocations: 8.467 MB / 2.373 GB, free: 233.9 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.483e-05/4.898, allocations: 11.95 kB / 2.373 GB, free: 233.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/4.898, allocations: 0 / 2.373 GB, free: 233.9 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/4.898, allocations: 0.4991 MB / 2.373 GB, free: 233.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003186/4.899, allocations: 55.75 kB / 2.373 GB, free: 233.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008545/4.899, allocations: 71.94 kB / 2.373 GB, free: 233.3 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/4.9, allocations: 169.8 kB / 2.373 GB, free: 233.1 MB / 0.7794 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 < $cse31.h or accumulator.medium.h > $cse32.h or accumulator.medium.p > 2.2064e7 then 1 else 2 2/2 (16): $cse33 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.waterBaseProp_ph(accumulator.medium.p, accumulator.medium.h, accumulator.medium.phase, 0) 3/18 (1): accumulator.medium.d = $cse33.rho 4/19 (1): accumulator.medium.u = accumulator.medium.h - accumulator.medium.p / accumulator.medium.d 5/20 (13): $cse31 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(accumulator.medium.p) 6/33 (13): $cse32 = ThermofluidStream.Media.myMedia.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(accumulator.medium.p) Variables: 1: $cse32.dpT:VARIABLE(protected = true ) type: Real unreplaceable 2: $cse32.vp:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse32.d:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse32.cv:VARIABLE(protected = true ) type: Real unreplaceable 5: $cse32.cp:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse32.h:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse32.pd:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse32.T:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse32.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 10: $cse32.vt:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse32.s:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse32.pt:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse32.R_s:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse31.cv:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse31.cp:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse31.vt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse31.d:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse31.pt:VARIABLE(protected = true ) type: Real unreplaceable 19: $cse31.R_s:VARIABLE(protected = true ) type: Real unreplaceable 20: $cse31.h:VARIABLE(protected = true ) type: Real unreplaceable 21: $cse31.vp:VARIABLE(protected = true ) type: Real unreplaceable 22: $cse31.pd:VARIABLE(protected = true ) type: Real unreplaceable 23: $cse31.s:VARIABLE(protected = true ) type: Real unreplaceable 24: $cse31.region3boundary:DISCRETE(protected = true ) type: Boolean unreplaceable 25: $cse31.dpT:VARIABLE(protected = true ) type: Real unreplaceable 26: $cse31.T: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: $cse33.vt:VARIABLE(protected = true ) type: Real unreplaceable 29: $cse33.pd:VARIABLE(protected = true ) type: Real unreplaceable 30: $cse33.s:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse33.x:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse33.phase:DISCRETE(protected = true ) type: Integer unreplaceable 33: $cse33.cv:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse33.p:VARIABLE(protected = true ) type: Real unreplaceable 35: $cse33.h:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse33.vp:VARIABLE(protected = true ) type: Real unreplaceable 37: accumulator.medium.h:VARIABLE(flow=false min = -1e10 max = 1e10 start = 1e5 unit = "J/kg" nominal = 5e5 ) "Specific enthalpy of medium" type: Real 38: $cse33.T:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse33.region:DISCRETE(protected = true ) type: Integer unreplaceable 40: $cse33.pt:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse33.dpT:VARIABLE(protected = true ) type: Real unreplaceable 42: $cse33.R_s:VARIABLE(protected = true ) type: Real unreplaceable 43: $cse33.rho:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse33.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:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008817/4.901, allocations: 0.6508 MB / 2.374 GB, free: 232.4 MB / 0.7794 GB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermofluidStream.Undirected.Boundaries.Tests.PhaseSeperator could not be translated