Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.001404/0.001404, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.0009992/0.0009992, allocations: 161 kB / 23.82 MB, free: 0.75 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.9847/0.9847, allocations: 177.1 MB / 204.2 MB, free: 5.262 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.887/1.887, allocations: 359 MB / 0.6052 GB, free: 11.04 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.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.925e-06/2.925e-06, allocations: 0 / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.694e-05/2.987e-05, allocations: 4.984 kB / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00154/0.00157, allocations: 0.7307 MB / 0.7878 GB, free: 11.79 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002102/0.00178, allocations: 47.78 kB / 0.7878 GB, free: 11.74 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.742e-05/0.001857, allocations: 4 kB / 0.7878 GB, free: 11.73 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.001979, allocations: 20.86 kB / 0.7879 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001345/0.002114, allocations: 7.922 kB / 0.7879 GB, free: 11.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 4.984e-05/0.002164, allocations: 19.98 kB / 0.7879 GB, free: 11.69 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001701/0.002334, allocations: 185.1 kB / 0.7881 GB, free: 11.51 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.002542, allocations: 149.3 kB / 0.7882 GB, free: 11.36 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.002647, allocations: 147.7 kB / 0.7884 GB, free: 11.22 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.002762, allocations: 95.78 kB / 0.7884 GB, free: 11.12 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.0028, allocations: 26.47 kB / 0.7885 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 2.893e-05/0.002829, allocations: 28 kB / 0.7885 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.007e-05/0.002889, allocations: 67.75 kB / 0.7886 GB, free: 11.01 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 6.784e-05/0.002957, allocations: 79.77 kB / 0.7886 GB, free: 10.93 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.003181, allocations: 231.1 kB / 0.7889 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.003183, allocations: 0 / 0.7889 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.22e-07/0.003183, allocations: 0 / 0.7889 GB, free: 10.7 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.003189, allocations: 1.75 kB / 0.7889 GB, free: 10.7 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0004854/0.003674, allocations: 0.5858 MB / 0.7894 GB, free: 10.08 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.003722, allocations: 12.03 kB / 0.7894 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.561e-05/0.003797, allocations: 56.7 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.004092, allocations: 255.6 kB / 0.7897 GB, free: 9.734 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.129e-05/0.004133, allocations: 25.03 kB / 0.7898 GB, free: 9.711 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.004163, allocations: 32.31 kB / 0.7898 GB, free: 9.68 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.004462, allocations: 238.7 kB / 0.79 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.004474, allocations: 1.375 kB / 0.79 GB, free: 9.426 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.004493, allocations: 8.375 kB / 0.79 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.004503, allocations: 8.375 kB / 0.79 GB, free: 9.41 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001415/0.004644, allocations: 92.72 kB / 0.7901 GB, free: 9.32 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000795/0.005439, allocations: 0.7839 MB / 0.7909 GB, free: 8.496 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.967e-05/0.005499, allocations: 62.98 kB / 0.791 GB, free: 8.41 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.3e-05/0.005522, allocations: 15.38 kB / 0.791 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.005543, allocations: 6.531 kB / 0.791 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.005567, allocations: 41.44 kB / 0.791 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/0.005568, allocations: 0 / 0.791 GB, free: 8.332 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.000186/0.005754, allocations: 61.48 kB / 0.7911 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.005793, allocations: 81.11 kB / 0.7912 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.006049, allocations: 372.6 kB / 0.7915 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.006061, allocations: 25.7 kB / 0.7915 GB, free: 7.762 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.006178, allocations: 251.6 kB / 0.7918 GB, free: 7.512 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.135e-06/0.006186, allocations: 7.984 kB / 0.7918 GB, free: 7.504 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.79e-05/0.006264, allocations: 79.83 kB / 0.7919 GB, free: 7.418 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.006392, allocations: 0.5134 MB / 0.7924 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.681e-05/0.006429, allocations: 15.98 kB / 0.7924 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.665e-05/0.006476, allocations: 46.61 kB / 0.7924 GB, free: 6.828 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.54e-05/0.006541, allocations: 51.31 kB / 0.7925 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.006543, allocations: 0.5938 kB / 0.7925 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001547/0.006698, allocations: 121.5 kB / 0.7926 GB, free: 6.645 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.006713, allocations: 4.781 kB / 0.7926 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.006719, allocations: 0 / 0.7926 GB, free: 6.641 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.006738, allocations: 9.094 kB / 0.7926 GB, free: 6.633 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.546e-05/0.006833, allocations: 27.98 kB / 0.7926 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.006839, allocations: 0 / 0.7926 GB, free: 6.605 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.327e-05/0.006872, allocations: 13.27 kB / 0.7926 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.006887, allocations: 8 kB / 0.7926 GB, free: 6.586 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.499e-05/0.006982, allocations: 174 kB / 0.7928 GB, free: 6.406 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.264e-05/0.007014, allocations: 15.91 kB / 0.7928 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.007154, allocations: 197 kB / 0.793 GB, free: 6.184 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-05/0.007214, allocations: 268 kB / 0.7933 GB, free: 5.914 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.049e-05/0.007275, allocations: 272.9 kB / 0.7935 GB, free: 5.641 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-05/0.007332, allocations: 272.1 kB / 0.7938 GB, free: 5.367 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.007597, allocations: 0.6025 MB / 0.7944 GB, free: 4.723 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.283e-05/0.00763, allocations: 148.9 kB / 0.7945 GB, free: 4.57 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.007668, allocations: 152.9 kB / 0.7947 GB, free: 4.414 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.026e-05/0.007728, allocations: 269.3 kB / 0.7949 GB, free: 4.145 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-05/0.00779, allocations: 268.1 kB / 0.7952 GB, free: 3.875 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.73e-05/0.007848, allocations: 272 kB / 0.7954 GB, free: 3.602 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.945e-05/0.007907, allocations: 268 kB / 0.7957 GB, free: 3.332 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.008051, allocations: 461.5 kB / 0.7961 GB, free: 2.855 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.321e-05/0.008105, allocations: 164.8 kB / 0.7963 GB, free: 2.688 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.781e-05/0.008182, allocations: 276 kB / 0.7965 GB, free: 2.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.982e-05/0.008252, allocations: 148.9 kB / 0.7967 GB, free: 2.258 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.008322, allocations: 274.7 kB / 0.797 GB, free: 1.984 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.607e-05/0.008358, allocations: 148.9 kB / 0.7971 GB, free: 1.832 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001306/0.008489, allocations: 221.1 kB / 0.7973 GB, free: 1.613 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.008489, allocations: 0 / 0.7973 GB, free: 1.613 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001927/0.008682, allocations: 43.78 kB / 0.7973 GB, free: 1.57 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001167/0.008799, allocations: 218.4 kB / 0.7976 GB, free: 1.348 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001091/0.008908, allocations: 48.44 kB / 0.7976 GB, free: 1.297 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.008909, allocations: 0.5312 kB / 0.7976 GB, free: 1.297 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.163e-06/0.00891, allocations: 1.938 kB / 0.7976 GB, free: 1.297 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.009267, allocations: 0.727 MB / 0.7983 GB, free: 0.5664 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004473/0.009715, allocations: 491.5 kB / 0.7988 GB, free: 56 kB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.571e-05/0.00977, allocations: 79.81 kB / 0.7989 GB, free: 15.96 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 4.844e-05/0.009819, allocations: 29.45 kB / 0.7989 GB, free: 15.93 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.028e-05/0.009849, allocations: 21.28 kB / 0.7989 GB, free: 15.91 MB / 0.7605 GB Notification: Performance of SimCode: time 3.61e-07/0.009849, allocations: 0 / 0.7989 GB, free: 15.91 MB / 0.7605 GB Notification: Performance of Templates: time 0.003322/0.01317, allocations: 1.072 MB / 0.8 GB, free: 14.87 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.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: 5.294850992970169]