Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001905/0.001905, allocations: 105.8 kB / 18.84 MB, free: 3.043 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.002519/0.002519, allocations: 191.4 kB / 22.11 MB, free: 5.156 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.535/1.535, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.269/3.269, allocations: 495.8 MB / 0.783 GB, free: 33.55 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-maint.12.x/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_12_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_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 65.89 kB / 1.137 GB, free: 33.8 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3679, allocations: 173.6 MB / 1.307 GB, free: 1.816 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange): time 0.2004/0.5683, allocations: 147.8 MB / 1.451 GB, free: 13.39 MB / 1.154 GB
Notification: Performance of NFInst.instExpressions: time 0.001801/0.5701, allocations: 1.145 MB / 1.452 GB, free: 12.24 MB / 1.154 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.5702, allocations: 0 / 1.452 GB, free: 12.24 MB / 1.154 GB
Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.5706, allocations: 59.66 kB / 1.452 GB, free: 12.18 MB / 1.154 GB
Notification: Performance of NFTyping.typeBindings: time 0.0008529/0.5714, allocations: 322.6 kB / 1.453 GB, free: 11.86 MB / 1.154 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0003993/0.5718, allocations: 159.4 kB / 1.453 GB, free: 11.71 MB / 1.154 GB
Notification: Performance of NFFlatten.flatten: time 0.0005205/0.5723, allocations: 227.2 kB / 1.453 GB, free: 11.48 MB / 1.154 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.5725, allocations: 37.3 kB / 1.453 GB, free: 11.45 MB / 1.154 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.564e-05/0.5726, allocations: 59.77 kB / 1.453 GB, free: 11.39 MB / 1.154 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.5727, allocations: 59.7 kB / 1.453 GB, free: 11.33 MB / 1.154 GB
Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.5727, allocations: 12 kB / 1.453 GB, free: 11.32 MB / 1.154 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0004286/0.5731, allocations: 231.5 kB / 1.453 GB, free: 11.09 MB / 1.154 GB
Notification: Performance of NFScalarize.scalarize: time 6.505e-05/0.5732, allocations: 31.86 kB / 1.453 GB, free: 11.06 MB / 1.154 GB
Notification: Performance of NFVerifyModel.verify: time 8.373e-05/0.5733, allocations: 67.61 kB / 1.453 GB, free: 11 MB / 1.154 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.5737, allocations: 271 kB / 1.454 GB, free: 10.73 MB / 1.154 GB
Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5738, allocations: 0 / 1.454 GB, free: 10.73 MB / 1.154 GB
Notification: Performance of FrontEnd: time 2.014e-06/0.5738, allocations: 0 / 1.454 GB, free: 10.73 MB / 1.154 GB
Notification: Performance of Transformations before backend: time 1.232e-05/0.5738, allocations: 0 / 1.454 GB, free: 10.73 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.0007997/0.5746, allocations: 397.4 kB / 1.454 GB, free: 10.31 MB / 1.154 GB
Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.5746, allocations: 8.031 kB / 1.454 GB, free: 10.3 MB / 1.154 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003145/0.5749, allocations: 40.81 kB / 1.454 GB, free: 10.27 MB / 1.154 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.5753, allocations: 153 kB / 1.454 GB, free: 10.09 MB / 1.154 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.5753, allocations: 7.938 kB / 1.454 GB, free: 10.09 MB / 1.154 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/0.5753, allocations: 12 kB / 1.454 GB, free: 10.07 MB / 1.154 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.5756, allocations: 113.6 kB / 1.454 GB, free: 9.957 MB / 1.154 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.5756, allocations: 0 / 1.454 GB, free: 9.957 MB / 1.154 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.5756, allocations: 8 kB / 1.454 GB, free: 9.949 MB / 1.154 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.5757, allocations: 7.984 kB / 1.454 GB, free: 9.941 MB / 1.154 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002845/0.5759, allocations: 96.59 kB / 1.455 GB, free: 9.848 MB / 1.154 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007545/0.5767, allocations: 431.2 kB / 1.455 GB, free: 9.383 MB / 1.154 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.5769, allocations: 86.55 kB / 1.455 GB, free: 9.289 MB / 1.154 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.5771, allocations: 36.94 kB / 1.455 GB, free: 9.25 MB / 1.154 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.5771, allocations: 0 / 1.455 GB, free: 9.25 MB / 1.154 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.5771, allocations: 42.55 kB / 1.455 GB, free: 9.199 MB / 1.154 GB
Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.5771, allocations: 0 / 1.455 GB, free: 9.199 MB / 1.154 GB
Notification: Performance of matching and sorting (n=7): time 0.0005021/0.5776, allocations: 141.5 kB / 1.455 GB, free: 9.055 MB / 1.154 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.5777, allocations: 55.39 kB / 1.455 GB, free: 8.988 MB / 1.154 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.5779, allocations: 182.3 kB / 1.455 GB, free: 8.801 MB / 1.154 GB
Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.5779, allocations: 25.7 kB / 1.456 GB, free: 8.77 MB / 1.154 GB
Notification: Performance of collectInitialEqns (initialization): time 9.14e-05/0.578, allocations: 112 kB / 1.456 GB, free: 8.656 MB / 1.154 GB
Notification: Performance of collectInitialBindings (initialization): time 2.583e-05/0.578, allocations: 31.73 kB / 1.456 GB, free: 8.625 MB / 1.154 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.5781, allocations: 21.72 kB / 1.456 GB, free: 8.598 MB / 1.154 GB
Notification: Performance of setup shared object (initialization): time 0.0001427/0.5782, allocations: 322.8 kB / 1.456 GB, free: 8.273 MB / 1.154 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.5783, allocations: 39.97 kB / 1.456 GB, free: 8.234 MB / 1.154 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.5785, allocations: 31.98 kB / 1.456 GB, free: 8.203 MB / 1.154 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.5787, allocations: 76.8 kB / 1.456 GB, free: 8.125 MB / 1.154 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.5787, allocations: 0 / 1.456 GB, free: 8.125 MB / 1.154 GB
Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002993/0.579, allocations: 113.5 kB / 1.456 GB, free: 8.008 MB / 1.154 GB
Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.579, allocations: 8 kB / 1.456 GB, free: 8 MB / 1.154 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.579, allocations: 4 kB / 1.456 GB, free: 7.996 MB / 1.154 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.579, allocations: 0 / 1.456 GB, free: 7.996 MB / 1.154 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.5792, allocations: 15.98 kB / 1.456 GB, free: 7.98 MB / 1.154 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.5792, allocations: 0 / 1.456 GB, free: 7.98 MB / 1.154 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.5793, allocations: 23.88 kB / 1.456 GB, free: 7.957 MB / 1.154 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.5793, allocations: 3.938 kB / 1.456 GB, free: 7.953 MB / 1.154 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.0001188/0.5794, allocations: 121.8 kB / 1.456 GB, free: 7.824 MB / 1.154 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/0.5795, allocations: 19.91 kB / 1.456 GB, free: 7.805 MB / 1.154 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000374/0.5798, allocations: 123.5 kB / 1.457 GB, free: 7.68 MB / 1.154 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.5798, allocations: 0 / 1.457 GB, free: 7.68 MB / 1.154 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.5798, allocations: 0 / 1.457 GB, free: 7.68 MB / 1.154 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.5799, allocations: 0 / 1.457 GB, free: 7.68 MB / 1.154 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002658/0.5801, allocations: 200.6 kB / 1.457 GB, free: 7.441 MB / 1.154 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-06/0.5801, allocations: 0 / 1.457 GB, free: 7.441 MB / 1.154 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.5802, allocations: 15.98 kB / 1.457 GB, free: 7.426 MB / 1.154 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.5802, allocations: 7.938 kB / 1.457 GB, free: 7.418 MB / 1.154 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.5803, allocations: 0 / 1.457 GB, free: 7.418 MB / 1.154 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.5803, allocations: 3.984 kB / 1.457 GB, free: 7.414 MB / 1.154 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5803, allocations: 4.078 kB / 1.457 GB, free: 7.41 MB / 1.154 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.5806, allocations: 211.3 kB / 1.457 GB, free: 7.188 MB / 1.154 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.849e-05/0.5806, allocations: 11.95 kB / 1.457 GB, free: 7.176 MB / 1.154 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.5807, allocations: 0 / 1.457 GB, free: 7.176 MB / 1.154 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.5808, allocations: 15.98 kB / 1.457 GB, free: 7.16 MB / 1.154 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.5808, allocations: 11.98 kB / 1.457 GB, free: 7.148 MB / 1.154 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-06/0.5808, allocations: 0 / 1.457 GB, free: 7.148 MB / 1.154 GB
Notification: Performance of sorting global known variables: time 0.0001204/0.581, allocations: 132.2 kB / 1.457 GB, free: 7.02 MB / 1.154 GB
Notification: Performance of sort global known variables: time 8e-08/0.581, allocations: 0 / 1.457 GB, free: 7.02 MB / 1.154 GB
Notification: Performance of remove unused functions: time 0.0002657/0.5812, allocations: 31.89 kB / 1.457 GB, free: 6.988 MB / 1.154 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.0001861/0.5814, allocations: 104 kB / 1.457 GB, free: 6.875 MB / 1.154 GB
Notification: Performance of simCode: created initialization part: time 0.0003166/0.5817, allocations: 79.83 kB / 1.457 GB, free: 6.797 MB / 1.154 GB
Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5817, allocations: 0 / 1.457 GB, free: 6.797 MB / 1.154 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.5819, allocations: 39.95 kB / 1.457 GB, free: 6.758 MB / 1.154 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.5823, allocations: 35.91 kB / 1.457 GB, free: 6.723 MB / 1.154 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006736/0.5829, allocations: 260.9 kB / 1.458 GB, free: 6.441 MB / 1.154 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.5833, allocations: 0.708 MB / 1.458 GB, free: 5.707 MB / 1.154 GB
Notification: Performance of simCode: alias equations: time 6.823e-05/0.5834, allocations: 12.97 kB / 1.458 GB, free: 5.695 MB / 1.154 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.5834, allocations: 15.44 kB / 1.458 GB, free: 5.68 MB / 1.154 GB
Notification: Performance of SimCode: time 3.81e-07/0.5834, allocations: 0 / 1.458 GB, free: 5.68 MB / 1.154 GB
Notification: Performance of Templates: time 0.005159/0.5886, allocations: 1.639 MB / 1.46 GB, free: 4.066 MB / 1.154 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.sim & ./Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.MassExchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_MassExchange.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.448196731507778]