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.001526/0.001526, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001927/0.001927, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.42/1.42, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.691/2.691, allocations: 461.9 MB / 0.7342 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001483, allocations: 64.34 kB / 0.8984 GB, free: 37.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3387, allocations: 157.4 MB / 1.052 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002605/0.3413, allocations: 0.9159 MB / 1.053 GB, free: 7.855 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002783/0.3416, allocations: 95.64 kB / 1.053 GB, free: 7.762 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.3418, allocations: 4 kB / 1.053 GB, free: 7.758 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.3419, allocations: 15.86 kB / 1.053 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.3421, allocations: 7.922 kB / 1.053 GB, free: 7.734 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 8.277e-05/0.3422, allocations: 39.98 kB / 1.053 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.3424, allocations: 239.4 kB / 1.053 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004084/0.3429, allocations: 282.3 kB / 1.054 GB, free: 7.184 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.343, allocations: 99.58 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.3431, allocations: 131.3 kB / 1.054 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.3432, allocations: 20 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.525e-05/0.3432, allocations: 20 kB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.758e-05/0.3433, allocations: 71.7 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.3435, allocations: 135.1 kB / 1.054 GB, free: 6.715 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003813/0.3439, allocations: 422.6 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3439, allocations: 0 / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3439, allocations: 0 / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.3439, allocations: 0 / 1.055 GB, free: 6.301 MB / 0.8106 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.0007391/0.3446, allocations: 0.5928 MB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3447, allocations: 12.03 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.549e-05/0.3448, allocations: 40.41 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003977/0.3452, allocations: 336.1 kB / 1.055 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.3452, allocations: 33.02 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.3453, allocations: 32.38 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006178/0.3459, allocations: 404.2 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3459, allocations: 192 / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.316e-05/0.346, allocations: 19.94 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.346, allocations: 8 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004516/0.3464, allocations: 299.6 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.3479, allocations: 1.053 MB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.3481, allocations: 93.16 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.668e-05/0.3482, allocations: 41.8 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.3482, allocations: 0 / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3482, allocations: 50.48 kB / 1.057 GB, free: 3.121 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 2.495e-06/0.3482, allocations: 3.984 kB / 1.057 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003495/0.3486, allocations: 161.2 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.3487, allocations: 84.98 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005625/0.3492, allocations: 0.5091 MB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.3493, allocations: 29.7 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.3494, allocations: 203.5 kB / 1.058 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.3495, allocations: 7.906 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.571e-05/0.3495, allocations: 53.61 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.3497, allocations: 354.8 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.3498, allocations: 63.95 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.3499, allocations: 87.84 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001666/0.3501, allocations: 121.5 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3501, allocations: 0 / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002976/0.3504, allocations: 205.2 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3504, allocations: 4 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.3505, allocations: 4 kB / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3505, allocations: 0 / 1.059 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.3507, allocations: 39.86 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3507, allocations: 0 / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.845e-05/0.3508, allocations: 35.53 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.3508, allocations: 4 kB / 1.059 GB, free: 1.109 MB / 0.8106 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.0002218/0.351, allocations: 207.5 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.933e-05/0.3511, allocations: 35.53 kB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002179/0.3513, allocations: 114 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.3513, allocations: 3.938 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.3513, allocations: 7.938 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3513, allocations: 4 kB / 1.06 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006052/0.3519, allocations: 0.6526 MB / 1.06 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.151e-05/0.352, allocations: 0 / 1.06 GB, free: 0 / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.591e-05/0.352, allocations: 4.125 kB / 1.06 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.352, allocations: 7.938 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.352, allocations: 4 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.352, allocations: 3.938 kB / 1.06 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3521, allocations: 4 kB / 1.06 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.3522, allocations: 127.4 kB / 1.06 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.3523, allocations: 120.6 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.3524, allocations: 3.938 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.253e-05/0.3524, allocations: 4 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.928e-05/0.3524, allocations: 12.11 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.3525, allocations: 4 kB / 1.061 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004264/0.3529, allocations: 395 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3529, allocations: 0 / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002488/0.3531, allocations: 36 kB / 1.061 GB, free: 15.24 MB / 0.8262 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.0001256/0.3533, allocations: 99.25 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002213/0.3535, allocations: 107.9 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3535, allocations: 0 / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.933e-05/0.3536, allocations: 19.94 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.3539, allocations: 29.92 kB / 1.061 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007828/0.3546, allocations: 0.5863 MB / 1.062 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.355, allocations: 0.7872 MB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001096/0.3551, allocations: 66.84 kB / 1.063 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.449e-05/0.3552, allocations: 23.44 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of SimCode: time 6.32e-07/0.3552, allocations: 0 / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of Templates: time 0.00513/0.3604, allocations: 1.912 MB / 1.065 GB, free: 11.54 MB / 0.8262 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/jenkins/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