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.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.001411/0.001411, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001688/0.001688, allocations: 213.9 kB / 22.24 MB, free: 4.855 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.56/1.56, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.627/3.627, allocations: 0.4892 GB / 0.7943 GB, free: 35.71 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.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: 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.002156/0.002156, allocations: 61.81 kB / 1.154 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4584/0.4605, allocations: 176.1 MB / 1.326 GB, free: 1.82 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002514/0.463, allocations: 0.8027 MB / 1.326 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001666/0.4647, allocations: 1.034 MB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.696e-05/0.4648, allocations: 4 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.4649, allocations: 19.86 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.15e-05/0.4649, allocations: 15.8 kB / 1.327 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.4654, allocations: 95.75 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.4656, allocations: 127.7 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.4658, allocations: 33.23 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.94e-05/0.4659, allocations: 43.84 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.903e-05/0.466, allocations: 55.75 kB / 1.328 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.466, allocations: 12 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001688/0.4662, allocations: 91.91 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.15e-05/0.4662, allocations: 43.84 kB / 1.328 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.434e-05/0.4663, allocations: 51.66 kB / 1.328 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.4667, allocations: 211 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.4667, allocations: 4 kB / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.405e-06/0.4667, allocations: 0 / 1.328 GB, free: 15.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.4667, allocations: 0 / 1.328 GB, free: 15.18 MB / 1.029 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.0009541/0.4676, allocations: 433.2 kB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4677, allocations: 8.031 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.1e-05/0.4677, allocations: 16.84 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.468, allocations: 146.3 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.468, allocations: 8.312 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.468, allocations: 8.375 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005867/0.4686, allocations: 206.1 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.4686, allocations: 192 / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.4686, allocations: 3.938 kB / 1.329 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.4687, allocations: 7.984 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007343/0.4694, allocations: 219.7 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009622/0.4703, allocations: 448 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004687/0.4708, allocations: 158.5 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.4712, allocations: 132.8 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 6.228e-05/0.4713, allocations: 4 kB / 1.33 GB, free: 13.31 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.4713, allocations: 50.48 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of pre-optimization done (n=25): time 1.253e-06/0.4713, allocations: 0 / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of matching and sorting (n=25): time 0.001459/0.4728, allocations: 469.4 kB / 1.33 GB, free: 12.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.4728, allocations: 55.41 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.473, allocations: 152 kB / 1.331 GB, free: 12.56 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.473, allocations: 29.64 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.289e-05/0.4731, allocations: 116.5 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.478e-05/0.4732, allocations: 67.42 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/0.4732, allocations: 33.7 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001604/0.4734, allocations: 326.8 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003979/0.4738, allocations: 132 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.4742, allocations: 145.3 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000786/0.475, allocations: 298.1 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.475, allocations: 0 / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008628/0.4758, allocations: 335 kB / 1.332 GB, free: 11.08 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4759, allocations: 7.938 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.4759, allocations: 8 kB / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.4759, allocations: 0 / 1.332 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002348/0.4761, allocations: 31.95 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.4761, allocations: 4.234 kB / 1.332 GB, free: 11.03 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.4763, allocations: 39.78 kB / 1.332 GB, free: 10.99 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.804e-05/0.4764, allocations: 4 kB / 1.332 GB, free: 10.98 MB / 1.029 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.0001509/0.4765, allocations: 151.8 kB / 1.332 GB, free: 10.83 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.4765, allocations: 15.89 kB / 1.332 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009497/0.4775, allocations: 362.1 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4775, allocations: 4 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.4775, allocations: 3.984 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4775, allocations: 3.938 kB / 1.333 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002544/0.4778, allocations: 181.5 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.4778, allocations: 4 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.478, allocations: 39.88 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.478, allocations: 4 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.478, allocations: 8 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.478, allocations: 80 / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.478, allocations: 3.984 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009618/0.479, allocations: 435.1 kB / 1.333 GB, free: 9.734 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.479, allocations: 15.84 kB / 1.333 GB, free: 9.719 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.479, allocations: 4 kB / 1.333 GB, free: 9.715 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.4792, allocations: 31.95 kB / 1.333 GB, free: 9.684 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.4793, allocations: 11.98 kB / 1.333 GB, free: 9.672 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.4793, allocations: 4 kB / 1.333 GB, free: 9.668 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.943e-05/0.4794, allocations: 117.8 kB / 1.333 GB, free: 9.555 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4794, allocations: 4 kB / 1.333 GB, free: 9.551 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003109/0.4797, allocations: 39.94 kB / 1.333 GB, free: 9.512 MB / 1.029 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.00026/0.48, allocations: 125.1 kB / 1.334 GB, free: 9.383 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009613/0.4809, allocations: 363.2 kB / 1.334 GB, free: 9.016 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4809, allocations: 0 / 1.334 GB, free: 9.016 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004649/0.4814, allocations: 223.1 kB / 1.334 GB, free: 8.785 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003183/0.4817, allocations: 23.98 kB / 1.334 GB, free: 8.762 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007378/0.4825, allocations: 365.7 kB / 1.335 GB, free: 8.379 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001307/0.4826, allocations: 118.8 kB / 1.335 GB, free: 8.246 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.875e-05/0.4827, allocations: 19.97 kB / 1.335 GB, free: 8.227 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.279e-05/0.4827, allocations: 11.44 kB / 1.335 GB, free: 8.215 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.4827, allocations: 0 / 1.335 GB, free: 8.215 MB / 1.029 GB Notification: Performance of Templates: time 0.006145/0.4889, allocations: 2.251 MB / 1.337 GB, free: 5.996 MB / 1.029 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: 10.04923278093338]