Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.002043/0.002043, allocations: 102.1 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.002319/0.002319, 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.538/1.538, 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.316/3.316, allocations: 0.4899 GB / 0.7915 GB, free: 33.4 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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [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.002137/0.002137, allocations: 74.19 kB / 1.149 GB, free: 26.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4457/0.4479, allocations: 176.1 MB / 1.321 GB, free: 2.844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002487/0.4503, allocations: 0.873 MB / 1.322 GB, free: 1.973 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003123/0.4506, allocations: 87.64 kB / 1.322 GB, free: 1.887 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.4507, allocations: 8 kB / 1.322 GB, free: 1.879 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.4509, allocations: 23.78 kB / 1.322 GB, free: 1.855 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.4511, allocations: 15.86 kB / 1.322 GB, free: 1.84 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 9.912e-05/0.4512, allocations: 43.89 kB / 1.322 GB, free: 1.797 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.4515, allocations: 255.4 kB / 1.322 GB, free: 1.547 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004154/0.4519, allocations: 234.3 kB / 1.323 GB, free: 1.309 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.4521, allocations: 135.6 kB / 1.323 GB, free: 1.176 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.4523, allocations: 139.3 kB / 1.323 GB, free: 1.039 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.711e-05/0.4523, allocations: 32 kB / 1.323 GB, free: 1.008 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.67e-05/0.4524, allocations: 36 kB / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.4525, allocations: 87.7 kB / 1.323 GB, free: 0.8867 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001564/0.4526, allocations: 159.1 kB / 1.323 GB, free: 0.7305 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0005125/0.4531, allocations: 462 kB / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4531, allocations: 0 / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4531, allocations: 0 / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of Transformations before backend: time 8.657e-06/0.4531, allocations: 0 / 1.324 GB, free: 284 kB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008896/0.454, allocations: 0.6077 MB / 1.324 GB, free: 15.61 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4541, allocations: 11.98 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.959e-05/0.4542, allocations: 44.66 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004801/0.4547, allocations: 332.3 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.853e-05/0.4547, allocations: 29.03 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.024e-05/0.4548, allocations: 36.38 kB / 1.325 GB, free: 15.13 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006732/0.4554, allocations: 400.2 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.4554, allocations: 192 / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.4555, allocations: 19.94 kB / 1.325 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.4555, allocations: 8 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005007/0.456, allocations: 307.4 kB / 1.325 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001544/0.4575, allocations: 1.054 MB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.4577, allocations: 93.16 kB / 1.327 GB, free: 13.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.327e-05/0.4578, allocations: 49.78 kB / 1.327 GB, free: 13.13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.4578, allocations: 3.984 kB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.4579, allocations: 38.5 kB / 1.327 GB, free: 13.08 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.4579, allocations: 0 / 1.327 GB, free: 13.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003984/0.4583, allocations: 161.4 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.453e-05/0.4583, allocations: 92.98 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006569/0.459, allocations: 0.5092 MB / 1.327 GB, free: 12.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.459, allocations: 25.7 kB / 1.327 GB, free: 12.26 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.4592, allocations: 203.7 kB / 1.328 GB, free: 12.05 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.4592, allocations: 15.91 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.231e-05/0.4593, allocations: 53.69 kB / 1.328 GB, free: 11.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001951/0.4595, allocations: 342.8 kB / 1.328 GB, free: 11.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.4596, allocations: 67.95 kB / 1.328 GB, free: 11.57 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.4598, allocations: 93.56 kB / 1.328 GB, free: 11.47 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001922/0.46, allocations: 121.5 kB / 1.328 GB, free: 11.35 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.46, allocations: 0 / 1.328 GB, free: 11.35 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003346/0.4603, allocations: 209.3 kB / 1.328 GB, free: 11.14 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.4603, allocations: 4 kB / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4603, allocations: 0 / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.4603, allocations: 0 / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.4605, allocations: 35.86 kB / 1.329 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.4605, allocations: 8 kB / 1.329 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.431e-05/0.4606, allocations: 35.67 kB / 1.329 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.4606, allocations: 4 kB / 1.329 GB, free: 11.05 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: 18 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.000244/0.4608, allocations: 204 kB / 1.329 GB, free: 10.84 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.6e-05/0.4609, allocations: 35.95 kB / 1.329 GB, free: 10.81 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002452/0.4612, allocations: 114 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.4612, allocations: 7.875 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4612, allocations: 3.938 kB / 1.329 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.4612, allocations: 4 kB / 1.329 GB, free: 10.67 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006773/0.4619, allocations: 0.6487 MB / 1.33 GB, free: 9.953 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4619, allocations: 192 / 1.33 GB, free: 9.953 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.095e-05/0.4619, allocations: 8 kB / 1.33 GB, free: 9.945 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.4619, allocations: 4 kB / 1.33 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.4619, allocations: 0 / 1.33 GB, free: 9.941 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.4619, allocations: 3.938 kB / 1.33 GB, free: 9.938 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.4619, allocations: 4 kB / 1.33 GB, free: 9.934 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.4621, allocations: 135.8 kB / 1.33 GB, free: 9.773 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.4622, allocations: 124.8 kB / 1.33 GB, free: 9.633 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.507e-05/0.4622, allocations: 7.984 kB / 1.33 GB, free: 9.625 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.374e-05/0.4623, allocations: 4 kB / 1.33 GB, free: 9.621 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.4623, allocations: 7.938 kB / 1.33 GB, free: 9.613 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.4623, allocations: 4 kB / 1.33 GB, free: 9.609 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004741/0.4628, allocations: 387 kB / 1.33 GB, free: 9.23 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4628, allocations: 3.938 kB / 1.33 GB, free: 9.227 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002494/0.463, allocations: 44 kB / 1.33 GB, free: 9.184 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001458/0.4632, allocations: 99.19 kB / 1.33 GB, free: 9.074 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000244/0.4634, allocations: 103.9 kB / 1.33 GB, free: 8.973 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4634, allocations: 0 / 1.33 GB, free: 8.973 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.966e-05/0.4635, allocations: 15.94 kB / 1.33 GB, free: 8.957 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.4637, allocations: 39.36 kB / 1.33 GB, free: 8.922 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008429/0.4646, allocations: 0.5021 MB / 1.331 GB, free: 8.383 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.4651, allocations: 0.7909 MB / 1.332 GB, free: 7.566 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001063/0.4652, allocations: 55.31 kB / 1.332 GB, free: 7.516 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.129e-05/0.4652, allocations: 27.38 kB / 1.332 GB, free: 7.488 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.4652, allocations: 0 / 1.332 GB, free: 7.488 MB / 1.029 GB Notification: Performance of Templates: time 0.0062/0.4714, allocations: 2.015 MB / 1.334 GB, free: 5.48 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.313240515999496]