Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001293/0.001293, allocations: 79.5 kB / 19.76 MB, free: 2.031 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.001434/0.001434, allocations: 158.9 kB / 23.01 MB, free: 4.945 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.494/1.494, allocations: 177.2 MB / 203.4 MB, free: 8.945 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.855/2.855, allocations: 394.2 MB / 0.6387 GB, free: 11.91 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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.002123/0.002123, allocations: 71.89 kB / 1.009 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9501/0.9523, allocations: 181.8 MB / 1.187 GB, free: 16.23 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002074/0.9543, allocations: 0.7133 MB / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002205/0.9546, allocations: 47.14 kB / 1.187 GB, free: 15.75 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.509e-05/0.9546, allocations: 6.688 kB / 1.187 GB, free: 15.75 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.9548, allocations: 13.38 kB / 1.187 GB, free: 15.74 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.9549, allocations: 25.25 kB / 1.187 GB, free: 15.72 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 6.207e-05/0.955, allocations: 15.34 kB / 1.187 GB, free: 15.71 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002276/0.9552, allocations: 179.6 kB / 1.188 GB, free: 15.64 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002768/0.9555, allocations: 143.3 kB / 1.188 GB, free: 15.57 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 9.877e-05/0.9556, allocations: 107.6 kB / 1.188 GB, free: 15.52 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.9557, allocations: 117.5 kB / 1.188 GB, free: 15.46 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 5.13e-05/0.9558, allocations: 24.22 kB / 1.188 GB, free: 15.46 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 4.367e-05/0.9558, allocations: 32.19 kB / 1.188 GB, free: 15.45 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 8.311e-05/0.9559, allocations: 72.25 kB / 1.188 GB, free: 15.41 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.956, allocations: 99.7 kB / 1.188 GB, free: 15.34 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0004691/0.9565, allocations: 373.6 kB / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9565, allocations: 0 / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of FrontEnd: time 3.086e-06/0.9565, allocations: 2.219 kB / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of Transformations before backend: time 7.735e-06/0.9565, allocations: 0 / 1.188 GB, free: 15.2 MB / 1.076 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.0006476/0.9571, allocations: 490.3 kB / 1.189 GB, free: 14.8 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.9572, allocations: 9.469 kB / 1.189 GB, free: 14.8 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.387e-05/0.9572, allocations: 37.84 kB / 1.189 GB, free: 14.78 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004351/0.9577, allocations: 255.9 kB / 1.189 GB, free: 14.58 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/0.9577, allocations: 30.48 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.9578, allocations: 24.97 kB / 1.189 GB, free: 14.56 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000566/0.9583, allocations: 338.7 kB / 1.19 GB, free: 14.42 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.9583, allocations: 1.312 kB / 1.19 GB, free: 14.42 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.9584, allocations: 14.28 kB / 1.19 GB, free: 14.41 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.9584, allocations: 5.844 kB / 1.19 GB, free: 14.41 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000448/0.9588, allocations: 263.6 kB / 1.19 GB, free: 14.33 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.9599, allocations: 0.7277 MB / 1.191 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 7.904e-05/0.96, allocations: 61.44 kB / 1.191 GB, free: 13.8 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.683e-05/0.96, allocations: 34.97 kB / 1.191 GB, free: 13.78 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.9601, allocations: 0 / 1.191 GB, free: 13.78 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.9601, allocations: 37.39 kB / 1.191 GB, free: 13.73 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.9601, allocations: 0 / 1.191 GB, free: 13.73 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.0002626/0.9604, allocations: 117.1 kB / 1.191 GB, free: 13.67 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.9604, allocations: 78.2 kB / 1.191 GB, free: 13.58 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.9607, allocations: 327 kB / 1.191 GB, free: 13.39 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.9608, allocations: 25.7 kB / 1.191 GB, free: 13.36 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.773e-05/0.9608, allocations: 194.7 kB / 1.191 GB, free: 13.2 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 9.438e-06/0.9609, allocations: 10.33 kB / 1.191 GB, free: 13.19 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.342e-05/0.9609, allocations: 62.69 kB / 1.192 GB, free: 13.16 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 7.058e-05/0.961, allocations: 326.3 kB / 1.192 GB, free: 12.84 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.687e-05/0.9611, allocations: 64.27 kB / 1.192 GB, free: 12.82 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.9612, allocations: 73.97 kB / 1.192 GB, free: 12.78 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.9614, allocations: 98.11 kB / 1.192 GB, free: 12.73 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.9614, allocations: 1.094 kB / 1.192 GB, free: 12.73 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002472/0.9616, allocations: 176.6 kB / 1.192 GB, free: 12.64 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.9616, allocations: 9.688 kB / 1.192 GB, free: 12.64 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.9616, allocations: 1.547 kB / 1.192 GB, free: 12.64 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.9617, allocations: 4.75 kB / 1.192 GB, free: 12.63 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.9618, allocations: 23.03 kB / 1.192 GB, free: 12.63 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.9618, allocations: 5.703 kB / 1.192 GB, free: 12.63 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.858e-05/0.9619, allocations: 13.86 kB / 1.192 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.829e-05/0.9619, allocations: 13.62 kB / 1.192 GB, free: 12.61 MB / 1.076 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.0001798/0.9621, allocations: 197 kB / 1.192 GB, free: 12.47 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.049e-05/0.9621, allocations: 19.09 kB / 1.192 GB, free: 12.46 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.9622, allocations: 155.3 kB / 1.193 GB, free: 12.32 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.708e-05/0.9623, allocations: 183 kB / 1.193 GB, free: 12.13 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/0.9623, allocations: 177.9 kB / 1.193 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.7e-05/0.9623, allocations: 182.1 kB / 1.193 GB, free: 11.77 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000247/0.9626, allocations: 442.9 kB / 1.194 GB, free: 11.37 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.9626, allocations: 106.5 kB / 1.194 GB, free: 11.26 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.732e-05/0.9626, allocations: 101.9 kB / 1.194 GB, free: 11.15 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.927e-05/0.9626, allocations: 180.3 kB / 1.194 GB, free: 10.97 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.294e-05/0.9627, allocations: 193.8 kB / 1.194 GB, free: 10.78 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.727e-05/0.9627, allocations: 182.5 kB / 1.194 GB, free: 10.59 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.353e-05/0.9627, allocations: 182 kB / 1.194 GB, free: 10.41 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.9628, allocations: 317.4 kB / 1.195 GB, free: 10.09 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 5.351e-05/0.9629, allocations: 125.3 kB / 1.195 GB, free: 9.969 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.388e-05/0.963, allocations: 183.1 kB / 1.195 GB, free: 9.785 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.872e-05/0.963, allocations: 109 kB / 1.195 GB, free: 9.676 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.9631, allocations: 178.6 kB / 1.195 GB, free: 9.496 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.9631, allocations: 110.8 kB / 1.195 GB, free: 9.383 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002618/0.9633, allocations: 227.2 kB / 1.196 GB, free: 9.27 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.9633, allocations: 0 / 1.196 GB, free: 9.27 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002858/0.9636, allocations: 55.95 kB / 1.196 GB, free: 9.242 MB / 1.076 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.0001068/0.9637, allocations: 170.8 kB / 1.196 GB, free: 9.078 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001942/0.9639, allocations: 75.97 kB / 1.196 GB, free: 9.055 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.9639, allocations: 0 / 1.196 GB, free: 9.055 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 3.326e-06/0.9639, allocations: 5.281 kB / 1.196 GB, free: 9.051 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.9643, allocations: 469.5 kB / 1.196 GB, free: 8.594 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000663/0.965, allocations: 477.2 kB / 1.197 GB, free: 8.266 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.9652, allocations: 163.1 kB / 1.197 GB, free: 8.18 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.985e-05/0.9652, allocations: 37.67 kB / 1.197 GB, free: 8.176 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.963e-05/0.9653, allocations: 15.81 kB / 1.197 GB, free: 8.168 MB / 1.076 GB Notification: Performance of SimCode: time 4.31e-07/0.9653, allocations: 0 / 1.197 GB, free: 8.168 MB / 1.076 GB Notification: Performance of Templates: time 0.004638/0.9699, allocations: 1.071 MB / 1.198 GB, free: 8 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.87621046998538]