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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 109.9 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.492/2.492, allocations: 461.9 MB / 0.7354 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 71.89 kB / 1.055 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7494/0.7508, allocations: 157.4 MB / 1.208 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001948/0.7528, allocations: 0.7129 MB / 1.209 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002255/0.753, allocations: 51.78 kB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.7531, allocations: 4 kB / 1.209 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.7533, allocations: 15.86 kB / 1.209 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.7534, allocations: 11.92 kB / 1.209 GB, free: 12.9 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.576e-05/0.7534, allocations: 19.98 kB / 1.209 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.7537, allocations: 187.5 kB / 1.209 GB, free: 12.7 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003671/0.754, allocations: 256.9 kB / 1.21 GB, free: 12.44 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.7542, allocations: 103.6 kB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001246/0.7543, allocations: 111.5 kB / 1.21 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.7543, allocations: 28 kB / 1.21 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 3.509e-05/0.7544, allocations: 24 kB / 1.21 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.379e-05/0.7545, allocations: 71.78 kB / 1.21 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.7546, allocations: 119.3 kB / 1.21 GB, free: 11.99 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003377/0.7549, allocations: 366.7 kB / 1.21 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.7549, allocations: 3.938 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.755, allocations: 4 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.016e-05/0.755, allocations: 0 / 1.21 GB, free: 11.62 MB / 0.9356 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.0006665/0.7556, allocations: 0.5552 MB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.7557, allocations: 15.97 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.7558, allocations: 28.56 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.7561, allocations: 309.2 kB / 1.211 GB, free: 10.63 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/0.7562, allocations: 28.92 kB / 1.211 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.7562, allocations: 24.38 kB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005025/0.7567, allocations: 351 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.7567, allocations: 192 / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.7568, allocations: 15.94 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.7568, allocations: 4 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003881/0.7572, allocations: 255.8 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.7583, allocations: 0.9091 MB / 1.213 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 7.2e-05/0.7584, allocations: 57.14 kB / 1.213 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.192e-05/0.7585, allocations: 33.77 kB / 1.213 GB, free: 8.883 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.7585, allocations: 3.938 kB / 1.213 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.221e-05/0.7585, allocations: 34.5 kB / 1.213 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.7585, allocations: 4 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002605/0.7588, allocations: 125.3 kB / 1.213 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.7588, allocations: 81.05 kB / 1.213 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000483/0.7593, allocations: 485.3 kB / 1.214 GB, free: 8.125 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.7593, allocations: 25.7 kB / 1.214 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.7595, allocations: 183.5 kB / 1.214 GB, free: 7.91 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.7595, allocations: 7.984 kB / 1.214 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.621e-05/0.7596, allocations: 41.95 kB / 1.214 GB, free: 7.855 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.7597, allocations: 350.8 kB / 1.214 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.937e-05/0.7598, allocations: 55.95 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.792e-05/0.7599, allocations: 69.67 kB / 1.214 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/0.76, allocations: 101.7 kB / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.76, allocations: 0 / 1.214 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002608/0.7603, allocations: 189.1 kB / 1.215 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.7603, allocations: 4 kB / 1.215 GB, free: 7.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.337e-06/0.7603, allocations: 7.938 kB / 1.215 GB, free: 7.066 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.7604, allocations: 4 kB / 1.215 GB, free: 7.062 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.7605, allocations: 31.92 kB / 1.215 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.7605, allocations: 0 / 1.215 GB, free: 7.031 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.836e-05/0.7606, allocations: 31.59 kB / 1.215 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.7606, allocations: 8 kB / 1.215 GB, free: 6.992 MB / 0.9356 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.0001792/0.7608, allocations: 193.8 kB / 1.215 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.467e-05/0.7609, allocations: 27.66 kB / 1.215 GB, free: 6.766 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/0.7611, allocations: 160.6 kB / 1.215 GB, free: 6.594 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.783e-05/0.7611, allocations: 184.3 kB / 1.215 GB, free: 6.406 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.655e-05/0.7612, allocations: 180.2 kB / 1.215 GB, free: 6.223 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.141e-05/0.7612, allocations: 176.3 kB / 1.216 GB, free: 6.043 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.7616, allocations: 0.5244 MB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.318e-05/0.7616, allocations: 108.9 kB / 1.216 GB, free: 5.348 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.659e-05/0.7617, allocations: 105 kB / 1.216 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.576e-05/0.7617, allocations: 180.2 kB / 1.216 GB, free: 5.055 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.26e-05/0.7618, allocations: 180.3 kB / 1.217 GB, free: 4.871 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.252e-05/0.7618, allocations: 176.3 kB / 1.217 GB, free: 4.691 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.803e-05/0.7619, allocations: 188.2 kB / 1.217 GB, free: 4.5 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.7621, allocations: 331.5 kB / 1.217 GB, free: 4.152 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.7622, allocations: 217.6 kB / 1.217 GB, free: 3.914 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.419e-05/0.7623, allocations: 184.5 kB / 1.218 GB, free: 3.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.7624, allocations: 105 kB / 1.218 GB, free: 3.617 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.7624, allocations: 184.3 kB / 1.218 GB, free: 3.43 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.863e-05/0.7625, allocations: 108.9 kB / 1.218 GB, free: 3.316 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003607/0.7628, allocations: 363.1 kB / 1.218 GB, free: 2.965 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7629, allocations: 0 / 1.218 GB, free: 2.965 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002614/0.7631, allocations: 31.94 kB / 1.218 GB, free: 2.934 MB / 0.9356 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.0001342/0.7633, allocations: 174.5 kB / 1.219 GB, free: 2.754 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001662/0.7634, allocations: 83.89 kB / 1.219 GB, free: 2.672 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7635, allocations: 0 / 1.219 GB, free: 2.672 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.763e-06/0.7635, allocations: 4 kB / 1.219 GB, free: 2.668 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004263/0.7639, allocations: 485.1 kB / 1.219 GB, free: 2.188 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006134/0.7645, allocations: 0.5137 MB / 1.22 GB, free: 1.637 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.7648, allocations: 0.7714 MB / 1.22 GB, free: 0.8398 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.774e-05/0.7649, allocations: 23.44 kB / 1.22 GB, free: 0.8203 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.7649, allocations: 3.938 kB / 1.22 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of Templates: time 0.00529/0.7702, allocations: 3.299 MB / 1.224 GB, free: 13.52 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches