Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001772/0.001772, allocations: 108.8 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.001467/0.001467, allocations: 191.5 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.598/1.598, allocations: 225.6 MB / 251 MB, free: 13 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.255/3.255, allocations: 0.4893 GB / 0.7884 GB, free: 33.27 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.Controls.OBC.CDL.Reals.Validation.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|avg1.u1|avg1.u2|avg1.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002057/0.002057, allocations: 70.23 kB / 1.145 GB, free: 30.68 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4316/0.4336, allocations: 174.9 MB / 1.316 GB, free: 9.656 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Average): time 0.002424/0.436, allocations: 0.7099 MB / 1.317 GB, free: 8.945 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001231/0.4373, allocations: 0.8044 MB / 1.318 GB, free: 8.129 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.522e-05/0.4373, allocations: 0 / 1.318 GB, free: 8.129 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.987e-05/0.4374, allocations: 11.92 kB / 1.318 GB, free: 8.117 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 8.038e-05/0.4374, allocations: 3.938 kB / 1.318 GB, free: 8.113 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 7.852e-05/0.4375, allocations: 7.984 kB / 1.318 GB, free: 8.105 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.000113/0.4376, allocations: 43.86 kB / 1.318 GB, free: 8.062 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.4378, allocations: 11.97 kB / 1.318 GB, free: 8.051 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.159e-05/0.4379, allocations: 23.92 kB / 1.318 GB, free: 8.027 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 7.069e-05/0.4379, allocations: 23.92 kB / 1.318 GB, free: 8.004 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.4379, allocations: 4 kB / 1.318 GB, free: 8 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 9.718e-06/0.438, allocations: 4 kB / 1.318 GB, free: 7.996 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.354e-05/0.438, allocations: 7.938 kB / 1.318 GB, free: 7.988 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 3.978e-05/0.438, allocations: 15.92 kB / 1.318 GB, free: 7.973 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.4381, allocations: 47.73 kB / 1.318 GB, free: 7.926 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4381, allocations: 0 / 1.318 GB, free: 7.926 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.392e-06/0.4381, allocations: 0 / 1.318 GB, free: 7.926 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.452e-06/0.4382, allocations: 0 / 1.318 GB, free: 7.926 MB / 1.014 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.000615/0.4388, allocations: 294.2 kB / 1.318 GB, free: 7.605 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.4388, allocations: 8.031 kB / 1.318 GB, free: 7.598 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.007e-05/0.4389, allocations: 8.891 kB / 1.318 GB, free: 7.59 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.439, allocations: 114.5 kB / 1.318 GB, free: 7.453 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.439, allocations: 4.375 kB / 1.318 GB, free: 7.449 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.439, allocations: 384 / 1.318 GB, free: 7.449 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002519/0.4393, allocations: 70.16 kB / 1.318 GB, free: 7.375 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.4393, allocations: 192 / 1.318 GB, free: 7.375 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.4393, allocations: 11.94 kB / 1.318 GB, free: 7.363 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.4393, allocations: 0 / 1.318 GB, free: 7.363 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002933/0.4396, allocations: 63.92 kB / 1.318 GB, free: 7.301 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.44, allocations: 236 kB / 1.319 GB, free: 7.027 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.4402, allocations: 66.52 kB / 1.319 GB, free: 6.953 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.4404, allocations: 36.81 kB / 1.319 GB, free: 6.914 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.4404, allocations: 0 / 1.319 GB, free: 6.914 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.4404, allocations: 30.56 kB / 1.319 GB, free: 6.875 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.4404, allocations: 0 / 1.319 GB, free: 6.875 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0005131/0.4409, allocations: 133.6 kB / 1.319 GB, free: 6.738 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.441, allocations: 51.41 kB / 1.319 GB, free: 6.676 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.4411, allocations: 105.8 kB / 1.319 GB, free: 6.562 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.4411, allocations: 25.7 kB / 1.319 GB, free: 6.531 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 5.976e-05/0.4412, allocations: 96.09 kB / 1.319 GB, free: 6.434 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.4412, allocations: 11.89 kB / 1.319 GB, free: 6.422 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.4412, allocations: 13.72 kB / 1.319 GB, free: 6.402 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001671/0.4414, allocations: 318.8 kB / 1.319 GB, free: 6.082 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/0.4415, allocations: 27.97 kB / 1.319 GB, free: 6.055 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.4417, allocations: 35.95 kB / 1.319 GB, free: 6.02 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.4419, allocations: 64.8 kB / 1.319 GB, free: 5.953 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.4419, allocations: 3.938 kB / 1.319 GB, free: 5.949 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.000309/0.4422, allocations: 109.8 kB / 1.32 GB, free: 5.836 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.4422, allocations: 8 kB / 1.32 GB, free: 5.828 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.4422, allocations: 7.984 kB / 1.32 GB, free: 5.82 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.4423, allocations: 0 / 1.32 GB, free: 5.82 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.4424, allocations: 15.92 kB / 1.32 GB, free: 5.805 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.4424, allocations: 4 kB / 1.32 GB, free: 5.801 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.094e-05/0.4425, allocations: 7.984 kB / 1.32 GB, free: 5.793 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.4425, allocations: 4 kB / 1.32 GB, free: 5.789 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 0.0002045/0.4427, allocations: 114.3 kB / 1.32 GB, free: 5.668 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.4427, allocations: 8 kB / 1.32 GB, free: 5.66 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.679e-05/0.4427, allocations: 8 kB / 1.32 GB, free: 5.641 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.4428, allocations: 0 / 1.32 GB, free: 5.641 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4428, allocations: 0 / 1.32 GB, free: 5.641 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.4428, allocations: 0 / 1.32 GB, free: 5.641 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.4429, allocations: 144.6 kB / 1.32 GB, free: 5.457 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4429, allocations: 0 / 1.32 GB, free: 5.457 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.4431, allocations: 19.97 kB / 1.32 GB, free: 5.438 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.4431, allocations: 0 / 1.32 GB, free: 5.438 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.4431, allocations: 4 kB / 1.32 GB, free: 5.434 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4431, allocations: 4 kB / 1.32 GB, free: 5.43 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4431, allocations: 0 / 1.32 GB, free: 5.43 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003881/0.4435, allocations: 203.3 kB / 1.32 GB, free: 5.215 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.696e-06/0.4435, allocations: 0 / 1.32 GB, free: 5.215 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.4435, allocations: 3.984 kB / 1.32 GB, free: 5.211 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.4436, allocations: 15.98 kB / 1.32 GB, free: 5.195 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.415e-05/0.4437, allocations: 4 kB / 1.32 GB, free: 5.191 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.4437, allocations: 4 kB / 1.32 GB, free: 5.188 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.15e-05/0.4437, allocations: 83.27 kB / 1.32 GB, free: 5.105 MB / 1.014 GB
Notification: Performance of sort global known variables: time 6e-08/0.4437, allocations: 0 / 1.32 GB, free: 5.105 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.00023/0.444, allocations: 12 kB / 1.32 GB, free: 5.094 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.0001401/0.4441, allocations: 94.06 kB / 1.32 GB, free: 4.996 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003326/0.4444, allocations: 71.92 kB / 1.32 GB, free: 4.926 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4445, allocations: 0 / 1.32 GB, free: 4.926 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.4446, allocations: 39.89 kB / 1.32 GB, free: 4.887 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.4449, allocations: 11.88 kB / 1.32 GB, free: 4.875 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004119/0.4453, allocations: 145.2 kB / 1.321 GB, free: 4.707 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.4457, allocations: 0.6768 MB / 1.321 GB, free: 4.004 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.781e-05/0.4457, allocations: 4 kB / 1.321 GB, free: 4 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.51e-05/0.4458, allocations: 7.438 kB / 1.321 GB, free: 3.992 MB / 1.014 GB
Notification: Performance of SimCode: time 5.91e-07/0.4458, allocations: 0 / 1.321 GB, free: 3.992 MB / 1.014 GB
Notification: Performance of Templates: time 0.00392/0.4497, allocations: 0.7007 MB / 1.322 GB, free: 3.297 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.314381305128336]