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.008861/0.008861, allocations: 104.8 kB / 15.74 MB, free: 6.039 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.001657/0.001657, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.474/1.474, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.883/2.883, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 67.89 kB / 1.054 GB, free: 7.066 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3776/0.379, allocations: 157.4 MB / 1.208 GB, free: 9.559 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.00296/0.3821, allocations: 0.8285 MB / 1.209 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001978/0.3841, allocations: 1.014 MB / 1.21 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.651e-05/0.3842, allocations: 4 kB / 1.21 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.3844, allocations: 15.86 kB / 1.21 GB, free: 7.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.73e-05/0.3845, allocations: 15.81 kB / 1.21 GB, free: 7.668 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.385, allocations: 103.7 kB / 1.21 GB, free: 7.566 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001582/0.3852, allocations: 123.7 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.3854, allocations: 53.09 kB / 1.21 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.3855, allocations: 55.78 kB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.558e-05/0.3856, allocations: 63.73 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.3856, allocations: 12 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.3858, allocations: 87.91 kB / 1.21 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.339e-05/0.3858, allocations: 43.84 kB / 1.21 GB, free: 7.137 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.867e-05/0.3859, allocations: 55.61 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002835/0.3862, allocations: 215.2 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.3862, allocations: 3.938 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.733e-06/0.3862, allocations: 0 / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.3862, allocations: 4 kB / 1.21 GB, free: 6.863 MB / 0.9669 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.0008583/0.3871, allocations: 498.7 kB / 1.211 GB, free: 6.324 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3872, allocations: 8.625 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.3872, allocations: 20.66 kB / 1.211 GB, free: 6.297 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.3874, allocations: 209.9 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.3875, allocations: 8.375 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.3875, allocations: 4.375 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.3881, allocations: 202.7 kB / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.3881, allocations: 192 / 1.211 GB, free: 5.84 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.3881, allocations: 7.938 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3882, allocations: 7.984 kB / 1.211 GB, free: 5.824 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007704/0.3889, allocations: 219.8 kB / 1.212 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.39, allocations: 0.5236 MB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004414/0.3904, allocations: 170.5 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004155/0.3909, allocations: 156.7 kB / 1.212 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 5.7e-05/0.3909, allocations: 11.98 kB / 1.212 GB, free: 4.691 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.391, allocations: 38.5 kB / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 1.713e-06/0.391, allocations: 0 / 1.212 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001426/0.3924, allocations: 475.5 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.3925, allocations: 59.33 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.3926, allocations: 152.6 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.3927, allocations: 25.7 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.998e-05/0.3928, allocations: 112.5 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.123e-05/0.3928, allocations: 71.08 kB / 1.213 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.517e-05/0.3929, allocations: 33.7 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3931, allocations: 330.8 kB / 1.214 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.3935, allocations: 135.8 kB / 1.214 GB, free: 3.223 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003866/0.3939, allocations: 131.9 kB / 1.214 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008045/0.3947, allocations: 298.7 kB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3947, allocations: 0 / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009055/0.3956, allocations: 337.2 kB / 1.214 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3957, allocations: 4 kB / 1.214 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.3957, allocations: 0 / 1.214 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.286e-05/0.3957, allocations: 4 kB / 1.214 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.396, allocations: 31.95 kB / 1.215 GB, free: 2.426 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.396, allocations: 7.875 kB / 1.215 GB, free: 2.418 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.3962, allocations: 39.8 kB / 1.215 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.263e-05/0.3962, allocations: 8 kB / 1.215 GB, free: 2.371 MB / 0.9669 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.0001715/0.3964, allocations: 137.8 kB / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.511e-05/0.3964, allocations: 15.81 kB / 1.215 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009941/0.3974, allocations: 362.5 kB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.3975, allocations: 0 / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.447e-06/0.3975, allocations: 3.938 kB / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.3975, allocations: 0 / 1.215 GB, free: 1.848 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003572/0.3978, allocations: 265.4 kB / 1.215 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.3979, allocations: 4 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.3981, allocations: 43.89 kB / 1.215 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.3981, allocations: 0 / 1.215 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.3981, allocations: 4 kB / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3981, allocations: 0 / 1.215 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3981, allocations: 3.938 kB / 1.215 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009009/0.399, allocations: 435.1 kB / 1.216 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-05/0.3991, allocations: 88.92 kB / 1.216 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.3991, allocations: 0 / 1.216 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.3994, allocations: 39.95 kB / 1.216 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-05/0.3994, allocations: 15.92 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.411e-05/0.3995, allocations: 4 kB / 1.216 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.11e-05/0.3995, allocations: 111.2 kB / 1.216 GB, free: 0.7695 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3996, allocations: 3.938 kB / 1.216 GB, free: 0.7656 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003156/0.3999, allocations: 47.84 kB / 1.216 GB, free: 0.7188 MB / 0.9669 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.0002975/0.4002, allocations: 132.7 kB / 1.216 GB, free: 0.582 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0009237/0.4011, allocations: 379.2 kB / 1.217 GB, free: 204 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4011, allocations: 0 / 1.217 GB, free: 204 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004962/0.4016, allocations: 239.2 kB / 1.217 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.402, allocations: 19.98 kB / 1.217 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007402/0.4027, allocations: 347.4 kB / 1.217 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.4031, allocations: 0.7275 MB / 1.218 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.373e-05/0.4032, allocations: 15.97 kB / 1.218 GB, free: 14.79 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.4033, allocations: 19.44 kB / 1.218 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of SimCode: time 9.32e-07/0.4033, allocations: 0 / 1.218 GB, free: 14.78 MB / 0.9825 GB Notification: Performance of Templates: time 0.005599/0.4089, allocations: 2.047 MB / 1.22 GB, free: 12.75 MB / 0.9825 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