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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 115.7 kB / 18.89 MB, free: 2.898 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 199.3 kB / 22.17 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.6 MB / 250.9 MB, free: 13.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.786/2.786, allocations: 476.7 MB / 0.7645 GB, free: 10.11 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002091/0.002091, allocations: 67.89 kB / 1.109 GB, free: 6.551 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7811/0.7832, allocations: 168.7 MB / 1.274 GB, free: 4.402 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002054/0.7852, allocations: 0.7211 MB / 1.275 GB, free: 3.684 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002372/0.7855, allocations: 47.78 kB / 1.275 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.39e-05/0.7856, allocations: 4 kB / 1.275 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.7857, allocations: 15.86 kB / 1.275 GB, free: 3.617 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001202/0.7858, allocations: 11.92 kB / 1.275 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.741e-05/0.7859, allocations: 19.92 kB / 1.275 GB, free: 3.586 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.7861, allocations: 183.6 kB / 1.275 GB, free: 3.406 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002909/0.7864, allocations: 145 kB / 1.275 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.579e-05/0.7865, allocations: 103.6 kB / 1.275 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.7866, allocations: 115.4 kB / 1.275 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.7867, allocations: 24 kB / 1.275 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.732e-05/0.7867, allocations: 24 kB / 1.275 GB, free: 3 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.138e-05/0.7868, allocations: 75.77 kB / 1.275 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.7869, allocations: 127.2 kB / 1.276 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.7873, allocations: 373.1 kB / 1.276 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.7873, allocations: 0 / 1.276 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.884e-06/0.7873, allocations: 4 kB / 1.276 GB, free: 2.438 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.7873, allocations: 0 / 1.276 GB, free: 2.438 MB / 0.9669 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.0007477/0.7881, allocations: 0.5533 MB / 1.276 GB, free: 1.832 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.7881, allocations: 8.031 kB / 1.277 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.7882, allocations: 36.7 kB / 1.277 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005057/0.7887, allocations: 317.3 kB / 1.277 GB, free: 1.434 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.572e-05/0.7887, allocations: 28.94 kB / 1.277 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.969e-05/0.7888, allocations: 24.38 kB / 1.277 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005423/0.7893, allocations: 347 kB / 1.277 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.7893, allocations: 4.125 kB / 1.277 GB, free: 1.031 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.776e-05/0.7894, allocations: 11.94 kB / 1.277 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.929e-06/0.7894, allocations: 8 kB / 1.277 GB, free: 1.012 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003956/0.7898, allocations: 256.4 kB / 1.277 GB, free: 0.7617 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.7911, allocations: 0.9137 MB / 1.278 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.432e-05/0.7912, allocations: 65.12 kB / 1.278 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.059e-05/0.7913, allocations: 37.75 kB / 1.278 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.7913, allocations: 3.938 kB / 1.278 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.7913, allocations: 34.56 kB / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.7913, allocations: 0 / 1.279 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.000282/0.7916, allocations: 129.6 kB / 1.279 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.7917, allocations: 81.14 kB / 1.279 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005462/0.7922, allocations: 477.5 kB / 1.279 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.7922, allocations: 33.62 kB / 1.279 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.7924, allocations: 179.8 kB / 1.279 GB, free: 14.7 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.354e-05/0.7924, allocations: 11.89 kB / 1.279 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.794e-05/0.7924, allocations: 41.7 kB / 1.279 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.7926, allocations: 342.8 kB / 1.28 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.055e-05/0.7927, allocations: 63.95 kB / 1.28 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.7928, allocations: 73.67 kB / 1.28 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.7929, allocations: 97.66 kB / 1.28 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7929, allocations: 0 / 1.28 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002582/0.7932, allocations: 189.3 kB / 1.28 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.7932, allocations: 7.984 kB / 1.28 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.7932, allocations: 0 / 1.28 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.7932, allocations: 0 / 1.28 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.7934, allocations: 24 kB / 1.28 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.7934, allocations: 7.938 kB / 1.28 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.926e-05/0.7934, allocations: 31.72 kB / 1.28 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.7934, allocations: 11.94 kB / 1.28 GB, free: 13.78 MB / 0.9825 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 0.0001952/0.7936, allocations: 189.7 kB / 1.28 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.404e-05/0.7937, allocations: 31.75 kB / 1.28 GB, free: 13.55 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.7939, allocations: 168.6 kB / 1.281 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.201e-05/0.794, allocations: 176.3 kB / 1.281 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.004e-05/0.7941, allocations: 176.3 kB / 1.281 GB, free: 13.02 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.691e-05/0.7941, allocations: 185.8 kB / 1.281 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000383/0.7945, allocations: 0.5128 MB / 1.282 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.981e-05/0.7946, allocations: 108.9 kB / 1.282 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.524e-05/0.7946, allocations: 113 kB / 1.282 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.66e-05/0.7947, allocations: 176.3 kB / 1.282 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/0.7948, allocations: 184.2 kB / 1.282 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.506e-05/0.7948, allocations: 180.3 kB / 1.282 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.263e-05/0.7949, allocations: 188.2 kB / 1.283 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.7951, allocations: 335.6 kB / 1.283 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.7953, allocations: 217.8 kB / 1.283 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.7954, allocations: 180.3 kB / 1.283 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.7955, allocations: 109.2 kB / 1.283 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-05/0.7956, allocations: 176.3 kB / 1.284 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.098e-05/0.7957, allocations: 116.9 kB / 1.284 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000425/0.7961, allocations: 363.1 kB / 1.284 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.7961, allocations: 0 / 1.284 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002627/0.7964, allocations: 35.89 kB / 1.284 GB, free: 9.711 MB / 0.9825 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.0001783/0.7965, allocations: 182.5 kB / 1.284 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001919/0.7967, allocations: 67.95 kB / 1.284 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.7967, allocations: 0 / 1.284 GB, free: 9.457 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.477e-06/0.7967, allocations: 11.94 kB / 1.284 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000534/0.7973, allocations: 477.2 kB / 1.285 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007114/0.798, allocations: 0.5001 MB / 1.285 GB, free: 8.449 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.7984, allocations: 0.7675 MB / 1.286 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001086/0.7986, allocations: 58.23 kB / 1.286 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.463e-05/0.7986, allocations: 19.44 kB / 1.286 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of SimCode: time 4.51e-07/0.7986, allocations: 0 / 1.286 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of Templates: time 0.005563/0.8042, allocations: 1.728 MB / 1.288 GB, free: 5.859 MB / 0.9825 GB " [Timeout remaining time 299] 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=400 -s gbode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.462472118902951]