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.00182/0.00182, allocations: 104 kB / 16.45 MB, free: 6.449 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.002136/0.002136, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.623/1.623, allocations: 230.5 MB / 252.8 MB, free: 9.145 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.281/3.281, allocations: 0.4899 GB / 0.7915 GB, free: 33.21 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.002098/0.002098, allocations: 70.62 kB / 1.149 GB, free: 26.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4343/0.4364, allocations: 176.1 MB / 1.321 GB, free: 2.883 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002377/0.4388, allocations: 0.7299 MB / 1.322 GB, free: 2.152 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002369/0.439, allocations: 47.84 kB / 1.322 GB, free: 2.105 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.664e-05/0.4391, allocations: 4 kB / 1.322 GB, free: 2.102 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.4393, allocations: 19.86 kB / 1.322 GB, free: 2.082 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.4394, allocations: 7.922 kB / 1.322 GB, free: 2.074 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 5.812e-05/0.4395, allocations: 19.98 kB / 1.322 GB, free: 2.055 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.4398, allocations: 183.5 kB / 1.322 GB, free: 1.875 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003764/0.4401, allocations: 204.9 kB / 1.322 GB, free: 1.668 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.4402, allocations: 103.6 kB / 1.323 GB, free: 1.566 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001499/0.4404, allocations: 119.5 kB / 1.323 GB, free: 1.449 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.859e-05/0.4404, allocations: 24 kB / 1.323 GB, free: 1.426 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 3.834e-05/0.4405, allocations: 24 kB / 1.323 GB, free: 1.402 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001044/0.4406, allocations: 71.78 kB / 1.323 GB, free: 1.332 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.4407, allocations: 123.2 kB / 1.323 GB, free: 1.211 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004381/0.4412, allocations: 374.4 kB / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4412, allocations: 0 / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.904e-06/0.4412, allocations: 0 / 1.323 GB, free: 0.8438 MB / 1.014 GB Notification: Performance of Transformations before backend: time 8.175e-06/0.4412, allocations: 0 / 1.323 GB, free: 0.8438 MB / 1.014 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.0008483/0.442, allocations: 0.5649 MB / 1.324 GB, free: 232 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.4421, allocations: 11.98 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.198e-05/0.4422, allocations: 32.75 kB / 1.324 GB, free: 188 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00048/0.4426, allocations: 313.4 kB / 1.324 GB, free: 15.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.4427, allocations: 36.81 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.474e-05/0.4427, allocations: 24.38 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/0.4433, allocations: 339 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.4433, allocations: 8.188 kB / 1.324 GB, free: 15.42 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.4433, allocations: 11.94 kB / 1.324 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.4433, allocations: 8 kB / 1.325 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004178/0.4438, allocations: 259.8 kB / 1.325 GB, free: 15.15 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.4451, allocations: 0.9095 MB / 1.326 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 9.729e-05/0.4452, allocations: 57.2 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.212e-05/0.4452, allocations: 33.69 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.457e-05/0.4453, allocations: 11.92 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.4453, allocations: 42.5 kB / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.4453, allocations: 0 / 1.326 GB, free: 14.01 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003016/0.4456, allocations: 129.4 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/0.4457, allocations: 81.36 kB / 1.326 GB, free: 13.78 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00058/0.4463, allocations: 477.5 kB / 1.326 GB, free: 13.3 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.4463, allocations: 25.7 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.4465, allocations: 187.7 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.414e-06/0.4465, allocations: 0 / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.29e-05/0.4465, allocations: 53.66 kB / 1.327 GB, free: 13.03 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000191/0.4467, allocations: 334.8 kB / 1.327 GB, free: 12.69 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.922e-05/0.4468, allocations: 59.95 kB / 1.327 GB, free: 12.63 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.4469, allocations: 81.66 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.4471, allocations: 97.61 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4471, allocations: 0 / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002918/0.4474, allocations: 185.4 kB / 1.327 GB, free: 12.26 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.4474, allocations: 4 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4474, allocations: 3.938 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.4474, allocations: 3.984 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.4476, allocations: 20 kB / 1.327 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4476, allocations: 4 kB / 1.327 GB, free: 12.22 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.903e-05/0.4477, allocations: 31.73 kB / 1.327 GB, free: 12.19 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.139e-05/0.4477, allocations: 8 kB / 1.327 GB, free: 12.18 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.0002172/0.4479, allocations: 193.7 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.709e-05/0.448, allocations: 27.8 kB / 1.328 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/0.4482, allocations: 164.6 kB / 1.328 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.825e-05/0.4483, allocations: 188.2 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-05/0.4483, allocations: 176.3 kB / 1.328 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.029e-05/0.4484, allocations: 184.3 kB / 1.328 GB, free: 11.23 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004342/0.4489, allocations: 0.5127 MB / 1.329 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.666e-05/0.4489, allocations: 104.9 kB / 1.329 GB, free: 10.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.598e-05/0.449, allocations: 104.9 kB / 1.329 GB, free: 10.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.722e-05/0.4491, allocations: 192.2 kB / 1.329 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.414e-05/0.4492, allocations: 180.3 kB / 1.329 GB, free: 10.06 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.982e-05/0.4492, allocations: 184.2 kB / 1.33 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.848e-05/0.4493, allocations: 180.3 kB / 1.33 GB, free: 9.688 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.4496, allocations: 335.8 kB / 1.33 GB, free: 9.336 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.4497, allocations: 221.8 kB / 1.33 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.4499, allocations: 184.2 kB / 1.33 GB, free: 8.906 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.45, allocations: 105 kB / 1.331 GB, free: 8.797 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.973e-05/0.4501, allocations: 180.2 kB / 1.331 GB, free: 8.613 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.022e-05/0.4501, allocations: 105 kB / 1.331 GB, free: 8.504 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004207/0.4505, allocations: 363.1 kB / 1.331 GB, free: 8.148 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.4505, allocations: 7.938 kB / 1.331 GB, free: 8.141 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002725/0.4508, allocations: 27.95 kB / 1.331 GB, free: 8.113 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.0001793/0.451, allocations: 178.5 kB / 1.331 GB, free: 7.93 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001932/0.4512, allocations: 76.03 kB / 1.331 GB, free: 7.855 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4512, allocations: 0 / 1.331 GB, free: 7.855 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.927e-06/0.4512, allocations: 4 kB / 1.331 GB, free: 7.852 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.4517, allocations: 485.2 kB / 1.332 GB, free: 7.375 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008232/0.4525, allocations: 0.4926 MB / 1.332 GB, free: 6.852 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.453, allocations: 0.7675 MB / 1.333 GB, free: 6.059 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001084/0.4531, allocations: 58.19 kB / 1.333 GB, free: 6.004 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.723e-05/0.4532, allocations: 23.42 kB / 1.333 GB, free: 5.98 MB / 1.029 GB Notification: Performance of SimCode: time 3.81e-07/0.4532, allocations: 0 / 1.333 GB, free: 5.98 MB / 1.029 GB Notification: Performance of Templates: time 0.006401/0.4596, allocations: 1.73 MB / 1.335 GB, free: 4.266 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 -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: 9.432037311140448]