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.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.00139/0.00139, allocations: 99.64 kB / 18.95 MB, free: 2.539 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.001604/0.001604, allocations: 210.2 kB / 22.24 MB, free: 4.875 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.611/1.611, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.484/3.484, allocations: 0.4892 GB / 0.7943 GB, free: 35.63 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_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: 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.00215/0.00215, allocations: 76.95 kB / 1.154 GB, free: 25.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4052, allocations: 176.1 MB / 1.326 GB, free: 1.891 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002113/0.4073, allocations: 0.7166 MB / 1.326 GB, free: 1.18 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002404/0.4076, allocations: 47.84 kB / 1.326 GB, free: 1.133 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.11e-05/0.4077, allocations: 4 kB / 1.326 GB, free: 1.129 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001279/0.4078, allocations: 11.86 kB / 1.326 GB, free: 1.117 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.4079, allocations: 15.92 kB / 1.326 GB, free: 1.102 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.626e-05/0.408, allocations: 11.98 kB / 1.326 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00026/0.4082, allocations: 187.5 kB / 1.326 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003011/0.4085, allocations: 146 kB / 1.327 GB, free: 0.7617 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.4086, allocations: 103.6 kB / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.4088, allocations: 127.5 kB / 1.327 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.217e-05/0.4089, allocations: 24 kB / 1.327 GB, free: 0.5117 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.199e-05/0.4089, allocations: 24 kB / 1.327 GB, free: 500 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.392e-05/0.409, allocations: 71.78 kB / 1.327 GB, free: 428 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.4091, allocations: 99.41 kB / 1.327 GB, free: 328 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004068/0.4095, allocations: 378.4 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4095, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.874e-06/0.4095, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.4095, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 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.000732/0.4103, allocations: 497.4 kB / 1.328 GB, free: 15.43 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.4103, allocations: 8.031 kB / 1.328 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.089e-05/0.4104, allocations: 36.75 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004795/0.4108, allocations: 247.6 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.678e-05/0.4109, allocations: 33.02 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.4109, allocations: 28.31 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.4115, allocations: 336.3 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.4115, allocations: 192 / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.4116, allocations: 15.94 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.4116, allocations: 4 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004117/0.412, allocations: 268.3 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.4132, allocations: 0.7353 MB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.62e-05/0.4132, allocations: 53.2 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.253e-05/0.4133, allocations: 25.77 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.4133, allocations: 11.92 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.4134, allocations: 38.5 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.4134, allocations: 0 / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0002633/0.4136, allocations: 117.5 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/0.4137, allocations: 77.11 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.4141, allocations: 324.8 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.4141, allocations: 29.95 kB / 1.33 GB, free: 12.93 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.4142, allocations: 196.1 kB / 1.33 GB, free: 12.73 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.126e-05/0.4142, allocations: 7.984 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.175e-05/0.4143, allocations: 61.64 kB / 1.33 GB, free: 12.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.4145, allocations: 330.8 kB / 1.331 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4146, allocations: 59.95 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.4147, allocations: 74.92 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.4149, allocations: 97.61 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.4149, allocations: 4 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002673/0.4151, allocations: 169.5 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.4152, allocations: 11.94 kB / 1.331 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.4152, allocations: 4 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.4152, allocations: 0 / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.4153, allocations: 27.92 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4153, allocations: 0 / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.445e-05/0.4154, allocations: 15.89 kB / 1.331 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.4154, allocations: 4 kB / 1.331 GB, free: 11.85 MB / 1.029 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.0002143/0.4156, allocations: 204.1 kB / 1.331 GB, free: 11.64 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.765e-05/0.4157, allocations: 27.8 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001835/0.4159, allocations: 147.4 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.447e-05/0.4159, allocations: 192.2 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.053e-05/0.416, allocations: 180.2 kB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.525e-05/0.4161, allocations: 176.3 kB / 1.332 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003465/0.4165, allocations: 448.7 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-05/0.4165, allocations: 101 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.997e-05/0.4166, allocations: 109 kB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.659e-05/0.4167, allocations: 180.2 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.328e-05/0.4167, allocations: 180.2 kB / 1.333 GB, free: 9.828 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.061e-05/0.4168, allocations: 192.2 kB / 1.333 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.674e-05/0.4169, allocations: 180.3 kB / 1.333 GB, free: 9.449 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.4171, allocations: 319.8 kB / 1.334 GB, free: 9.113 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.914e-05/0.4172, allocations: 128.9 kB / 1.334 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.4173, allocations: 188.1 kB / 1.334 GB, free: 8.789 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.4174, allocations: 105 kB / 1.334 GB, free: 8.68 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.4175, allocations: 180.2 kB / 1.334 GB, free: 8.496 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.456e-05/0.4176, allocations: 101 kB / 1.334 GB, free: 8.391 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002509/0.4178, allocations: 232.4 kB / 1.335 GB, free: 8.16 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4178, allocations: 0 / 1.335 GB, free: 8.16 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002709/0.4181, allocations: 47.78 kB / 1.335 GB, free: 8.113 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.0001559/0.4183, allocations: 174.5 kB / 1.335 GB, free: 7.93 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001801/0.4184, allocations: 79.88 kB / 1.335 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4184, allocations: 0 / 1.335 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.613e-06/0.4184, allocations: 0 / 1.335 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004902/0.4189, allocations: 468.7 kB / 1.335 GB, free: 7.391 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007089/0.4196, allocations: 472.2 kB / 1.336 GB, free: 6.906 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.4198, allocations: 169.2 kB / 1.336 GB, free: 6.719 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.342e-05/0.4199, allocations: 37.45 kB / 1.336 GB, free: 6.684 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.586e-05/0.4199, allocations: 11.44 kB / 1.336 GB, free: 6.676 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4199, allocations: 0 / 1.336 GB, free: 6.676 MB / 1.029 GB Notification: Performance of Templates: time 0.004562/0.4245, allocations: 1.208 MB / 1.337 GB, free: 5.484 MB / 1.029 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: 9.858710575848818]