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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|couTru.y|couTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 111.8 kB / 16.42 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 189.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.51/2.51, allocations: 461.9 MB / 0.7355 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 67.89 kB / 1.055 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6584/0.6597, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002071/0.6618, allocations: 0.849 MB / 1.209 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002926/0.6621, allocations: 99.64 kB / 1.209 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.454e-05/0.6622, allocations: 0 / 1.209 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.6623, allocations: 23.73 kB / 1.209 GB, free: 12.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.6625, allocations: 23.84 kB / 1.209 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 8.033e-05/0.6625, allocations: 39.97 kB / 1.209 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002735/0.6628, allocations: 255.4 kB / 1.21 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.6633, allocations: 290.3 kB / 1.21 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.6634, allocations: 139.5 kB / 1.21 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.6636, allocations: 139.3 kB / 1.21 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.967e-05/0.6637, allocations: 32 kB / 1.21 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.421e-05/0.6637, allocations: 32 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 7.509e-05/0.6638, allocations: 83.78 kB / 1.21 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.664, allocations: 159.1 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004073/0.6644, allocations: 458.3 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6644, allocations: 0 / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.883e-06/0.6644, allocations: 4 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.6644, allocations: 0 / 1.211 GB, free: 11.03 MB / 0.9356 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.0006614/0.6651, allocations: 0.5981 MB / 1.212 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.6651, allocations: 8.031 kB / 1.212 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.632e-05/0.6652, allocations: 36.47 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003819/0.6656, allocations: 328.2 kB / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.6656, allocations: 45.02 kB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.6657, allocations: 28.38 kB / 1.212 GB, free: 9.906 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.6663, allocations: 404.2 kB / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.6663, allocations: 192 / 1.212 GB, free: 9.5 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.6663, allocations: 15.94 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.6663, allocations: 8 kB / 1.212 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004303/0.6668, allocations: 303.6 kB / 1.213 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.6681, allocations: 1.049 MB / 1.214 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001294/0.6682, allocations: 89.16 kB / 1.214 GB, free: 7.969 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.006e-05/0.6683, allocations: 49.78 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.6683, allocations: 0 / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.6683, allocations: 34.56 kB / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.6683, allocations: 0 / 1.214 GB, free: 7.871 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6): time 0.0003104/0.6686, allocations: 173.5 kB / 1.214 GB, free: 7.695 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.6687, allocations: 85.03 kB / 1.214 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005053/0.6692, allocations: 0.5013 MB / 1.215 GB, free: 7.086 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.6692, allocations: 29.64 kB / 1.215 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.6694, allocations: 211.5 kB / 1.215 GB, free: 6.84 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.6694, allocations: 19.73 kB / 1.215 GB, free: 6.82 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-05/0.6695, allocations: 53.7 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.6696, allocations: 346.8 kB / 1.215 GB, free: 6.414 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.6697, allocations: 67.95 kB / 1.215 GB, free: 6.348 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.6698, allocations: 91.39 kB / 1.215 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.67, allocations: 113.6 kB / 1.215 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.67, allocations: 0 / 1.215 GB, free: 6.137 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002814/0.6703, allocations: 213.2 kB / 1.216 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.6703, allocations: 4 kB / 1.216 GB, free: 5.918 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.6703, allocations: 4 kB / 1.216 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.6703, allocations: 0 / 1.216 GB, free: 5.914 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.6705, allocations: 31.92 kB / 1.216 GB, free: 5.883 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.6705, allocations: 3.938 kB / 1.216 GB, free: 5.879 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.681e-05/0.6706, allocations: 35.59 kB / 1.216 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.6706, allocations: 4.188 kB / 1.216 GB, free: 5.84 MB / 0.9356 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.0001827/0.6708, allocations: 207.5 kB / 1.216 GB, free: 5.629 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.6709, allocations: 31.56 kB / 1.216 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002214/0.6711, allocations: 118 kB / 1.216 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.6711, allocations: 4 kB / 1.216 GB, free: 5.465 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6711, allocations: 3.938 kB / 1.216 GB, free: 5.461 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.6712, allocations: 120.7 kB / 1.216 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.6712, allocations: 4 kB / 1.216 GB, free: 5.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.005e-05/0.6713, allocations: 8.062 kB / 1.216 GB, free: 5.312 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.6713, allocations: 3.938 kB / 1.216 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001161/0.6714, allocations: 204.2 kB / 1.216 GB, free: 5.102 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001836/0.6716, allocations: 337.5 kB / 1.217 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.965e-05/0.6717, allocations: 20.05 kB / 1.217 GB, free: 4.734 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003703/0.672, allocations: 375.1 kB / 1.217 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of Backend: time 4.61e-07/0.672, allocations: 0 / 1.217 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005424/0.6726, allocations: 174.3 kB / 1.217 GB, free: 4.191 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0008514/0.6735, allocations: 0.9586 MB / 1.218 GB, free: 3.191 MB / 0.9356 GB Notification: Performance of Templates: time 0.005564/0.679, allocations: 2.456 MB / 1.221 GB, free: 0.75 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1) 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) Reference file matches