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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.|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_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.|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_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.007849/0.007848, allocations: 97.38 kB / 15.73 MB, free: 6.066 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.001583/0.001583, allocations: 195.5 kB / 16.68 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.678/2.678, allocations: 472.6 MB / 0.7453 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 72.11 kB / 1.07 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.092/1.094, allocations: 159.9 MB / 1.226 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002402/1.096, allocations: 0.8376 MB / 1.226 GB, free: 12.73 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001406/1.097, allocations: 1.022 MB / 1.227 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.092e-05/1.097, allocations: 4 kB / 1.227 GB, free: 11.69 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001157/1.098, allocations: 7.875 kB / 1.227 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.541e-05/1.098, allocations: 23.8 kB / 1.227 GB, free: 11.66 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003996/1.098, allocations: 91.75 kB / 1.228 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001528/1.098, allocations: 123.7 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001702/1.098, allocations: 53.08 kB / 1.228 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.13e-05/1.099, allocations: 55.78 kB / 1.228 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.63e-05/1.099, allocations: 55.75 kB / 1.228 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.804e-05/1.099, allocations: 16 kB / 1.228 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/1.099, allocations: 87.91 kB / 1.228 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.067e-05/1.099, allocations: 39.86 kB / 1.228 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/1.099, allocations: 63.59 kB / 1.228 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002707/1.099, allocations: 215.6 kB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/1.099, allocations: 0 / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.693e-06/1.099, allocations: 0 / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.061e-06/1.099, allocations: 0 / 1.228 GB, free: 10.88 MB / 0.9512 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.0008672/1.1, allocations: 0.4946 MB / 1.229 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/1.1, allocations: 12.02 kB / 1.229 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.919e-05/1.1, allocations: 20.8 kB / 1.229 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/1.1, allocations: 208 kB / 1.229 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/1.1, allocations: 8.312 kB / 1.229 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/1.101, allocations: 8.375 kB / 1.229 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005533/1.101, allocations: 209.9 kB / 1.229 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/1.101, allocations: 192 / 1.229 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/1.101, allocations: 3.938 kB / 1.229 GB, free: 9.828 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/1.101, allocations: 4 kB / 1.229 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007344/1.102, allocations: 227.8 kB / 1.229 GB, free: 9.602 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009438/1.103, allocations: 0.5237 MB / 1.23 GB, free: 9.027 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004364/1.103, allocations: 166.5 kB / 1.23 GB, free: 8.855 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004299/1.104, allocations: 156.8 kB / 1.23 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 5.893e-05/1.104, allocations: 11.94 kB / 1.23 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/1.104, allocations: 42.48 kB / 1.23 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/1.104, allocations: 0 / 1.23 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25): time 0.001375/1.105, allocations: 472.7 kB / 1.231 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/1.105, allocations: 63.34 kB / 1.231 GB, free: 8.098 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/1.105, allocations: 151.8 kB / 1.231 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/1.105, allocations: 29.7 kB / 1.231 GB, free: 7.906 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.977e-05/1.105, allocations: 108.6 kB / 1.231 GB, free: 7.797 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.368e-05/1.106, allocations: 71.39 kB / 1.231 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/1.106, allocations: 33.7 kB / 1.231 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001474/1.106, allocations: 330.8 kB / 1.231 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004181/1.106, allocations: 131.9 kB / 1.232 GB, free: 7.227 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004185/1.107, allocations: 135.8 kB / 1.232 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007947/1.107, allocations: 297.4 kB / 1.232 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/1.107, allocations: 3.938 kB / 1.232 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008936/1.108, allocations: 333.3 kB / 1.232 GB, free: 6.465 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/1.108, allocations: 4 kB / 1.232 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/1.108, allocations: 4 kB / 1.232 GB, free: 6.457 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/1.108, allocations: 4 kB / 1.232 GB, free: 6.453 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002277/1.109, allocations: 31.95 kB / 1.232 GB, free: 6.422 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.255e-06/1.109, allocations: 3.938 kB / 1.232 GB, free: 6.418 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/1.109, allocations: 43.84 kB / 1.232 GB, free: 6.375 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/1.109, allocations: 4 kB / 1.232 GB, free: 6.371 MB / 0.9512 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.0001828/1.109, allocations: 144.9 kB / 1.233 GB, free: 6.223 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.958e-05/1.109, allocations: 11.91 kB / 1.233 GB, free: 6.211 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009572/1.11, allocations: 358.5 kB / 1.233 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.708e-06/1.11, allocations: 0 / 1.233 GB, free: 5.852 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/1.11, allocations: 7.938 kB / 1.233 GB, free: 5.844 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.11, allocations: 3.984 kB / 1.233 GB, free: 5.84 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003234/1.11, allocations: 269.5 kB / 1.233 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.563e-06/1.11, allocations: 0 / 1.233 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001957/1.111, allocations: 39.89 kB / 1.233 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/1.111, allocations: 4 kB / 1.233 GB, free: 5.484 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/1.111, allocations: 3.984 kB / 1.233 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/1.111, allocations: 0 / 1.233 GB, free: 5.48 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.111, allocations: 3.938 kB / 1.233 GB, free: 5.477 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009318/1.112, allocations: 439.2 kB / 1.234 GB, free: 5.031 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.139e-05/1.112, allocations: 96.95 kB / 1.234 GB, free: 4.918 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/1.112, allocations: 4 kB / 1.234 GB, free: 4.914 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/1.112, allocations: 27.95 kB / 1.234 GB, free: 4.887 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.806e-05/1.112, allocations: 19.92 kB / 1.234 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/1.112, allocations: 4 kB / 1.234 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.718e-05/1.112, allocations: 117.6 kB / 1.234 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/1.112, allocations: 0 / 1.234 GB, free: 4.75 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003168/1.112, allocations: 43.89 kB / 1.234 GB, free: 4.707 MB / 0.9512 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.0002811/1.113, allocations: 131.1 kB / 1.234 GB, free: 4.57 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0009384/1.114, allocations: 375.1 kB / 1.234 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.114, allocations: 4 kB / 1.234 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004711/1.114, allocations: 243.2 kB / 1.235 GB, free: 3.938 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/1.115, allocations: 21.5 kB / 1.235 GB, free: 3.918 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006341/1.115, allocations: 351.2 kB / 1.235 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/1.116, allocations: 0.7354 MB / 1.236 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.336e-05/1.116, allocations: 11.98 kB / 1.236 GB, free: 2.77 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.125e-05/1.116, allocations: 11.44 kB / 1.236 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of SimCode: time 2.1e-07/1.116, allocations: 0 / 1.236 GB, free: 2.758 MB / 0.9512 GB Notification: Performance of Templates: time 0.005403/1.121, allocations: 2.06 MB / 1.238 GB, free: 0.7188 MB / 0.9512 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