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.0008159/0.0008159, allocations: 76.5 kB / 19.93 MB, free: 4.633 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.0008046/0.0008046, allocations: 174.3 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.8705/0.8705, allocations: 177.1 MB / 203.5 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] 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 1.665/1.665, allocations: 359 MB / 0.6044 GB, free: 11.1 MB / 0.573 GB " [Timeout remaining time 178] 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 1.453e-06/1.453e-06, allocations: 0 / 0.9517 GB, free: 3.016 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.441e-05/1.586e-05, allocations: 2.281 kB / 0.9517 GB, free: 3.012 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001134/0.001149, allocations: 0.7182 MB / 0.9524 GB, free: 2.289 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0001768/0.001326, allocations: 39.84 kB / 0.9524 GB, free: 2.25 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.477e-05/0.001391, allocations: 4 kB / 0.9525 GB, free: 2.246 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.001496, allocations: 11.86 kB / 0.9525 GB, free: 2.234 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0001078/0.001604, allocations: 15.92 kB / 0.9525 GB, free: 2.219 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 4.544e-05/0.001649, allocations: 27.91 kB / 0.9525 GB, free: 2.191 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.001808, allocations: 187.5 kB / 0.9527 GB, free: 2.008 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.001995, allocations: 133.4 kB / 0.9528 GB, free: 1.879 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 9.335e-05/0.002088, allocations: 143.8 kB / 0.9529 GB, free: 1.738 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 9.135e-05/0.00218, allocations: 111.6 kB / 0.9531 GB, free: 1.629 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.711e-05/0.002217, allocations: 24 kB / 0.9531 GB, free: 1.605 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 2.243e-05/0.002239, allocations: 24 kB / 0.9531 GB, free: 1.582 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 4.955e-05/0.002289, allocations: 71.77 kB / 0.9532 GB, free: 1.512 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 5.341e-05/0.002342, allocations: 71.77 kB / 0.9532 GB, free: 1.441 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.002593, allocations: 378.7 kB / 0.9536 GB, free: 1.07 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.002595, allocations: 8 kB / 0.9536 GB, free: 1.062 MB / 0.9011 GB Notification: Performance of FrontEnd: time 8.72e-07/0.002596, allocations: 0 / 0.9536 GB, free: 1.062 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.908e-06/0.0026, allocations: 0 / 0.9536 GB, free: 1.062 MB / 0.9011 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.0004218/0.003022, allocations: 485.5 kB / 0.9541 GB, free: 0.5508 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.003054, allocations: 12.03 kB / 0.9541 GB, free: 0.5391 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.0031, allocations: 40.69 kB / 0.9541 GB, free: 0.5 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005039/0.003604, allocations: 250.8 kB / 0.9544 GB, free: 232 kB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.003644, allocations: 33.02 kB / 0.9544 GB, free: 200 kB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.164e-05/0.003666, allocations: 24.38 kB / 0.9544 GB, free: 176 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003328/0.003998, allocations: 348.3 kB / 0.9547 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.004009, allocations: 4.172 kB / 0.9547 GB, free: 15.81 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.004028, allocations: 12.38 kB / 0.9548 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.004034, allocations: 4.375 kB / 0.9548 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.004277, allocations: 263.7 kB / 0.955 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000684/0.004961, allocations: 0.7272 MB / 0.9557 GB, free: 14.78 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 5.856e-05/0.005019, allocations: 65.12 kB / 0.9558 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.74e-05/0.005047, allocations: 25.77 kB / 0.9558 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.005063, allocations: 0 / 0.9558 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.005084, allocations: 42.56 kB / 0.9559 GB, free: 14.62 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=2): time 7.72e-07/0.005085, allocations: 4 kB / 0.9559 GB, free: 14.61 MB / 0.9167 GB Notification: Performance of matching and sorting (n=2): time 0.0001907/0.005275, allocations: 125.4 kB / 0.956 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.551e-05/0.005311, allocations: 77.11 kB / 0.956 GB, free: 14.39 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.00552, allocations: 321.7 kB / 0.9564 GB, free: 14.06 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 8.807e-06/0.005529, allocations: 25.7 kB / 0.9564 GB, free: 14.03 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 8.584e-05/0.005615, allocations: 192.8 kB / 0.9566 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 7.244e-06/0.005622, allocations: 7.953 kB / 0.9566 GB, free: 13.83 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.005675, allocations: 57.69 kB / 0.9566 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.332e-05/0.005748, allocations: 326.8 kB / 0.9569 GB, free: 13.44 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.724e-05/0.005805, allocations: 60.2 kB / 0.957 GB, free: 13.38 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.398e-05/0.005869, allocations: 83.89 kB / 0.9571 GB, free: 13.3 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.003e-05/0.005959, allocations: 101.6 kB / 0.9572 GB, free: 13.19 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.005961, allocations: 0 / 0.9572 GB, free: 13.19 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000151/0.006112, allocations: 173.5 kB / 0.9573 GB, free: 13.02 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.006122, allocations: 6.5 kB / 0.9573 GB, free: 13.01 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.006126, allocations: 80 / 0.9573 GB, free: 13.01 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.006138, allocations: 11.88 kB / 0.9574 GB, free: 13 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.469e-05/0.006223, allocations: 23.98 kB / 0.9574 GB, free: 12.98 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.006228, allocations: 3.984 kB / 0.9574 GB, free: 12.97 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.319e-05/0.006261, allocations: 19.83 kB / 0.9574 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.006271, allocations: 4 kB / 0.9574 GB, free: 12.95 MB / 0.9167 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.0001137/0.006385, allocations: 201.5 kB / 0.9576 GB, free: 12.74 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.927e-05/0.006414, allocations: 19.91 kB / 0.9576 GB, free: 12.72 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.006519, allocations: 147.4 kB / 0.9578 GB, free: 12.57 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.933e-05/0.006558, allocations: 192.1 kB / 0.9579 GB, free: 12.37 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.659e-05/0.006595, allocations: 180.3 kB / 0.9581 GB, free: 12.19 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-05/0.006631, allocations: 180.2 kB / 0.9583 GB, free: 12 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.006815, allocations: 452.8 kB / 0.9587 GB, free: 11.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-05/0.006838, allocations: 105 kB / 0.9588 GB, free: 11.41 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.197e-05/0.00686, allocations: 108.9 kB / 0.9589 GB, free: 11.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.675e-05/0.006897, allocations: 184.2 kB / 0.9591 GB, free: 11.11 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.744e-05/0.006934, allocations: 176.3 kB / 0.9593 GB, free: 10.93 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.673e-05/0.006971, allocations: 184.2 kB / 0.9594 GB, free: 10.75 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-05/0.007009, allocations: 184.2 kB / 0.9596 GB, free: 10.56 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.867e-05/0.007097, allocations: 319.7 kB / 0.9599 GB, free: 10.22 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 4.115e-05/0.007139, allocations: 120.9 kB / 0.96 GB, free: 10.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.007187, allocations: 184.2 kB / 0.9602 GB, free: 9.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.873e-05/0.007246, allocations: 105 kB / 0.9603 GB, free: 9.801 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/0.007287, allocations: 188.1 kB / 0.9605 GB, free: 9.609 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.166e-05/0.007308, allocations: 109 kB / 0.9606 GB, free: 9.496 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001451/0.007453, allocations: 229.2 kB / 0.9608 GB, free: 9.273 MB / 0.9167 GB Notification: Performance of sort global known variables: time 9e-08/0.007453, allocations: 0 / 0.9608 GB, free: 9.273 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001687/0.007622, allocations: 43.78 kB / 0.9609 GB, free: 9.23 MB / 0.9167 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 7.978e-05/0.007702, allocations: 178.5 kB / 0.961 GB, free: 9.043 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.007814, allocations: 75.88 kB / 0.9611 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.007816, allocations: 0 / 0.9611 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 8.62e-07/0.007817, allocations: 0 / 0.9611 GB, free: 8.969 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.008324, allocations: 473.9 kB / 0.9615 GB, free: 8.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003963/0.00872, allocations: 0.502 MB / 0.962 GB, free: 7.969 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.438e-05/0.008815, allocations: 165.3 kB / 0.9622 GB, free: 7.785 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.008846, allocations: 16.5 kB / 0.9622 GB, free: 7.77 MB / 0.9167 GB Notification: Performance of SimCode: time 3.01e-07/0.008846, allocations: 0 / 0.9622 GB, free: 7.77 MB / 0.9167 GB Notification: Performance of Templates: time 0.002662/0.01151, allocations: 2.796 MB / 0.9649 GB, free: 4.977 MB / 0.9167 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=400 -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/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: 6.761460562236607]