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.001317/0.001317, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001387/0.001387, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.493/2.493, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 63.91 kB / 1.055 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7011/0.7024, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002035/0.7045, allocations: 0.8468 MB / 1.209 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001248/0.7057, allocations: 1.006 MB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.995e-05/0.7058, allocations: 4 kB / 1.21 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.706, allocations: 15.8 kB / 1.21 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.015e-05/0.706, allocations: 23.8 kB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004102/0.7065, allocations: 87.83 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.7066, allocations: 127.6 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.7068, allocations: 49.08 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.7069, allocations: 55.83 kB / 1.211 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.149e-05/0.707, allocations: 59.75 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.657e-05/0.707, allocations: 8 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000153/0.7072, allocations: 91.86 kB / 1.211 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.757e-05/0.7073, allocations: 43.84 kB / 1.211 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.664e-05/0.7073, allocations: 63.59 kB / 1.211 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002914/0.7076, allocations: 219 kB / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.7076, allocations: 0 / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.214e-06/0.7076, allocations: 0 / 1.211 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.7077, allocations: 0 / 1.211 GB, free: 10.95 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.0008065/0.7085, allocations: 488.6 kB / 1.212 GB, free: 10.42 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.7085, allocations: 8.031 kB / 1.212 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/0.7086, allocations: 20.69 kB / 1.212 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.7088, allocations: 214.4 kB / 1.212 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.7088, allocations: 4.375 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.7088, allocations: 8.375 kB / 1.212 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/0.7094, allocations: 213.9 kB / 1.212 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.7094, allocations: 192 / 1.212 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.7094, allocations: 3.938 kB / 1.212 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.7094, allocations: 4 kB / 1.212 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007043/0.7101, allocations: 223.8 kB / 1.212 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008733/0.711, allocations: 0.5274 MB / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.7114, allocations: 166.5 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.7118, allocations: 164.7 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 5.105e-05/0.7119, allocations: 4 kB / 1.213 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.7119, allocations: 30.56 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=25): time 1.352e-06/0.7119, allocations: 0 / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25): time 0.001338/0.7133, allocations: 482.1 kB / 1.214 GB, free: 8.262 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.7133, allocations: 59.34 kB / 1.214 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.7134, allocations: 148.3 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.7135, allocations: 29.7 kB / 1.214 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.7135, allocations: 112.5 kB / 1.214 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.732e-05/0.7136, allocations: 71.02 kB / 1.214 GB, free: 7.816 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/0.7137, allocations: 29.7 kB / 1.214 GB, free: 7.781 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.7138, allocations: 330.8 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.7142, allocations: 131.9 kB / 1.214 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.7145, allocations: 131.4 kB / 1.215 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007442/0.7153, allocations: 304.5 kB / 1.215 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.7153, allocations: 0 / 1.215 GB, free: 6.895 MB / 0.9356 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000826/0.7161, allocations: 329 kB / 1.215 GB, free: 6.57 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.7162, allocations: 5.875 kB / 1.215 GB, free: 6.566 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.7162, allocations: 7.984 kB / 1.215 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.7162, allocations: 0 / 1.215 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.7164, allocations: 39.95 kB / 1.215 GB, free: 6.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.7164, allocations: 7.938 kB / 1.215 GB, free: 6.512 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.7166, allocations: 31.86 kB / 1.215 GB, free: 6.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.7167, allocations: 7.938 kB / 1.215 GB, free: 6.473 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.0001248/0.7168, allocations: 141.8 kB / 1.215 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.7168, allocations: 7.906 kB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009006/0.7177, allocations: 362.4 kB / 1.216 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.7178, allocations: 4 kB / 1.216 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.7178, allocations: 7.938 kB / 1.216 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.7178, allocations: 3.938 kB / 1.216 GB, free: 5.938 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.718, allocations: 273.4 kB / 1.216 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.7181, allocations: 0 / 1.216 GB, free: 5.621 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001989/0.7183, allocations: 35.95 kB / 1.216 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.7183, allocations: 0 / 1.216 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.7183, allocations: 0 / 1.216 GB, free: 5.586 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.7183, allocations: 4 kB / 1.216 GB, free: 5.582 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.7183, allocations: 3.938 kB / 1.216 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008605/0.7192, allocations: 447 kB / 1.216 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.538e-05/0.7192, allocations: 100.8 kB / 1.217 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.7192, allocations: 0 / 1.217 GB, free: 5.008 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001983/0.7195, allocations: 27.95 kB / 1.217 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.7195, allocations: 15.92 kB / 1.217 GB, free: 4.965 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.7195, allocations: 4 kB / 1.217 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.308e-05/0.7196, allocations: 113.7 kB / 1.217 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7196, allocations: 0 / 1.217 GB, free: 4.852 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000284/0.7199, allocations: 47.89 kB / 1.217 GB, free: 4.805 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.0002222/0.7201, allocations: 120.3 kB / 1.217 GB, free: 4.68 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008837/0.721, allocations: 387.1 kB / 1.217 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.721, allocations: 0 / 1.217 GB, free: 4.289 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004447/0.7215, allocations: 231.3 kB / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.7218, allocations: 15.98 kB / 1.218 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005412/0.7224, allocations: 381.1 kB / 1.218 GB, free: 3.625 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.7226, allocations: 0.7352 MB / 1.219 GB, free: 2.863 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.225e-05/0.7227, allocations: 15.44 kB / 1.219 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of SimCode: time 2.91e-07/0.7227, allocations: 0 / 1.219 GB, free: 2.848 MB / 0.9356 GB Notification: Performance of Templates: time 0.003669/0.7264, allocations: 2.055 MB / 1.221 GB, free: 0.8047 MB / 0.9356 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/jenkins1/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