Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 118.2 kB / 16.42 MB, free: 6.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 183.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.699/2.699, allocations: 469.4 MB / 0.7428 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 1.065 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6798/0.6812, allocations: 159.1 MB / 1.221 GB, free: 2.391 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001876/0.6832, allocations: 0.8238 MB / 1.222 GB, free: 1.566 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.6844, allocations: 1.014 MB / 1.223 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.879e-05/0.6845, allocations: 0 / 1.223 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.6846, allocations: 15.88 kB / 1.223 GB, free: 0.5234 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.641e-05/0.6847, allocations: 27.78 kB / 1.223 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003594/0.685, allocations: 87.77 kB / 1.223 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001459/0.6852, allocations: 123.7 kB / 1.223 GB, free: 296 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.6853, allocations: 53.08 kB / 1.223 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.181e-05/0.6854, allocations: 55.78 kB / 1.223 GB, free: 188 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.649e-05/0.6855, allocations: 59.75 kB / 1.223 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.6856, allocations: 12 kB / 1.223 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.6857, allocations: 87.91 kB / 1.223 GB, free: 28 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.851e-05/0.6858, allocations: 43.92 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.114e-05/0.6859, allocations: 63.52 kB / 1.223 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.6861, allocations: 214.8 kB / 1.223 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.6861, allocations: 3.938 kB / 1.223 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.462e-06/0.6861, allocations: 0 / 1.223 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.6862, allocations: 0 / 1.223 GB, free: 15.71 MB / 0.9512 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.0008389/0.687, allocations: 492.8 kB / 1.224 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.687, allocations: 8.625 kB / 1.224 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.6871, allocations: 24.59 kB / 1.224 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.6873, allocations: 208 kB / 1.224 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.6873, allocations: 8.375 kB / 1.224 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.6873, allocations: 4.375 kB / 1.224 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005855/0.6879, allocations: 202.7 kB / 1.224 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.6879, allocations: 192 / 1.224 GB, free: 14.69 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.688, allocations: 7.938 kB / 1.224 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.688, allocations: 4 kB / 1.224 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007516/0.6887, allocations: 223.8 kB / 1.225 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009203/0.6897, allocations: 0.5274 MB / 1.225 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000446/0.6901, allocations: 174.4 kB / 1.225 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004176/0.6906, allocations: 164.7 kB / 1.225 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.267e-05/0.6906, allocations: 7.984 kB / 1.225 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.166e-05/0.6906, allocations: 34.56 kB / 1.225 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.6907, allocations: 0 / 1.225 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001427/0.6921, allocations: 469.2 kB / 1.226 GB, free: 13.02 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.6921, allocations: 59.41 kB / 1.226 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.6923, allocations: 156.7 kB / 1.226 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.938e-05/0.6923, allocations: 25.7 kB / 1.226 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.342e-05/0.6924, allocations: 108.6 kB / 1.226 GB, free: 12.65 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.829e-05/0.6924, allocations: 70.94 kB / 1.226 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.397e-05/0.6925, allocations: 37.7 kB / 1.226 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.6926, allocations: 326.8 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.693, allocations: 136 kB / 1.227 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.6934, allocations: 135.8 kB / 1.227 GB, free: 11.94 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000805/0.6943, allocations: 295.9 kB / 1.227 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.6943, allocations: 4 kB / 1.227 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008755/0.6952, allocations: 329.2 kB / 1.228 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.6952, allocations: 4 kB / 1.228 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.6952, allocations: 4 kB / 1.228 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.6952, allocations: 4 kB / 1.228 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.6955, allocations: 31.95 kB / 1.228 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.6955, allocations: 7.875 kB / 1.228 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.6957, allocations: 43.8 kB / 1.228 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.6957, allocations: 8.172 kB / 1.228 GB, free: 11.22 MB / 0.9512 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.0001233/0.6958, allocations: 144 kB / 1.228 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.6959, allocations: 15.81 kB / 1.228 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000941/0.6968, allocations: 358.5 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.6969, allocations: 0 / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.6969, allocations: 4 kB / 1.228 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.6969, allocations: 92.89 kB / 1.228 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.697, allocations: 0 / 1.228 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.6972, allocations: 31.95 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.686e-05/0.6973, allocations: 23.91 kB / 1.228 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001028/0.6983, allocations: 432.6 kB / 1.229 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009376/0.6992, allocations: 0.5058 MB / 1.229 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004359/0.6997, allocations: 159.9 kB / 1.229 GB, free: 9.426 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.87e-05/0.6998, allocations: 121.2 kB / 1.229 GB, free: 9.309 MB / 0.9512 GB Notification: Performance of Backend: time 5.41e-07/0.6998, allocations: 4 kB / 1.229 GB, free: 9.305 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009323/0.7007, allocations: 329.7 kB / 1.23 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007949/0.7015, allocations: 0.7889 MB / 1.231 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of Templates: time 0.005732/0.7073, allocations: 2.471 MB / 1.233 GB, free: 5.684 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches