Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001712/0.001712, allocations: 198.2 kB / 16.14 MB, free: 6.574 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.406/1.406, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.724/2.724, allocations: 461.9 MB / 0.7342 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001406, allocations: 65.11 kB / 0.8984 GB, free: 37.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3469, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.0021/0.3491, allocations: 0.8922 MB / 1.053 GB, free: 7.957 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.3504, allocations: 1.038 MB / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.424e-05/0.3504, allocations: 4 kB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.3506, allocations: 11.86 kB / 1.054 GB, free: 6.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.118e-05/0.3506, allocations: 15.86 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000317/0.351, allocations: 67.86 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001302/0.3511, allocations: 115.7 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.3513, allocations: 53.08 kB / 1.054 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.412e-05/0.3514, allocations: 55.77 kB / 1.054 GB, free: 6.59 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.084e-05/0.3514, allocations: 55.77 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.3515, allocations: 4 kB / 1.054 GB, free: 6.531 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.3516, allocations: 55.95 kB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.278e-05/0.3517, allocations: 43.84 kB / 1.054 GB, free: 6.434 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.311e-05/0.3517, allocations: 63.47 kB / 1.055 GB, free: 6.371 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000228/0.352, allocations: 199.6 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.352, allocations: 0 / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.01e-07/0.352, allocations: 0 / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.352, allocations: 0 / 1.055 GB, free: 6.176 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.0008352/0.3528, allocations: 498.7 kB / 1.055 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3529, allocations: 8.031 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.807e-05/0.3529, allocations: 16.75 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.3531, allocations: 211.8 kB / 1.055 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.3532, allocations: 4.375 kB / 1.055 GB, free: 5.363 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.3532, allocations: 12.38 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005728/0.3538, allocations: 203.3 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3538, allocations: 192 / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.3538, allocations: 7.938 kB / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.3538, allocations: 0 / 1.056 GB, free: 5.141 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007545/0.3546, allocations: 227.7 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009506/0.3555, allocations: 0.5198 MB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/0.356, allocations: 170.4 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004131/0.3564, allocations: 158.3 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.546e-05/0.3565, allocations: 8 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.3565, allocations: 34.56 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 7.093e-06/0.3565, allocations: 0 / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001473/0.358, allocations: 482.3 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.3581, allocations: 59.28 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.3582, allocations: 153.1 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.3582, allocations: 25.7 kB / 1.057 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.04e-05/0.3583, allocations: 112.5 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.461e-05/0.3584, allocations: 71.02 kB / 1.058 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.845e-05/0.3585, allocations: 33.7 kB / 1.058 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.3586, allocations: 322.8 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004329/0.359, allocations: 135.9 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006105/0.3596, allocations: 135.9 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3607, allocations: 298.8 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3607, allocations: 0 / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008959/0.3616, allocations: 326.5 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3617, allocations: 8 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.3617, allocations: 4 kB / 1.059 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3617, allocations: 3.984 kB / 1.059 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.362, allocations: 39.95 kB / 1.059 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.362, allocations: 7.938 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001944/0.3622, allocations: 35.8 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.3622, allocations: 4 kB / 1.059 GB, free: 1.699 MB / 0.8106 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.0001645/0.3624, allocations: 135.4 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.3625, allocations: 11.81 kB / 1.059 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009802/0.3634, allocations: 383.6 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3635, allocations: 0 / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3635, allocations: 3.938 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3635, allocations: 0 / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002866/0.3638, allocations: 273.7 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.3638, allocations: 0 / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000219/0.364, allocations: 35.95 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.364, allocations: 4 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.364, allocations: 4 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.3641, allocations: 4 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.3641, allocations: 3.938 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008968/0.365, allocations: 431.9 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.423e-05/0.365, allocations: 96.8 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.3651, allocations: 3.984 kB / 1.06 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002081/0.3653, allocations: 27.91 kB / 1.06 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.792e-05/0.3654, allocations: 23.91 kB / 1.06 GB, free: 196 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.3654, allocations: 4 kB / 1.06 GB, free: 192 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.848e-05/0.3655, allocations: 111.9 kB / 1.06 GB, free: 80 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3655, allocations: 0 / 1.06 GB, free: 80 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003318/0.3658, allocations: 40 kB / 1.06 GB, free: 40 kB / 0.8106 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.0002435/0.3661, allocations: 119.3 kB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000924/0.367, allocations: 379 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.367, allocations: 0 / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004686/0.3675, allocations: 247.2 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.3678, allocations: 15.94 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006274/0.3685, allocations: 409.1 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.3688, allocations: 0.7393 MB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.655e-05/0.3688, allocations: 11.98 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.3689, allocations: 7.438 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.3689, allocations: 0 / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of Templates: time 0.004471/0.3734, allocations: 1.717 MB / 1.064 GB, free: 12.36 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches