Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002347/0.002347, allocations: 87.69 kB / 20.24 MB, free: 4.184 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002799/0.002799, allocations: 157.3 kB / 23.55 MB, free: 0.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.574/1.574, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.925/2.925, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 0 / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.069e-05/3.259e-05, allocations: 7.25 kB / 0.7864 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.00209/0.002122, allocations: 0.8252 MB / 0.7872 GB, free: 12 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00154/0.003662, allocations: 1.038 MB / 0.7882 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.378e-05/0.003716, allocations: 0.5625 kB / 0.7882 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.003849, allocations: 24.42 kB / 0.7882 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 5.561e-05/0.003905, allocations: 16.72 kB / 0.7882 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.004315, allocations: 96.45 kB / 0.7883 GB, free: 10.82 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001682/0.004483, allocations: 127.6 kB / 0.7884 GB, free: 10.69 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001368/0.00462, allocations: 33.94 kB / 0.7885 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.00474, allocations: 71.88 kB / 0.7885 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.426e-05/0.004834, allocations: 49.52 kB / 0.7886 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.004981, allocations: 12 kB / 0.7886 GB, free: 10.53 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.005155, allocations: 87.91 kB / 0.7887 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.93e-05/0.005224, allocations: 35.86 kB / 0.7887 GB, free: 10.41 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.307e-05/0.005287, allocations: 45.17 kB / 0.7888 GB, free: 10.37 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003532/0.00564, allocations: 227.2 kB / 0.789 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.005644, allocations: 0 / 0.789 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.52e-07/0.005645, allocations: 0 / 0.789 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.00565, allocations: 1.594 kB / 0.789 GB, free: 10.14 MB / 0.7448 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.0008026/0.006453, allocations: 499.5 kB / 0.7895 GB, free: 9.617 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.006488, allocations: 11.53 kB / 0.7895 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.318e-05/0.006561, allocations: 28.8 kB / 0.7895 GB, free: 9.582 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002323/0.006794, allocations: 152.3 kB / 0.7896 GB, free: 9.406 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.006807, allocations: 4.375 kB / 0.7896 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.097e-05/0.006828, allocations: 12.36 kB / 0.7897 GB, free: 9.391 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.007187, allocations: 122.1 kB / 0.7898 GB, free: 9.266 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.007196, allocations: 192 / 0.7898 GB, free: 9.266 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.007208, allocations: 384 / 0.7898 GB, free: 9.266 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.007213, allocations: 0.9375 kB / 0.7898 GB, free: 9.266 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000415/0.007628, allocations: 121 kB / 0.7899 GB, free: 9.148 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007938/0.008422, allocations: 444.9 kB / 0.7903 GB, free: 8.68 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002812/0.008703, allocations: 92.86 kB / 0.7904 GB, free: 8.578 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.008933, allocations: 73.17 kB / 0.7905 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.592e-05/0.008989, allocations: 5.188 kB / 0.7905 GB, free: 8.5 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.089e-05/0.00903, allocations: 41.33 kB / 0.7905 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 1.262e-06/0.009031, allocations: 0 / 0.7905 GB, free: 8.449 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.0008684/0.009899, allocations: 269.9 kB / 0.7908 GB, free: 8.184 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.009946, allocations: 52.44 kB / 0.7908 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.01015, allocations: 230.3 kB / 0.791 GB, free: 7.883 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.01017, allocations: 25.7 kB / 0.7911 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.01028, allocations: 165.5 kB / 0.7912 GB, free: 7.688 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.35e-05/0.01037, allocations: 79.39 kB / 0.7913 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.618e-05/0.01045, allocations: 47.36 kB / 0.7914 GB, free: 7.555 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002856/0.01074, allocations: 0.5079 MB / 0.7918 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.01096, allocations: 62.95 kB / 0.7919 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.01117, allocations: 59.91 kB / 0.792 GB, free: 6.918 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004392/0.01161, allocations: 153.3 kB / 0.7921 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.01161, allocations: 1.375 kB / 0.7921 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005348/0.01215, allocations: 192.1 kB / 0.7923 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.01216, allocations: 4.5 kB / 0.7923 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.01218, allocations: 0.5625 kB / 0.7923 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.0122, allocations: 8.844 kB / 0.7923 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.01235, allocations: 19.97 kB / 0.7923 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.01236, allocations: 5.094 kB / 0.7923 GB, free: 6.539 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.01247, allocations: 19.88 kB / 0.7924 GB, free: 6.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.64e-05/0.0125, allocations: 4.969 kB / 0.7924 GB, free: 6.516 MB / 0.7448 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.0001815/0.01268, allocations: 178.1 kB / 0.7925 GB, free: 6.332 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.01273, allocations: 19.89 kB / 0.7925 GB, free: 6.312 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006162/0.01335, allocations: 216.6 kB / 0.7928 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.01335, allocations: 0 / 0.7928 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.01335, allocations: 0 / 0.7928 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.01336, allocations: 1.219 kB / 0.7928 GB, free: 6.098 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002758/0.01363, allocations: 192.4 kB / 0.7929 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.01364, allocations: 0 / 0.7929 GB, free: 5.875 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.01377, allocations: 20.83 kB / 0.793 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.01377, allocations: 0 / 0.793 GB, free: 5.855 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.01378, allocations: 5.406 kB / 0.793 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.01378, allocations: 3.938 kB / 0.793 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.01379, allocations: 3.938 kB / 0.793 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.01443, allocations: 365 kB / 0.7933 GB, free: 5.473 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.01447, allocations: 15.84 kB / 0.7933 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.01449, allocations: 0 / 0.7933 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.01462, allocations: 19.98 kB / 0.7934 GB, free: 5.438 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.0147, allocations: 15.97 kB / 0.7934 GB, free: 5.422 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.01471, allocations: 0 / 0.7934 GB, free: 5.422 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000115/0.01483, allocations: 156.1 kB / 0.7935 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01483, allocations: 0 / 0.7935 GB, free: 5.27 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002931/0.01512, allocations: 51.88 kB / 0.7936 GB, free: 5.219 MB / 0.7448 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.0002376/0.01536, allocations: 129.3 kB / 0.7937 GB, free: 5.082 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0006111/0.01597, allocations: 236 kB / 0.7939 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.01597, allocations: 0.9688 kB / 0.7939 GB, free: 4.84 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003173/0.01629, allocations: 159.5 kB / 0.7941 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.01662, allocations: 38.12 kB / 0.7941 GB, free: 4.633 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000589/0.01721, allocations: 301.5 kB / 0.7944 GB, free: 4.309 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.01734, allocations: 124.4 kB / 0.7945 GB, free: 4.172 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.133e-05/0.01742, allocations: 17.72 kB / 0.7945 GB, free: 4.156 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.199e-05/0.01747, allocations: 20.5 kB / 0.7945 GB, free: 4.133 MB / 0.7448 GB Notification: Performance of SimCode: time 3.81e-07/0.01747, allocations: 0 / 0.7945 GB, free: 4.133 MB / 0.7448 GB Notification: Performance of Templates: time 0.00635/0.02382, allocations: 2.166 MB / 0.7967 GB, free: 2.012 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.040743240038864]