Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.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.001561/0.001561, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001952/0.001952, allocations: 215.3 kB / 22.99 MB, free: 4.945 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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.285/3.285, allocations: 0.5107 GB / 0.8166 GB, free: 17.83 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.CountTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|couTru.y|couTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|couTru.y|couTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue") [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.002158/0.002158, allocations: 72.44 kB / 1.187 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3616/0.3638, allocations: 181.9 MB / 1.365 GB, free: 13.63 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.00225/0.366, allocations: 0.8554 MB / 1.365 GB, free: 12.77 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002933/0.3663, allocations: 95.69 kB / 1.366 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.709e-05/0.3664, allocations: 0 / 1.366 GB, free: 12.68 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.3666, allocations: 27.73 kB / 1.366 GB, free: 12.65 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.3667, allocations: 11.86 kB / 1.366 GB, free: 12.64 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 8.757e-05/0.3668, allocations: 43.97 kB / 1.366 GB, free: 12.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003539/0.3671, allocations: 255.5 kB / 1.366 GB, free: 12.34 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003219/0.3674, allocations: 170.9 kB / 1.366 GB, free: 12.17 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.3676, allocations: 135.4 kB / 1.366 GB, free: 12.04 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.3678, allocations: 143.4 kB / 1.366 GB, free: 11.9 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.3679, allocations: 32 kB / 1.366 GB, free: 11.87 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.47e-05/0.368, allocations: 36 kB / 1.366 GB, free: 11.83 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.619e-05/0.3681, allocations: 87.7 kB / 1.366 GB, free: 11.75 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.3682, allocations: 115.3 kB / 1.367 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000521/0.3687, allocations: 466 kB / 1.367 GB, free: 11.18 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3688, allocations: 4 kB / 1.367 GB, free: 11.17 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3688, allocations: 4 kB / 1.367 GB, free: 11.17 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.3688, allocations: 7.922 kB / 1.367 GB, free: 11.16 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.0007324/0.3695, allocations: 0.5246 MB / 1.368 GB, free: 10.6 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.3695, allocations: 8.031 kB / 1.368 GB, free: 10.59 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.617e-05/0.3696, allocations: 40.7 kB / 1.368 GB, free: 10.55 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004883/0.3701, allocations: 266.5 kB / 1.368 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.876e-05/0.3702, allocations: 41.02 kB / 1.368 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.439e-05/0.3702, allocations: 28.38 kB / 1.368 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.3709, allocations: 404 kB / 1.368 GB, free: 9.793 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3709, allocations: 4.188 kB / 1.368 GB, free: 9.789 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.3709, allocations: 19.94 kB / 1.368 GB, free: 9.77 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.3709, allocations: 8 kB / 1.368 GB, free: 9.762 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005462/0.3715, allocations: 299.7 kB / 1.369 GB, free: 9.469 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.3728, allocations: 0.8374 MB / 1.369 GB, free: 8.594 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001582/0.373, allocations: 85.16 kB / 1.369 GB, free: 8.492 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.901e-05/0.3731, allocations: 45.78 kB / 1.37 GB, free: 8.441 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.3731, allocations: 4 kB / 1.37 GB, free: 8.438 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.3731, allocations: 38.56 kB / 1.37 GB, free: 8.391 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.3731, allocations: 0 / 1.37 GB, free: 8.391 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003319/0.3735, allocations: 157.4 kB / 1.37 GB, free: 8.23 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.633e-05/0.3735, allocations: 81.11 kB / 1.37 GB, free: 8.133 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00039/0.3739, allocations: 349.5 kB / 1.37 GB, free: 7.785 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.3739, allocations: 25.7 kB / 1.37 GB, free: 7.754 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.3741, allocations: 216.4 kB / 1.37 GB, free: 7.535 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.3742, allocations: 15.91 kB / 1.37 GB, free: 7.52 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.3743, allocations: 73.67 kB / 1.37 GB, free: 7.441 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001886/0.3745, allocations: 330.8 kB / 1.371 GB, free: 7.109 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.3746, allocations: 67.95 kB / 1.371 GB, free: 7.043 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.3748, allocations: 90.64 kB / 1.371 GB, free: 6.949 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.3749, allocations: 113.6 kB / 1.371 GB, free: 6.832 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3749, allocations: 0 / 1.371 GB, free: 6.832 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003141/0.3753, allocations: 205.4 kB / 1.371 GB, free: 6.625 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3753, allocations: 9.703 kB / 1.371 GB, free: 6.617 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3753, allocations: 0 / 1.371 GB, free: 6.617 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.3753, allocations: 4 kB / 1.371 GB, free: 6.613 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001437/0.3754, allocations: 28 kB / 1.371 GB, free: 6.586 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.716e-05/0.3755, allocations: 7.922 kB / 1.371 GB, free: 6.578 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.218e-05/0.3756, allocations: 11.89 kB / 1.371 GB, free: 6.566 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3756, allocations: 12 kB / 1.371 GB, free: 6.555 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 (couTru.booToInt[1].y,couTru.booToInt[2].y,couTru.booToInt[3].y,couTru.booToInt[4].y,couTru.booToInt[5].y,couTru.booToInt[6].y,couTru.intEqu.y,couTru.mulMin.y,couTru.y,couTruAllFal.booToInt[1].y,couTruAllFal.booToInt[2].y,couTruAllFal.booToInt[3].y,couTruAllFal.booToInt[4].y,couTruAllFal.booToInt[5].y,couTruAllFal.booToInt[6].y,couTruAllFal.intEqu.y,couTruAllFal.mulMin.y,couTruAllFal.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.0002201/0.3758, allocations: 200.1 kB / 1.371 GB, free: 6.352 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3759, allocations: 23.86 kB / 1.371 GB, free: 6.328 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002082/0.3761, allocations: 108.6 kB / 1.372 GB, free: 6.207 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3761, allocations: 0 / 1.372 GB, free: 6.207 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.3761, allocations: 3.938 kB / 1.372 GB, free: 6.203 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3761, allocations: 0 / 1.372 GB, free: 6.203 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006999/0.3768, allocations: 0.5665 MB / 1.372 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3768, allocations: 0 / 1.372 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.141e-05/0.3769, allocations: 4 kB / 1.372 GB, free: 5.582 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.3769, allocations: 3.938 kB / 1.372 GB, free: 5.578 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.3769, allocations: 4 kB / 1.372 GB, free: 5.574 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3769, allocations: 0 / 1.372 GB, free: 5.574 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3769, allocations: 3.938 kB / 1.372 GB, free: 5.57 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001412/0.377, allocations: 119.9 kB / 1.372 GB, free: 5.426 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.3771, allocations: 27.97 kB / 1.372 GB, free: 5.398 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.3771, allocations: 3.984 kB / 1.372 GB, free: 5.395 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.042e-05/0.3771, allocations: 4.047 kB / 1.372 GB, free: 5.391 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.299e-05/0.3772, allocations: 7.984 kB / 1.372 GB, free: 5.383 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-06/0.3772, allocations: 0 / 1.372 GB, free: 5.383 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002672/0.3774, allocations: 241.2 kB / 1.373 GB, free: 5.145 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3774, allocations: 0 / 1.373 GB, free: 5.145 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002627/0.3777, allocations: 55.73 kB / 1.373 GB, free: 5.09 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 (couTru.y,couTru.intEqu.y,couTruAllFal.y,couTruAllFal.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.0001235/0.3778, allocations: 101.9 kB / 1.373 GB, free: 4.984 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002303/0.378, allocations: 107.8 kB / 1.373 GB, free: 4.879 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3781, allocations: 0 / 1.373 GB, free: 4.879 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.804e-05/0.3781, allocations: 12.47 kB / 1.373 GB, free: 4.867 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.3783, allocations: 33.8 kB / 1.373 GB, free: 4.836 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008894/0.3792, allocations: 0.4995 MB / 1.373 GB, free: 4.297 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.3794, allocations: 191.3 kB / 1.374 GB, free: 4.09 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.429e-05/0.3795, allocations: 15.44 kB / 1.374 GB, free: 4.074 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/0.3795, allocations: 4 kB / 1.374 GB, free: 4.07 MB / 1.061 GB Notification: Performance of Templates: time 0.005627/0.3851, allocations: 3.186 MB / 1.377 GB, free: 0.8828 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.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: 11.461328031029552]