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.001798/0.001798, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002183/0.002183, allocations: 211.4 kB / 22.99 MB, free: 4.984 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.256/3.256, allocations: 0.49 GB / 0.7959 GB, free: 35.48 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.002114/0.002114, allocations: 71.05 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3764, allocations: 176.1 MB / 1.327 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002107/0.3785, allocations: 0.8172 MB / 1.328 GB, free: 156 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001494/0.38, allocations: 1.038 MB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.694e-05/0.38, allocations: 4 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.3802, allocations: 15.8 kB / 1.329 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.88e-05/0.3802, allocations: 23.81 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.3806, allocations: 91.81 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.3808, allocations: 119.6 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.381, allocations: 37.28 kB / 1.329 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.963e-05/0.3811, allocations: 55.83 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.355e-05/0.3811, allocations: 59.75 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.3812, allocations: 8 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.3814, allocations: 91.86 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.301e-05/0.3814, allocations: 47.78 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 5.618e-05/0.3815, allocations: 43.67 kB / 1.33 GB, free: 14.51 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002947/0.3818, allocations: 227 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3818, allocations: 4 kB / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3818, allocations: 0 / 1.33 GB, free: 14.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3818, allocations: 0 / 1.33 GB, free: 14.29 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.0008556/0.3826, allocations: 421.4 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.3827, allocations: 8.031 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.019e-05/0.3827, allocations: 16.84 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000217/0.383, allocations: 154.8 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.383, allocations: 4.375 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.653e-05/0.383, allocations: 8.375 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005733/0.3836, allocations: 202 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.3836, allocations: 192 / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.3836, allocations: 7.938 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3836, allocations: 4 kB / 1.331 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000747/0.3843, allocations: 223.7 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009268/0.3853, allocations: 452 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/0.3857, allocations: 146.5 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004043/0.3861, allocations: 148.7 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.3862, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.3862, allocations: 34.56 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of pre-optimization done (n=25): time 1.323e-06/0.3862, allocations: 3.938 kB / 1.331 GB, free: 12.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=25): time 0.001455/0.3876, allocations: 489.3 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.3877, allocations: 51.41 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.3878, allocations: 152.2 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.3878, allocations: 29.7 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.082e-05/0.3879, allocations: 112.5 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.844e-05/0.388, allocations: 67.5 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.484e-05/0.3881, allocations: 29.7 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3882, allocations: 330.8 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/0.3886, allocations: 131.9 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.389, allocations: 138.1 kB / 1.333 GB, free: 10.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008125/0.3898, allocations: 303.2 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3898, allocations: 0 / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008875/0.3907, allocations: 329.2 kB / 1.334 GB, free: 10.2 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3907, allocations: 8 kB / 1.334 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.077e-05/0.3907, allocations: 3.984 kB / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.3908, allocations: 0 / 1.334 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.391, allocations: 43.95 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.391, allocations: 0 / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.3912, allocations: 39.78 kB / 1.334 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.611e-05/0.3912, allocations: 7.938 kB / 1.334 GB, free: 10.09 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.0001732/0.3914, allocations: 134.4 kB / 1.334 GB, free: 9.953 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.3915, allocations: 11.91 kB / 1.334 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009805/0.3924, allocations: 375.6 kB / 1.334 GB, free: 9.566 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3924, allocations: 0 / 1.334 GB, free: 9.566 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.3924, allocations: 4 kB / 1.334 GB, free: 9.562 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3924, allocations: 3.938 kB / 1.334 GB, free: 9.559 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.3927, allocations: 193.4 kB / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3927, allocations: 0 / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.3929, allocations: 35.95 kB / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.3929, allocations: 0 / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3929, allocations: 0 / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3929, allocations: 0 / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3929, allocations: 0 / 1.334 GB, free: 9.305 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009037/0.3938, allocations: 449 kB / 1.335 GB, free: 8.852 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.665e-05/0.3939, allocations: 19.83 kB / 1.335 GB, free: 8.832 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.3939, allocations: 3.938 kB / 1.335 GB, free: 8.828 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3941, allocations: 31.95 kB / 1.335 GB, free: 8.797 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.014e-05/0.3942, allocations: 11.98 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.3942, allocations: 4 kB / 1.335 GB, free: 8.781 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.957e-05/0.3943, allocations: 118.4 kB / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3943, allocations: 0 / 1.335 GB, free: 8.668 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003133/0.3946, allocations: 39.94 kB / 1.335 GB, free: 8.629 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.0002282/0.3948, allocations: 124.4 kB / 1.335 GB, free: 8.5 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0009635/0.3958, allocations: 363.1 kB / 1.335 GB, free: 8.133 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3958, allocations: 0 / 1.335 GB, free: 8.133 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0004803/0.3963, allocations: 219.3 kB / 1.336 GB, free: 7.906 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.3966, allocations: 19.98 kB / 1.336 GB, free: 7.887 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006892/0.3973, allocations: 367 kB / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000121/0.3974, allocations: 118.8 kB / 1.336 GB, free: 7.367 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.235e-05/0.3975, allocations: 11.98 kB / 1.336 GB, free: 7.355 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.3975, allocations: 11.44 kB / 1.336 GB, free: 7.344 MB / 1.029 GB Notification: Performance of SimCode: time 4.01e-07/0.3975, allocations: 4 kB / 1.336 GB, free: 7.34 MB / 1.029 GB Notification: Performance of Templates: time 0.005777/0.4033, allocations: 2.322 MB / 1.338 GB, free: 5.047 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 -s gbode -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/jenkins1/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: 9.147290356995654]