Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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.001639/0.001639, allocations: 110 kB / 18.93 MB, free: 2.945 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.001657/0.001657, allocations: 187.3 kB / 22.23 MB, free: 5.16 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.509/1.509, allocations: 225.6 MB / 251 MB, free: 13.01 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.325/3.325, allocations: 496 MB / 0.7835 GB, free: 33.49 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.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average")
translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002898/0.002898, allocations: 67.77 kB / 1.138 GB, free: 33.72 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4428/0.4457, allocations: 173.6 MB / 1.307 GB, free: 1.762 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002371/0.4481, allocations: 0.7171 MB / 1.308 GB, free: 1.043 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001071/0.4492, allocations: 0.8122 MB / 1.309 GB, free: 224 kB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.785e-05/0.4492, allocations: 0 / 1.309 GB, free: 224 kB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 3.292e-05/0.4493, allocations: 7.922 kB / 1.309 GB, free: 216 kB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 7.168e-05/0.4493, allocations: 3.938 kB / 1.309 GB, free: 212 kB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 6.583e-05/0.4494, allocations: 11.98 kB / 1.309 GB, free: 200 kB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 9.621e-05/0.4495, allocations: 39.92 kB / 1.309 GB, free: 160 kB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.4496, allocations: 15.97 kB / 1.309 GB, free: 144 kB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 7.632e-05/0.4497, allocations: 19.92 kB / 1.309 GB, free: 124 kB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 4.953e-05/0.4497, allocations: 23.92 kB / 1.309 GB, free: 100 kB / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.4498, allocations: 4 kB / 1.309 GB, free: 96 kB / 0.9981 GB
Notification: Performance of NFFlatten.collectFunctions: time 1.006e-05/0.4498, allocations: 4 kB / 1.309 GB, free: 92 kB / 0.9981 GB
Notification: Performance of NFScalarize.scalarize: time 1.988e-05/0.4498, allocations: 7.938 kB / 1.309 GB, free: 84 kB / 0.9981 GB
Notification: Performance of NFVerifyModel.verify: time 3.827e-05/0.4498, allocations: 15.92 kB / 1.309 GB, free: 68 kB / 0.9981 GB
Notification: Performance of NFConvertDAE.convert: time 9.453e-05/0.4499, allocations: 43.75 kB / 1.309 GB, free: 24 kB / 0.9981 GB
Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.4499, allocations: 0 / 1.309 GB, free: 24 kB / 0.9981 GB
Notification: Performance of FrontEnd: time 1.563e-06/0.4499, allocations: 0 / 1.309 GB, free: 24 kB / 0.9981 GB
Notification: Performance of Transformations before backend: time 7.284e-06/0.4499, allocations: 3.938 kB / 1.309 GB, free: 20 kB / 0.9981 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 5
 * Number of variables: 5
Notification: Performance of Generate backend data structure: time 0.0006177/0.4506, allocations: 290.2 kB / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.4506, allocations: 12.86 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 3.165e-05/0.4506, allocations: 8.891 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.4508, allocations: 114.5 kB / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.4508, allocations: 384 / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.4508, allocations: 384 / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003119/0.4511, allocations: 74.22 kB / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.4511, allocations: 192 / 1.309 GB, free: 15.47 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.4511, allocations: 3.938 kB / 1.31 GB, free: 15.46 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.4511, allocations: 3.984 kB / 1.31 GB, free: 15.46 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002961/0.4514, allocations: 67.86 kB / 1.31 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004001/0.4518, allocations: 240 kB / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.452, allocations: 62.47 kB / 1.31 GB, free: 15.05 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001426/0.4521, allocations: 32.92 kB / 1.31 GB, free: 15.01 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.4522, allocations: 4 kB / 1.31 GB, free: 15.01 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.4522, allocations: 34.5 kB / 1.31 GB, free: 14.96 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.4522, allocations: 4 kB / 1.31 GB, free: 14.96 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0005082/0.4527, allocations: 125.6 kB / 1.31 GB, free: 14.83 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.4528, allocations: 51.41 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.949e-05/0.4528, allocations: 109.8 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.4529, allocations: 33.7 kB / 1.31 GB, free: 14.61 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.173e-05/0.4529, allocations: 84.09 kB / 1.31 GB, free: 14.53 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.4529, allocations: 7.953 kB / 1.31 GB, free: 14.52 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-05/0.453, allocations: 13.72 kB / 1.31 GB, free: 14.5 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001525/0.4531, allocations: 318.8 kB / 1.311 GB, free: 14.18 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.4533, allocations: 31.97 kB / 1.311 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.4534, allocations: 31.95 kB / 1.311 GB, free: 14.12 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.4536, allocations: 76.72 kB / 1.311 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4537, allocations: 7.938 kB / 1.311 GB, free: 14.03 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002899/0.4539, allocations: 97.62 kB / 1.311 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.454, allocations: 4 kB / 1.311 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.454, allocations: 0 / 1.311 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.454, allocations: 0 / 1.311 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.4541, allocations: 15.98 kB / 1.311 GB, free: 13.91 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.4541, allocations: 0 / 1.311 GB, free: 13.91 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.29e-05/0.4542, allocations: 15.94 kB / 1.311 GB, free: 13.89 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.4542, allocations: 0 / 1.311 GB, free: 13.89 MB / 1.014 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 (3):
 * Single equations (assignments): 3
 * 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 9.439e-05/0.4543, allocations: 134.4 kB / 1.311 GB, free: 13.75 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.4543, allocations: 4 kB / 1.311 GB, free: 13.75 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.933e-05/0.4543, allocations: 4 kB / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.4543, allocations: 0 / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4543, allocations: 7.938 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.4543, allocations: 0 / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.4545, allocations: 144.6 kB / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.4545, allocations: 0 / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.41e-05/0.4546, allocations: 15.97 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4546, allocations: 4 kB / 1.311 GB, free: 13.53 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.4546, allocations: 4 kB / 1.311 GB, free: 13.52 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4546, allocations: 0 / 1.311 GB, free: 13.52 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4546, allocations: 0 / 1.311 GB, free: 13.52 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003796/0.455, allocations: 195.7 kB / 1.311 GB, free: 13.32 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.248e-06/0.455, allocations: 8.031 kB / 1.311 GB, free: 13.31 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.841e-05/0.455, allocations: 7.984 kB / 1.311 GB, free: 13.3 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.4552, allocations: 7.984 kB / 1.311 GB, free: 13.29 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.315e-05/0.4552, allocations: 11.94 kB / 1.311 GB, free: 13.28 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.4552, allocations: 0 / 1.311 GB, free: 13.28 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.56e-05/0.4553, allocations: 91.27 kB / 1.312 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.4553, allocations: 0 / 1.312 GB, free: 13.19 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002262/0.4555, allocations: 4 kB / 1.312 GB, free: 13.19 MB / 1.014 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 (3):
 * Single equations (assignments): 3
 * 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.0001153/0.4556, allocations: 99.25 kB / 1.312 GB, free: 13.08 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003214/0.4559, allocations: 63.92 kB / 1.312 GB, free: 13.02 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4559, allocations: 0 / 1.312 GB, free: 13.02 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.4561, allocations: 35.95 kB / 1.312 GB, free: 12.98 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.4564, allocations: 13.97 kB / 1.312 GB, free: 12.97 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003224/0.4567, allocations: 131.1 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003213/0.457, allocations: 0.6807 MB / 1.313 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.073e-05/0.457, allocations: 0 / 1.313 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.395e-05/0.4571, allocations: 7.438 kB / 1.313 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of SimCode: time 3.51e-07/0.4571, allocations: 8 kB / 1.313 GB, free: 12.1 MB / 1.014 GB
Notification: Performance of Templates: time 0.003265/0.4603, allocations: 0.6993 MB / 1.313 GB, free: 11.4 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Average.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.484204836189747]