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.001617/0.001617, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.0015/0.0015, allocations: 213.3 kB / 22.24 MB, free: 4.855 MB / 14.72 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 1.515/1.515, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.394/3.394, allocations: 0.5107 GB / 0.8158 GB, free: 17.87 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 75.91 kB / 1.186 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3928, allocations: 181.9 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002063/0.3949, allocations: 0.7078 MB / 1.365 GB, free: 12.9 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002505/0.3952, allocations: 51.78 kB / 1.365 GB, free: 12.85 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.643e-05/0.3952, allocations: 0 / 1.365 GB, free: 12.85 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.3954, allocations: 15.86 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001171/0.3955, allocations: 11.94 kB / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 6.653e-05/0.3955, allocations: 19.98 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002658/0.3958, allocations: 187.5 kB / 1.365 GB, free: 12.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002939/0.3961, allocations: 145.1 kB / 1.365 GB, free: 12.48 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.3962, allocations: 103.6 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.3964, allocations: 119.5 kB / 1.365 GB, free: 12.26 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.951e-05/0.3964, allocations: 24 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.203e-05/0.3965, allocations: 28 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.167e-05/0.3966, allocations: 71.78 kB / 1.365 GB, free: 12.14 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.3967, allocations: 95.47 kB / 1.365 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.3971, allocations: 370.4 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.3971, allocations: 4 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3971, allocations: 4 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.3971, allocations: 0 / 1.366 GB, free: 11.67 MB / 1.061 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.0006917/0.3978, allocations: 485.6 kB / 1.366 GB, free: 11.16 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3978, allocations: 15.97 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.807e-05/0.3979, allocations: 36.69 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004957/0.3984, allocations: 247.6 kB / 1.366 GB, free: 10.84 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.374e-05/0.3984, allocations: 33.02 kB / 1.367 GB, free: 10.81 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.3985, allocations: 24.38 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005534/0.399, allocations: 348.2 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.399, allocations: 4.125 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.3991, allocations: 11.94 kB / 1.367 GB, free: 10.42 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3991, allocations: 8 kB / 1.367 GB, free: 10.41 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004378/0.3995, allocations: 255.8 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.4008, allocations: 0.7352 MB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 9.909e-05/0.4009, allocations: 61.12 kB / 1.368 GB, free: 9.312 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/0.4009, allocations: 33.77 kB / 1.368 GB, free: 9.273 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.4009, allocations: 0 / 1.368 GB, free: 9.273 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.401, allocations: 46.44 kB / 1.368 GB, free: 9.219 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.401, allocations: 4 kB / 1.368 GB, free: 9.215 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0003096/0.4013, allocations: 113.5 kB / 1.368 GB, free: 9.098 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.4013, allocations: 85.05 kB / 1.368 GB, free: 8.996 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.4017, allocations: 324.8 kB / 1.368 GB, free: 8.664 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.4017, allocations: 25.7 kB / 1.369 GB, free: 8.633 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.4019, allocations: 192.2 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.115e-05/0.4019, allocations: 7.891 kB / 1.369 GB, free: 8.434 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.402, allocations: 61.69 kB / 1.369 GB, free: 8.367 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.4021, allocations: 326.8 kB / 1.369 GB, free: 8.039 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.4022, allocations: 60.2 kB / 1.369 GB, free: 7.98 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.4023, allocations: 77.66 kB / 1.369 GB, free: 7.898 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.4025, allocations: 93.67 kB / 1.369 GB, free: 7.801 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.4025, allocations: 4 kB / 1.369 GB, free: 7.797 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002665/0.4028, allocations: 177.4 kB / 1.369 GB, free: 7.617 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.4028, allocations: 7.938 kB / 1.369 GB, free: 7.609 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.4028, allocations: 0 / 1.369 GB, free: 7.609 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.4028, allocations: 4 kB / 1.369 GB, free: 7.605 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.4029, allocations: 27.92 kB / 1.37 GB, free: 7.578 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.4029, allocations: 0 / 1.37 GB, free: 7.578 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.861e-05/0.403, allocations: 11.95 kB / 1.37 GB, free: 7.566 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.816e-05/0.403, allocations: 12 kB / 1.37 GB, free: 7.555 MB / 1.061 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.0002028/0.4032, allocations: 197.7 kB / 1.37 GB, free: 7.352 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.401e-05/0.4033, allocations: 19.84 kB / 1.37 GB, free: 7.332 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001912/0.4035, allocations: 155.4 kB / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.462e-05/0.4036, allocations: 176.3 kB / 1.37 GB, free: 6.984 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.742e-05/0.4036, allocations: 184.2 kB / 1.37 GB, free: 6.797 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.238e-05/0.4037, allocations: 181.3 kB / 1.37 GB, free: 6.613 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003377/0.4041, allocations: 444.8 kB / 1.371 GB, free: 6.141 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.364e-05/0.4041, allocations: 108.9 kB / 1.371 GB, free: 6.027 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.286e-05/0.4042, allocations: 101 kB / 1.371 GB, free: 5.922 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.217e-05/0.4043, allocations: 188.2 kB / 1.371 GB, free: 5.73 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.695e-05/0.4044, allocations: 184.2 kB / 1.371 GB, free: 5.543 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.883e-05/0.4044, allocations: 176.3 kB / 1.372 GB, free: 5.363 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.687e-05/0.4045, allocations: 184.1 kB / 1.372 GB, free: 5.176 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.4048, allocations: 323.9 kB / 1.372 GB, free: 4.836 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.4049, allocations: 124.9 kB / 1.372 GB, free: 4.707 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.405, allocations: 188.1 kB / 1.372 GB, free: 4.516 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.4051, allocations: 105 kB / 1.372 GB, free: 4.406 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.254e-05/0.4052, allocations: 184.3 kB / 1.373 GB, free: 4.219 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.522e-05/0.4053, allocations: 108.9 kB / 1.373 GB, free: 4.105 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002446/0.4055, allocations: 228.4 kB / 1.373 GB, free: 3.887 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4055, allocations: 0 / 1.373 GB, free: 3.887 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000286/0.4058, allocations: 47.73 kB / 1.373 GB, free: 3.84 MB / 1.061 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.0001587/0.4059, allocations: 178.5 kB / 1.373 GB, free: 3.652 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001739/0.4061, allocations: 67.89 kB / 1.373 GB, free: 3.586 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4061, allocations: 0 / 1.373 GB, free: 3.586 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.527e-06/0.4061, allocations: 4 kB / 1.373 GB, free: 3.582 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005304/0.4067, allocations: 476.2 kB / 1.374 GB, free: 3.113 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007118/0.4074, allocations: 472.2 kB / 1.374 GB, free: 2.629 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001973/0.4076, allocations: 169.2 kB / 1.374 GB, free: 2.441 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.633e-05/0.4077, allocations: 37.45 kB / 1.374 GB, free: 2.406 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.327e-05/0.4077, allocations: 19.44 kB / 1.374 GB, free: 2.387 MB / 1.061 GB Notification: Performance of SimCode: time 4.31e-07/0.4077, allocations: 0 / 1.374 GB, free: 2.387 MB / 1.061 GB Notification: Performance of Templates: time 0.004733/0.4124, allocations: 1.203 MB / 1.376 GB, free: 1.211 MB / 1.061 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: 9.382276739925146]