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.001865/0.001865, allocations: 83.69 kB / 20.23 MB, free: 4.184 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.003068/0.003068, allocations: 157.3 kB / 23.55 MB, free: 0.8711 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.588/1.588, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 3.118/3.118, allocations: 377.8 MB / 0.6232 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 176] 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 2.595e-06/2.595e-06, allocations: 0 / 0.8108 GB, free: 2.133 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.97e-05/3.229e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.129 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002121/0.002154, allocations: 0.7347 MB / 0.8115 GB, free: 1.418 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002496/0.002403, allocations: 56.69 kB / 0.8116 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.058e-05/0.002474, allocations: 0 / 0.8116 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.002599, allocations: 17.77 kB / 0.8116 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.002734, allocations: 8.094 kB / 0.8116 GB, free: 1.34 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 5.942e-05/0.002793, allocations: 19.98 kB / 0.8116 GB, free: 1.32 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002654/0.003058, allocations: 185.1 kB / 0.8118 GB, free: 1.141 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.003337, allocations: 150.9 kB / 0.8119 GB, free: 0.9922 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001794/0.003516, allocations: 139.8 kB / 0.8121 GB, free: 0.8555 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001682/0.003684, allocations: 103.7 kB / 0.8122 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 5.348e-05/0.003738, allocations: 25.53 kB / 0.8122 GB, free: 0.7305 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 4.775e-05/0.003786, allocations: 28 kB / 0.8122 GB, free: 0.7031 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 9.157e-05/0.003877, allocations: 63.77 kB / 0.8123 GB, free: 0.6406 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.003986, allocations: 83.75 kB / 0.8123 GB, free: 0.5586 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.0004408/0.004426, allocations: 376.4 kB / 0.8127 GB, free: 196 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.004429, allocations: 0 / 0.8127 GB, free: 196 kB / 0.7605 GB Notification: Performance of FrontEnd: time 5.31e-07/0.00443, allocations: 0 / 0.8127 GB, free: 196 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 6.092e-06/0.004436, allocations: 0 / 0.8127 GB, free: 196 kB / 0.7605 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.0008377/0.005274, allocations: 0.5973 MB / 0.8133 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.005315, allocations: 13.25 kB / 0.8133 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.005423, allocations: 52.7 kB / 0.8134 GB, free: 15.49 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000489/0.005912, allocations: 266.6 kB / 0.8136 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.126e-05/0.005974, allocations: 29.02 kB / 0.8136 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.136e-05/0.006015, allocations: 24.38 kB / 0.8137 GB, free: 15.15 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.006577, allocations: 302.7 kB / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.006591, allocations: 192 / 0.8139 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.00662, allocations: 14.5 kB / 0.814 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.006629, allocations: 4.375 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003597/0.006988, allocations: 179.7 kB / 0.8141 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.008467, allocations: 0.8942 MB / 0.815 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001317/0.008599, allocations: 78.09 kB / 0.8151 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.08e-05/0.00866, allocations: 43.89 kB / 0.8151 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.008683, allocations: 0 / 0.8151 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.008719, allocations: 38.11 kB / 0.8152 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 7.72e-07/0.008719, allocations: 0 / 0.8152 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0003196/0.009039, allocations: 119.5 kB / 0.8153 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.009104, allocations: 77.11 kB / 0.8153 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005412/0.009645, allocations: 448.1 kB / 0.8158 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.009665, allocations: 25.7 kB / 0.8158 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.009884, allocations: 263.5 kB / 0.8161 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 9.438e-06/0.009893, allocations: 4.938 kB / 0.8161 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.01004, allocations: 99.3 kB / 0.8162 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003146/0.01035, allocations: 0.5196 MB / 0.8167 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.01047, allocations: 48.62 kB / 0.8167 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.01061, allocations: 83.31 kB / 0.8168 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001588/0.01076, allocations: 95.92 kB / 0.8169 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.01077, allocations: 1.375 kB / 0.8169 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002861/0.01105, allocations: 169.4 kB / 0.817 GB, free: 11.51 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.01107, allocations: 4 kB / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.01108, allocations: 4 kB / 0.817 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.0111, allocations: 4.75 kB / 0.8171 GB, free: 11.5 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.01124, allocations: 24 kB / 0.8171 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.01125, allocations: 4.922 kB / 0.8171 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.447e-05/0.0113, allocations: 15.89 kB / 0.8171 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.01132, allocations: 9.156 kB / 0.8171 GB, free: 11.45 MB / 0.7761 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.0002406/0.01156, allocations: 221.2 kB / 0.8173 GB, free: 11.22 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.523e-05/0.01162, allocations: 15.91 kB / 0.8173 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002335/0.01185, allocations: 199.3 kB / 0.8175 GB, free: 11 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001496/0.012, allocations: 272 kB / 0.8178 GB, free: 10.72 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001583/0.01216, allocations: 276.1 kB / 0.818 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001517/0.01231, allocations: 268 kB / 0.8183 GB, free: 10.18 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005804/0.01289, allocations: 0.6287 MB / 0.8189 GB, free: 9.504 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.352e-05/0.01297, allocations: 148.9 kB / 0.8191 GB, free: 9.352 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.798e-05/0.01306, allocations: 160.2 kB / 0.8192 GB, free: 9.191 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001494/0.01321, allocations: 264.1 kB / 0.8195 GB, free: 8.926 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001655/0.01338, allocations: 276 kB / 0.8197 GB, free: 8.648 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001481/0.01352, allocations: 264.1 kB / 0.82 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001507/0.01368, allocations: 275.9 kB / 0.8202 GB, free: 8.105 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.01398, allocations: 451.9 kB / 0.8207 GB, free: 7.637 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.01411, allocations: 176.7 kB / 0.8208 GB, free: 7.457 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.01427, allocations: 264.1 kB / 0.8211 GB, free: 7.191 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.01443, allocations: 152.8 kB / 0.8212 GB, free: 7.035 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.01458, allocations: 269 kB / 0.8215 GB, free: 6.766 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.028e-05/0.01466, allocations: 148.9 kB / 0.8216 GB, free: 6.613 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003246/0.01498, allocations: 285.1 kB / 0.8219 GB, free: 6.336 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9e-08/0.01498, allocations: 4.438 kB / 0.8219 GB, free: 6.332 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003123/0.01529, allocations: 44.34 kB / 0.822 GB, free: 6.289 MB / 0.7761 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.0001998/0.01549, allocations: 218.9 kB / 0.8222 GB, free: 6.066 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002043/0.0157, allocations: 84.62 kB / 0.8222 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.0157, allocations: 0 / 0.8222 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.385e-06/0.0157, allocations: 1.422 kB / 0.8222 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006884/0.01639, allocations: 0.7318 MB / 0.823 GB, free: 5.246 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007789/0.01717, allocations: 0.5123 MB / 0.8235 GB, free: 4.699 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001933/0.01736, allocations: 155.7 kB / 0.8236 GB, free: 4.535 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.241e-05/0.01744, allocations: 29.45 kB / 0.8236 GB, free: 4.508 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.584e-05/0.01748, allocations: 16.5 kB / 0.8236 GB, free: 4.492 MB / 0.7761 GB Notification: Performance of SimCode: time 6.11e-07/0.01748, allocations: 0 / 0.8236 GB, free: 4.492 MB / 0.7761 GB Notification: Performance of Templates: time 0.004867/0.02235, allocations: 1.069 MB / 0.8247 GB, free: 3.461 MB / 0.7761 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] 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: 8.289127845084295]