Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001658/0.001658, allocations: 115.5 kB / 18.88 MB, free: 3.062 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.001537/0.001537, allocations: 194.3 kB / 22.17 MB, free: 5.656 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.517/1.517, allocations: 225.6 MB / 250.9 MB, free: 13.28 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.885/2.885, allocations: 476.7 MB / 0.7645 GB, free: 10.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 67.89 kB / 1.109 GB, free: 6.578 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.976/0.978, allocations: 168.7 MB / 1.274 GB, free: 4.445 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002137/0.9801, allocations: 0.7172 MB / 1.275 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002527/0.9804, allocations: 51.78 kB / 1.275 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.305e-05/0.9805, allocations: 4 kB / 1.275 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.9806, allocations: 11.86 kB / 1.275 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.9807, allocations: 15.92 kB / 1.275 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.964e-05/0.9808, allocations: 15.98 kB / 1.275 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.9811, allocations: 187.5 kB / 1.275 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003154/0.9814, allocations: 144.9 kB / 1.275 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.9815, allocations: 99.66 kB / 1.275 GB, free: 3.207 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.9817, allocations: 107.5 kB / 1.275 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.942e-05/0.9817, allocations: 31.92 kB / 1.275 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.011e-05/0.9817, allocations: 24 kB / 1.275 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.919e-05/0.9818, allocations: 71.78 kB / 1.275 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.982, allocations: 127.3 kB / 1.276 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.9824, allocations: 377 kB / 1.276 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.9824, allocations: 0 / 1.276 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.375e-06/0.9824, allocations: 4 kB / 1.276 GB, free: 2.484 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.157e-06/0.9824, allocations: 4 kB / 1.276 GB, free: 2.48 MB / 0.9669 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.000874/0.9833, allocations: 0.5494 MB / 1.276 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.9833, allocations: 8.031 kB / 1.277 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.086e-05/0.9834, allocations: 36.7 kB / 1.277 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005172/0.9839, allocations: 317.3 kB / 1.277 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.037e-05/0.984, allocations: 36.86 kB / 1.277 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.977e-05/0.984, allocations: 24.38 kB / 1.277 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005883/0.9846, allocations: 347 kB / 1.277 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.9846, allocations: 192 / 1.277 GB, free: 1.074 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.9847, allocations: 15.88 kB / 1.277 GB, free: 1.059 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.9847, allocations: 8 kB / 1.277 GB, free: 1.051 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.9851, allocations: 256.4 kB / 1.277 GB, free: 0.8008 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.9865, allocations: 0.9137 MB / 1.278 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 9.684e-05/0.9866, allocations: 61.14 kB / 1.278 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.495e-05/0.9866, allocations: 33.77 kB / 1.278 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.195e-05/0.9867, allocations: 3.938 kB / 1.278 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.9867, allocations: 34.55 kB / 1.279 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.113e-06/0.9867, allocations: 0 / 1.279 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003039/0.987, allocations: 133.4 kB / 1.279 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.673e-05/0.9871, allocations: 81.11 kB / 1.279 GB, free: 15.43 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.9876, allocations: 477.4 kB / 1.279 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.9877, allocations: 25.7 kB / 1.279 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.9878, allocations: 179.9 kB / 1.279 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.9879, allocations: 19.81 kB / 1.279 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.538e-05/0.9879, allocations: 41.7 kB / 1.279 GB, free: 14.68 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.9881, allocations: 343.1 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.74e-05/0.9882, allocations: 55.95 kB / 1.28 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.9883, allocations: 74.8 kB / 1.28 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.9885, allocations: 97.61 kB / 1.28 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.9885, allocations: 0 / 1.28 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002907/0.9887, allocations: 197.3 kB / 1.28 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.9888, allocations: 4 kB / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.9888, allocations: 0 / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.662e-05/0.9888, allocations: 0 / 1.28 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.9889, allocations: 31.98 kB / 1.28 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.9889, allocations: 0 / 1.28 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.607e-05/0.989, allocations: 35.67 kB / 1.28 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.989, allocations: 4 kB / 1.28 GB, free: 13.83 MB / 0.9825 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.0002091/0.9892, allocations: 193.7 kB / 1.28 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.9893, allocations: 31.75 kB / 1.28 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.9895, allocations: 168.6 kB / 1.281 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.855e-05/0.9896, allocations: 176.3 kB / 1.281 GB, free: 13.25 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001171/0.9897, allocations: 176.3 kB / 1.281 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001787/0.9899, allocations: 189.7 kB / 1.281 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/0.9903, allocations: 0.5128 MB / 1.282 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.315e-05/0.9904, allocations: 112.9 kB / 1.282 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.55e-05/0.9904, allocations: 105 kB / 1.282 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.773e-05/0.9905, allocations: 180.2 kB / 1.282 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-05/0.9906, allocations: 180.2 kB / 1.282 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.168e-05/0.9907, allocations: 180.2 kB / 1.282 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.709e-05/0.9908, allocations: 188.2 kB / 1.283 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002065/0.991, allocations: 327.6 kB / 1.283 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.9912, allocations: 229.8 kB / 1.283 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.9913, allocations: 176.3 kB / 1.283 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.9914, allocations: 113.2 kB / 1.283 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.47e-05/0.9915, allocations: 184.3 kB / 1.284 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.237e-05/0.9916, allocations: 105 kB / 1.284 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004128/0.992, allocations: 367 kB / 1.284 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.992, allocations: 0 / 1.284 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002902/0.9923, allocations: 35.89 kB / 1.284 GB, free: 9.754 MB / 0.9825 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.0001775/0.9924, allocations: 180.1 kB / 1.284 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001921/0.9926, allocations: 63.95 kB / 1.284 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.9926, allocations: 4 kB / 1.284 GB, free: 9.504 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.747e-06/0.9926, allocations: 7.938 kB / 1.284 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005328/0.9932, allocations: 489.1 kB / 1.285 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007409/0.9939, allocations: 0.4923 MB / 1.285 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004679/0.9944, allocations: 0.7753 MB / 1.286 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000114/0.9945, allocations: 54.25 kB / 1.286 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.176e-05/0.9946, allocations: 23.42 kB / 1.286 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of SimCode: time 2.9e-07/0.9946, allocations: 0 / 1.286 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of Templates: time 0.005539/1, allocations: 1.729 MB / 1.288 GB, free: 5.898 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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.131867384072393]