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.001324/0.001324, allocations: 102.6 kB / 16.27 MB, free: 6.414 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.001333/0.001333, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.358/1.358, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.672/2.672, allocations: 469.4 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 72 kB / 0.9088 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3182, allocations: 159.1 MB / 1.064 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002316/0.3205, allocations: 0.8477 MB / 1.065 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002868/0.3208, allocations: 95.64 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.863e-05/0.3209, allocations: 3.938 kB / 1.065 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.3211, allocations: 31.67 kB / 1.065 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.3212, allocations: 19.86 kB / 1.065 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 7.916e-05/0.3213, allocations: 39.97 kB / 1.065 GB, free: 13.98 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002609/0.3216, allocations: 251.5 kB / 1.065 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004021/0.322, allocations: 294.3 kB / 1.066 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.3221, allocations: 131.5 kB / 1.066 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.3223, allocations: 139.3 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.36e-05/0.3224, allocations: 32 kB / 1.066 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.3224, allocations: 36 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.029e-05/0.3225, allocations: 87.7 kB / 1.066 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.3226, allocations: 155.1 kB / 1.066 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.323, allocations: 442.6 kB / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.323, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.332e-06/0.323, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.323, allocations: 0 / 1.067 GB, free: 12.43 MB / 0.8419 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.0006701/0.3237, allocations: 0.5889 MB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.3238, allocations: 8.625 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.685e-05/0.3238, allocations: 40.47 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.3242, allocations: 336 kB / 1.068 GB, free: 11.38 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.3243, allocations: 41.02 kB / 1.068 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.3243, allocations: 32.38 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005681/0.3249, allocations: 400.2 kB / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.301e-05/0.3249, allocations: 192 / 1.068 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.3249, allocations: 19.88 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3249, allocations: 8 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.3254, allocations: 307.5 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001336/0.3267, allocations: 1.053 MB / 1.069 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.3269, allocations: 89.22 kB / 1.07 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.04e-05/0.327, allocations: 45.78 kB / 1.07 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.327, allocations: 7.938 kB / 1.07 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.327, allocations: 30.56 kB / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.327, allocations: 0 / 1.07 GB, free: 9.262 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0003252/0.3274, allocations: 173.2 kB / 1.07 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.3274, allocations: 81.05 kB / 1.07 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005243/0.3279, allocations: 0.5091 MB / 1.07 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.328, allocations: 25.7 kB / 1.07 GB, free: 8.445 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.3281, allocations: 207.5 kB / 1.071 GB, free: 8.238 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.353e-05/0.3281, allocations: 7.812 kB / 1.071 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.078e-05/0.3282, allocations: 57.69 kB / 1.071 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.3283, allocations: 346.8 kB / 1.071 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.3284, allocations: 67.95 kB / 1.071 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.3286, allocations: 85.67 kB / 1.071 GB, free: 7.664 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000157/0.3287, allocations: 117.5 kB / 1.071 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3287, allocations: 0 / 1.071 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003066/0.3291, allocations: 217 kB / 1.071 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.3291, allocations: 4 kB / 1.071 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.3291, allocations: 0 / 1.071 GB, free: 7.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.347e-05/0.3291, allocations: 4 kB / 1.071 GB, free: 7.316 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001352/0.3292, allocations: 35.92 kB / 1.072 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.3293, allocations: 0 / 1.072 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.654e-05/0.3294, allocations: 35.53 kB / 1.072 GB, free: 7.246 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.3294, allocations: 8 kB / 1.072 GB, free: 7.238 MB / 0.8419 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.0001844/0.3296, allocations: 200 kB / 1.072 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.407e-05/0.3296, allocations: 31.61 kB / 1.072 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002007/0.3298, allocations: 125.9 kB / 1.072 GB, free: 6.867 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.209e-06/0.3299, allocations: 7.938 kB / 1.072 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3299, allocations: 0 / 1.072 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.3299, allocations: 3.938 kB / 1.072 GB, free: 6.855 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005321/0.3304, allocations: 0.6527 MB / 1.073 GB, free: 6.133 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3304, allocations: 4 kB / 1.073 GB, free: 6.129 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-05/0.3305, allocations: 11.92 kB / 1.073 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3305, allocations: 0 / 1.073 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.3305, allocations: 0 / 1.073 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.3305, allocations: 4 kB / 1.073 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3305, allocations: 0 / 1.073 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.3306, allocations: 131.3 kB / 1.073 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.3307, allocations: 124.6 kB / 1.073 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.3308, allocations: 7.938 kB / 1.073 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.242e-05/0.3308, allocations: 4 kB / 1.073 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.357e-05/0.3309, allocations: 0 / 1.073 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.3309, allocations: 8 kB / 1.073 GB, free: 5.797 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000388/0.3313, allocations: 391 kB / 1.073 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3313, allocations: 4 kB / 1.073 GB, free: 5.41 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002367/0.3315, allocations: 39.91 kB / 1.073 GB, free: 5.371 MB / 0.8419 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.0001039/0.3316, allocations: 99.77 kB / 1.073 GB, free: 5.262 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002008/0.3318, allocations: 107.9 kB / 1.073 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.3319, allocations: 0 / 1.073 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.715e-05/0.3319, allocations: 19.92 kB / 1.073 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.3321, allocations: 39.52 kB / 1.073 GB, free: 5.105 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006814/0.3328, allocations: 0.5275 MB / 1.074 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.3332, allocations: 0.7948 MB / 1.075 GB, free: 3.719 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.036e-05/0.3332, allocations: 23.44 kB / 1.075 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3332, allocations: 0 / 1.075 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of Templates: time 0.459/0.7923, allocations: 3.76 MB / 1.078 GB, free: 22.22 MB / 0.8419 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