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.000777/0.000777, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.0007998/0.0007998, allocations: 177.9 kB / 23.21 MB, free: 1.352 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 0.8526/0.8526, allocations: 177.1 MB / 203.5 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.703/1.703, allocations: 377.9 MB / 0.6228 GB, free: 8.684 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 0.9822 GB, free: 2.137 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.911e-05/2.071e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.133 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001171/0.001192, allocations: 0.7152 MB / 0.9829 GB, free: 1.418 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0001866/0.001379, allocations: 55.77 kB / 0.9829 GB, free: 1.363 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.748e-05/0.001446, allocations: 3.938 kB / 0.9829 GB, free: 1.359 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 9.635e-05/0.001542, allocations: 11.92 kB / 0.9829 GB, free: 1.348 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.001654, allocations: 11.88 kB / 0.983 GB, free: 1.336 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 4.588e-05/0.0017, allocations: 19.98 kB / 0.983 GB, free: 1.316 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.001863, allocations: 187.5 kB / 0.9832 GB, free: 1.133 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002035/0.002066, allocations: 145.4 kB / 0.9833 GB, free: 0.9883 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 9.593e-05/0.002162, allocations: 143.8 kB / 0.9834 GB, free: 0.8477 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 9.463e-05/0.002257, allocations: 99.72 kB / 0.9835 GB, free: 0.75 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 3.65e-05/0.002293, allocations: 24 kB / 0.9835 GB, free: 0.7266 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 2.407e-05/0.002317, allocations: 28 kB / 0.9836 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 5.169e-05/0.002369, allocations: 71.75 kB / 0.9836 GB, free: 0.6289 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 5.462e-05/0.002424, allocations: 75.77 kB / 0.9837 GB, free: 0.5547 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.002676, allocations: 378.7 kB / 0.9841 GB, free: 188 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.002679, allocations: 4 kB / 0.9841 GB, free: 184 kB / 0.9323 GB Notification: Performance of FrontEnd: time 8.71e-07/0.00268, allocations: 3.938 kB / 0.9841 GB, free: 180 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.002684, allocations: 0 / 0.9841 GB, free: 180 kB / 0.9323 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.0005694/0.003253, allocations: 485.7 kB / 0.9845 GB, free: 15.66 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.003289, allocations: 8.031 kB / 0.9846 GB, free: 15.66 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.003336, allocations: 36.7 kB / 0.9846 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.003603, allocations: 254.8 kB / 0.9848 GB, free: 15.34 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.936e-05/0.003643, allocations: 33.02 kB / 0.9849 GB, free: 15.31 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.003666, allocations: 24.38 kB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003318/0.003998, allocations: 344.3 kB / 0.9852 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.004008, allocations: 192 / 0.9852 GB, free: 14.94 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.004027, allocations: 12.38 kB / 0.9852 GB, free: 14.93 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.044e-06/0.004034, allocations: 8.375 kB / 0.9852 GB, free: 14.92 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002496/0.004284, allocations: 263.7 kB / 0.9855 GB, free: 14.66 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007035/0.004987, allocations: 0.7198 MB / 0.9862 GB, free: 13.91 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 6.258e-05/0.00505, allocations: 57.14 kB / 0.9862 GB, free: 13.83 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.354e-05/0.005083, allocations: 41.73 kB / 0.9863 GB, free: 13.79 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.0051, allocations: 0 / 0.9863 GB, free: 13.79 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.005119, allocations: 30.56 kB / 0.9863 GB, free: 13.75 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.00512, allocations: 7.938 kB / 0.9863 GB, free: 13.74 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0001949/0.005315, allocations: 129.4 kB / 0.9864 GB, free: 13.61 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.005354, allocations: 77.11 kB / 0.9865 GB, free: 13.51 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.005571, allocations: 325.6 kB / 0.9868 GB, free: 13.19 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.031e-05/0.005581, allocations: 29.7 kB / 0.9869 GB, free: 13.16 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/0.00567, allocations: 192.2 kB / 0.987 GB, free: 12.96 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 7.133e-06/0.005677, allocations: 7.938 kB / 0.987 GB, free: 12.96 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.43e-05/0.005731, allocations: 57.69 kB / 0.9871 GB, free: 12.89 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.207e-05/0.005813, allocations: 330.8 kB / 0.9874 GB, free: 12.56 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.345e-05/0.005876, allocations: 56.2 kB / 0.9875 GB, free: 12.51 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.631e-05/0.005943, allocations: 85.61 kB / 0.9876 GB, free: 12.42 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.067e-05/0.006033, allocations: 101.6 kB / 0.9876 GB, free: 12.31 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.006036, allocations: 0 / 0.9876 GB, free: 12.31 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001543/0.006191, allocations: 173.4 kB / 0.9878 GB, free: 12.14 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.006203, allocations: 8 kB / 0.9878 GB, free: 12.13 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.006208, allocations: 0 / 0.9878 GB, free: 12.13 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.006224, allocations: 7.875 kB / 0.9878 GB, free: 12.12 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.9e-05/0.006313, allocations: 23.98 kB / 0.9879 GB, free: 12.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.006318, allocations: 4 kB / 0.9879 GB, free: 12.09 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.926e-05/0.006347, allocations: 15.89 kB / 0.9879 GB, free: 12.08 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.006358, allocations: 4 kB / 0.9879 GB, free: 12.07 MB / 0.948 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.0001215/0.00648, allocations: 205.9 kB / 0.9881 GB, free: 11.86 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.006505, allocations: 15.91 kB / 0.9881 GB, free: 11.85 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.006618, allocations: 147.5 kB / 0.9882 GB, free: 11.69 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.21e-05/0.00666, allocations: 196.1 kB / 0.9884 GB, free: 11.49 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-05/0.006699, allocations: 176.3 kB / 0.9886 GB, free: 11.31 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-05/0.006745, allocations: 184.3 kB / 0.9888 GB, free: 11.12 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001768/0.006921, allocations: 444.8 kB / 0.9892 GB, free: 10.65 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-05/0.006945, allocations: 105 kB / 0.9893 GB, free: 10.54 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.514e-05/0.00697, allocations: 112.9 kB / 0.9894 GB, free: 10.43 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.678e-05/0.007007, allocations: 176.3 kB / 0.9896 GB, free: 10.25 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.059e-05/0.007048, allocations: 180.2 kB / 0.9897 GB, free: 10.06 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.661e-05/0.007084, allocations: 184.2 kB / 0.9899 GB, free: 9.875 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.911e-05/0.007124, allocations: 180.2 kB / 0.9901 GB, free: 9.691 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.339e-05/0.007217, allocations: 319.7 kB / 0.9904 GB, free: 9.355 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.426e-05/0.007261, allocations: 124.8 kB / 0.9905 GB, free: 9.227 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.007311, allocations: 180.3 kB / 0.9907 GB, free: 9.043 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.048e-05/0.007371, allocations: 109 kB / 0.9908 GB, free: 8.93 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.375e-05/0.007415, allocations: 184.1 kB / 0.991 GB, free: 8.742 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.00744, allocations: 117 kB / 0.9911 GB, free: 8.621 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0001445/0.007585, allocations: 229.2 kB / 0.9913 GB, free: 8.398 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.007585, allocations: 0 / 0.9913 GB, free: 8.398 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0003124/0.007897, allocations: 47.72 kB / 0.9913 GB, free: 8.352 MB / 0.948 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 8.249e-05/0.007979, allocations: 170.5 kB / 0.9915 GB, free: 8.176 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000118/0.008097, allocations: 75.88 kB / 0.9916 GB, free: 8.102 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.008099, allocations: 0 / 0.9916 GB, free: 8.102 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.32e-07/0.0081, allocations: 0 / 0.9916 GB, free: 8.102 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.008385, allocations: 476 kB / 0.992 GB, free: 7.633 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004143/0.008799, allocations: 0.4978 MB / 0.9925 GB, free: 7.102 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.759e-05/0.008897, allocations: 161.4 kB / 0.9927 GB, free: 6.926 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.605e-05/0.008933, allocations: 16.5 kB / 0.9927 GB, free: 6.91 MB / 0.948 GB Notification: Performance of SimCode: time 4.71e-07/0.008934, allocations: 0 / 0.9927 GB, free: 6.91 MB / 0.948 GB Notification: Performance of Templates: time 0.002799/0.01173, allocations: 2.796 MB / 0.9954 GB, free: 4.121 MB / 0.948 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: 6.47165147960186]