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.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.002151/0.002151, allocations: 79.7 kB / 20.23 MB, free: 4.191 MB / 18.57 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.002632/0.002632, allocations: 157.3 kB / 23.55 MB, free: 0.8789 MB / 18.57 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.567/1.567, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.873/2.873, allocations: 359 MB / 0.6048 GB, free: 10.94 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_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 2.274e-06/2.274e-06, allocations: 0 / 0.7864 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.114e-05/3.341e-05, allocations: 7.719 kB / 0.7864 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002085/0.002119, allocations: 0.7218 MB / 0.7871 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00027/0.002389, allocations: 47.84 kB / 0.7871 GB, free: 12.07 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.921e-05/0.002468, allocations: 7.938 kB / 0.7871 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.002594, allocations: 13.08 kB / 0.7871 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.002723, allocations: 15.91 kB / 0.7872 GB, free: 12.04 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 6.048e-05/0.002784, allocations: 15.98 kB / 0.7872 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.003056, allocations: 188.4 kB / 0.7873 GB, free: 11.84 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.003374, allocations: 145.4 kB / 0.7875 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002046/0.003578, allocations: 140.6 kB / 0.7876 GB, free: 11.56 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.003747, allocations: 103.7 kB / 0.7877 GB, free: 11.46 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.84e-05/0.003806, allocations: 24 kB / 0.7877 GB, free: 11.43 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.011e-05/0.003856, allocations: 28.53 kB / 0.7878 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 9.48e-05/0.003951, allocations: 68.92 kB / 0.7878 GB, free: 11.34 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.004064, allocations: 79.75 kB / 0.7879 GB, free: 11.26 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004779/0.004541, allocations: 370.8 kB / 0.7883 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.004544, allocations: 0.5625 kB / 0.7883 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of FrontEnd: time 8.82e-07/0.004545, allocations: 3.938 kB / 0.7883 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.288e-06/0.004554, allocations: 0.6875 kB / 0.7883 GB, free: 10.89 MB / 0.7448 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.0008521/0.005406, allocations: 0.5942 MB / 0.7888 GB, free: 10.26 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.005448, allocations: 12.03 kB / 0.7889 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.005577, allocations: 52.7 kB / 0.7889 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/0.006102, allocations: 263.9 kB / 0.7892 GB, free: 9.914 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.25e-05/0.006165, allocations: 29.02 kB / 0.7892 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/0.006207, allocations: 24.38 kB / 0.7892 GB, free: 9.863 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005787/0.006786, allocations: 313.9 kB / 0.7895 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.006799, allocations: 192 / 0.7895 GB, free: 9.539 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.006827, allocations: 13.81 kB / 0.7895 GB, free: 9.527 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.006835, allocations: 4.375 kB / 0.7895 GB, free: 9.523 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.007207, allocations: 171.8 kB / 0.7897 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.0089, allocations: 0.9075 MB / 0.7906 GB, free: 8.41 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.009024, allocations: 74.09 kB / 0.7907 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.231e-05/0.009086, allocations: 35.42 kB / 0.7907 GB, free: 8.27 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.009115, allocations: 4 kB / 0.7907 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.009153, allocations: 44.77 kB / 0.7907 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.009154, allocations: 0 / 0.7907 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0003023/0.009456, allocations: 113.5 kB / 0.7908 GB, free: 8.098 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.016e-05/0.009527, allocations: 88.98 kB / 0.7909 GB, free: 7.992 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.01007, allocations: 444.1 kB / 0.7913 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.0101, allocations: 29.7 kB / 0.7914 GB, free: 7.512 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.01031, allocations: 250.9 kB / 0.7916 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.192e-05/0.01032, allocations: 8 kB / 0.7916 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.01048, allocations: 95.86 kB / 0.7917 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0003009/0.01078, allocations: 0.5202 MB / 0.7922 GB, free: 6.621 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.01088, allocations: 47.95 kB / 0.7923 GB, free: 6.574 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.01101, allocations: 86.23 kB / 0.7923 GB, free: 6.484 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.01118, allocations: 95.33 kB / 0.7924 GB, free: 6.383 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.01118, allocations: 5.219 kB / 0.7924 GB, free: 6.379 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002923/0.01148, allocations: 173.4 kB / 0.7926 GB, free: 6.203 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.01149, allocations: 5.562 kB / 0.7926 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.0115, allocations: 4.594 kB / 0.7926 GB, free: 6.195 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.01152, allocations: 5.062 kB / 0.7926 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.01166, allocations: 27.92 kB / 0.7927 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.01167, allocations: 0 / 0.7927 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.114e-05/0.01173, allocations: 20.83 kB / 0.7927 GB, free: 6.145 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.01174, allocations: 4 kB / 0.7927 GB, free: 6.141 MB / 0.7448 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.0002395/0.01198, allocations: 221.9 kB / 0.7929 GB, free: 5.914 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.878e-05/0.01204, allocations: 15.91 kB / 0.7929 GB, free: 5.898 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.01227, allocations: 205.7 kB / 0.7931 GB, free: 5.684 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001348/0.0124, allocations: 268 kB / 0.7934 GB, free: 5.414 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001403/0.01254, allocations: 273.1 kB / 0.7936 GB, free: 5.141 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001376/0.01268, allocations: 264.1 kB / 0.7939 GB, free: 4.875 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005409/0.01322, allocations: 0.6287 MB / 0.7945 GB, free: 4.203 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.218e-05/0.0133, allocations: 159.6 kB / 0.7946 GB, free: 4.043 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.615e-05/0.01338, allocations: 144.9 kB / 0.7948 GB, free: 3.895 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.01352, allocations: 272 kB / 0.795 GB, free: 3.621 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.01366, allocations: 268.1 kB / 0.7953 GB, free: 3.352 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001416/0.0138, allocations: 268.1 kB / 0.7955 GB, free: 3.082 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001522/0.01396, allocations: 272 kB / 0.7958 GB, free: 2.809 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.01423, allocations: 459.9 kB / 0.7962 GB, free: 2.332 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.01435, allocations: 164.8 kB / 0.7964 GB, free: 2.164 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.0145, allocations: 269.6 kB / 0.7967 GB, free: 1.895 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.01464, allocations: 152.8 kB / 0.7968 GB, free: 1.738 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/0.01491, allocations: 272 kB / 0.7971 GB, free: 1.465 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.188e-05/0.015, allocations: 156.8 kB / 0.7972 GB, free: 1.305 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0003102/0.01531, allocations: 277.6 kB / 0.7975 GB, free: 1.031 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.01e-07/0.01531, allocations: 0.5625 kB / 0.7975 GB, free: 1.031 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000285/0.01559, allocations: 43.78 kB / 0.7975 GB, free: 0.9883 MB / 0.7448 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.000208/0.0158, allocations: 216.4 kB / 0.7977 GB, free: 0.7695 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002204/0.01602, allocations: 87.89 kB / 0.7978 GB, free: 0.6797 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.01602, allocations: 0 / 0.7978 GB, free: 0.6797 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.643e-06/0.01602, allocations: 4.625 kB / 0.7978 GB, free: 0.6758 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006479/0.01667, allocations: 0.7332 MB / 0.7985 GB, free: 15.94 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007138/0.01739, allocations: 0.5092 MB / 0.799 GB, free: 15.4 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001819/0.01757, allocations: 155.7 kB / 0.7992 GB, free: 15.23 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 7.643e-05/0.01764, allocations: 33.45 kB / 0.7992 GB, free: 15.2 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.327e-05/0.01769, allocations: 12.5 kB / 0.7992 GB, free: 15.19 MB / 0.7605 GB Notification: Performance of SimCode: time 5.21e-07/0.01769, allocations: 1.062 kB / 0.7992 GB, free: 15.19 MB / 0.7605 GB Notification: Performance of Templates: time 0.004598/0.02229, allocations: 1.079 MB / 0.8003 GB, free: 14.15 MB / 0.7605 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] 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/jenkins/ws/OpenModelicaLibraryTestingWork/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: 7.958987119025551]