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.0008953/0.0008953, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.000935/0.000935, allocations: 166.2 kB / 24.87 MB, free: 8.891 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 0.9284/0.9284, allocations: 177.2 MB / 205.3 MB, free: 5.492 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.766/1.766, allocations: 359 MB / 0.6063 GB, free: 10.89 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 1.823e-06/1.823e-06, allocations: 0 / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.296e-05/1.479e-05, allocations: 6.125 kB / 0.7883 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001382/0.001397, allocations: 0.8243 MB / 0.7891 GB, free: 11.42 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.002403, allocations: 1.062 MB / 0.7901 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.473e-05/0.002457, allocations: 4.562 kB / 0.7902 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 9.859e-05/0.002556, allocations: 11.86 kB / 0.7902 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.058e-05/0.002597, allocations: 32.88 kB / 0.7902 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003254/0.002922, allocations: 88.39 kB / 0.7903 GB, free: 10.21 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.003037, allocations: 124.4 kB / 0.7904 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.003151, allocations: 29.3 kB / 0.7904 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 7.996e-05/0.00323, allocations: 76.77 kB / 0.7905 GB, free: 9.992 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.978e-05/0.00328, allocations: 43.88 kB / 0.7905 GB, free: 9.949 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.984e-05/0.0033, allocations: 8 kB / 0.7905 GB, free: 9.941 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.003409, allocations: 96.44 kB / 0.7906 GB, free: 9.848 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.577e-05/0.003455, allocations: 44.42 kB / 0.7907 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.074e-05/0.003485, allocations: 31.92 kB / 0.7907 GB, free: 9.773 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001838/0.003669, allocations: 181 kB / 0.7909 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.00367, allocations: 0 / 0.7909 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.01e-07/0.003671, allocations: 0 / 0.7909 GB, free: 9.598 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.003675, allocations: 0 / 0.7909 GB, free: 9.598 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.0004428/0.004118, allocations: 0.4895 MB / 0.7914 GB, free: 9.07 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.004149, allocations: 12.03 kB / 0.7914 GB, free: 9.059 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.955e-05/0.004188, allocations: 24.8 kB / 0.7914 GB, free: 9.035 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.00431, allocations: 149 kB / 0.7915 GB, free: 8.867 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.00432, allocations: 12.31 kB / 0.7916 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.004332, allocations: 8.375 kB / 0.7916 GB, free: 8.848 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.004511, allocations: 114.3 kB / 0.7917 GB, free: 8.73 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.004517, allocations: 8.172 kB / 0.7917 GB, free: 8.723 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.004527, allocations: 4.375 kB / 0.7917 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.004532, allocations: 384 / 0.7917 GB, free: 8.719 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.799e-05/0.00458, allocations: 35.86 kB / 0.7917 GB, free: 8.684 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003876/0.004968, allocations: 391.9 kB / 0.7921 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.648e-05/0.005025, allocations: 47.64 kB / 0.7921 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.547e-05/0.00506, allocations: 32.23 kB / 0.7922 GB, free: 8.18 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.005094, allocations: 8 kB / 0.7922 GB, free: 8.172 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/0.005112, allocations: 34.11 kB / 0.7922 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 8.62e-07/0.005113, allocations: 0 / 0.7922 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.0002074/0.00532, allocations: 153.3 kB / 0.7924 GB, free: 7.977 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.847e-05/0.005348, allocations: 55.39 kB / 0.7924 GB, free: 7.91 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.132e-05/0.00544, allocations: 205.9 kB / 0.7926 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.041e-05/0.00545, allocations: 26.33 kB / 0.7926 GB, free: 7.66 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.075e-05/0.005511, allocations: 160.4 kB / 0.7928 GB, free: 7.5 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.005557, allocations: 75.36 kB / 0.7929 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-05/0.0056, allocations: 43.34 kB / 0.7929 GB, free: 7.375 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001333/0.005733, allocations: 0.5008 MB / 0.7934 GB, free: 6.863 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.999e-05/0.005763, allocations: 19.98 kB / 0.7934 GB, free: 6.844 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.615e-05/0.005789, allocations: 16 kB / 0.7934 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.664e-05/0.005856, allocations: 70 kB / 0.7935 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.634e-06/0.005857, allocations: 1.219 kB / 0.7935 GB, free: 6.758 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001186/0.005976, allocations: 115.5 kB / 0.7936 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/0.005986, allocations: 4 kB / 0.7936 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.005997, allocations: 0 / 0.7936 GB, free: 6.637 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.853e-06/0.006004, allocations: 4.719 kB / 0.7936 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.998e-05/0.006083, allocations: 25.19 kB / 0.7936 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.264e-06/0.006086, allocations: 0 / 0.7936 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.957e-05/0.006135, allocations: 26.09 kB / 0.7937 GB, free: 6.586 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.006151, allocations: 0 / 0.7937 GB, free: 6.586 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 7.645e-05/0.006227, allocations: 170.1 kB / 0.7938 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.006253, allocations: 11.91 kB / 0.7938 GB, free: 6.398 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001571/0.00641, allocations: 153.5 kB / 0.794 GB, free: 6.246 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.006412, allocations: 3.938 kB / 0.794 GB, free: 6.242 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.006414, allocations: 4 kB / 0.794 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.006417, allocations: 0 / 0.794 GB, free: 6.238 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.006576, allocations: 157.1 kB / 0.7941 GB, free: 6.059 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.006581, allocations: 7.938 kB / 0.7941 GB, free: 6.051 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.099e-05/0.006642, allocations: 23.97 kB / 0.7942 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.006643, allocations: 1.469 kB / 0.7942 GB, free: 6.027 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.924e-06/0.00665, allocations: 4 kB / 0.7942 GB, free: 6.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.71e-07/0.006651, allocations: 0 / 0.7942 GB, free: 6.023 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.006651, allocations: 0.5 kB / 0.7942 GB, free: 6.023 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001547/0.006806, allocations: 277.2 kB / 0.7944 GB, free: 5.734 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.46e-05/0.006821, allocations: 28.28 kB / 0.7945 GB, free: 5.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.127e-05/0.006832, allocations: 1.375 kB / 0.7945 GB, free: 5.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.897e-05/0.006891, allocations: 15.98 kB / 0.7945 GB, free: 5.691 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.006937, allocations: 19.97 kB / 0.7945 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.006945, allocations: 0.625 kB / 0.7945 GB, free: 5.672 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.459e-05/0.00699, allocations: 141.4 kB / 0.7946 GB, free: 5.535 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.00699, allocations: 1.969 kB / 0.7946 GB, free: 5.535 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000177/0.007167, allocations: 47.92 kB / 0.7947 GB, free: 5.488 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.000136/0.007303, allocations: 119.8 kB / 0.7948 GB, free: 5.359 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001609/0.007464, allocations: 147.6 kB / 0.7949 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.007465, allocations: 0 / 0.7949 GB, free: 5.203 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.116e-05/0.007536, allocations: 115 kB / 0.795 GB, free: 5.074 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.007747, allocations: 29.7 kB / 0.7951 GB, free: 5.047 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003219/0.008068, allocations: 292.1 kB / 0.7953 GB, free: 4.734 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.464e-05/0.008113, allocations: 79.31 kB / 0.7954 GB, free: 4.637 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.152e-05/0.008145, allocations: 7.938 kB / 0.7954 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.503e-05/0.00823, allocations: 94.19 kB / 0.7955 GB, free: 4.535 MB / 0.7448 GB Notification: Performance of SimCode: time 6.92e-07/0.00823, allocations: 0 / 0.7955 GB, free: 4.535 MB / 0.7448 GB Notification: Performance of Templates: time 0.003996/0.01223, allocations: 2.458 MB / 0.7979 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.9525033459067345]