Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.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.00168/0.00168, allocations: 110 kB / 18.94 MB, free: 2.809 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.001934/0.001934, allocations: 193.7 kB / 22.23 MB, free: 5.215 MB / 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.493/1.493, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.294/3.294, allocations: 0.4893 GB / 0.7884 GB, free: 33.01 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange")
translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|masExc.TSur|masExc.mWat_flow|masExc.Gc|masExc.XInf|masExc.humRatPre.X_w",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 69.67 kB / 1.145 GB, free: 30.66 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3171, allocations: 174.9 MB / 1.316 GB, free: 9.719 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.1794/0.4965, allocations: 149.5 MB / 1.462 GB, free: 3.664 MB / 1.154 GB
Notification: Performance of NFInst.instExpressions: time 0.001739/0.4982, allocations: 1.141 MB / 1.463 GB, free: 2.52 MB / 1.154 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.4984, allocations: 4 kB / 1.463 GB, free: 2.516 MB / 1.154 GB
Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.4987, allocations: 59.59 kB / 1.463 GB, free: 2.457 MB / 1.154 GB
Notification: Performance of NFTyping.typeBindings: time 0.000856/0.4996, allocations: 322.7 kB / 1.463 GB, free: 2.141 MB / 1.154 GB
Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.5, allocations: 159.3 kB / 1.464 GB, free: 1.984 MB / 1.154 GB
Notification: Performance of NFFlatten.flatten: time 0.0004865/0.5005, allocations: 227.3 kB / 1.464 GB, free: 1.762 MB / 1.154 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.796e-05/0.5006, allocations: 45.27 kB / 1.464 GB, free: 1.719 MB / 1.154 GB
Notification: Performance of NFEvalConstants.evaluate: time 8.957e-05/0.5006, allocations: 55.78 kB / 1.464 GB, free: 1.664 MB / 1.154 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.5008, allocations: 59.7 kB / 1.464 GB, free: 1.605 MB / 1.154 GB
Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.5008, allocations: 12 kB / 1.464 GB, free: 1.594 MB / 1.154 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0006567/0.5014, allocations: 383.2 kB / 1.464 GB, free: 1.219 MB / 1.154 GB
Notification: Performance of NFScalarize.scalarize: time 5.505e-05/0.5015, allocations: 27.86 kB / 1.464 GB, free: 1.191 MB / 1.154 GB
Notification: Performance of NFVerifyModel.verify: time 7.194e-05/0.5016, allocations: 63.67 kB / 1.464 GB, free: 1.129 MB / 1.154 GB
Notification: Performance of NFConvertDAE.convert: time 0.0005162/0.5021, allocations: 295 kB / 1.465 GB, free: 0.8398 MB / 1.154 GB
Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.5021, allocations: 0 / 1.465 GB, free: 0.8398 MB / 1.154 GB
Notification: Performance of FrontEnd: time 1.432e-06/0.5021, allocations: 3.938 kB / 1.465 GB, free: 0.8359 MB / 1.154 GB
Notification: Performance of Transformations before backend: time 1.057e-05/0.5021, allocations: 4 kB / 1.465 GB, free: 0.832 MB / 1.154 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 25
 * Number of variables: 25
Notification: Performance of Generate backend data structure: time 0.0007035/0.5028, allocations: 397.3 kB / 1.465 GB, free: 424 kB / 1.154 GB
Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.5028, allocations: 8.031 kB / 1.465 GB, free: 416 kB / 1.154 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.5031, allocations: 40.75 kB / 1.465 GB, free: 376 kB / 1.154 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.5034, allocations: 158.3 kB / 1.465 GB, free: 192 kB / 1.154 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.5035, allocations: 15.94 kB / 1.465 GB, free: 176 kB / 1.154 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.208e-05/0.5035, allocations: 7.984 kB / 1.465 GB, free: 168 kB / 1.154 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003071/0.5038, allocations: 115.4 kB / 1.465 GB, free: 48 kB / 1.154 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.5038, allocations: 0 / 1.465 GB, free: 48 kB / 1.154 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.5038, allocations: 4 kB / 1.465 GB, free: 44 kB / 1.154 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.5038, allocations: 4 kB / 1.465 GB, free: 40 kB / 1.154 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.5041, allocations: 95.89 kB / 1.466 GB, free: 15.94 MB / 1.17 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000828/0.505, allocations: 423.3 kB / 1.466 GB, free: 15.49 MB / 1.17 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002493/0.5052, allocations: 86.55 kB / 1.466 GB, free: 15.39 MB / 1.17 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.5054, allocations: 36.94 kB / 1.466 GB, free: 15.36 MB / 1.17 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.5054, allocations: 8 kB / 1.466 GB, free: 15.35 MB / 1.17 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.5054, allocations: 30.56 kB / 1.466 GB, free: 15.31 MB / 1.17 GB
Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.5054, allocations: 4 kB / 1.466 GB, free: 15.3 MB / 1.17 GB
Notification: Performance of matching and sorting (n=7): time 0.000497/0.5059, allocations: 141.5 kB / 1.466 GB, free: 15.16 MB / 1.17 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.5059, allocations: 51.41 kB / 1.466 GB, free: 15.1 MB / 1.17 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.5061, allocations: 182.3 kB / 1.467 GB, free: 14.91 MB / 1.17 GB
Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.5062, allocations: 29.7 kB / 1.467 GB, free: 14.88 MB / 1.17 GB
Notification: Performance of collectInitialEqns (initialization): time 8.883e-05/0.5062, allocations: 116 kB / 1.467 GB, free: 14.76 MB / 1.17 GB
Notification: Performance of collectInitialBindings (initialization): time 2.871e-05/0.5063, allocations: 31.73 kB / 1.467 GB, free: 14.73 MB / 1.17 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.5063, allocations: 17.72 kB / 1.467 GB, free: 14.7 MB / 1.17 GB
Notification: Performance of setup shared object (initialization): time 0.0001445/0.5065, allocations: 330.8 kB / 1.467 GB, free: 14.37 MB / 1.17 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.5066, allocations: 35.91 kB / 1.467 GB, free: 14.34 MB / 1.17 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.5067, allocations: 35.97 kB / 1.467 GB, free: 14.3 MB / 1.17 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.507, allocations: 76.77 kB / 1.467 GB, free: 14.22 MB / 1.17 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.507, allocations: 0 / 1.467 GB, free: 14.22 MB / 1.17 GB
Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003008/0.5073, allocations: 109.6 kB / 1.467 GB, free: 14.11 MB / 1.17 GB
Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.5073, allocations: 4 kB / 1.467 GB, free: 14.11 MB / 1.17 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.5073, allocations: 3.984 kB / 1.467 GB, free: 14.1 MB / 1.17 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.5073, allocations: 0 / 1.467 GB, free: 14.1 MB / 1.17 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001426/0.5074, allocations: 27.98 kB / 1.467 GB, free: 14.07 MB / 1.17 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.5074, allocations: 0 / 1.467 GB, free: 14.07 MB / 1.17 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.5075, allocations: 11.89 kB / 1.467 GB, free: 14.06 MB / 1.17 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.5076, allocations: 4.547 kB / 1.467 GB, free: 14.06 MB / 1.17 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (8):
 * Single equations (assignments): 8
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0001175/0.5077, allocations: 129.7 kB / 1.467 GB, free: 13.92 MB / 1.17 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.25e-05/0.5077, allocations: 15.91 kB / 1.467 GB, free: 13.91 MB / 1.17 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.5081, allocations: 123 kB / 1.468 GB, free: 13.78 MB / 1.17 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.5081, allocations: 4 kB / 1.468 GB, free: 13.77 MB / 1.17 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.5081, allocations: 4 kB / 1.468 GB, free: 13.77 MB / 1.17 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5081, allocations: 3.984 kB / 1.468 GB, free: 13.77 MB / 1.17 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.5084, allocations: 192.6 kB / 1.468 GB, free: 13.54 MB / 1.17 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5084, allocations: 3.938 kB / 1.468 GB, free: 13.53 MB / 1.17 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.5085, allocations: 15.98 kB / 1.468 GB, free: 13.52 MB / 1.17 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.5085, allocations: 3.938 kB / 1.468 GB, free: 13.51 MB / 1.17 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.5085, allocations: 0 / 1.468 GB, free: 13.51 MB / 1.17 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.5085, allocations: 80 / 1.468 GB, free: 13.51 MB / 1.17 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5085, allocations: 3.984 kB / 1.468 GB, free: 13.51 MB / 1.17 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003515/0.5089, allocations: 215.4 kB / 1.468 GB, free: 13.28 MB / 1.17 GB
Notification: Performance of postOpt removeConstants (simulation): time 3.038e-05/0.5089, allocations: 11.94 kB / 1.468 GB, free: 13.27 MB / 1.17 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.5089, allocations: 0 / 1.468 GB, free: 13.27 MB / 1.17 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.509, allocations: 8 kB / 1.468 GB, free: 13.26 MB / 1.17 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.5091, allocations: 7.984 kB / 1.468 GB, free: 13.25 MB / 1.17 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.5091, allocations: 3.984 kB / 1.468 GB, free: 13.25 MB / 1.17 GB
Notification: Performance of sorting global known variables: time 0.0001248/0.5092, allocations: 144.2 kB / 1.468 GB, free: 13.11 MB / 1.17 GB
Notification: Performance of sort global known variables: time 9e-08/0.5092, allocations: 0 / 1.468 GB, free: 13.11 MB / 1.17 GB
Notification: Performance of remove unused functions: time 0.0002615/0.5095, allocations: 23.89 kB / 1.468 GB, free: 13.09 MB / 1.17 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 7
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0001668/0.5096, allocations: 107.7 kB / 1.468 GB, free: 12.97 MB / 1.17 GB
Notification: Performance of simCode: created initialization part: time 0.0003097/0.5099, allocations: 83.83 kB / 1.468 GB, free: 12.89 MB / 1.17 GB
Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5099, allocations: 0 / 1.468 GB, free: 12.89 MB / 1.17 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.5101, allocations: 43.91 kB / 1.468 GB, free: 12.84 MB / 1.17 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.5105, allocations: 23.97 kB / 1.468 GB, free: 12.82 MB / 1.17 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005744/0.511, allocations: 253 kB / 1.469 GB, free: 12.55 MB / 1.17 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.5114, allocations: 0.7079 MB / 1.469 GB, free: 11.81 MB / 1.17 GB
Notification: Performance of simCode: alias equations: time 7.167e-05/0.5115, allocations: 12.98 kB / 1.469 GB, free: 11.8 MB / 1.17 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.793e-05/0.5115, allocations: 15.44 kB / 1.469 GB, free: 11.79 MB / 1.17 GB
Notification: Performance of SimCode: time 3.01e-07/0.5115, allocations: 0 / 1.469 GB, free: 11.79 MB / 1.17 GB
Notification: Performance of Templates: time 0.005313/0.5168, allocations: 1.642 MB / 1.471 GB, free: 10.16 MB / 1.17 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.21448013652116]