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.001007/0.001007, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.0009739/0.0009739, allocations: 185 kB / 24.09 MB, free: 416 kB / 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 0.9717/0.9717, allocations: 177.1 MB / 204.5 MB, free: 5.531 MB / 186.7 MB " [Timeout remaining time 179] 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 1.775/1.775, allocations: 359 MB / 0.6055 GB, free: 10.86 MB / 0.573 GB " [Timeout remaining time 178] 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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.454e-06/2.454e-06, allocations: 0 / 0.7876 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.814e-05, allocations: 4.719 kB / 0.7876 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001647/0.001675, allocations: 0.8118 MB / 0.7884 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001095/0.00277, allocations: 1.066 MB / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.712e-05/0.002827, allocations: 0 / 0.7894 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.002938, allocations: 15.86 kB / 0.7894 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.544e-05/0.002984, allocations: 29.48 kB / 0.7894 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004302/0.003414, allocations: 83.83 kB / 0.7895 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.003619, allocations: 135.5 kB / 0.7896 GB, free: 10.05 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.0038, allocations: 30.14 kB / 0.7897 GB, free: 10.02 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.003923, allocations: 67.86 kB / 0.7897 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 6.063e-05/0.003983, allocations: 44.55 kB / 0.7898 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.004009, allocations: 13.38 kB / 0.7898 GB, free: 9.898 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.004148, allocations: 91.84 kB / 0.7899 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.462e-05/0.004193, allocations: 43.83 kB / 0.7899 GB, free: 9.766 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.123e-05/0.004224, allocations: 31.92 kB / 0.79 GB, free: 9.734 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.004414, allocations: 180.6 kB / 0.7901 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.004417, allocations: 0 / 0.7901 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.72e-07/0.004418, allocations: 0 / 0.7901 GB, free: 9.559 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.004421, allocations: 0 / 0.7901 GB, free: 9.559 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.0004601/0.004881, allocations: 0.4929 MB / 0.7906 GB, free: 9.027 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.004917, allocations: 9.406 kB / 0.7906 GB, free: 9.02 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.077e-05/0.004958, allocations: 28.8 kB / 0.7906 GB, free: 8.992 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.00508, allocations: 150.3 kB / 0.7908 GB, free: 8.82 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.005096, allocations: 8.375 kB / 0.7908 GB, free: 8.812 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.005107, allocations: 5.969 kB / 0.7908 GB, free: 8.809 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001844/0.005291, allocations: 114.9 kB / 0.7909 GB, free: 8.688 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.005298, allocations: 1.781 kB / 0.7909 GB, free: 8.688 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.005308, allocations: 8.375 kB / 0.7909 GB, free: 8.68 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.005314, allocations: 384 / 0.7909 GB, free: 8.68 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.561e-05/0.00536, allocations: 33.42 kB / 0.791 GB, free: 8.648 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003865/0.005746, allocations: 398.6 kB / 0.7913 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.596e-05/0.005802, allocations: 50.92 kB / 0.7914 GB, free: 8.172 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.37e-05/0.005836, allocations: 23.69 kB / 0.7914 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.31e-05/0.005879, allocations: 12 kB / 0.7914 GB, free: 8.133 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.0059, allocations: 34.11 kB / 0.7914 GB, free: 8.09 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 9.12e-07/0.005901, allocations: 0 / 0.7914 GB, free: 8.09 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.0002234/0.006124, allocations: 157.7 kB / 0.7916 GB, free: 7.934 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.5e-05/0.006149, allocations: 51.41 kB / 0.7916 GB, free: 7.871 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.045e-05/0.00624, allocations: 208.6 kB / 0.7918 GB, free: 7.652 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.006251, allocations: 25.7 kB / 0.7919 GB, free: 7.621 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.555e-05/0.006306, allocations: 159.2 kB / 0.792 GB, free: 7.461 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.737e-05/0.006354, allocations: 76.52 kB / 0.7921 GB, free: 7.387 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.006402, allocations: 39.34 kB / 0.7921 GB, free: 7.34 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.00654, allocations: 0.5078 MB / 0.7926 GB, free: 6.82 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.127e-05/0.006571, allocations: 17.38 kB / 0.7926 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.77e-05/0.006599, allocations: 16 kB / 0.7927 GB, free: 6.789 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.232e-05/0.006671, allocations: 73.34 kB / 0.7927 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.006673, allocations: 1.75 kB / 0.7927 GB, free: 6.715 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001212/0.006795, allocations: 115.4 kB / 0.7928 GB, free: 6.598 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.006806, allocations: 4 kB / 0.7928 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.006823, allocations: 3.984 kB / 0.7929 GB, free: 6.59 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.006835, allocations: 4 kB / 0.7929 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.591e-05/0.006921, allocations: 21.05 kB / 0.7929 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.006924, allocations: 4 kB / 0.7929 GB, free: 6.562 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.869e-05/0.006973, allocations: 21.72 kB / 0.7929 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.626e-05/0.006989, allocations: 4 kB / 0.7929 GB, free: 6.539 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 9.869e-05/0.007088, allocations: 180.2 kB / 0.7931 GB, free: 6.355 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.00711, allocations: 11.91 kB / 0.7931 GB, free: 6.344 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001657/0.007276, allocations: 142.7 kB / 0.7932 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.007279, allocations: 7.984 kB / 0.7932 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.00728, allocations: 0 / 0.7932 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.007283, allocations: 0.5938 kB / 0.7932 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.007408, allocations: 145.1 kB / 0.7934 GB, free: 6.023 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.007414, allocations: 8.453 kB / 0.7934 GB, free: 6.016 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.517e-05/0.00747, allocations: 24.7 kB / 0.7934 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.007471, allocations: 0.5312 kB / 0.7934 GB, free: 5.992 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.007478, allocations: 4 kB / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.007479, allocations: 1.469 kB / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.007479, allocations: 0 / 0.7934 GB, free: 5.988 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001601/0.007639, allocations: 277.5 kB / 0.7937 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.5e-05/0.007654, allocations: 27.73 kB / 0.7937 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.007665, allocations: 0.5312 kB / 0.7937 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.814e-05/0.007723, allocations: 17.36 kB / 0.7937 GB, free: 5.656 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.184e-05/0.007765, allocations: 19.97 kB / 0.7937 GB, free: 5.637 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-06/0.007771, allocations: 0 / 0.7937 GB, free: 5.637 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.853e-05/0.007819, allocations: 148 kB / 0.7939 GB, free: 5.492 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4e-08/0.007819, allocations: 0 / 0.7939 GB, free: 5.492 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001898/0.008009, allocations: 44.78 kB / 0.7939 GB, free: 5.449 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.0001355/0.008145, allocations: 120.6 kB / 0.794 GB, free: 5.32 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001613/0.008306, allocations: 154.5 kB / 0.7942 GB, free: 5.156 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.008307, allocations: 0.5938 kB / 0.7942 GB, free: 5.156 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.708e-05/0.008384, allocations: 111.6 kB / 0.7943 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002154/0.0086, allocations: 33.77 kB / 0.7943 GB, free: 5 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.008951, allocations: 297.7 kB / 0.7946 GB, free: 4.68 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.727e-05/0.008998, allocations: 78.8 kB / 0.7947 GB, free: 4.586 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.838e-05/0.009037, allocations: 11.92 kB / 0.7947 GB, free: 4.574 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.03e-05/0.009117, allocations: 98.17 kB / 0.7948 GB, free: 4.477 MB / 0.7448 GB Notification: Performance of SimCode: time 5.91e-07/0.009117, allocations: 0 / 0.7948 GB, free: 4.477 MB / 0.7448 GB Notification: Performance of Templates: time 0.003883/0.013, allocations: 2.394 MB / 0.7971 GB, free: 2.133 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.92143611703068]