Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00206/0.00206, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.583/1.583, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.996/2.996, allocations: 476 MB / 0.7699 GB, free: 4.758 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 68.34 kB / 1.117 GB, free: 41.02 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4017/0.4038, allocations: 169.9 MB / 1.283 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002245/0.4061, allocations: 0.8039 MB / 1.284 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001553/0.4076, allocations: 1.034 MB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.834e-05/0.4077, allocations: 0 / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.4078, allocations: 15.8 kB / 1.285 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.376e-05/0.4079, allocations: 23.8 kB / 1.285 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.4083, allocations: 95.83 kB / 1.285 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.4085, allocations: 123.6 kB / 1.285 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.4087, allocations: 53.08 kB / 1.285 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.4088, allocations: 47.84 kB / 1.285 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.243e-05/0.4089, allocations: 55.75 kB / 1.285 GB, free: 9.656 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.4089, allocations: 12 kB / 1.285 GB, free: 9.645 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.4091, allocations: 83.86 kB / 1.285 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.79e-05/0.4092, allocations: 47.84 kB / 1.285 GB, free: 9.516 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.256e-05/0.4092, allocations: 47.67 kB / 1.285 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.4095, allocations: 211.1 kB / 1.286 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.4096, allocations: 3.984 kB / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.064e-06/0.4096, allocations: 0 / 1.286 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.4096, allocations: 0 / 1.286 GB, free: 9.258 MB / 0.9825 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.0009268/0.4105, allocations: 429.4 kB / 1.286 GB, free: 8.805 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.4105, allocations: 8.031 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.814e-05/0.4106, allocations: 16.84 kB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002242/0.4108, allocations: 156.7 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.4108, allocations: 8.375 kB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.4109, allocations: 4.375 kB / 1.286 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006066/0.4115, allocations: 198.1 kB / 1.286 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.4115, allocations: 4.188 kB / 1.286 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.4115, allocations: 7.938 kB / 1.286 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.4115, allocations: 4 kB / 1.286 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007625/0.4123, allocations: 223.7 kB / 1.287 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009503/0.4132, allocations: 452 kB / 1.287 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004517/0.4137, allocations: 152.2 kB / 1.287 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004115/0.4141, allocations: 140.7 kB / 1.287 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.283e-05/0.4141, allocations: 4 kB / 1.287 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.738e-05/0.4142, allocations: 34.56 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.302e-06/0.4142, allocations: 0 / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.00148/0.4156, allocations: 484.3 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.4157, allocations: 51.41 kB / 1.288 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.4159, allocations: 157 kB / 1.288 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.4159, allocations: 25.7 kB / 1.288 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.791e-05/0.416, allocations: 116.5 kB / 1.288 GB, free: 6.492 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.07e-05/0.4161, allocations: 71.33 kB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.793e-05/0.4161, allocations: 33.7 kB / 1.288 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001709/0.4163, allocations: 330.8 kB / 1.289 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004109/0.4167, allocations: 135.8 kB / 1.289 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003982/0.4171, allocations: 127.9 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008296/0.4179, allocations: 300.1 kB / 1.289 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4179, allocations: 0 / 1.289 GB, free: 5.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008819/0.4188, allocations: 333.2 kB / 1.289 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.4188, allocations: 7.938 kB / 1.289 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.4189, allocations: 7.984 kB / 1.289 GB, free: 5.152 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.4189, allocations: 4 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.4191, allocations: 31.95 kB / 1.289 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.4191, allocations: 4 kB / 1.289 GB, free: 5.113 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.4193, allocations: 39.84 kB / 1.29 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.4194, allocations: 4 kB / 1.29 GB, free: 5.07 MB / 0.9825 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.0001603/0.4195, allocations: 137.8 kB / 1.29 GB, free: 4.926 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.4196, allocations: 15.86 kB / 1.29 GB, free: 4.91 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009814/0.4206, allocations: 361.9 kB / 1.29 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.118e-06/0.4206, allocations: 7.984 kB / 1.29 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4206, allocations: 0 / 1.29 GB, free: 4.547 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4206, allocations: 3.938 kB / 1.29 GB, free: 4.543 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002593/0.4208, allocations: 197.1 kB / 1.29 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.4208, allocations: 0 / 1.29 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001958/0.421, allocations: 35.95 kB / 1.29 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.421, allocations: 0 / 1.29 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.4211, allocations: 0 / 1.29 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4211, allocations: 8 kB / 1.29 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.4211, allocations: 4 kB / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000952/0.422, allocations: 443 kB / 1.291 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.953e-05/0.422, allocations: 19.83 kB / 1.291 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.4221, allocations: 4 kB / 1.291 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.4223, allocations: 31.95 kB / 1.291 GB, free: 3.77 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.067e-05/0.4223, allocations: 11.98 kB / 1.291 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.4223, allocations: 0 / 1.291 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001026/0.4224, allocations: 115.2 kB / 1.291 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.4224, allocations: 3.938 kB / 1.291 GB, free: 3.641 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003162/0.4228, allocations: 43.94 kB / 1.291 GB, free: 3.598 MB / 0.9825 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.0002525/0.423, allocations: 121.1 kB / 1.291 GB, free: 3.473 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009785/0.424, allocations: 371.4 kB / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.424, allocations: 0 / 1.291 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000495/0.4245, allocations: 227.4 kB / 1.292 GB, free: 2.863 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003413/0.4248, allocations: 23.92 kB / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007056/0.4255, allocations: 353.9 kB / 1.292 GB, free: 2.465 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001392/0.4257, allocations: 118.8 kB / 1.292 GB, free: 2.328 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.649e-05/0.4258, allocations: 19.92 kB / 1.292 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.644e-05/0.4258, allocations: 11.44 kB / 1.292 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of SimCode: time 4.11e-07/0.4258, allocations: 0 / 1.292 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of Templates: time 0.005915/0.4317, allocations: 2.262 MB / 1.294 GB, free: 76 kB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.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.611296126618981]