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.001373/0.001373, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001528/0.001528, allocations: 207.1 kB / 22.24 MB, free: 5.258 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.567/1.567, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.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 3.473/3.473, allocations: 0.5107 GB / 0.8158 GB, free: 17.87 MB / 0.6231 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.002106/0.002106, allocations: 70.84 kB / 1.186 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3866, allocations: 181.9 MB / 1.364 GB, free: 13.68 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002152/0.3887, allocations: 0.8577 MB / 1.365 GB, free: 12.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002937/0.389, allocations: 91.7 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.508e-05/0.3891, allocations: 7.938 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.3892, allocations: 23.78 kB / 1.365 GB, free: 12.7 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.3893, allocations: 11.88 kB / 1.365 GB, free: 12.69 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 8.629e-05/0.3894, allocations: 39.95 kB / 1.365 GB, free: 12.65 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003127/0.3897, allocations: 255.5 kB / 1.365 GB, free: 12.4 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003533/0.3901, allocations: 174.8 kB / 1.365 GB, free: 12.22 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.3902, allocations: 135.5 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.3904, allocations: 147.3 kB / 1.366 GB, free: 11.95 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.876e-05/0.3905, allocations: 32 kB / 1.366 GB, free: 11.91 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.989e-05/0.3905, allocations: 36 kB / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.3907, allocations: 83.77 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.3908, allocations: 119.3 kB / 1.366 GB, free: 11.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004819/0.3913, allocations: 474 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.3913, allocations: 0 / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3913, allocations: 0 / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.283e-06/0.3913, allocations: 0 / 1.366 GB, free: 11.21 MB / 1.061 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.0007402/0.392, allocations: 0.5208 MB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.392, allocations: 8.031 kB / 1.367 GB, free: 10.65 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.686e-05/0.3921, allocations: 40.7 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004886/0.3926, allocations: 278.5 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.602e-05/0.3927, allocations: 33.03 kB / 1.367 GB, free: 10.28 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.978e-05/0.3927, allocations: 32.38 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006313/0.3934, allocations: 400 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3934, allocations: 192 / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.3934, allocations: 23.92 kB / 1.368 GB, free: 9.824 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3934, allocations: 8 kB / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000497/0.3939, allocations: 295.8 kB / 1.368 GB, free: 9.527 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.3952, allocations: 0.8413 MB / 1.369 GB, free: 8.648 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000162/0.3954, allocations: 97.08 kB / 1.369 GB, free: 8.535 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.599e-05/0.3954, allocations: 41.8 kB / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.3955, allocations: 0 / 1.369 GB, free: 8.488 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.3955, allocations: 38.55 kB / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 9.11e-07/0.3955, allocations: 0 / 1.369 GB, free: 8.441 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003401/0.3958, allocations: 161.4 kB / 1.369 GB, free: 8.277 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.3959, allocations: 77.11 kB / 1.369 GB, free: 8.184 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003954/0.3963, allocations: 353.5 kB / 1.369 GB, free: 7.832 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.3963, allocations: 25.7 kB / 1.369 GB, free: 7.801 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.3965, allocations: 208.4 kB / 1.37 GB, free: 7.59 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.012e-05/0.3965, allocations: 19.89 kB / 1.37 GB, free: 7.57 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.715e-05/0.3966, allocations: 69.69 kB / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.00018/0.3968, allocations: 334.8 kB / 1.37 GB, free: 7.16 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3969, allocations: 63.95 kB / 1.37 GB, free: 7.098 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.397, allocations: 96.91 kB / 1.37 GB, free: 7 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.3972, allocations: 113.7 kB / 1.37 GB, free: 6.883 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3972, allocations: 0 / 1.37 GB, free: 6.883 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003131/0.3975, allocations: 201.3 kB / 1.37 GB, free: 6.68 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3976, allocations: 8 kB / 1.37 GB, free: 6.672 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3976, allocations: 0 / 1.37 GB, free: 6.672 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.3976, allocations: 0 / 1.37 GB, free: 6.672 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3977, allocations: 35.98 kB / 1.37 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3978, allocations: 7.875 kB / 1.37 GB, free: 6.629 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.925e-05/0.3978, allocations: 15.89 kB / 1.371 GB, free: 6.613 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.3978, allocations: 4 kB / 1.371 GB, free: 6.609 MB / 1.061 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.0002194/0.3981, allocations: 204.8 kB / 1.371 GB, free: 6.402 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.158e-05/0.3981, allocations: 23.86 kB / 1.371 GB, free: 6.379 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.3983, allocations: 104.6 kB / 1.371 GB, free: 6.262 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3983, allocations: 4.062 kB / 1.371 GB, free: 6.258 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3983, allocations: 3.938 kB / 1.371 GB, free: 6.254 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3983, allocations: 3.984 kB / 1.371 GB, free: 6.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005677/0.3989, allocations: 0.5586 MB / 1.371 GB, free: 5.641 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.3989, allocations: 4 kB / 1.371 GB, free: 5.637 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-05/0.3989, allocations: 4 kB / 1.371 GB, free: 5.633 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.3989, allocations: 7.938 kB / 1.371 GB, free: 5.625 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.555e-06/0.3989, allocations: 0 / 1.371 GB, free: 5.625 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.3989, allocations: 128 / 1.371 GB, free: 5.625 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.399, allocations: 8 kB / 1.371 GB, free: 5.617 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.3991, allocations: 115.9 kB / 1.372 GB, free: 5.477 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.743e-05/0.3991, allocations: 27.83 kB / 1.372 GB, free: 5.449 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.3992, allocations: 4 kB / 1.372 GB, free: 5.445 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.714e-05/0.3992, allocations: 48 / 1.372 GB, free: 5.445 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.978e-05/0.3992, allocations: 7.984 kB / 1.372 GB, free: 5.438 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.151e-06/0.3992, allocations: 4 kB / 1.372 GB, free: 5.434 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002519/0.3995, allocations: 237.2 kB / 1.372 GB, free: 5.199 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3995, allocations: 0 / 1.372 GB, free: 5.199 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002552/0.3998, allocations: 55.73 kB / 1.372 GB, free: 5.145 MB / 1.061 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.0001306/0.3999, allocations: 107.2 kB / 1.372 GB, free: 5.031 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002201/0.4001, allocations: 104 kB / 1.372 GB, free: 4.93 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4001, allocations: 0 / 1.372 GB, free: 4.93 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.897e-05/0.4001, allocations: 15.98 kB / 1.372 GB, free: 4.914 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/0.4004, allocations: 32.31 kB / 1.372 GB, free: 4.883 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007876/0.4012, allocations: 481.9 kB / 1.373 GB, free: 4.379 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.4014, allocations: 187.3 kB / 1.373 GB, free: 4.176 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.801e-05/0.4015, allocations: 37.61 kB / 1.373 GB, free: 4.141 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.866e-05/0.4015, allocations: 19.44 kB / 1.373 GB, free: 4.121 MB / 1.061 GB Notification: Performance of SimCode: time 3.11e-07/0.4015, allocations: 4 kB / 1.373 GB, free: 4.117 MB / 1.061 GB Notification: Performance of Templates: time 0.005203/0.4067, allocations: 1.348 MB / 1.374 GB, free: 2.805 MB / 1.061 GB " [Timeout remaining time 300] 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 -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/jenkins/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: 9.473294127732515]