Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0009704/0.0009704, allocations: 81.05 kB / 9.981 MB, free: 0.7031 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001302/0.002273, allocations: 440 kB / 10.41 MB, free: 280 kB / 10.45 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.0007689/0.0007689, allocations: 157.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000992/0.001761, allocations: 475.6 kB / 11.79 MB, free: 2.371 MB / 13.93 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.036/1.036, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09481/1.131, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.51/2.51, allocations: 447.1 MB / 0.675 GB, free: 5.949 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2382/2.748, allocations: 146 MB / 0.8176 GB, free: 3.871 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 0.8189 GB, free: 2.562 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.252e-05/2.438e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.559 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001682/0.001707, allocations: 0.9338 MB / 0.8198 GB, free: 1.621 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0002181/0.001925, allocations: 127.5 kB / 0.8199 GB, free: 1.496 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.223e-05/0.001997, allocations: 7.938 kB / 0.82 GB, free: 1.488 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 8.023e-05/0.002077, allocations: 27.73 kB / 0.82 GB, free: 1.461 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 8.558e-05/0.002163, allocations: 11.91 kB / 0.82 GB, free: 1.449 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 9.717e-05/0.00226, allocations: 47.91 kB / 0.82 GB, free: 1.402 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0002251/0.002485, allocations: 279.3 kB / 0.8203 GB, free: 1.129 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000264/0.002749, allocations: 262.5 kB / 0.8206 GB, free: 0.8633 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.002986, allocations: 279.5 kB / 0.8208 GB, free: 0.5898 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.003137, allocations: 139.7 kB / 0.821 GB, free: 464 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 5.063e-05/0.003188, allocations: 40 kB / 0.821 GB, free: 424 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 4.065e-05/0.003229, allocations: 48 kB / 0.821 GB, free: 376 kB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 7.118e-05/0.0033, allocations: 83.69 kB / 0.8211 GB, free: 292 kB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 7.275e-05/0.003373, allocations: 87.75 kB / 0.8212 GB, free: 204 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.003645, allocations: 314.9 kB / 0.8215 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.19e-05/0.003657, allocations: 0 / 0.8215 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of FrontEnd: time 9.92e-07/0.003658, allocations: 0 / 0.8215 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.279e-05/0.003671, allocations: 0 / 0.8215 GB, free: 15.89 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0005771/0.004248, allocations: 0.6245 MB / 0.8221 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.004283, allocations: 12.03 kB / 0.8221 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.744e-05/0.00436, allocations: 64.89 kB / 0.8222 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.004628, allocations: 252.8 kB / 0.8224 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.151e-05/0.00467, allocations: 41.36 kB / 0.8225 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.00471, allocations: 40.38 kB / 0.8225 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003514/0.005062, allocations: 342.1 kB / 0.8228 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.005072, allocations: 192 / 0.8228 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.321e-05/0.005095, allocations: 16.38 kB / 0.8228 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.005103, allocations: 8.375 kB / 0.8229 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.005259, allocations: 140.5 kB / 0.823 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008389/0.006098, allocations: 0.7699 MB / 0.8237 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.513e-05/0.006183, allocations: 65.06 kB / 0.8238 GB, free: 13.42 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.099e-05/0.006214, allocations: 33.7 kB / 0.8238 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.006237, allocations: 4 kB / 0.8238 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.481e-05/0.006261, allocations: 42.5 kB / 0.8239 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.173e-06/0.006263, allocations: 0 / 0.8239 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0001879/0.00645, allocations: 106.4 kB / 0.824 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.006487, allocations: 81.11 kB / 0.8241 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.006652, allocations: 276.7 kB / 0.8243 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.006668, allocations: 29.7 kB / 0.8243 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 8.895e-05/0.006757, allocations: 216.2 kB / 0.8246 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.282e-05/0.006789, allocations: 59.47 kB / 0.8246 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.912e-05/0.006859, allocations: 77.84 kB / 0.8247 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.326e-05/0.006942, allocations: 338.8 kB / 0.825 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.557e-05/0.006977, allocations: 24.45 kB / 0.825 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.11e-05/0.007028, allocations: 53.36 kB / 0.8251 GB, free: 12.02 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.153e-05/0.00712, allocations: 86.77 kB / 0.8252 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.007125, allocations: 4 kB / 0.8252 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00013/0.007255, allocations: 129.5 kB / 0.8253 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.007273, allocations: 13.19 kB / 0.8253 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.007277, allocations: 4 kB / 0.8253 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.00729, allocations: 0 / 0.8253 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.00745, allocations: 59.91 kB / 0.8254 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.007454, allocations: 4 kB / 0.8254 GB, free: 11.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.953e-05/0.007494, allocations: 19.84 kB / 0.8254 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.471e-05/0.007509, allocations: 12.06 kB / 0.8254 GB, free: 11.68 MB / 0.8073 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 (idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTru.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001053/0.007614, allocations: 124.7 kB / 0.8255 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.766e-05/0.007652, allocations: 27.86 kB / 0.8255 GB, free: 11.52 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001596/0.007811, allocations: 119.4 kB / 0.8257 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.007814, allocations: 0 / 0.8257 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.007816, allocations: 3.984 kB / 0.8257 GB, free: 11.4 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.007821, allocations: 4 kB / 0.8257 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005243/0.008345, allocations: 0.6469 MB / 0.8263 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.008349, allocations: 4 kB / 0.8263 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.302e-05/0.008432, allocations: 47.91 kB / 0.8263 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.008538, allocations: 19.86 kB / 0.8264 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.008542, allocations: 4 kB / 0.8264 GB, free: 10.6 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.008562, allocations: 19.86 kB / 0.8264 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.008567, allocations: 7.938 kB / 0.8264 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.00857, allocations: 4 kB / 0.8264 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.008734, allocations: 222.1 kB / 0.8266 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.008753, allocations: 11.98 kB / 0.8266 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.829e-05/0.008801, allocations: 11.94 kB / 0.8266 GB, free: 10.26 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.008852, allocations: 27.91 kB / 0.8267 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.008863, allocations: 8 kB / 0.8267 GB, free: 10.23 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.653e-05/0.00892, allocations: 70.78 kB / 0.8267 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.00892, allocations: 4 kB / 0.8267 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001658/0.009085, allocations: 79.61 kB / 0.8268 GB, free: 10.08 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 2 (idxLasTru.y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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.0001015/0.009187, allocations: 92.34 kB / 0.8269 GB, free: 9.98 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001358/0.009323, allocations: 104.6 kB / 0.827 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 6.311e-06/0.009329, allocations: 4 kB / 0.827 GB, free: 9.871 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.715e-05/0.009406, allocations: 66 kB / 0.8271 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.009657, allocations: 235.2 kB / 0.8273 GB, free: 9.539 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006057/0.01026, allocations: 0.6344 MB / 0.8279 GB, free: 8.824 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.744e-05/0.01032, allocations: 104.3 kB / 0.828 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.703e-05/0.01038, allocations: 30.47 kB / 0.828 GB, free: 8.672 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.888e-05/0.01047, allocations: 83.34 kB / 0.8281 GB, free: 8.59 MB / 0.8073 GB Notification: Performance of SimCode: time 6.91e-07/0.01047, allocations: 0 / 0.8281 GB, free: 8.59 MB / 0.8073 GB Notification: Performance of Templates: time 0.004092/0.01456, allocations: 2.138 MB / 0.8302 GB, free: 6.492 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.208772718906403]