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.00115/0.00115, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.009374/0.009374, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.405/1.405, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.844/2.844, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003841, allocations: 9 kB / 0.9028 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3463, allocations: 159.6 MB / 1.059 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.001201/0.3476, allocations: 0.579 MB / 1.059 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002719/0.3479, allocations: 83.7 kB / 1.059 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.818e-05/0.348, allocations: 4 kB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.3481, allocations: 11.86 kB / 1.059 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.3482, allocations: 11.92 kB / 1.059 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.552e-05/0.3483, allocations: 43.97 kB / 1.059 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002595/0.3486, allocations: 227.5 kB / 1.06 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003742/0.349, allocations: 290.3 kB / 1.06 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.174e-05/0.349, allocations: 67.59 kB / 1.06 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.3492, allocations: 91.31 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.3492, allocations: 4 kB / 1.06 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.3492, allocations: 8 kB / 1.06 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.154e-05/0.3493, allocations: 51.66 kB / 1.06 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.3494, allocations: 136.8 kB / 1.06 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003341/0.3497, allocations: 406.5 kB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3497, allocations: 0 / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3498, allocations: 0 / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.002e-06/0.3498, allocations: 0 / 1.061 GB, free: 3.488 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.0005982/0.3504, allocations: 0.5266 MB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3504, allocations: 8.031 kB / 1.061 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.529e-05/0.3505, allocations: 40.47 kB / 1.061 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.3509, allocations: 332.1 kB / 1.061 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.521e-05/0.3509, allocations: 29.03 kB / 1.062 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.5e-05/0.351, allocations: 32.38 kB / 1.062 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006053/0.3516, allocations: 404.2 kB / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3516, allocations: 192 / 1.062 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.221e-05/0.3517, allocations: 19.94 kB / 1.062 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.3517, allocations: 8 kB / 1.062 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.3521, allocations: 307.5 kB / 1.062 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.3535, allocations: 1.049 MB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.3536, allocations: 89.16 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.195e-05/0.3537, allocations: 49.8 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.3538, allocations: 7.984 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.602e-05/0.3538, allocations: 30.56 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.3538, allocations: 3.938 kB / 1.063 GB, free: 396 kB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0003241/0.3541, allocations: 161.2 kB / 1.064 GB, free: 228 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.3542, allocations: 88.98 kB / 1.064 GB, free: 120 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005609/0.3548, allocations: 0.5052 MB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.3548, allocations: 29.7 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.3549, allocations: 207.5 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.355, allocations: 19.8 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.314e-05/0.355, allocations: 33.7 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.3552, allocations: 346.8 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.3553, allocations: 63.95 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.3554, allocations: 89.66 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.3556, allocations: 117.5 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3556, allocations: 4 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002957/0.3559, allocations: 205.2 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3559, allocations: 5.875 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.3559, allocations: 0 / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3559, allocations: 4 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001449/0.3561, allocations: 31.86 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3561, allocations: 4 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.527e-05/0.3562, allocations: 35.53 kB / 1.065 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.3562, allocations: 11.98 kB / 1.065 GB, free: 14.38 MB / 0.8262 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.0001941/0.3564, allocations: 199.5 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.064e-05/0.3565, allocations: 35.56 kB / 1.066 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.3567, allocations: 114 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.3567, allocations: 3.938 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.3567, allocations: 4 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3567, allocations: 4 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.3573, allocations: 0.6525 MB / 1.066 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3573, allocations: 7.938 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.12e-05/0.3573, allocations: 4 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3573, allocations: 192 / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.3573, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.74e-06/0.3574, allocations: 20 kB / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3574, allocations: 384 / 1.066 GB, free: 13.25 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.3575, allocations: 127.2 kB / 1.066 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3576, allocations: 128.7 kB / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.3577, allocations: 0 / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.404e-05/0.3577, allocations: 11.98 kB / 1.067 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.408e-05/0.3577, allocations: 11.94 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.3578, allocations: 0 / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000405/0.3582, allocations: 391 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3582, allocations: 0 / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002478/0.3584, allocations: 35.91 kB / 1.067 GB, free: 12.52 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.0001202/0.3586, allocations: 103.2 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002055/0.3588, allocations: 107.9 kB / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3588, allocations: 0 / 1.067 GB, free: 12.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.818e-05/0.3588, allocations: 15.94 kB / 1.067 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.3591, allocations: 37.48 kB / 1.067 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007422/0.3599, allocations: 0.5747 MB / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.3602, allocations: 0.7912 MB / 1.069 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001029/0.3603, allocations: 58.92 kB / 1.069 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.194e-05/0.3604, allocations: 27.44 kB / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of SimCode: time 1.673e-06/0.3604, allocations: 0 / 1.069 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of Templates: time 0.004871/0.3653, allocations: 1.878 MB / 1.071 GB, free: 8.863 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