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.001417/0.001417, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001599/0.001599, allocations: 211.4 kB / 22.99 MB, free: 4.984 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.467/1.467, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.383/3.383, allocations: 0.49 GB / 0.7959 GB, free: 35.52 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.002109/0.002109, allocations: 73.73 kB / 1.155 GB, free: 25.21 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3698, allocations: 176.1 MB / 1.327 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002082/0.3719, allocations: 0.7133 MB / 1.328 GB, free: 296 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002234/0.3721, allocations: 51.78 kB / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.384e-05/0.3722, allocations: 0 / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.3723, allocations: 19.86 kB / 1.328 GB, free: 224 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.3724, allocations: 3.938 kB / 1.328 GB, free: 220 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.967e-05/0.3725, allocations: 23.97 kB / 1.328 GB, free: 196 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002378/0.3727, allocations: 175.6 kB / 1.328 GB, free: 20 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003068/0.373, allocations: 150 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.3731, allocations: 103.6 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.3733, allocations: 115.4 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.073e-05/0.3733, allocations: 24 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 3.971e-05/0.3734, allocations: 28 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.507e-05/0.3734, allocations: 71.78 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.3736, allocations: 99.41 kB / 1.329 GB, free: 15.44 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.3739, allocations: 374.5 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.3739, allocations: 0 / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.072e-06/0.3739, allocations: 0 / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.374, allocations: 0 / 1.329 GB, free: 15.07 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.0007147/0.3747, allocations: 497.4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.3747, allocations: 11.97 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.3748, allocations: 32.75 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.3752, allocations: 259.6 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/0.3753, allocations: 29.02 kB / 1.33 GB, free: 14.2 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.3753, allocations: 24.38 kB / 1.33 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005833/0.3759, allocations: 344.2 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3759, allocations: 192 / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.3759, allocations: 19.92 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.376, allocations: 8 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.3764, allocations: 256.3 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.3777, allocations: 0.7276 MB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.3778, allocations: 57.14 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.023e-05/0.3779, allocations: 41.75 kB / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.3779, allocations: 0 / 1.331 GB, free: 12.66 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.378, allocations: 34.5 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 8.81e-07/0.378, allocations: 0 / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003446/0.3783, allocations: 117.5 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.3784, allocations: 81.05 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000417/0.3788, allocations: 324.8 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.3788, allocations: 29.7 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/0.379, allocations: 200.1 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.995e-06/0.379, allocations: 256 / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3791, allocations: 73.64 kB / 1.332 GB, free: 11.76 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001897/0.3793, allocations: 322.8 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.3794, allocations: 59.95 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.3796, allocations: 77.66 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.3798, allocations: 93.67 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3798, allocations: 0 / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002738/0.38, allocations: 169.5 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.3801, allocations: 11.94 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.3801, allocations: 0 / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3801, allocations: 0 / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.3802, allocations: 35.92 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.3802, allocations: 8.141 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.961e-05/0.3803, allocations: 11.89 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.3803, allocations: 8 kB / 1.333 GB, free: 10.95 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.0002355/0.3806, allocations: 197.5 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.999e-05/0.3806, allocations: 23.8 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002158/0.3808, allocations: 155.4 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001319/0.381, allocations: 176.3 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001001/0.3811, allocations: 184.2 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/0.3812, allocations: 180.3 kB / 1.334 GB, free: 10 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000404/0.3816, allocations: 448.7 kB / 1.334 GB, free: 9.527 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-05/0.3816, allocations: 104.9 kB / 1.334 GB, free: 9.418 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.467e-05/0.3817, allocations: 105 kB / 1.334 GB, free: 9.309 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001165/0.3818, allocations: 192.2 kB / 1.334 GB, free: 9.113 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/0.382, allocations: 184.2 kB / 1.335 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.801e-05/0.3821, allocations: 180.3 kB / 1.335 GB, free: 8.742 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001056/0.3822, allocations: 180.2 kB / 1.335 GB, free: 8.559 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.3824, allocations: 323.9 kB / 1.335 GB, free: 8.219 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.3825, allocations: 124.9 kB / 1.335 GB, free: 8.09 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.3827, allocations: 184.2 kB / 1.336 GB, free: 7.902 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.3828, allocations: 108.9 kB / 1.336 GB, free: 7.789 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.3829, allocations: 184.2 kB / 1.336 GB, free: 7.602 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.245e-05/0.383, allocations: 108.9 kB / 1.336 GB, free: 7.488 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002589/0.3832, allocations: 224.4 kB / 1.336 GB, free: 7.27 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3832, allocations: 0 / 1.336 GB, free: 7.27 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003568/0.3836, allocations: 47.78 kB / 1.336 GB, free: 7.223 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.0002332/0.3838, allocations: 174.5 kB / 1.336 GB, free: 7.039 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002161/0.384, allocations: 71.89 kB / 1.336 GB, free: 6.969 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.384, allocations: 4 kB / 1.336 GB, free: 6.965 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 4.649e-06/0.384, allocations: 4 kB / 1.336 GB, free: 6.961 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006102/0.3846, allocations: 468.9 kB / 1.337 GB, free: 6.5 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008791/0.3855, allocations: 472.2 kB / 1.337 GB, free: 6.016 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.3858, allocations: 169.2 kB / 1.338 GB, free: 5.828 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.486e-05/0.3859, allocations: 37.45 kB / 1.338 GB, free: 5.793 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.3859, allocations: 15.44 kB / 1.338 GB, free: 5.777 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3859, allocations: 0 / 1.338 GB, free: 5.777 MB / 1.029 GB Notification: Performance of Templates: time 0.005403/0.3913, allocations: 1.217 MB / 1.339 GB, free: 4.578 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 -s gbode -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/jenkins1/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.001972240992473]