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.001438/0.001438, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001668/0.001668, allocations: 190.5 kB / 22.23 MB, free: 5.133 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.472/1.472, allocations: 225.6 MB / 251 MB, free: 13.04 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.93/2.93, allocations: 476.7 MB / 0.7646 GB, free: 9.938 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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.002126/0.002126, allocations: 71.25 kB / 1.11 GB, free: 11.89 MB / 0.8419 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3925/0.3947, allocations: 168.8 MB / 1.274 GB, free: 11 MB / 0.9825 GB
Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002321/0.397, allocations: 0.7262 MB / 1.275 GB, free: 10.27 MB / 0.9825 GB
Notification: Performance of NFInst.instExpressions: time 0.00023/0.3972, allocations: 47.83 kB / 1.275 GB, free: 10.23 MB / 0.9825 GB
Notification: Performance of NFInst.updateImplicitVariability: time 8.643e-05/0.3973, allocations: 7.938 kB / 1.275 GB, free: 10.22 MB / 0.9825 GB
Notification: Performance of NFTyping.typeComponents: time 0.000136/0.3974, allocations: 15.86 kB / 1.275 GB, free: 10.2 MB / 0.9825 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.3976, allocations: 11.94 kB / 1.275 GB, free: 10.19 MB / 0.9825 GB
Notification: Performance of NFTyping.typeClassSections: time 5.685e-05/0.3976, allocations: 15.98 kB / 1.275 GB, free: 10.18 MB / 0.9825 GB
Notification: Performance of NFFlatten.flatten: time 0.0002729/0.3979, allocations: 187.5 kB / 1.275 GB, free: 9.992 MB / 0.9825 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003176/0.3982, allocations: 149.3 kB / 1.275 GB, free: 9.844 MB / 0.9825 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3983, allocations: 95.72 kB / 1.276 GB, free: 9.75 MB / 0.9825 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.3985, allocations: 115.4 kB / 1.276 GB, free: 9.637 MB / 0.9825 GB
Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.3985, allocations: 31.94 kB / 1.276 GB, free: 9.605 MB / 0.9825 GB
Notification: Performance of NFFlatten.collectFunctions: time 4.053e-05/0.3986, allocations: 24 kB / 1.276 GB, free: 9.582 MB / 0.9825 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.3987, allocations: 71.78 kB / 1.276 GB, free: 9.512 MB / 0.9825 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001401/0.3988, allocations: 123.3 kB / 1.276 GB, free: 9.391 MB / 0.9825 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004572/0.3993, allocations: 366.5 kB / 1.276 GB, free: 9.031 MB / 0.9825 GB
Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3993, allocations: 4 kB / 1.276 GB, free: 9.027 MB / 0.9825 GB
Notification: Performance of FrontEnd: time 1.843e-06/0.3993, allocations: 0 / 1.276 GB, free: 9.027 MB / 0.9825 GB
Notification: Performance of Transformations before backend: time 7.885e-06/0.3993, allocations: 0 / 1.276 GB, free: 9.027 MB / 0.9825 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.0008333/0.4001, allocations: 493.5 kB / 1.277 GB, free: 8.512 MB / 0.9825 GB
Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4002, allocations: 12.03 kB / 1.277 GB, free: 8.5 MB / 0.9825 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.956e-05/0.4003, allocations: 36.7 kB / 1.277 GB, free: 8.465 MB / 0.9825 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.4007, allocations: 251.6 kB / 1.277 GB, free: 8.191 MB / 0.9825 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.683e-05/0.4008, allocations: 33.02 kB / 1.277 GB, free: 8.16 MB / 0.9825 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.705e-05/0.4008, allocations: 28.38 kB / 1.277 GB, free: 8.133 MB / 0.9825 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005552/0.4014, allocations: 336.3 kB / 1.277 GB, free: 7.789 MB / 0.9825 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.4014, allocations: 12.05 kB / 1.277 GB, free: 7.777 MB / 0.9825 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.4014, allocations: 11.94 kB / 1.277 GB, free: 7.766 MB / 0.9825 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.4014, allocations: 8 kB / 1.277 GB, free: 7.758 MB / 0.9825 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.4018, allocations: 255.8 kB / 1.278 GB, free: 7.508 MB / 0.9825 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001366/0.4032, allocations: 0.8826 MB / 1.279 GB, free: 6.578 MB / 0.9825 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001056/0.4033, allocations: 61.12 kB / 1.279 GB, free: 6.5 MB / 0.9825 GB
Notification: Performance of preOpt resolveLoops (simulation): time 5.017e-05/0.4034, allocations: 33.77 kB / 1.279 GB, free: 6.461 MB / 0.9825 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.4034, allocations: 3.938 kB / 1.279 GB, free: 6.457 MB / 0.9825 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.4034, allocations: 30.56 kB / 1.279 GB, free: 6.418 MB / 0.9825 GB
Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.4034, allocations: 8 kB / 1.279 GB, free: 6.41 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=2): time 0.0003077/0.4037, allocations: 125.4 kB / 1.279 GB, free: 6.281 MB / 0.9825 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.202e-05/0.4038, allocations: 81.11 kB / 1.279 GB, free: 6.184 MB / 0.9825 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005788/0.4044, allocations: 485.4 kB / 1.279 GB, free: 5.699 MB / 0.9825 GB
Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.4044, allocations: 25.7 kB / 1.279 GB, free: 5.668 MB / 0.9825 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.4045, allocations: 179.8 kB / 1.279 GB, free: 5.488 MB / 0.9825 GB
Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.4046, allocations: 15.88 kB / 1.28 GB, free: 5.473 MB / 0.9825 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.349e-05/0.4046, allocations: 45.95 kB / 1.28 GB, free: 5.422 MB / 0.9825 GB
Notification: Performance of setup shared object (initialization): time 0.0001904/0.4048, allocations: 346.8 kB / 1.28 GB, free: 5.074 MB / 0.9825 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.771e-05/0.4049, allocations: 59.95 kB / 1.28 GB, free: 5.016 MB / 0.9825 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.405, allocations: 70.92 kB / 1.28 GB, free: 4.941 MB / 0.9825 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.4052, allocations: 101.7 kB / 1.28 GB, free: 4.836 MB / 0.9825 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.4052, allocations: 0 / 1.28 GB, free: 4.836 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.000284/0.4055, allocations: 185.3 kB / 1.28 GB, free: 4.648 MB / 0.9825 GB
Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.4055, allocations: 7.938 kB / 1.28 GB, free: 4.641 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.4055, allocations: 8 kB / 1.28 GB, free: 4.633 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4055, allocations: 0 / 1.28 GB, free: 4.633 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.4056, allocations: 24 kB / 1.28 GB, free: 4.609 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.4056, allocations: 7.922 kB / 1.28 GB, free: 4.602 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.1e-05/0.4057, allocations: 27.73 kB / 1.28 GB, free: 4.574 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.4057, allocations: 8 kB / 1.28 GB, free: 4.566 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.0002142/0.4059, allocations: 189.5 kB / 1.281 GB, free: 4.371 MB / 0.9825 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/0.406, allocations: 35.75 kB / 1.281 GB, free: 4.336 MB / 0.9825 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.4062, allocations: 164.6 kB / 1.281 GB, free: 4.16 MB / 0.9825 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.821e-05/0.4063, allocations: 180.3 kB / 1.281 GB, free: 3.977 MB / 0.9825 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.991e-05/0.4064, allocations: 176.3 kB / 1.281 GB, free: 3.797 MB / 0.9825 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.11e-05/0.4065, allocations: 181.4 kB / 1.281 GB, free: 3.613 MB / 0.9825 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.4069, allocations: 0.4962 MB / 1.282 GB, free: 3.066 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.321e-05/0.407, allocations: 108.9 kB / 1.282 GB, free: 2.953 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.12e-05/0.407, allocations: 109 kB / 1.282 GB, free: 2.84 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (simulation): time 9.003e-05/0.4071, allocations: 176.3 kB / 1.282 GB, free: 2.66 MB / 0.9825 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.652e-05/0.4072, allocations: 184.2 kB / 1.282 GB, free: 2.473 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.917e-05/0.4073, allocations: 176.3 kB / 1.282 GB, free: 2.293 MB / 0.9825 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.202e-05/0.4074, allocations: 192.1 kB / 1.283 GB, free: 2.098 MB / 0.9825 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002123/0.4076, allocations: 331.8 kB / 1.283 GB, free: 1.75 MB / 0.9825 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.4077, allocations: 148.8 kB / 1.283 GB, free: 1.598 MB / 0.9825 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.4078, allocations: 176.3 kB / 1.283 GB, free: 1.418 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.4079, allocations: 112.9 kB / 1.283 GB, free: 1.301 MB / 0.9825 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.614e-05/0.408, allocations: 180.3 kB / 1.284 GB, free: 1.117 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.839e-05/0.4081, allocations: 104.9 kB / 1.284 GB, free: 1.008 MB / 0.9825 GB
Notification: Performance of sorting global known variables: time 0.0004359/0.4085, allocations: 363.1 kB / 1.284 GB, free: 0.6562 MB / 0.9825 GB
Notification: Performance of sort global known variables: time 8e-08/0.4085, allocations: 0 / 1.284 GB, free: 0.6562 MB / 0.9825 GB
Notification: Performance of remove unused functions: time 0.0002854/0.4088, allocations: 35.89 kB / 1.284 GB, free: 0.6211 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.0001586/0.409, allocations: 178.5 kB / 1.284 GB, free: 448 kB / 0.9825 GB
Notification: Performance of simCode: created initialization part: time 0.0001948/0.4092, allocations: 68.27 kB / 1.284 GB, free: 380 kB / 0.9825 GB
Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4092, allocations: 4 kB / 1.284 GB, free: 376 kB / 0.9825 GB
Notification: Performance of simCode: created simulation system equations: time 1.643e-06/0.4092, allocations: 3.938 kB / 1.284 GB, free: 372 kB / 0.9825 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.4097, allocations: 487.7 kB / 1.285 GB, free: 15.89 MB / 0.9981 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000731/0.4105, allocations: 0.4886 MB / 1.285 GB, free: 15.37 MB / 0.9981 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/0.4109, allocations: 0.7675 MB / 1.286 GB, free: 14.57 MB / 0.9981 GB
Notification: Performance of simCode: alias equations: time 0.0001058/0.411, allocations: 66.16 kB / 1.286 GB, free: 14.51 MB / 0.9981 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.217e-05/0.4111, allocations: 19.44 kB / 1.286 GB, free: 14.49 MB / 0.9981 GB
Notification: Performance of SimCode: time 3.31e-07/0.4111, allocations: 4 kB / 1.286 GB, free: 14.49 MB / 0.9981 GB
Notification: Performance of Templates: time 0.005557/0.4166, allocations: 1.766 MB / 1.288 GB, free: 12.73 MB / 0.9981 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=400  -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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 9.012559639289975]