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.001701/0.001701, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001797/0.001797, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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.524/1.524, allocations: 177.1 MB / 203.9 MB, free: 5.602 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.774/2.774, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 177] 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.863e-06/1.863e-06, allocations: 0 / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.573e-05/2.759e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002161/0.002189, allocations: 0.826 MB / 0.7872 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.00386, allocations: 1.028 MB / 0.7882 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.771e-05/0.003928, allocations: 4 kB / 0.7882 GB, free: 10.98 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.004057, allocations: 12.67 kB / 0.7882 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.982e-05/0.004126, allocations: 28.61 kB / 0.7882 GB, free: 10.94 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.00457, allocations: 93.03 kB / 0.7883 GB, free: 10.85 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.004763, allocations: 123.6 kB / 0.7884 GB, free: 10.73 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.004894, allocations: 37.22 kB / 0.7885 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001352/0.005029, allocations: 77.61 kB / 0.7885 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 8.979e-05/0.005119, allocations: 43.88 kB / 0.7886 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.634e-05/0.005145, allocations: 8 kB / 0.7886 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001682/0.005314, allocations: 91.84 kB / 0.7887 GB, free: 10.48 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.555e-05/0.005379, allocations: 39.84 kB / 0.7887 GB, free: 10.44 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.179e-05/0.005441, allocations: 40.69 kB / 0.7888 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000352/0.005793, allocations: 227.2 kB / 0.789 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.933e-06/0.005795, allocations: 0.6562 kB / 0.789 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of FrontEnd: time 5.31e-07/0.005795, allocations: 0 / 0.789 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.0058, allocations: 1.375 kB / 0.789 GB, free: 10.18 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.0009336/0.006733, allocations: 418.8 kB / 0.7894 GB, free: 9.738 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.00677, allocations: 12.03 kB / 0.7894 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.414e-05/0.006844, allocations: 25.86 kB / 0.7894 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.007082, allocations: 145.5 kB / 0.7895 GB, free: 9.535 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.007096, allocations: 5.75 kB / 0.7895 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.007117, allocations: 4.375 kB / 0.7896 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006253/0.007742, allocations: 208.5 kB / 0.7898 GB, free: 9.32 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.007751, allocations: 192 / 0.7898 GB, free: 9.32 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.007774, allocations: 4.375 kB / 0.7898 GB, free: 9.316 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.00778, allocations: 384 / 0.7898 GB, free: 9.316 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008252/0.008605, allocations: 231.9 kB / 0.79 GB, free: 9.094 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000997/0.009602, allocations: 454.5 kB / 0.7904 GB, free: 8.621 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004784/0.01008, allocations: 147.7 kB / 0.7906 GB, free: 8.469 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004327/0.01051, allocations: 140.3 kB / 0.7907 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.285e-05/0.01057, allocations: 8 kB / 0.7907 GB, free: 8.324 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.0106, allocations: 35.09 kB / 0.7907 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 1.102e-06/0.0106, allocations: 0 / 0.7907 GB, free: 8.281 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.001557/0.01216, allocations: 489 kB / 0.7912 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.01221, allocations: 51.41 kB / 0.7912 GB, free: 7.742 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.01237, allocations: 155.3 kB / 0.7914 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.0124, allocations: 29.7 kB / 0.7914 GB, free: 7.551 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.342e-05/0.01249, allocations: 106.4 kB / 0.7915 GB, free: 7.445 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.216e-05/0.01257, allocations: 75.39 kB / 0.7916 GB, free: 7.371 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.04e-05/0.01264, allocations: 37.64 kB / 0.7916 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001842/0.01282, allocations: 330.8 kB / 0.7919 GB, free: 6.996 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004563/0.01328, allocations: 136.2 kB / 0.7921 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/0.0137, allocations: 135.8 kB / 0.7922 GB, free: 6.734 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008969/0.0146, allocations: 298.8 kB / 0.7925 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.0146, allocations: 0 / 0.7925 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009554/0.01556, allocations: 333.6 kB / 0.7928 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.01557, allocations: 5.344 kB / 0.7928 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.01559, allocations: 0 / 0.7928 GB, free: 6.113 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.01561, allocations: 4 kB / 0.7928 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.01585, allocations: 35.23 kB / 0.7928 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.01586, allocations: 0 / 0.7928 GB, free: 6.078 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.01607, allocations: 43.84 kB / 0.7929 GB, free: 6.035 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.01609, allocations: 0 / 0.7929 GB, free: 6.035 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.0001611/0.01625, allocations: 146 kB / 0.793 GB, free: 5.887 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.726e-05/0.0163, allocations: 15.91 kB / 0.793 GB, free: 5.871 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.01736, allocations: 360.6 kB / 0.7934 GB, free: 5.516 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.01737, allocations: 4 kB / 0.7934 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.01737, allocations: 1.094 kB / 0.7934 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.01737, allocations: 0 / 0.7934 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002756/0.01765, allocations: 197.1 kB / 0.7936 GB, free: 5.289 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.956e-06/0.01766, allocations: 5.125 kB / 0.7936 GB, free: 5.285 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.01789, allocations: 32.55 kB / 0.7936 GB, free: 5.254 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.0179, allocations: 4.5 kB / 0.7936 GB, free: 5.25 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.758e-05/0.01791, allocations: 9.312 kB / 0.7936 GB, free: 5.242 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.01792, allocations: 0 / 0.7936 GB, free: 5.242 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01792, allocations: 0 / 0.7936 GB, free: 5.242 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.0191, allocations: 439.7 kB / 0.7941 GB, free: 4.801 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.364e-05/0.01913, allocations: 20.5 kB / 0.7941 GB, free: 4.781 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.01915, allocations: 4 kB / 0.7941 GB, free: 4.777 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.01937, allocations: 27.95 kB / 0.7941 GB, free: 4.75 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.141e-05/0.01944, allocations: 11.98 kB / 0.7941 GB, free: 4.738 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.01946, allocations: 7.984 kB / 0.7941 GB, free: 4.73 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 9.498e-05/0.01955, allocations: 107.3 kB / 0.7942 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of sort global known variables: time 8e-08/0.01955, allocations: 0 / 0.7942 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003186/0.01987, allocations: 43.89 kB / 0.7943 GB, free: 4.582 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.0002495/0.02012, allocations: 135.1 kB / 0.7944 GB, free: 4.438 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001032/0.02115, allocations: 367.5 kB / 0.7947 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.02116, allocations: 0 / 0.7947 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000535/0.02169, allocations: 219.2 kB / 0.795 GB, free: 3.84 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.02205, allocations: 32.22 kB / 0.795 GB, free: 3.809 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007069/0.02276, allocations: 363.7 kB / 0.7953 GB, free: 3.426 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.02291, allocations: 119.2 kB / 0.7954 GB, free: 3.289 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.696e-05/0.02298, allocations: 11.98 kB / 0.7955 GB, free: 3.277 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/0.02303, allocations: 12.5 kB / 0.7955 GB, free: 3.266 MB / 0.7448 GB Notification: Performance of SimCode: time 3.81e-07/0.02304, allocations: 4 kB / 0.7955 GB, free: 3.262 MB / 0.7448 GB Notification: Performance of Templates: time 0.006128/0.02916, allocations: 2.187 MB / 0.7976 GB, free: 1.125 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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) [Timeout 400] 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: 7.848633578978479]