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.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.001459/0.001459, allocations: 106.3 kB / 17.08 MB, free: 5.844 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.001499/0.001499, allocations: 194.2 kB / 20.03 MB, free: 2.945 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.412/1.412, allocations: 222.9 MB / 245.7 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.866/2.866, allocations: 489.3 MB / 0.7687 GB, free: 3.941 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_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 0.002012/0.002012, allocations: 63.91 kB / 1.103 GB, free: 0.8242 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9652/0.9673, allocations: 163.8 MB / 1.263 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001825/0.9691, allocations: 0.7195 MB / 1.263 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001923/0.9693, allocations: 46.33 kB / 1.263 GB, free: 7.723 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.158e-05/0.9694, allocations: 6.156 kB / 1.263 GB, free: 7.719 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001043/0.9695, allocations: 16.73 kB / 1.263 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.9697, allocations: 7.969 kB / 1.263 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 4.994e-05/0.9697, allocations: 16.11 kB / 1.263 GB, free: 7.695 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002332/0.97, allocations: 183 kB / 1.264 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003847/0.9703, allocations: 249.6 kB / 1.264 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.336e-05/0.9704, allocations: 98.44 kB / 1.264 GB, free: 7.465 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.9706, allocations: 116.3 kB / 1.264 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.958e-05/0.9706, allocations: 24.75 kB / 1.264 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.568e-05/0.9707, allocations: 25.41 kB / 1.264 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.287e-05/0.9708, allocations: 75.38 kB / 1.264 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.9709, allocations: 123.6 kB / 1.264 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000425/0.9713, allocations: 377.2 kB / 1.265 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.9713, allocations: 1.344 kB / 1.265 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9713, allocations: 0 / 1.265 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.9713, allocations: 0.6562 kB / 1.265 GB, free: 7.121 MB / 0.9981 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.0006107/0.972, allocations: 0.555 MB / 1.265 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.972, allocations: 13.16 kB / 1.265 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.947e-05/0.9721, allocations: 36.3 kB / 1.265 GB, free: 6.602 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.9724, allocations: 319.3 kB / 1.265 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.517e-05/0.9725, allocations: 29.95 kB / 1.266 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.67e-05/0.9725, allocations: 24.81 kB / 1.266 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005351/0.9731, allocations: 344.8 kB / 1.266 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.9731, allocations: 1.156 kB / 1.266 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.495e-05/0.9731, allocations: 17.97 kB / 1.266 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.9731, allocations: 6.438 kB / 1.266 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004029/0.9736, allocations: 260.2 kB / 1.266 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.9747, allocations: 0.9051 MB / 1.267 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.498e-05/0.9748, allocations: 58.78 kB / 1.267 GB, free: 5.445 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.321e-05/0.9749, allocations: 33.78 kB / 1.267 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.9749, allocations: 9.344 kB / 1.267 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.9749, allocations: 35.8 kB / 1.267 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.9749, allocations: 0.75 kB / 1.267 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002619/0.9752, allocations: 128.7 kB / 1.267 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.9752, allocations: 78.86 kB / 1.267 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.9758, allocations: 486.9 kB / 1.268 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.9758, allocations: 25.7 kB / 1.268 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.9759, allocations: 177.3 kB / 1.268 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 9.708e-06/0.9759, allocations: 10.17 kB / 1.268 GB, free: 4.801 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.671e-05/0.976, allocations: 52.97 kB / 1.268 GB, free: 4.766 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.674e-05/0.9761, allocations: 340.4 kB / 1.268 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.9762, allocations: 55.84 kB / 1.268 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/0.9763, allocations: 77.28 kB / 1.269 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.9765, allocations: 101.6 kB / 1.269 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.9765, allocations: 0 / 1.269 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002571/0.9767, allocations: 190.8 kB / 1.269 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.9768, allocations: 5.75 kB / 1.269 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.9768, allocations: 0.5625 kB / 1.269 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.9768, allocations: 1.719 kB / 1.269 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.9769, allocations: 23.23 kB / 1.269 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.977, allocations: 1.25 kB / 1.269 GB, free: 4.234 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.423e-05/0.977, allocations: 32.67 kB / 1.269 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.9771, allocations: 9.922 kB / 1.269 GB, free: 4.207 MB / 0.9981 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.0001693/0.9772, allocations: 195.7 kB / 1.269 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.006e-05/0.9773, allocations: 36.48 kB / 1.269 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001399/0.9774, allocations: 155.5 kB / 1.269 GB, free: 3.906 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/0.9775, allocations: 185.7 kB / 1.269 GB, free: 3.719 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.734e-05/0.9775, allocations: 178 kB / 1.27 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.307e-05/0.9775, allocations: 186 kB / 1.27 GB, free: 3.352 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.9778, allocations: 0.5147 MB / 1.27 GB, free: 2.871 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/0.9779, allocations: 106.5 kB / 1.27 GB, free: 2.762 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.698e-05/0.9779, allocations: 107.4 kB / 1.27 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.397e-05/0.9779, allocations: 182.8 kB / 1.271 GB, free: 2.469 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.9779, allocations: 185.9 kB / 1.271 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.373e-05/0.978, allocations: 181.7 kB / 1.271 GB, free: 2.098 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.318e-05/0.978, allocations: 178.2 kB / 1.271 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.803e-05/0.9781, allocations: 340.3 kB / 1.271 GB, free: 1.578 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.9782, allocations: 220.1 kB / 1.272 GB, free: 1.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.078e-05/0.9782, allocations: 182.8 kB / 1.272 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.9784, allocations: 104.6 kB / 1.272 GB, free: 17.07 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.758e-05/0.9785, allocations: 182 kB / 1.272 GB, free: 16.88 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.537e-05/0.9785, allocations: 106.7 kB / 1.272 GB, free: 16.77 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004261/0.979, allocations: 368 kB / 1.273 GB, free: 16.61 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.4e-07/0.979, allocations: 0 / 1.273 GB, free: 16.61 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002658/0.9792, allocations: 30.22 kB / 1.273 GB, free: 16.6 MB / 1.014 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.0001604/0.9794, allocations: 172.8 kB / 1.273 GB, free: 16.44 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001776/0.9796, allocations: 82.06 kB / 1.273 GB, free: 16.41 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.9796, allocations: 0 / 1.273 GB, free: 16.41 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.9796, allocations: 0.75 kB / 1.273 GB, free: 16.41 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.9801, allocations: 485.3 kB / 1.273 GB, free: 15.95 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006372/0.9807, allocations: 0.5294 MB / 1.274 GB, free: 15.57 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.9811, allocations: 0.7675 MB / 1.275 GB, free: 14.86 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.9812, allocations: 21.23 kB / 1.275 GB, free: 14.86 MB / 1.014 GB Notification: Performance of SimCode: time 3.11e-07/0.9812, allocations: 0 / 1.275 GB, free: 14.86 MB / 1.014 GB Notification: Performance of Templates: time 0.006291/0.9875, allocations: 3.307 MB / 1.278 GB, free: 14.53 MB / 1.014 GB " [Timeout remaining time 299] 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.969983592862263]