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.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.001257/0.001257, allocations: 110 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.001377/0.001377, allocations: 191.4 kB / 22.23 MB, free: 5.156 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.328/1.328, allocations: 225.6 MB / 251 MB, free: 13 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 2.933/2.933, allocations: 496 MB / 0.7835 GB, free: 33.64 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-maint.12.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_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 0.001854/0.001854, allocations: 71.34 kB / 1.138 GB, free: 33.77 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3528/0.3547, allocations: 173.6 MB / 1.307 GB, free: 1.773 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001989/0.3567, allocations: 0.7403 MB / 1.308 GB, free: 1.035 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0001903/0.3569, allocations: 51.83 kB / 1.308 GB, free: 0.9844 MB / 0.9981 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.181e-05/0.3569, allocations: 4 kB / 1.308 GB, free: 0.9805 MB / 0.9981 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.357, allocations: 11.86 kB / 1.308 GB, free: 0.9688 MB / 0.9981 GB
Notification: Performance of NFTyping.typeBindings: time 0.000107/0.3571, allocations: 11.94 kB / 1.308 GB, free: 0.957 MB / 0.9981 GB
Notification: Performance of NFTyping.typeClassSections: time 4.61e-05/0.3572, allocations: 15.98 kB / 1.308 GB, free: 0.9414 MB / 0.9981 GB
Notification: Performance of NFFlatten.flatten: time 0.0002296/0.3574, allocations: 191.4 kB / 1.308 GB, free: 0.7539 MB / 0.9981 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.3576, allocations: 157.1 kB / 1.308 GB, free: 0.6016 MB / 0.9981 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.963e-05/0.3577, allocations: 95.66 kB / 1.309 GB, free: 0.5078 MB / 0.9981 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.3579, allocations: 115.5 kB / 1.309 GB, free: 404 kB / 0.9981 GB
Notification: Performance of NFPackage.collectConstants: time 3.838e-05/0.3579, allocations: 28 kB / 1.309 GB, free: 376 kB / 0.9981 GB
Notification: Performance of NFFlatten.collectFunctions: time 4.107e-05/0.3579, allocations: 24 kB / 1.309 GB, free: 352 kB / 0.9981 GB
Notification: Performance of NFScalarize.scalarize: time 7.11e-05/0.358, allocations: 71.78 kB / 1.309 GB, free: 280 kB / 0.9981 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.3581, allocations: 119.3 kB / 1.309 GB, free: 160 kB / 0.9981 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.3585, allocations: 378.4 kB / 1.309 GB, free: 15.79 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3585, allocations: 0 / 1.309 GB, free: 15.79 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.403e-06/0.3585, allocations: 4 kB / 1.309 GB, free: 15.78 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.46e-06/0.3585, allocations: 0 / 1.309 GB, free: 15.78 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.0006094/0.3591, allocations: 489.5 kB / 1.31 GB, free: 15.27 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.3592, allocations: 8.031 kB / 1.31 GB, free: 15.26 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.112e-05/0.3592, allocations: 36.7 kB / 1.31 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.3596, allocations: 243.6 kB / 1.31 GB, free: 14.96 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.933e-05/0.3596, allocations: 33.02 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.506e-05/0.3597, allocations: 28.31 kB / 1.31 GB, free: 14.9 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005052/0.3602, allocations: 344.3 kB / 1.31 GB, free: 14.55 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.3602, allocations: 192 / 1.31 GB, free: 14.55 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.3602, allocations: 11.94 kB / 1.31 GB, free: 14.54 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/0.3602, allocations: 8 kB / 1.31 GB, free: 14.53 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003986/0.3606, allocations: 260.6 kB / 1.311 GB, free: 14.28 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.3618, allocations: 0.8867 MB / 1.311 GB, free: 13.34 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 8.16e-05/0.3619, allocations: 61.19 kB / 1.312 GB, free: 13.27 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 4.796e-05/0.362, allocations: 29.77 kB / 1.312 GB, free: 13.23 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.362, allocations: 7.875 kB / 1.312 GB, free: 13.22 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.362, allocations: 38.56 kB / 1.312 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.362, allocations: 3.938 kB / 1.312 GB, free: 13.17 MB / 1.014 GB
Notification: Performance of matching and sorting (n=2): time 0.0002599/0.3623, allocations: 129.4 kB / 1.312 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.3623, allocations: 81.11 kB / 1.312 GB, free: 12.94 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000521/0.3629, allocations: 485.4 kB / 1.312 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.3629, allocations: 25.7 kB / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.363, allocations: 175.9 kB / 1.312 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.363, allocations: 11.88 kB / 1.312 GB, free: 12.24 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.676e-05/0.3631, allocations: 49.7 kB / 1.313 GB, free: 12.18 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000154/0.3633, allocations: 347 kB / 1.313 GB, free: 11.84 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 9.599e-05/0.3634, allocations: 59.95 kB / 1.313 GB, free: 11.78 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001065/0.3635, allocations: 77.67 kB / 1.313 GB, free: 11.7 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.3636, allocations: 97.61 kB / 1.313 GB, free: 11.59 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3636, allocations: 0 / 1.313 GB, free: 11.59 MB / 1.014 GB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002608/0.3639, allocations: 185.4 kB / 1.313 GB, free: 11.41 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.3639, allocations: 4 kB / 1.313 GB, free: 11.4 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.3639, allocations: 4 kB / 1.313 GB, free: 11.4 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3639, allocations: 4 kB / 1.313 GB, free: 11.39 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.364, allocations: 27.92 kB / 1.313 GB, free: 11.37 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.364, allocations: 0 / 1.313 GB, free: 11.37 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.515e-05/0.3641, allocations: 31.73 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.3641, allocations: 8 kB / 1.313 GB, free: 11.33 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.0001839/0.3643, allocations: 189.5 kB / 1.314 GB, free: 11.13 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.501e-05/0.3644, allocations: 35.73 kB / 1.314 GB, free: 11.1 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001778/0.3645, allocations: 164.6 kB / 1.314 GB, free: 10.92 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.037e-05/0.3646, allocations: 180.3 kB / 1.314 GB, free: 10.74 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.191e-05/0.3647, allocations: 180.2 kB / 1.314 GB, free: 10.55 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.157e-05/0.3648, allocations: 180.3 kB / 1.314 GB, free: 10.37 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003834/0.3652, allocations: 0.4884 MB / 1.315 GB, free: 9.832 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.481e-05/0.3652, allocations: 108.9 kB / 1.315 GB, free: 9.719 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.49e-05/0.3652, allocations: 109 kB / 1.315 GB, free: 9.605 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 7.856e-05/0.3653, allocations: 180.2 kB / 1.315 GB, free: 9.422 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.289e-05/0.3654, allocations: 184.3 kB / 1.315 GB, free: 9.234 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-05/0.3655, allocations: 180.2 kB / 1.315 GB, free: 9.051 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.032e-05/0.3656, allocations: 180.3 kB / 1.316 GB, free: 8.867 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.3658, allocations: 335.8 kB / 1.316 GB, free: 8.516 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.3659, allocations: 144.7 kB / 1.316 GB, free: 8.367 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.946e-05/0.366, allocations: 184.2 kB / 1.316 GB, free: 8.18 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.3661, allocations: 105 kB / 1.316 GB, free: 8.07 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.3662, allocations: 184.2 kB / 1.317 GB, free: 7.883 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.481e-05/0.3662, allocations: 109 kB / 1.317 GB, free: 7.77 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0003994/0.3666, allocations: 359.1 kB / 1.317 GB, free: 7.426 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.3666, allocations: 0 / 1.317 GB, free: 7.426 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002455/0.3669, allocations: 31.89 kB / 1.317 GB, free: 7.395 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.0001294/0.367, allocations: 174.5 kB / 1.317 GB, free: 7.215 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0001614/0.3672, allocations: 83.83 kB / 1.317 GB, free: 7.133 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3672, allocations: 3.938 kB / 1.317 GB, free: 7.129 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 1.362e-06/0.3672, allocations: 0 / 1.317 GB, free: 7.129 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004643/0.3676, allocations: 481.1 kB / 1.318 GB, free: 6.652 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006374/0.3683, allocations: 0.4923 MB / 1.318 GB, free: 6.129 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.3687, allocations: 0.7675 MB / 1.319 GB, free: 5.336 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 9.708e-05/0.3688, allocations: 54.25 kB / 1.319 GB, free: 5.285 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/0.3688, allocations: 19.44 kB / 1.319 GB, free: 5.266 MB / 1.014 GB
Notification: Performance of SimCode: time 2.5e-07/0.3688, allocations: 0 / 1.319 GB, free: 5.266 MB / 1.014 GB
Notification: Performance of Templates: time 0.004864/0.3737, allocations: 1.777 MB / 1.321 GB, free: 3.496 MB / 1.014 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=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.191552866250277]