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.00123/0.00123, allocations: 108.8 kB / 18.93 MB, free: 2.945 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.001374/0.001374, allocations: 191.1 kB / 22.23 MB, free: 5.16 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.316/1.316, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 179]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.959/2.959, allocations: 0.4893 GB / 0.7884 GB, free: 33.06 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-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.001898/0.001898, allocations: 61.39 kB / 1.145 GB, free: 30.7 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.342, allocations: 174.9 MB / 1.316 GB, free: 9.719 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001972/0.344, allocations: 0.7309 MB / 1.317 GB, free: 8.988 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.0001972/0.3442, allocations: 43.84 kB / 1.317 GB, free: 8.945 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.866e-05/0.3443, allocations: 7.938 kB / 1.317 GB, free: 8.938 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.000105/0.3444, allocations: 15.86 kB / 1.317 GB, free: 8.922 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.3445, allocations: 15.86 kB / 1.317 GB, free: 8.906 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 5.12e-05/0.3445, allocations: 19.98 kB / 1.317 GB, free: 8.887 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002219/0.3448, allocations: 175.6 kB / 1.317 GB, free: 8.715 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.345, allocations: 149.1 kB / 1.317 GB, free: 8.566 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.3451, allocations: 103.6 kB / 1.317 GB, free: 8.465 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.3453, allocations: 119.5 kB / 1.317 GB, free: 8.348 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.3453, allocations: 24 kB / 1.317 GB, free: 8.324 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 3.407e-05/0.3454, allocations: 27.94 kB / 1.317 GB, free: 8.297 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.3455, allocations: 71.78 kB / 1.317 GB, free: 8.227 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.3456, allocations: 123.3 kB / 1.318 GB, free: 8.105 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003825/0.346, allocations: 374.4 kB / 1.318 GB, free: 7.738 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.346, allocations: 0 / 1.318 GB, free: 7.738 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.433e-06/0.346, allocations: 0 / 1.318 GB, free: 7.738 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.042e-05/0.346, allocations: 0 / 1.318 GB, free: 7.738 MB / 1.014 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.0006111/0.3466, allocations: 489.5 kB / 1.318 GB, free: 7.223 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.271e-05/0.3466, allocations: 12.03 kB / 1.318 GB, free: 7.211 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.366e-05/0.3467, allocations: 36.7 kB / 1.318 GB, free: 7.176 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.3471, allocations: 259.6 kB / 1.319 GB, free: 6.895 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/0.3471, allocations: 25.03 kB / 1.319 GB, free: 6.871 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/0.3472, allocations: 28.36 kB / 1.319 GB, free: 6.844 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.3477, allocations: 344.3 kB / 1.319 GB, free: 6.496 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.3477, allocations: 192 / 1.319 GB, free: 6.496 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.3477, allocations: 19.94 kB / 1.319 GB, free: 6.477 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3477, allocations: 11.88 kB / 1.319 GB, free: 6.465 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003828/0.3481, allocations: 260.3 kB / 1.319 GB, free: 6.211 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.3493, allocations: 0.8786 MB / 1.32 GB, free: 5.285 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 9.419e-05/0.3494, allocations: 57.14 kB / 1.32 GB, free: 5.211 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 4.752e-05/0.3495, allocations: 37.75 kB / 1.32 GB, free: 5.168 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3495, allocations: 3.938 kB / 1.32 GB, free: 5.164 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.3495, allocations: 34.56 kB / 1.32 GB, free: 5.121 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.3495, allocations: 0 / 1.32 GB, free: 5.121 MB / 1.014 GB
Notification: Performance of matching and sorting (n=2): time 0.0002722/0.3498, allocations: 129.4 kB / 1.32 GB, free: 4.988 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.3498, allocations: 77.11 kB / 1.321 GB, free: 4.895 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.3503, allocations: 481.7 kB / 1.321 GB, free: 4.418 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.3504, allocations: 25.7 kB / 1.321 GB, free: 4.387 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3505, allocations: 187.8 kB / 1.321 GB, free: 4.199 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.155e-05/0.3505, allocations: 11.89 kB / 1.321 GB, free: 4.188 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.475e-05/0.3506, allocations: 49.64 kB / 1.321 GB, free: 4.133 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001641/0.3507, allocations: 338.8 kB / 1.322 GB, free: 3.793 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.886e-05/0.3508, allocations: 55.95 kB / 1.322 GB, free: 3.738 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.3509, allocations: 81.66 kB / 1.322 GB, free: 3.652 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.3511, allocations: 89.69 kB / 1.322 GB, free: 3.559 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3511, allocations: 0 / 1.322 GB, free: 3.559 MB / 1.014 GB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002601/0.3513, allocations: 189.3 kB / 1.322 GB, free: 3.367 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.3514, allocations: 8 kB / 1.322 GB, free: 3.359 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3514, allocations: 0 / 1.322 GB, free: 3.359 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3514, allocations: 0 / 1.322 GB, free: 3.359 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.3515, allocations: 23.98 kB / 1.322 GB, free: 3.336 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3515, allocations: 4.156 kB / 1.322 GB, free: 3.332 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.916e-05/0.3516, allocations: 35.73 kB / 1.322 GB, free: 3.297 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.3516, allocations: 11.94 kB / 1.322 GB, free: 3.285 MB / 1.014 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.000192/0.3518, allocations: 194.2 kB / 1.322 GB, free: 3.086 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.364e-05/0.3519, allocations: 31.75 kB / 1.322 GB, free: 3.055 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.352, allocations: 160.6 kB / 1.322 GB, free: 2.887 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-05/0.3521, allocations: 180.2 kB / 1.323 GB, free: 2.703 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-05/0.3522, allocations: 188.2 kB / 1.323 GB, free: 2.512 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-05/0.3523, allocations: 180.2 kB / 1.323 GB, free: 2.328 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004198/0.3527, allocations: 0.4884 MB / 1.323 GB, free: 1.789 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.336e-05/0.3528, allocations: 108.9 kB / 1.324 GB, free: 1.676 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.976e-05/0.3528, allocations: 109 kB / 1.324 GB, free: 1.562 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 9.424e-05/0.3529, allocations: 184.3 kB / 1.324 GB, free: 1.375 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.858e-05/0.353, allocations: 184.2 kB / 1.324 GB, free: 1.188 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.797e-05/0.3531, allocations: 180.2 kB / 1.324 GB, free: 1.004 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.514e-05/0.3532, allocations: 180.2 kB / 1.324 GB, free: 0.8203 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.3534, allocations: 331.9 kB / 1.325 GB, free: 484 kB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.3535, allocations: 148.7 kB / 1.325 GB, free: 328 kB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.3536, allocations: 192.2 kB / 1.325 GB, free: 128 kB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.3537, allocations: 104.9 kB / 1.325 GB, free: 16 kB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.964e-05/0.3538, allocations: 184.2 kB / 1.325 GB, free: 15.83 MB / 1.029 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.906e-05/0.3539, allocations: 101 kB / 1.325 GB, free: 15.72 MB / 1.029 GB
Notification: Performance of sorting global known variables: time 0.0004008/0.3543, allocations: 371 kB / 1.326 GB, free: 15.36 MB / 1.029 GB
Notification: Performance of sort global known variables: time 1.01e-07/0.3543, allocations: 0 / 1.326 GB, free: 15.36 MB / 1.029 GB
Notification: Performance of remove unused functions: time 0.0002643/0.3545, allocations: 31.94 kB / 1.326 GB, free: 15.33 MB / 1.029 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.0001468/0.3547, allocations: 174.5 kB / 1.326 GB, free: 15.15 MB / 1.029 GB
Notification: Performance of simCode: created initialization part: time 0.0001794/0.3549, allocations: 71.94 kB / 1.326 GB, free: 15.08 MB / 1.029 GB
Notification: Performance of simCode: created event and clocks part: time 7.844e-06/0.3549, allocations: 0 / 1.326 GB, free: 15.08 MB / 1.029 GB
Notification: Performance of simCode: created simulation system equations: time 4.799e-06/0.3549, allocations: 3.938 kB / 1.326 GB, free: 15.07 MB / 1.029 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.3554, allocations: 489.1 kB / 1.326 GB, free: 14.59 MB / 1.029 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006587/0.356, allocations: 0.4887 MB / 1.327 GB, free: 14.07 MB / 1.029 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.3565, allocations: 0.7753 MB / 1.328 GB, free: 13.27 MB / 1.029 GB
Notification: Performance of simCode: alias equations: time 9.401e-05/0.3565, allocations: 54.25 kB / 1.328 GB, free: 13.22 MB / 1.029 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.524e-05/0.3566, allocations: 19.44 kB / 1.328 GB, free: 13.2 MB / 1.029 GB
Notification: Performance of SimCode: time 3.11e-07/0.3566, allocations: 0 / 1.328 GB, free: 13.2 MB / 1.029 GB
Notification: Performance of Templates: time 0.004845/0.3614, allocations: 1.769 MB / 1.329 GB, free: 11.45 MB / 1.029 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=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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.044524859637022]