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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001662/0.002823, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00147/0.002614, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9888/0.9888, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08974/1.079, allocations: 53.66 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.454/2.454, allocations: 446.7 MB / 0.6745 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2531/2.707, allocations: 145.9 MB / 0.817 GB, free: 4.23 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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 1.653e-06/1.653e-06, allocations: 0 / 0.8183 GB, free: 2.938 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.294e-05/1.46e-05, allocations: 6.25 kB / 0.8183 GB, free: 2.93 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001582/0.001597, allocations: 0.9213 MB / 0.8192 GB, free: 2.004 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0001942/0.001791, allocations: 131.5 kB / 0.8193 GB, free: 1.875 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.712e-05/0.001858, allocations: 4 kB / 0.8193 GB, free: 1.871 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 7.712e-05/0.001935, allocations: 19.8 kB / 0.8193 GB, free: 1.852 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 8.332e-05/0.002019, allocations: 23.8 kB / 0.8194 GB, free: 1.828 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 9.356e-05/0.002112, allocations: 47.95 kB / 0.8194 GB, free: 1.781 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.002366, allocations: 271.4 kB / 0.8197 GB, free: 1.516 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002902/0.002656, allocations: 258.5 kB / 0.8199 GB, free: 1.25 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002582/0.002915, allocations: 279.5 kB / 0.8202 GB, free: 0.9766 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.003074, allocations: 147.6 kB / 0.8203 GB, free: 0.832 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 5.782e-05/0.003132, allocations: 44 kB / 0.8204 GB, free: 0.7891 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 4.464e-05/0.003177, allocations: 43.94 kB / 0.8204 GB, free: 0.7461 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 7.962e-05/0.003256, allocations: 83.75 kB / 0.8205 GB, free: 0.6641 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 9.379e-05/0.00335, allocations: 91.75 kB / 0.8206 GB, free: 0.5742 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.003657, allocations: 302.8 kB / 0.8209 GB, free: 284 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.281e-05/0.00367, allocations: 3.938 kB / 0.8209 GB, free: 280 kB / 0.7917 GB Notification: Performance of FrontEnd: time 5.82e-07/0.00367, allocations: 4 kB / 0.8209 GB, free: 276 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.407e-05/0.003684, allocations: 0 / 0.8209 GB, free: 276 kB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0006216/0.004306, allocations: 0.6206 MB / 0.8215 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.004337, allocations: 12.02 kB / 0.8215 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.9e-05/0.004426, allocations: 64.83 kB / 0.8215 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.004718, allocations: 244.9 kB / 0.8218 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.004765, allocations: 45.36 kB / 0.8218 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.004812, allocations: 44.38 kB / 0.8219 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004242/0.005236, allocations: 334.1 kB / 0.8222 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.005248, allocations: 4.188 kB / 0.8222 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.983e-05/0.005278, allocations: 16.38 kB / 0.8222 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.005289, allocations: 12.38 kB / 0.8222 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002055/0.005495, allocations: 136.5 kB / 0.8223 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.006509, allocations: 0.7778 MB / 0.8231 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 8.672e-05/0.006595, allocations: 65.08 kB / 0.8232 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.632e-05/0.006632, allocations: 25.7 kB / 0.8232 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.111e-05/0.006653, allocations: 4.312 kB / 0.8232 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.006677, allocations: 54.42 kB / 0.8232 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.006679, allocations: 0 / 0.8232 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0002108/0.00689, allocations: 109.6 kB / 0.8233 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.583e-05/0.006925, allocations: 81.05 kB / 0.8234 GB, free: 13.49 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.007114, allocations: 272.7 kB / 0.8237 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.007127, allocations: 25.7 kB / 0.8237 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.007272, allocations: 212.2 kB / 0.8239 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.007311, allocations: 59.47 kB / 0.824 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.007413, allocations: 81.84 kB / 0.824 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.007497, allocations: 334.8 kB / 0.8244 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.352e-05/0.007541, allocations: 28.45 kB / 0.8244 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.095e-05/0.007602, allocations: 55.31 kB / 0.8244 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.994e-05/0.007701, allocations: 81.38 kB / 0.8245 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.007704, allocations: 0 / 0.8245 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0001568/0.00786, allocations: 125.6 kB / 0.8246 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.007873, allocations: 7.938 kB / 0.8247 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.007877, allocations: 4 kB / 0.8247 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.875e-06/0.007885, allocations: 0 / 0.8247 GB, free: 12.18 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.008059, allocations: 59.84 kB / 0.8247 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.008063, allocations: 4 kB / 0.8247 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.882e-05/0.008112, allocations: 23.84 kB / 0.8247 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.008128, allocations: 7.984 kB / 0.8247 GB, free: 12.08 MB / 0.8073 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 (idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTru.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001027/0.008231, allocations: 132.6 kB / 0.8249 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.973e-05/0.008281, allocations: 23.92 kB / 0.8249 GB, free: 11.92 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001665/0.008447, allocations: 116 kB / 0.825 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.008451, allocations: 4 kB / 0.825 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-06/0.008452, allocations: 0 / 0.825 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.008455, allocations: 4 kB / 0.825 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007163/0.009172, allocations: 0.6506 MB / 0.8257 GB, free: 11.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.009175, allocations: 4.5 kB / 0.8257 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.829e-05/0.009274, allocations: 43.91 kB / 0.8257 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.372e-05/0.009297, allocations: 23.86 kB / 0.8257 GB, free: 11 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.009303, allocations: 7.984 kB / 0.8257 GB, free: 10.99 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.009316, allocations: 7.938 kB / 0.8257 GB, free: 10.98 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.009321, allocations: 8 kB / 0.8257 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.009324, allocations: 4 kB / 0.8257 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001723/0.009497, allocations: 217.8 kB / 0.826 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.009519, allocations: 11.98 kB / 0.826 GB, free: 10.68 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.43e-05/0.009583, allocations: 19.94 kB / 0.826 GB, free: 10.66 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.009632, allocations: 23.91 kB / 0.826 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.009646, allocations: 12 kB / 0.826 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 7.145e-05/0.009717, allocations: 78.77 kB / 0.8261 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.009718, allocations: 0 / 0.8261 GB, free: 10.55 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002347/0.009952, allocations: 79.61 kB / 0.8262 GB, free: 10.47 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 2 (idxLasTru.y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 7.217e-05/0.01002, allocations: 80.42 kB / 0.8262 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001508/0.01018, allocations: 107.5 kB / 0.8263 GB, free: 10.28 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.01018, allocations: 4 kB / 0.8264 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.993e-05/0.01025, allocations: 56.64 kB / 0.8264 GB, free: 10.21 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.01046, allocations: 48.64 kB / 0.8265 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.01114, allocations: 0.6501 MB / 0.8271 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.651e-05/0.01121, allocations: 100.3 kB / 0.8272 GB, free: 9.324 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 7.396e-05/0.01129, allocations: 30.27 kB / 0.8272 GB, free: 9.293 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.01139, allocations: 95.28 kB / 0.8273 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of SimCode: time 6.21e-07/0.01139, allocations: 0 / 0.8273 GB, free: 9.199 MB / 0.8073 GB Notification: Performance of Templates: time 0.00482/0.01621, allocations: 2.148 MB / 0.8294 GB, free: 7.094 MB / 0.8073 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.206803757697344]