Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001164/0.001164, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001773/0.002937, allocations: 449.7 kB / 10.37 MB, free: 328 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.001106/0.001106, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001431/0.002538, allocations: 459.6 kB / 11.71 MB, free: 2.457 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 0.9393/0.9393, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08689/1.026, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.856/1.856, allocations: 378.2 MB / 0.6076 GB, free: 7.82 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4379/2.294, allocations: 123.3 MB / 0.728 GB, free: 5.801 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.7293 GB, free: 4.531 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.602e-05/1.756e-05, allocations: 7.844 kB / 0.7293 GB, free: 4.523 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001272/0.001289, allocations: 0.773 MB / 0.7301 GB, free: 3.773 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0001031/0.001392, allocations: 57.19 kB / 0.7301 GB, free: 3.719 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.364e-05/0.001456, allocations: 0 / 0.7301 GB, free: 3.719 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 7.053e-05/0.001526, allocations: 16.62 kB / 0.7301 GB, free: 3.703 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.943e-05/0.001606, allocations: 13.56 kB / 0.7302 GB, free: 3.691 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 4.344e-05/0.001649, allocations: 16.61 kB / 0.7302 GB, free: 3.676 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001878/0.001837, allocations: 177.8 kB / 0.7303 GB, free: 3.527 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.002034, allocations: 157.2 kB / 0.7305 GB, free: 3.367 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.002211, allocations: 187.6 kB / 0.7307 GB, free: 3.184 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 8.671e-05/0.002298, allocations: 92.47 kB / 0.7308 GB, free: 3.094 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 3.546e-05/0.002333, allocations: 20 kB / 0.7308 GB, free: 3.074 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 2.216e-05/0.002355, allocations: 20.69 kB / 0.7308 GB, free: 3.055 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.002409, allocations: 51.8 kB / 0.7308 GB, free: 3.004 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.551e-05/0.002464, allocations: 52.31 kB / 0.7309 GB, free: 2.953 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001764/0.002641, allocations: 192 kB / 0.7311 GB, free: 2.766 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.546e-05/0.002656, allocations: 0 / 0.7311 GB, free: 2.766 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.61e-07/0.002657, allocations: 5.438 kB / 0.7311 GB, free: 2.762 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.591e-05/0.002672, allocations: 0 / 0.7311 GB, free: 2.762 MB / 0.698 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.0004498/0.003122, allocations: 491.8 kB / 0.7316 GB, free: 2.254 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.003151, allocations: 8.031 kB / 0.7316 GB, free: 2.246 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.003205, allocations: 41.56 kB / 0.7316 GB, free: 2.207 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.003447, allocations: 226.8 kB / 0.7318 GB, free: 1.957 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.003485, allocations: 30.81 kB / 0.7318 GB, free: 1.93 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.00351, allocations: 24.38 kB / 0.7319 GB, free: 1.906 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.003756, allocations: 223.8 kB / 0.7321 GB, free: 1.676 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.003767, allocations: 8.109 kB / 0.7321 GB, free: 1.668 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.003786, allocations: 12.38 kB / 0.7321 GB, free: 1.656 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.495e-06/0.003794, allocations: 5.312 kB / 0.7321 GB, free: 1.652 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.546e-05/0.003889, allocations: 86.59 kB / 0.7322 GB, free: 1.566 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005804/0.00447, allocations: 0.5344 MB / 0.7327 GB, free: 1.008 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 4.732e-05/0.004517, allocations: 37.16 kB / 0.7327 GB, free: 0.9531 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.728e-05/0.004534, allocations: 17.7 kB / 0.7328 GB, free: 0.9297 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.004556, allocations: 0.5 kB / 0.7328 GB, free: 0.9297 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.00458, allocations: 35.5 kB / 0.7328 GB, free: 0.8867 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.004581, allocations: 0 / 0.7328 GB, free: 0.8867 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001237/0.004704, allocations: 46.5 kB / 0.7328 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.556e-05/0.00474, allocations: 81.61 kB / 0.7329 GB, free: 0.7383 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.004897, allocations: 268.6 kB / 0.7332 GB, free: 476 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/0.004906, allocations: 27.45 kB / 0.7332 GB, free: 444 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.7e-05/0.004973, allocations: 180.1 kB / 0.7334 GB, free: 260 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.593e-06/0.00498, allocations: 7.984 kB / 0.7334 GB, free: 252 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.005031, allocations: 61.59 kB / 0.7334 GB, free: 184 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.409e-05/0.005125, allocations: 330.8 kB / 0.7338 GB, free: 15.85 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.142e-05/0.005146, allocations: 13.16 kB / 0.7338 GB, free: 15.84 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.001e-05/0.005176, allocations: 25.7 kB / 0.7338 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.772e-05/0.005224, allocations: 45.66 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.005226, allocations: 0.9375 kB / 0.7338 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 9.651e-05/0.005322, allocations: 89.52 kB / 0.7339 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.005335, allocations: 8.969 kB / 0.7339 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.005339, allocations: 0 / 0.7339 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.005347, allocations: 0 / 0.7339 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.152e-05/0.005439, allocations: 32.45 kB / 0.734 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.005443, allocations: 4.875 kB / 0.734 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.159e-05/0.005474, allocations: 15.89 kB / 0.734 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.005486, allocations: 8 kB / 0.734 GB, free: 15.59 MB / 0.7136 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 (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.021e-05/0.005576, allocations: 122.4 kB / 0.7341 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.005602, allocations: 11.98 kB / 0.7341 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.005706, allocations: 144.6 kB / 0.7343 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.991e-05/0.005746, allocations: 176.3 kB / 0.7344 GB, free: 15.12 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.102e-05/0.005787, allocations: 184.3 kB / 0.7346 GB, free: 14.94 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.637e-05/0.005833, allocations: 190.2 kB / 0.7348 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.005999, allocations: 373.3 kB / 0.7351 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.553e-05/0.006024, allocations: 108.9 kB / 0.7352 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.321e-05/0.006047, allocations: 101 kB / 0.7353 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.006087, allocations: 112.9 kB / 0.7354 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.186e-05/0.006129, allocations: 185.1 kB / 0.7356 GB, free: 13.83 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.00617, allocations: 184.2 kB / 0.7358 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-05/0.006212, allocations: 180.2 kB / 0.736 GB, free: 13.46 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.257e-05/0.006255, allocations: 184.9 kB / 0.7361 GB, free: 13.27 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.916e-05/0.006354, allocations: 317.8 kB / 0.7364 GB, free: 12.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.182e-05/0.006406, allocations: 184.2 kB / 0.7366 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.011e-05/0.006466, allocations: 108.9 kB / 0.7367 GB, free: 12.64 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.00651, allocations: 184.2 kB / 0.7369 GB, free: 12.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.006536, allocations: 104.9 kB / 0.737 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.487e-05/0.0066, allocations: 79.97 kB / 0.7371 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.0066, allocations: 0 / 0.7371 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001451/0.006746, allocations: 43.78 kB / 0.7371 GB, free: 12.22 MB / 0.7136 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 8.668e-05/0.006832, allocations: 157.1 kB / 0.7373 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.233e-05/0.006905, allocations: 28.84 kB / 0.7373 GB, free: 12.03 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.00691, allocations: 7.938 kB / 0.7373 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.763e-06/0.006912, allocations: 4.531 kB / 0.7373 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.007168, allocations: 492.8 kB / 0.7378 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003987/0.007567, allocations: 443.1 kB / 0.7382 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.33e-05/0.00761, allocations: 83.75 kB / 0.7383 GB, free: 10.97 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.468e-05/0.007645, allocations: 17.48 kB / 0.7383 GB, free: 10.95 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.99e-05/0.007705, allocations: 64.06 kB / 0.7384 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of SimCode: time 1.202e-06/0.007706, allocations: 0 / 0.7384 GB, free: 10.88 MB / 0.7136 GB Notification: Performance of Templates: time 0.003072/0.01078, allocations: 1.221 MB / 0.7396 GB, free: 9.73 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.ref.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.8157557006925344]