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.001216/0.001216, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 196.5 kB / 16.53 MB, free: 6.656 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.453/1.453, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 472.6 MB / 0.7451 GB, free: 4.695 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 66.56 kB / 0.9121 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3964, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.002465/0.399, allocations: 0.8326 MB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.4004, allocations: 1.02 MB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.365e-05/0.4005, allocations: 7.938 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.4007, allocations: 11.86 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.43e-05/0.4007, allocations: 11.81 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.4012, allocations: 91.81 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.4013, allocations: 127.6 kB / 1.07 GB, free: 8.297 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.4015, allocations: 49.11 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.512e-05/0.4016, allocations: 51.84 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.345e-05/0.4017, allocations: 63.73 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.4017, allocations: 8 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001218/0.4019, allocations: 63.89 kB / 1.071 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.423e-05/0.4019, allocations: 47.78 kB / 1.071 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.678e-05/0.402, allocations: 59.55 kB / 1.071 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.4023, allocations: 203.6 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4023, allocations: 0 / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.343e-06/0.4023, allocations: 0 / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.4023, allocations: 4 kB / 1.071 GB, free: 7.758 MB / 0.8262 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.0008236/0.4031, allocations: 498.8 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.4032, allocations: 11.97 kB / 1.071 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.578e-05/0.4033, allocations: 16.75 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.4035, allocations: 202.1 kB / 1.072 GB, free: 6.957 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.4035, allocations: 12.31 kB / 1.072 GB, free: 6.945 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.4035, allocations: 8.375 kB / 1.072 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005406/0.4041, allocations: 202 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4041, allocations: 192 / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.4041, allocations: 7.938 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.4041, allocations: 4 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006996/0.4048, allocations: 219.8 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009616/0.4058, allocations: 0.5273 MB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004345/0.4062, allocations: 174.5 kB / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003992/0.4066, allocations: 154.3 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.231e-05/0.4067, allocations: 11.98 kB / 1.073 GB, free: 5.586 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.4068, allocations: 42.44 kB / 1.073 GB, free: 5.535 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 2.945e-06/0.4068, allocations: 3.984 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001331/0.4081, allocations: 470 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.4081, allocations: 59.34 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.4083, allocations: 149.1 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.4083, allocations: 29.7 kB / 1.074 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.239e-05/0.4084, allocations: 116.4 kB / 1.074 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.128e-05/0.4084, allocations: 67.08 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.4085, allocations: 37.69 kB / 1.074 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4086, allocations: 326.8 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003866/0.409, allocations: 131.9 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.4094, allocations: 137.6 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007611/0.4102, allocations: 297.5 kB / 1.075 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.4102, allocations: 4 kB / 1.075 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008079/0.411, allocations: 328.7 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.411, allocations: 4 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-05/0.4111, allocations: 4 kB / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.4111, allocations: 0 / 1.075 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.4113, allocations: 35.95 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.4113, allocations: 3.938 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001701/0.4115, allocations: 43.8 kB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.4115, allocations: 7.938 kB / 1.075 GB, free: 3.273 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.0001389/0.4117, allocations: 139.5 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.458e-05/0.4117, allocations: 15.91 kB / 1.075 GB, free: 3.113 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009173/0.4126, allocations: 362.4 kB / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.4127, allocations: 0 / 1.075 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.238e-06/0.4127, allocations: 7.938 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.4127, allocations: 0 / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.413, allocations: 277.4 kB / 1.076 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.413, allocations: 3.984 kB / 1.076 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.4132, allocations: 35.95 kB / 1.076 GB, free: 2.383 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.4132, allocations: 7.938 kB / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.4132, allocations: 0 / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.4132, allocations: 0 / 1.076 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4132, allocations: 3.938 kB / 1.076 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000885/0.4141, allocations: 431.9 kB / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.4142, allocations: 92.86 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.4142, allocations: 4 kB / 1.076 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.4144, allocations: 31.95 kB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.805e-05/0.4145, allocations: 19.92 kB / 1.076 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.327e-05/0.4145, allocations: 4 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.768e-05/0.4146, allocations: 107.2 kB / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4146, allocations: 0 / 1.076 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003051/0.4149, allocations: 51.84 kB / 1.077 GB, free: 1.609 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.0002605/0.4151, allocations: 127.7 kB / 1.077 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009325/0.4161, allocations: 387.2 kB / 1.077 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4161, allocations: 0 / 1.077 GB, free: 1.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004642/0.4166, allocations: 243.2 kB / 1.077 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.4169, allocations: 17.08 kB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006854/0.4176, allocations: 347.5 kB / 1.078 GB, free: 460 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003387/0.418, allocations: 0.7353 MB / 1.078 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.139e-05/0.418, allocations: 15.97 kB / 1.078 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.045e-05/0.4181, allocations: 11.44 kB / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.4181, allocations: 0 / 1.078 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.005146/0.4232, allocations: 2.041 MB / 1.08 GB, free: 13.64 MB / 0.8419 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