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.001503/0.001503, allocations: 110.3 kB / 16.42 MB, free: 6.469 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.001811/0.001811, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.684/2.684, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 67.91 kB / 1.055 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.684/0.6854, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001752/0.6872, allocations: 0.831 MB / 1.209 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.6882, allocations: 1.018 MB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.72e-05/0.6883, allocations: 0 / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.394e-05/0.6884, allocations: 15.86 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.6884, allocations: 15.75 kB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.6888, allocations: 91.81 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.6889, allocations: 123.6 kB / 1.21 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.6891, allocations: 53.09 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.6892, allocations: 55.83 kB / 1.211 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.349e-05/0.6892, allocations: 63.73 kB / 1.211 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.6893, allocations: 12 kB / 1.211 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.6894, allocations: 87.86 kB / 1.211 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.904e-05/0.6895, allocations: 43.84 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.667e-05/0.6895, allocations: 63.59 kB / 1.211 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.6897, allocations: 210.9 kB / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.6898, allocations: 0 / 1.211 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.383e-06/0.6898, allocations: 4 kB / 1.211 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.6898, allocations: 3.938 kB / 1.211 GB, free: 10.89 MB / 0.9356 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.0007762/0.6906, allocations: 488.8 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.6906, allocations: 11.97 kB / 1.212 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.48e-05/0.6907, allocations: 16.75 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001653/0.6908, allocations: 204 kB / 1.212 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.6908, allocations: 8.375 kB / 1.212 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.6909, allocations: 8.375 kB / 1.212 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.6914, allocations: 207.7 kB / 1.212 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.6914, allocations: 192 / 1.212 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.6915, allocations: 7.938 kB / 1.212 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.6915, allocations: 4 kB / 1.212 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/0.6922, allocations: 223.7 kB / 1.212 GB, free: 9.645 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008652/0.6931, allocations: 0.5275 MB / 1.213 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.6935, allocations: 174.4 kB / 1.213 GB, free: 8.887 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004119/0.694, allocations: 156.7 kB / 1.213 GB, free: 8.73 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.132e-05/0.694, allocations: 4 kB / 1.213 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.694, allocations: 30.56 kB / 1.213 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.694, allocations: 4 kB / 1.213 GB, free: 8.684 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.001334/0.6954, allocations: 478.2 kB / 1.213 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.6954, allocations: 55.34 kB / 1.214 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.6955, allocations: 156.2 kB / 1.214 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.6956, allocations: 25.7 kB / 1.214 GB, free: 7.953 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.282e-05/0.6956, allocations: 108.5 kB / 1.214 GB, free: 7.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.376e-05/0.6957, allocations: 71.02 kB / 1.214 GB, free: 7.77 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.6957, allocations: 45.7 kB / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.556e-05/0.6958, allocations: 330.8 kB / 1.214 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003932/0.6962, allocations: 127.9 kB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.6966, allocations: 135.4 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007888/0.6974, allocations: 296.5 kB / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6974, allocations: 0 / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008411/0.6983, allocations: 333 kB / 1.215 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.6983, allocations: 7.938 kB / 1.215 GB, free: 6.504 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.6983, allocations: 3.984 kB / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.6984, allocations: 0 / 1.215 GB, free: 6.5 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.6986, allocations: 35.95 kB / 1.215 GB, free: 6.465 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.6986, allocations: 3.938 kB / 1.215 GB, free: 6.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.6988, allocations: 51.73 kB / 1.215 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.6988, allocations: 0 / 1.215 GB, free: 6.41 MB / 0.9356 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.0001151/0.6989, allocations: 135.4 kB / 1.215 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.651e-05/0.699, allocations: 11.89 kB / 1.215 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009133/0.6999, allocations: 366.4 kB / 1.216 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.6999, allocations: 0 / 1.216 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.6999, allocations: 3.938 kB / 1.216 GB, free: 5.887 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.475e-05/0.7, allocations: 100.8 kB / 1.216 GB, free: 5.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.7, allocations: 4 kB / 1.216 GB, free: 5.766 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.7002, allocations: 35.95 kB / 1.216 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.713e-05/0.7003, allocations: 15.98 kB / 1.216 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001014/0.7013, allocations: 432.6 kB / 1.216 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008985/0.7022, allocations: 0.5093 MB / 1.217 GB, free: 4.762 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004142/0.7026, allocations: 159.9 kB / 1.217 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.18e-05/0.7027, allocations: 113.7 kB / 1.217 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of Backend: time 3.91e-07/0.7027, allocations: 0 / 1.217 GB, free: 4.496 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000857/0.7036, allocations: 333.6 kB / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of SimCode: time 0.000631/0.7042, allocations: 0.7999 MB / 1.218 GB, free: 3.297 MB / 0.9356 GB Notification: Performance of Templates: time 0.004868/0.7091, allocations: 2.455 MB / 1.221 GB, free: 0.8672 MB / 0.9356 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