Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.002004/0.002004, allocations: 110.2 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.002558/0.002558, allocations: 186.7 kB / 22.22 MB, free: 5.164 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.544/1.544, 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-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.332/3.332, allocations: 496 MB / 0.7835 GB, free: 33.6 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.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_12_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_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 62.67 kB / 1.138 GB, free: 33.67 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4629/0.4649, allocations: 173.6 MB / 1.307 GB, free: 1.742 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002384/0.4673, allocations: 0.8614 MB / 1.308 GB, free: 0.8789 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001558/0.4688, allocations: 1.01 MB / 1.309 GB, free: 15.86 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 8.3e-05/0.4689, allocations: 4 kB / 1.309 GB, free: 15.85 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.4691, allocations: 15.8 kB / 1.309 GB, free: 15.84 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.4692, allocations: 23.73 kB / 1.309 GB, free: 15.81 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0004624/0.4697, allocations: 91.83 kB / 1.309 GB, free: 15.72 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002002/0.4699, allocations: 127.6 kB / 1.309 GB, free: 15.6 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.4701, allocations: 41.28 kB / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.758e-05/0.4702, allocations: 51.84 kB / 1.31 GB, free: 15.5 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.4702, allocations: 59.75 kB / 1.31 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.4703, allocations: 8 kB / 1.31 GB, free: 15.44 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001845/0.4705, allocations: 95.84 kB / 1.31 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 7.523e-05/0.4705, allocations: 51.84 kB / 1.31 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.662e-05/0.4706, allocations: 55.61 kB / 1.31 GB, free: 15.24 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.471, allocations: 215 kB / 1.31 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.471, allocations: 0 / 1.31 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.674e-06/0.471, allocations: 0 / 1.31 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.522e-06/0.471, allocations: 0 / 1.31 GB, free: 15.03 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.0009136/0.4719, allocations: 425.3 kB / 1.31 GB, free: 14.58 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.4719, allocations: 12.92 kB / 1.31 GB, free: 14.57 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.472, allocations: 16.8 kB / 1.31 GB, free: 14.55 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.4722, allocations: 154.2 kB / 1.311 GB, free: 14.38 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.115e-06/0.4722, allocations: 384 / 1.311 GB, free: 14.38 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.4723, allocations: 16.38 kB / 1.311 GB, free: 14.36 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005758/0.4728, allocations: 203 kB / 1.311 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.4729, allocations: 192 / 1.311 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.4729, allocations: 3.938 kB / 1.311 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.4729, allocations: 0 / 1.311 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006957/0.4736, allocations: 227.7 kB / 1.311 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000979/0.4746, allocations: 0.4913 MB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/0.475, allocations: 154.4 kB / 1.312 GB, free: 13.23 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003761/0.4754, allocations: 140.8 kB / 1.312 GB, free: 13.09 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 6.799e-05/0.4754, allocations: 7.984 kB / 1.312 GB, free: 13.09 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.4755, allocations: 30.56 kB / 1.312 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=25): time 1.142e-06/0.4755, allocations: 0 / 1.312 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of matching and sorting (n=25): time 0.001398/0.4769, allocations: 487.6 kB / 1.312 GB, free: 12.57 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.4769, allocations: 55.34 kB / 1.312 GB, free: 12.5 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.4771, allocations: 152.8 kB / 1.312 GB, free: 12.34 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.4771, allocations: 29.7 kB / 1.312 GB, free: 12.31 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.295e-05/0.4772, allocations: 108.5 kB / 1.313 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 7.719e-05/0.4773, allocations: 71.38 kB / 1.313 GB, free: 12.13 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.65e-05/0.4773, allocations: 37.7 kB / 1.313 GB, free: 12.09 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001837/0.4775, allocations: 326.8 kB / 1.313 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/0.4779, allocations: 127.9 kB / 1.313 GB, free: 11.63 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.4783, allocations: 139.8 kB / 1.313 GB, free: 11.5 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000787/0.4791, allocations: 306.3 kB / 1.314 GB, free: 11.2 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4791, allocations: 0 / 1.314 GB, free: 11.2 MB / 1.014 GB
Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008283/0.4799, allocations: 329 kB / 1.314 GB, free: 10.87 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.4799, allocations: 5.875 kB / 1.314 GB, free: 10.87 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.48, allocations: 4.234 kB / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.48, allocations: 0 / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.4802, allocations: 39.89 kB / 1.314 GB, free: 10.82 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.4802, allocations: 7.922 kB / 1.314 GB, free: 10.82 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.4804, allocations: 43.84 kB / 1.314 GB, free: 10.77 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.4805, allocations: 4 kB / 1.314 GB, free: 10.77 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.000186/0.4806, allocations: 141.8 kB / 1.314 GB, free: 10.62 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.4807, allocations: 11.91 kB / 1.314 GB, free: 10.61 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009297/0.4816, allocations: 366.5 kB / 1.314 GB, free: 10.25 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.4816, allocations: 4 kB / 1.314 GB, free: 10.24 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.4816, allocations: 3.938 kB / 1.314 GB, free: 10.24 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4816, allocations: 0 / 1.314 GB, free: 10.24 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.4819, allocations: 244.5 kB / 1.315 GB, free: 9.957 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.4819, allocations: 3.984 kB / 1.315 GB, free: 9.953 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.4821, allocations: 39.95 kB / 1.315 GB, free: 9.914 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.4821, allocations: 0 / 1.315 GB, free: 9.914 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.4821, allocations: 4 kB / 1.315 GB, free: 9.91 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.4821, allocations: 4 kB / 1.315 GB, free: 9.906 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4821, allocations: 3.938 kB / 1.315 GB, free: 9.902 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009021/0.483, allocations: 435.1 kB / 1.315 GB, free: 9.461 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 2.574e-05/0.4831, allocations: 15.84 kB / 1.315 GB, free: 9.445 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.4831, allocations: 0 / 1.315 GB, free: 9.445 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.4833, allocations: 39.94 kB / 1.315 GB, free: 9.406 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 7.72e-05/0.4834, allocations: 15.92 kB / 1.315 GB, free: 9.391 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.4834, allocations: 4 kB / 1.315 GB, free: 9.387 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 9.729e-05/0.4835, allocations: 110.1 kB / 1.315 GB, free: 9.281 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.4835, allocations: 0 / 1.315 GB, free: 9.281 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003089/0.4838, allocations: 47.89 kB / 1.315 GB, free: 9.234 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.0002869/0.4841, allocations: 121.9 kB / 1.315 GB, free: 9.109 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0009166/0.485, allocations: 366.4 kB / 1.316 GB, free: 8.742 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.485, allocations: 3.938 kB / 1.316 GB, free: 8.738 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0004592/0.4855, allocations: 219.3 kB / 1.316 GB, free: 8.512 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003331/0.4858, allocations: 23.92 kB / 1.316 GB, free: 8.488 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007767/0.4866, allocations: 355.1 kB / 1.316 GB, free: 8.113 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.487, allocations: 0.7314 MB / 1.317 GB, free: 7.355 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 7.821e-05/0.487, allocations: 23.91 kB / 1.317 GB, free: 7.332 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.251e-05/0.4871, allocations: 11.44 kB / 1.317 GB, free: 7.32 MB / 1.014 GB
Notification: Performance of SimCode: time 7.71e-07/0.4871, allocations: 3.938 kB / 1.317 GB, free: 7.316 MB / 1.014 GB
Notification: Performance of Templates: time 0.006211/0.4933, allocations: 2.141 MB / 1.319 GB, free: 5.195 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.7006348464638]