Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.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.Controls.OBC.CDL.Reals.Validation.Sort,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.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Sort,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.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009697/0.0009696, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006995/0.006995, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.45/1.45, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.805/2.805, allocations: 462.7 MB / 0.7364 GB, free: 292 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 14.47 kB / 0.9028 GB, free: 36.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3924, allocations: 159.6 MB / 1.059 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001114/0.3935, allocations: 0.5507 MB / 1.059 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001377/0.3949, allocations: 1.038 MB / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/0.395, allocations: 7.938 kB / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.3952, allocations: 7.938 kB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.572e-05/0.3952, allocations: 15.84 kB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.3955, allocations: 75.86 kB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.3957, allocations: 111.7 kB / 1.06 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.3959, allocations: 57.08 kB / 1.061 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.772e-05/0.396, allocations: 39.78 kB / 1.061 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.587e-05/0.3961, allocations: 47.77 kB / 1.061 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.1e-05/0.3961, allocations: 4 kB / 1.061 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001153/0.3962, allocations: 55.89 kB / 1.061 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.365e-05/0.3963, allocations: 39.84 kB / 1.061 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.994e-05/0.3964, allocations: 73.31 kB / 1.061 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.3966, allocations: 195.5 kB / 1.061 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3966, allocations: 4 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3966, allocations: 4 kB / 1.061 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.3966, allocations: 0 / 1.061 GB, free: 3.148 MB / 0.8106 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.0008572/0.3975, allocations: 0.4961 MB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3975, allocations: 8.031 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.3976, allocations: 16.75 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.3978, allocations: 210.7 kB / 1.062 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.3978, allocations: 8.375 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.3979, allocations: 8.375 kB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006168/0.3985, allocations: 231.3 kB / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.3985, allocations: 192 / 1.062 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.3985, allocations: 7.938 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3985, allocations: 4 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008416/0.3994, allocations: 275.7 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009926/0.4004, allocations: 0.551 MB / 1.063 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004868/0.4009, allocations: 198.4 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004731/0.4014, allocations: 184.7 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.442e-05/0.4014, allocations: 4 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.4015, allocations: 38.56 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.332e-06/0.4015, allocations: 4 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001533/0.403, allocations: 0.5494 MB / 1.064 GB, free: 216 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.4031, allocations: 55.34 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.4033, allocations: 146.2 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.4033, allocations: 33.7 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/0.4034, allocations: 108.5 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.496e-05/0.4034, allocations: 67.08 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.4035, allocations: 29.64 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4037, allocations: 326.8 kB / 1.064 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004579/0.4041, allocations: 155.9 kB / 1.065 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004396/0.4046, allocations: 168.5 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008737/0.4054, allocations: 351.7 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4055, allocations: 3.938 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00098/0.4064, allocations: 389.2 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.4065, allocations: 4 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.4065, allocations: 3.984 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.4065, allocations: 0 / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.4068, allocations: 51.95 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.4068, allocations: 3.938 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002094/0.407, allocations: 55.8 kB / 1.066 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.675e-05/0.4071, allocations: 0 / 1.066 GB, free: 14.24 MB / 0.8262 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.0001855/0.4072, allocations: 142.5 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.4073, allocations: 15.81 kB / 1.066 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/0.4084, allocations: 423 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.4084, allocations: 0 / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4084, allocations: 7.938 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.4084, allocations: 0 / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003092/0.4087, allocations: 277.7 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.4087, allocations: 4 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002279/0.409, allocations: 51.95 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.409, allocations: 0 / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.409, allocations: 0 / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.409, allocations: 0 / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.409, allocations: 3.938 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009998/0.41, allocations: 495.9 kB / 1.067 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.032e-05/0.4101, allocations: 88.92 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.4101, allocations: 4 kB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.4103, allocations: 43.95 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.4104, allocations: 15.92 kB / 1.067 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.4104, allocations: 7.984 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.536e-05/0.4105, allocations: 106.3 kB / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.41e-07/0.4105, allocations: 0 / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000309/0.4108, allocations: 43.94 kB / 1.067 GB, free: 12.45 MB / 0.8262 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.0002837/0.4111, allocations: 128.3 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001035/0.4122, allocations: 431.1 kB / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4122, allocations: 0 / 1.068 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005357/0.4127, allocations: 275.2 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.4131, allocations: 23.86 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006615/0.4138, allocations: 407.2 kB / 1.068 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.4141, allocations: 0.7354 MB / 1.069 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.244e-05/0.4141, allocations: 19.97 kB / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.4142, allocations: 7.438 kB / 1.069 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.4142, allocations: 4 kB / 1.069 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of Templates: time 0.004634/0.4188, allocations: 1.682 MB / 1.071 GB, free: 8.703 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches