Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.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.001486/0.001486, allocations: 110 kB / 18.94 MB, free: 2.949 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.002503/0.002503, allocations: 185.9 kB / 22.23 MB, free: 5.137 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.502/1.502, 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-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.33/3.33, allocations: 0.4893 GB / 0.7884 GB, free: 33.16 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.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.|sorAsc.yIdx.1.|sorAsc.yIdx.2.|sorAsc.yIdx.3.|sorAsc.yIdx.4.|sorAsc.yIdx.5.|sorDes.yIdx.1.|sorDes.yIdx.2.|sorDes.yIdx.3.|sorDes.yIdx.4.|sorDes.yIdx.5.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort")
translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.|sorAsc.yIdx.1.|sorAsc.yIdx.2.|sorAsc.yIdx.3.|sorAsc.yIdx.4.|sorAsc.yIdx.5.|sorDes.yIdx.1.|sorDes.yIdx.2.|sorDes.yIdx.3.|sorDes.yIdx.4.|sorDes.yIdx.5.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 62.55 kB / 1.145 GB, free: 30.62 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4357/0.4376, allocations: 174.9 MB / 1.316 GB, free: 9.68 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002309/0.44, allocations: 0.8458 MB / 1.317 GB, free: 8.836 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001548/0.4415, allocations: 1.018 MB / 1.318 GB, free: 7.805 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.813e-05/0.4416, allocations: 4 kB / 1.318 GB, free: 7.801 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.4417, allocations: 11.86 kB / 1.318 GB, free: 7.789 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 5.514e-05/0.4418, allocations: 23.8 kB / 1.318 GB, free: 7.766 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0004476/0.4422, allocations: 95.75 kB / 1.318 GB, free: 7.672 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001976/0.4424, allocations: 131.6 kB / 1.318 GB, free: 7.543 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.4426, allocations: 29.3 kB / 1.318 GB, free: 7.512 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.054e-05/0.4427, allocations: 47.84 kB / 1.318 GB, free: 7.465 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.4428, allocations: 67.75 kB / 1.318 GB, free: 7.398 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.599e-05/0.4428, allocations: 12 kB / 1.318 GB, free: 7.387 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.443, allocations: 91.84 kB / 1.318 GB, free: 7.297 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 7.691e-05/0.443, allocations: 51.83 kB / 1.318 GB, free: 7.246 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.741e-05/0.4431, allocations: 59.61 kB / 1.318 GB, free: 7.188 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000323/0.4434, allocations: 215 kB / 1.319 GB, free: 6.977 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.4434, allocations: 3.938 kB / 1.319 GB, free: 6.973 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.853e-06/0.4434, allocations: 0 / 1.319 GB, free: 6.973 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.026e-05/0.4435, allocations: 0 / 1.319 GB, free: 6.973 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: 35
 * Number of variables: 35
Notification: Performance of Generate backend data structure: time 0.0009039/0.4444, allocations: 423.5 kB / 1.319 GB, free: 6.527 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4444, allocations: 16.02 kB / 1.319 GB, free: 6.512 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.402e-05/0.4445, allocations: 16.8 kB / 1.319 GB, free: 6.496 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.4447, allocations: 151.1 kB / 1.319 GB, free: 6.324 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.4447, allocations: 4.375 kB / 1.319 GB, free: 6.32 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.979e-05/0.4447, allocations: 4.375 kB / 1.319 GB, free: 6.316 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005646/0.4453, allocations: 210.1 kB / 1.319 GB, free: 6.105 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.4453, allocations: 192 / 1.319 GB, free: 6.105 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.4453, allocations: 7.938 kB / 1.319 GB, free: 6.098 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.4453, allocations: 0 / 1.319 GB, free: 6.098 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006843/0.446, allocations: 223.8 kB / 1.32 GB, free: 5.879 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.447, allocations: 0.499 MB / 1.32 GB, free: 5.336 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.4474, allocations: 150.4 kB / 1.32 GB, free: 5.18 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003799/0.4478, allocations: 145.6 kB / 1.32 GB, free: 5.035 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 6.003e-05/0.4479, allocations: 7.984 kB / 1.32 GB, free: 5.027 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.4479, allocations: 30.56 kB / 1.321 GB, free: 4.988 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=25): time 1.343e-06/0.4479, allocations: 0 / 1.321 GB, free: 4.988 MB / 1.014 GB
Notification: Performance of matching and sorting (n=25): time 0.001291/0.4492, allocations: 478.7 kB / 1.321 GB, free: 4.516 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.694e-05/0.4493, allocations: 59.34 kB / 1.321 GB, free: 4.445 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.4494, allocations: 153.8 kB / 1.321 GB, free: 4.289 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.4494, allocations: 33.64 kB / 1.321 GB, free: 4.25 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.712e-05/0.4495, allocations: 112.5 kB / 1.321 GB, free: 4.137 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 7.712e-05/0.4496, allocations: 75.44 kB / 1.321 GB, free: 4.062 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.258e-05/0.4497, allocations: 29.7 kB / 1.321 GB, free: 4.027 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001781/0.4498, allocations: 334.8 kB / 1.322 GB, free: 3.691 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.4502, allocations: 127.9 kB / 1.322 GB, free: 3.566 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003648/0.4506, allocations: 137 kB / 1.322 GB, free: 3.434 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007515/0.4513, allocations: 302.3 kB / 1.322 GB, free: 3.137 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4513, allocations: 4 kB / 1.322 GB, free: 3.133 MB / 1.014 GB
Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007937/0.4521, allocations: 322.2 kB / 1.323 GB, free: 2.812 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.4521, allocations: 8 kB / 1.323 GB, free: 2.805 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/0.4522, allocations: 4 kB / 1.323 GB, free: 2.801 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.4522, allocations: 0 / 1.323 GB, free: 2.801 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.4524, allocations: 43.89 kB / 1.323 GB, free: 2.758 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.4524, allocations: 7.938 kB / 1.323 GB, free: 2.75 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.4526, allocations: 35.84 kB / 1.323 GB, free: 2.715 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.4526, allocations: 8 kB / 1.323 GB, free: 2.707 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: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (7):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 2
 * 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.0001629/0.4528, allocations: 138.7 kB / 1.323 GB, free: 2.562 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.4528, allocations: 11.91 kB / 1.323 GB, free: 2.551 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008778/0.4537, allocations: 366.5 kB / 1.323 GB, free: 2.184 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.4537, allocations: 7.938 kB / 1.323 GB, free: 2.176 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4537, allocations: 3.938 kB / 1.323 GB, free: 2.172 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4537, allocations: 3.984 kB / 1.323 GB, free: 2.168 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002891/0.454, allocations: 236.5 kB / 1.323 GB, free: 1.895 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.454, allocations: 0 / 1.323 GB, free: 1.895 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.4542, allocations: 43.94 kB / 1.323 GB, free: 1.852 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.4542, allocations: 0 / 1.323 GB, free: 1.852 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.4542, allocations: 0 / 1.323 GB, free: 1.852 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4542, allocations: 0 / 1.323 GB, free: 1.852 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.4542, allocations: 3.938 kB / 1.323 GB, free: 1.848 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008771/0.4551, allocations: 439.2 kB / 1.324 GB, free: 1.402 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.498e-05/0.4551, allocations: 19.8 kB / 1.324 GB, free: 1.383 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.4551, allocations: 0 / 1.324 GB, free: 1.383 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001864/0.4553, allocations: 31.95 kB / 1.324 GB, free: 1.352 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.493e-05/0.4554, allocations: 19.86 kB / 1.324 GB, free: 1.332 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.165e-05/0.4554, allocations: 4 kB / 1.324 GB, free: 1.328 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 8.492e-05/0.4555, allocations: 111.2 kB / 1.324 GB, free: 1.219 MB / 1.014 GB
Notification: Performance of sort global known variables: time 6e-08/0.4555, allocations: 0 / 1.324 GB, free: 1.219 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002924/0.4558, allocations: 39.94 kB / 1.324 GB, free: 1.18 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: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 2
 * 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.0002365/0.456, allocations: 131.7 kB / 1.324 GB, free: 1.043 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0008816/0.4569, allocations: 351.5 kB / 1.325 GB, free: 0.6875 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.4569, allocations: 4 kB / 1.325 GB, free: 0.6836 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0004427/0.4573, allocations: 231.3 kB / 1.325 GB, free: 456 kB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003005/0.4576, allocations: 21.23 kB / 1.325 GB, free: 436 kB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006305/0.4583, allocations: 363.1 kB / 1.325 GB, free: 44 kB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004418/0.4587, allocations: 0.7328 MB / 1.326 GB, free: 15.29 MB / 1.029 GB
Notification: Performance of simCode: alias equations: time 6.903e-05/0.4588, allocations: 15.97 kB / 1.326 GB, free: 15.27 MB / 1.029 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.893e-05/0.4588, allocations: 15.44 kB / 1.326 GB, free: 15.25 MB / 1.029 GB
Notification: Performance of SimCode: time 2.91e-07/0.4588, allocations: 0 / 1.326 GB, free: 15.25 MB / 1.029 GB
Notification: Performance of Templates: time 0.005754/0.4646, allocations: 2.146 MB / 1.328 GB, free: 13.12 MB / 1.029 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.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.523927225731313]