Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001449/0.001449, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001474/0.001474, allocations: 161.5 kB / 23.01 MB, free: 4.598 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.973 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.957/2.957, allocations: 394.2 MB / 0.6386 GB, free: 11.93 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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_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_latest_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.002044/0.002044, allocations: 63.89 kB / 1.009 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8773/0.8794, allocations: 181.8 MB / 1.187 GB, free: 16.25 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002689/0.8821, allocations: 0.8547 MB / 1.187 GB, free: 15.72 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0003742/0.8824, allocations: 88.8 kB / 1.187 GB, free: 15.65 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.8826, allocations: 7.438 kB / 1.188 GB, free: 15.65 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.8827, allocations: 22.72 kB / 1.188 GB, free: 15.63 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001428/0.8828, allocations: 21.75 kB / 1.188 GB, free: 15.62 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001012/0.8829, allocations: 43.41 kB / 1.188 GB, free: 15.59 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0003666/0.8833, allocations: 250.5 kB / 1.188 GB, free: 15.48 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003852/0.8837, allocations: 174.6 kB / 1.188 GB, free: 15.39 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.8839, allocations: 131.5 kB / 1.188 GB, free: 15.33 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002259/0.8841, allocations: 144.5 kB / 1.188 GB, free: 15.25 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 7.53e-05/0.8842, allocations: 36.73 kB / 1.188 GB, free: 15.25 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 6.89e-05/0.8842, allocations: 35.84 kB / 1.188 GB, free: 15.24 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.8843, allocations: 90.7 kB / 1.188 GB, free: 15.18 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.8845, allocations: 118.9 kB / 1.189 GB, free: 15.11 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0006345/0.8851, allocations: 464.7 kB / 1.189 GB, free: 14.93 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.8851, allocations: 4 kB / 1.189 GB, free: 14.93 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.834e-06/0.8851, allocations: 0 / 1.189 GB, free: 14.93 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.946e-06/0.8851, allocations: 1.688 kB / 1.189 GB, free: 14.93 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0008409/0.886, allocations: 0.5301 MB / 1.189 GB, free: 14.49 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.886, allocations: 9.281 kB / 1.19 GB, free: 14.49 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.8861, allocations: 39.39 kB / 1.19 GB, free: 14.47 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004906/0.8866, allocations: 270.4 kB / 1.19 GB, free: 14.27 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.818e-05/0.8867, allocations: 34.94 kB / 1.19 GB, free: 14.26 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.662e-05/0.8868, allocations: 32.78 kB / 1.19 GB, free: 14.25 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008822/0.8876, allocations: 398.2 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.8877, allocations: 4.938 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.406e-05/0.8877, allocations: 19.41 kB / 1.19 GB, free: 14.06 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.8877, allocations: 7.281 kB / 1.19 GB, free: 14.06 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.8882, allocations: 302.9 kB / 1.191 GB, free: 13.97 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.8898, allocations: 0.8405 MB / 1.191 GB, free: 13.44 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.89, allocations: 89.77 kB / 1.191 GB, free: 13.37 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.091e-05/0.89, allocations: 43.98 kB / 1.192 GB, free: 13.34 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.8901, allocations: 2.703 kB / 1.192 GB, free: 13.34 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.8901, allocations: 33.61 kB / 1.192 GB, free: 13.3 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.8901, allocations: 4 kB / 1.192 GB, free: 13.3 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0004181/0.8905, allocations: 153.3 kB / 1.192 GB, free: 13.22 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.8906, allocations: 84.22 kB / 1.192 GB, free: 13.12 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004357/0.891, allocations: 342.4 kB / 1.192 GB, free: 12.93 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.891, allocations: 26.83 kB / 1.192 GB, free: 12.9 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.8911, allocations: 214.8 kB / 1.192 GB, free: 12.72 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.8911, allocations: 20.39 kB / 1.192 GB, free: 12.71 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/0.8913, allocations: 71.53 kB / 1.192 GB, free: 12.67 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 6.699e-05/0.8913, allocations: 330.4 kB / 1.193 GB, free: 12.35 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.8915, allocations: 69.98 kB / 1.193 GB, free: 12.33 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.8917, allocations: 98.3 kB / 1.193 GB, free: 12.28 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.8919, allocations: 114.5 kB / 1.193 GB, free: 12.22 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.8919, allocations: 1.094 kB / 1.193 GB, free: 12.22 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003881/0.8923, allocations: 199.8 kB / 1.193 GB, free: 12.12 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.8923, allocations: 6.625 kB / 1.193 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.8923, allocations: 0.6562 kB / 1.193 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.8923, allocations: 1.375 kB / 1.193 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.8925, allocations: 26.42 kB / 1.193 GB, free: 12.12 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.8925, allocations: 10.03 kB / 1.193 GB, free: 12.11 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.853e-05/0.8926, allocations: 18.11 kB / 1.193 GB, free: 12.1 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.8926, allocations: 5.812 kB / 1.193 GB, free: 12.1 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: 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.0002153/0.8928, allocations: 202.8 kB / 1.193 GB, free: 11.96 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.774e-05/0.8929, allocations: 20.36 kB / 1.193 GB, free: 11.95 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000231/0.8931, allocations: 105.7 kB / 1.194 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.8931, allocations: 1.906 kB / 1.194 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.8932, allocations: 3.938 kB / 1.194 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.8932, allocations: 1.094 kB / 1.194 GB, free: 11.86 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005463/0.8937, allocations: 0.5626 MB / 1.194 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8937, allocations: 1.062 kB / 1.194 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.492e-05/0.8937, allocations: 5.156 kB / 1.194 GB, free: 11.38 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.8937, allocations: 5.219 kB / 1.194 GB, free: 11.37 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.8937, allocations: 9.797 kB / 1.194 GB, free: 11.36 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.8937, allocations: 1.781 kB / 1.194 GB, free: 11.36 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.8938, allocations: 1.062 kB / 1.194 GB, free: 11.36 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001028/0.8939, allocations: 118.1 kB / 1.194 GB, free: 11.25 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.8939, allocations: 21.28 kB / 1.194 GB, free: 11.24 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.8939, allocations: 5.312 kB / 1.194 GB, free: 11.23 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.246e-05/0.894, allocations: 3.953 kB / 1.194 GB, free: 11.23 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.25e-05/0.894, allocations: 8.734 kB / 1.194 GB, free: 11.23 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.894, allocations: 3 kB / 1.194 GB, free: 11.23 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002191/0.8942, allocations: 234.5 kB / 1.195 GB, free: 11.11 MB / 1.076 GB Notification: Performance of sort global known variables: time 1e-07/0.8942, allocations: 3.938 kB / 1.195 GB, free: 11.11 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000264/0.8945, allocations: 62.77 kB / 1.195 GB, free: 11.08 MB / 1.076 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 7.876e-05/0.8945, allocations: 96.33 kB / 1.195 GB, free: 10.99 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.8948, allocations: 107.3 kB / 1.195 GB, free: 10.95 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.8948, allocations: 1.094 kB / 1.195 GB, free: 10.95 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.71e-05/0.8948, allocations: 13.62 kB / 1.195 GB, free: 10.95 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002319/0.895, allocations: 24.39 kB / 1.195 GB, free: 10.94 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006407/0.8957, allocations: 489.9 kB / 1.195 GB, free: 10.62 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.8958, allocations: 187.1 kB / 1.195 GB, free: 10.54 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.608e-05/0.8959, allocations: 38.7 kB / 1.196 GB, free: 10.53 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/0.896, allocations: 17.84 kB / 1.196 GB, free: 10.52 MB / 1.076 GB Notification: Performance of SimCode: time 3.71e-07/0.896, allocations: 0 / 1.196 GB, free: 10.52 MB / 1.076 GB Notification: Performance of Templates: time 0.004449/0.9004, allocations: 1.212 MB / 1.197 GB, free: 10.32 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.751600991003215]