Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001402/0.001402, allocations: 75.75 kB / 19.76 MB, free: 1.875 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.001577/0.001577, allocations: 155.7 kB / 23.01 MB, free: 4.605 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.48/1.48, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.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 2.811/2.811, allocations: 377.9 MB / 0.6228 GB, free: 12.61 MB / 0.5919 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.CountTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|couTru.y|couTruAllFal.y",fileNamePrefix="Buildings_12_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_12_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.002448/0.002448, allocations: 67.89 kB / 0.9819 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9895/0.992, allocations: 176.1 MB / 1.154 GB, free: 33.31 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002042/0.994, allocations: 0.8362 MB / 1.155 GB, free: 32.8 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002889/0.9943, allocations: 99.64 kB / 1.155 GB, free: 32.72 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.363e-05/0.9944, allocations: 2.781 kB / 1.155 GB, free: 32.72 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.9945, allocations: 21.95 kB / 1.155 GB, free: 32.71 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001448/0.9947, allocations: 17.83 kB / 1.155 GB, free: 32.7 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 8.412e-05/0.9948, allocations: 44.2 kB / 1.155 GB, free: 32.67 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002348/0.995, allocations: 254.1 kB / 1.155 GB, free: 32.55 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.9953, allocations: 171.8 kB / 1.155 GB, free: 32.47 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.9954, allocations: 133.5 kB / 1.155 GB, free: 32.4 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.9955, allocations: 149.8 kB / 1.156 GB, free: 32.32 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 4.706e-05/0.9956, allocations: 32.81 kB / 1.156 GB, free: 32.32 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.9956, allocations: 32.81 kB / 1.156 GB, free: 32.32 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.696e-05/0.9957, allocations: 87.83 kB / 1.156 GB, free: 32.26 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 9.536e-05/0.9958, allocations: 110.6 kB / 1.156 GB, free: 32.19 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.9961, allocations: 472.6 kB / 1.156 GB, free: 32.01 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.9961, allocations: 0 / 1.156 GB, free: 32.01 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.573e-06/0.9961, allocations: 0 / 1.156 GB, free: 32.01 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.313e-05/0.9962, allocations: 0 / 1.156 GB, free: 32.01 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.0005942/0.9967, allocations: 0.5294 MB / 1.157 GB, free: 31.57 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.9968, allocations: 10.66 kB / 1.157 GB, free: 31.57 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.172e-05/0.9968, allocations: 47.31 kB / 1.157 GB, free: 31.55 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.9972, allocations: 269.6 kB / 1.157 GB, free: 31.34 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.888e-05/0.9973, allocations: 39.92 kB / 1.157 GB, free: 31.32 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.9973, allocations: 30.16 kB / 1.157 GB, free: 31.32 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.9978, allocations: 401 kB / 1.158 GB, free: 31.15 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.9978, allocations: 192 / 1.158 GB, free: 31.15 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.9978, allocations: 14.91 kB / 1.158 GB, free: 31.14 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.9978, allocations: 13 kB / 1.158 GB, free: 31.14 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003766/0.9982, allocations: 313.1 kB / 1.158 GB, free: 31.04 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.9993, allocations: 0.8314 MB / 1.159 GB, free: 30.51 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.9994, allocations: 88.34 kB / 1.159 GB, free: 30.44 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.359e-05/0.9994, allocations: 48.36 kB / 1.159 GB, free: 30.41 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.9995, allocations: 0 / 1.159 GB, free: 30.41 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.9995, allocations: 37.53 kB / 1.159 GB, free: 30.37 MB / 1.076 GB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.9995, allocations: 0 / 1.159 GB, free: 30.37 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0003002/0.9998, allocations: 159.4 kB / 1.159 GB, free: 30.29 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.9998, allocations: 77.11 kB / 1.159 GB, free: 30.19 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002894/1, allocations: 347.5 kB / 1.159 GB, free: 30 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/1, allocations: 25.7 kB / 1.159 GB, free: 29.97 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/1, allocations: 212.6 kB / 1.16 GB, free: 29.79 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 1.273e-05/1, allocations: 10.92 kB / 1.16 GB, free: 29.79 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/1, allocations: 78.89 kB / 1.16 GB, free: 29.74 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 6.644e-05/1, allocations: 334.2 kB / 1.16 GB, free: 29.42 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-05/1.001, allocations: 69.72 kB / 1.16 GB, free: 29.4 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/1.001, allocations: 85.56 kB / 1.16 GB, free: 29.36 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/1.001, allocations: 117.2 kB / 1.16 GB, free: 29.3 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/1.001, allocations: 7.938 kB / 1.16 GB, free: 29.29 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002387/1.001, allocations: 197.4 kB / 1.16 GB, free: 29.2 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/1.001, allocations: 6.219 kB / 1.161 GB, free: 29.2 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/1.001, allocations: 0 / 1.161 GB, free: 29.2 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.148e-05/1.001, allocations: 2.938 kB / 1.161 GB, free: 29.2 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/1.001, allocations: 27.83 kB / 1.161 GB, free: 29.19 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/1.001, allocations: 6.812 kB / 1.161 GB, free: 29.19 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.328e-05/1.001, allocations: 17.28 kB / 1.161 GB, free: 29.18 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/1.001, allocations: 8.969 kB / 1.161 GB, free: 29.18 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 (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.00016/1.001, allocations: 207.8 kB / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/1.001, allocations: 16.5 kB / 1.161 GB, free: 29.02 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001781/1.002, allocations: 109.6 kB / 1.161 GB, free: 28.93 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/1.002, allocations: 3.938 kB / 1.161 GB, free: 28.93 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/1.002, allocations: 6.875 kB / 1.161 GB, free: 28.92 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/1.002, allocations: 3.328 kB / 1.161 GB, free: 28.92 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003483/1.002, allocations: 0.5525 MB / 1.161 GB, free: 28.45 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.002, allocations: 4.031 kB / 1.161 GB, free: 28.44 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.96e-05/1.002, allocations: 5.75 kB / 1.161 GB, free: 28.44 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/1.002, allocations: 3.938 kB / 1.161 GB, free: 28.44 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/1.002, allocations: 2.906 kB / 1.161 GB, free: 28.44 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/1.002, allocations: 0 / 1.161 GB, free: 28.44 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.002, allocations: 6.172 kB / 1.161 GB, free: 28.44 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.63e-05/1.002, allocations: 112.3 kB / 1.162 GB, free: 28.33 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.313e-05/1.002, allocations: 28.36 kB / 1.162 GB, free: 28.31 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/1.002, allocations: 3.938 kB / 1.162 GB, free: 28.3 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.898e-05/1.002, allocations: 3 kB / 1.162 GB, free: 28.3 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/1.002, allocations: 10.3 kB / 1.162 GB, free: 28.3 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/1.002, allocations: 3.031 kB / 1.162 GB, free: 28.3 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001856/1.002, allocations: 235.4 kB / 1.162 GB, free: 28.18 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/1.002, allocations: 0 / 1.162 GB, free: 28.18 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002427/1.003, allocations: 59.27 kB / 1.162 GB, free: 28.16 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 (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 8.784e-05/1.003, allocations: 97.06 kB / 1.162 GB, free: 28.07 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001912/1.003, allocations: 105.1 kB / 1.162 GB, free: 28.03 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.003, allocations: 0 / 1.162 GB, free: 28.03 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.301e-05/1.003, allocations: 22.31 kB / 1.162 GB, free: 28.02 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/1.003, allocations: 26 kB / 1.162 GB, free: 28.01 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000605/1.004, allocations: 499.9 kB / 1.163 GB, free: 27.69 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/1.004, allocations: 182.8 kB / 1.163 GB, free: 27.6 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.762e-05/1.004, allocations: 39.89 kB / 1.163 GB, free: 27.6 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/1.004, allocations: 17.12 kB / 1.163 GB, free: 27.59 MB / 1.076 GB Notification: Performance of SimCode: time 3e-07/1.004, allocations: 0 / 1.163 GB, free: 27.59 MB / 1.076 GB Notification: Performance of Templates: time 0.004281/1.008, allocations: 1.19 MB / 1.164 GB, free: 27.4 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.26905623008497]