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.00752/0.00752, allocations: 100.8 kB / 15.73 MB, free: 6.035 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.001431/0.001431, allocations: 197.9 kB / 16.68 MB, free: 5.953 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.91 kB / 1.054 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9699/0.9714, allocations: 157.4 MB / 1.208 GB, free: 13.55 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002068/0.9735, allocations: 0.8228 MB / 1.209 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001338/0.9749, allocations: 1.018 MB / 1.21 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.524e-05/0.975, allocations: 4 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.9751, allocations: 15.86 kB / 1.21 GB, free: 11.69 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.009e-05/0.9752, allocations: 19.75 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004223/0.9756, allocations: 87.81 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.9758, allocations: 127.6 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.9759, allocations: 53.09 kB / 1.21 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.898e-05/0.9761, allocations: 51.84 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.825e-05/0.9761, allocations: 59.75 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.9762, allocations: 11.94 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001554/0.9763, allocations: 95.83 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.93e-05/0.9764, allocations: 35.91 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.146e-05/0.9765, allocations: 67.55 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.9768, allocations: 214.9 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.9768, allocations: 0 / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.367e-06/0.9768, allocations: 3.984 kB / 1.21 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.9768, allocations: 4 kB / 1.21 GB, free: 10.88 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.0008501/0.9777, allocations: 484.8 kB / 1.211 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.9777, allocations: 8.031 kB / 1.211 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.537e-05/0.9778, allocations: 20.75 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.978, allocations: 210.4 kB / 1.211 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.978, allocations: 12.38 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.978, allocations: 4.375 kB / 1.211 GB, free: 10.07 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/0.9786, allocations: 202 kB / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.9786, allocations: 192 / 1.211 GB, free: 9.863 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.9786, allocations: 15.92 kB / 1.211 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.9786, allocations: 0 / 1.211 GB, free: 9.848 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007219/0.9794, allocations: 227.7 kB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009313/0.9803, allocations: 0.5275 MB / 1.212 GB, free: 9.047 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004376/0.9808, allocations: 174.4 kB / 1.212 GB, free: 8.867 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004013/0.9812, allocations: 152.8 kB / 1.212 GB, free: 8.715 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 5.114e-05/0.9812, allocations: 11.98 kB / 1.212 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.9813, allocations: 30.56 kB / 1.212 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.9813, allocations: 4 kB / 1.212 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.001405/0.9827, allocations: 477.7 kB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.9827, allocations: 59.28 kB / 1.213 GB, free: 8.121 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.9829, allocations: 148.1 kB / 1.213 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.9829, allocations: 29.7 kB / 1.213 GB, free: 7.934 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.06e-05/0.983, allocations: 108.5 kB / 1.213 GB, free: 7.82 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.904e-05/0.983, allocations: 70.94 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.9831, allocations: 41.7 kB / 1.213 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.9832, allocations: 326.8 kB / 1.214 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.9836, allocations: 127.9 kB / 1.214 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003821/0.984, allocations: 139.9 kB / 1.214 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007781/0.9848, allocations: 300.5 kB / 1.214 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9848, allocations: 0 / 1.214 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008544/0.9856, allocations: 332.9 kB / 1.214 GB, free: 6.488 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.9857, allocations: 4 kB / 1.214 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.9857, allocations: 4 kB / 1.214 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.9857, allocations: 0 / 1.214 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.986, allocations: 39.89 kB / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.986, allocations: 3.938 kB / 1.214 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.9862, allocations: 39.8 kB / 1.214 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.9862, allocations: 8 kB / 1.214 GB, free: 6.391 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.0001273/0.9863, allocations: 141.8 kB / 1.215 GB, free: 6.242 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.614e-05/0.9864, allocations: 7.906 kB / 1.215 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009239/0.9873, allocations: 362.4 kB / 1.215 GB, free: 5.871 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.9873, allocations: 4 kB / 1.215 GB, free: 5.867 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.9873, allocations: 3.938 kB / 1.215 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.9874, allocations: 0 / 1.215 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.9876, allocations: 265.4 kB / 1.215 GB, free: 5.555 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/0.9877, allocations: 7.984 kB / 1.215 GB, free: 5.547 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/0.9879, allocations: 39.95 kB / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.9879, allocations: 0 / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.9879, allocations: 0 / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.9879, allocations: 0 / 1.215 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.9879, allocations: 3.938 kB / 1.215 GB, free: 5.504 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008954/0.9888, allocations: 447 kB / 1.216 GB, free: 5.051 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.717e-05/0.9889, allocations: 92.86 kB / 1.216 GB, free: 4.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.9889, allocations: 4 kB / 1.216 GB, free: 4.938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002053/0.9891, allocations: 31.95 kB / 1.216 GB, free: 4.906 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.466e-05/0.9892, allocations: 15.92 kB / 1.216 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.9892, allocations: 4 kB / 1.216 GB, free: 4.887 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.094e-05/0.9893, allocations: 109.9 kB / 1.216 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9893, allocations: 0 / 1.216 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003016/0.9896, allocations: 47.84 kB / 1.216 GB, free: 4.734 MB / 0.9356 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.0002171/0.9898, allocations: 128.4 kB / 1.216 GB, free: 4.602 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009648/0.9908, allocations: 382.8 kB / 1.216 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.9908, allocations: 0 / 1.216 GB, free: 4.219 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004704/0.9913, allocations: 239.4 kB / 1.217 GB, free: 3.973 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.9916, allocations: 24.12 kB / 1.217 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006274/0.9922, allocations: 343.5 kB / 1.217 GB, free: 3.582 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.9925, allocations: 0.7236 MB / 1.218 GB, free: 2.832 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.969e-05/0.9926, allocations: 19.97 kB / 1.218 GB, free: 2.812 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.9927, allocations: 15.44 kB / 1.218 GB, free: 2.797 MB / 0.9356 GB Notification: Performance of SimCode: time 2.21e-07/0.9927, allocations: 4 kB / 1.218 GB, free: 2.793 MB / 0.9356 GB Notification: Performance of Templates: time 0.005408/0.9981, allocations: 2.053 MB / 1.22 GB, free: 0.7656 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/jenkins/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