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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.179/1.179, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.448/2.448, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001144/0.001144, allocations: 64.36 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2315, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.001961/0.2335, allocations: 0.8704 MB / 1.054 GB, free: 7.383 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002393/0.2338, allocations: 87.7 kB / 1.054 GB, free: 7.297 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.031e-05/0.2339, allocations: 7.938 kB / 1.054 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.234, allocations: 27.73 kB / 1.054 GB, free: 7.262 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.2341, allocations: 15.84 kB / 1.054 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 7.256e-05/0.2342, allocations: 39.97 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.2344, allocations: 247.5 kB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003208/0.2348, allocations: 294.3 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.2349, allocations: 131.5 kB / 1.055 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.235, allocations: 139.3 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.861e-05/0.2351, allocations: 36 kB / 1.055 GB, free: 6.375 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 3.859e-05/0.2351, allocations: 32 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.2352, allocations: 87.72 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.2353, allocations: 159.1 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.2356, allocations: 434.6 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2356, allocations: 3.938 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.092e-06/0.2356, allocations: 0 / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.787e-06/0.2356, allocations: 0 / 1.055 GB, free: 5.672 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.0005592/0.2362, allocations: 0.5928 MB / 1.056 GB, free: 5.027 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 2.905e-05/0.2362, allocations: 8.625 kB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.912e-05/0.2363, allocations: 70.72 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.2364, allocations: 44.47 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.2367, allocations: 332.1 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/0.2367, allocations: 33.03 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.2368, allocations: 32.38 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004916/0.2373, allocations: 400.2 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2373, allocations: 7.875 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.2373, allocations: 12 kB / 1.057 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.2373, allocations: 8 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004032/0.2377, allocations: 307.5 kB / 1.057 GB, free: 3.738 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.2389, allocations: 1.057 MB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.239, allocations: 89.16 kB / 1.058 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.405e-05/0.2391, allocations: 49.8 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.2391, allocations: 3.984 kB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.2391, allocations: 34.56 kB / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2391, allocations: 0 / 1.058 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0002761/0.2394, allocations: 169.1 kB / 1.059 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.2394, allocations: 77.11 kB / 1.059 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004478/0.2399, allocations: 0.5091 MB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.2399, allocations: 29.7 kB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.24, allocations: 207.5 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.266e-05/0.24, allocations: 11.81 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.417e-05/0.2401, allocations: 61.69 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.915e-05/0.2402, allocations: 338.8 kB / 1.06 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.971e-05/0.2403, allocations: 71.95 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.2404, allocations: 90.53 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001336/0.2406, allocations: 109.7 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2406, allocations: 0 / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002572/0.2408, allocations: 217 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.2409, allocations: 5.25 kB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2409, allocations: 8 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.2409, allocations: 3.938 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.241, allocations: 27.98 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.241, allocations: 7.938 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.777e-05/0.2411, allocations: 31.62 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2411, allocations: 8 kB / 1.06 GB, free: 400 kB / 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.0001539/0.2413, allocations: 203.5 kB / 1.06 GB, free: 188 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.157e-05/0.2413, allocations: 31.53 kB / 1.061 GB, free: 156 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/0.2415, allocations: 114.4 kB / 1.061 GB, free: 28 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.2415, allocations: 7.938 kB / 1.061 GB, free: 20 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2416, allocations: 3.938 kB / 1.061 GB, free: 16 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2416, allocations: 3.984 kB / 1.061 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004554/0.242, allocations: 0.6604 MB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.242, allocations: 0 / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.143e-05/0.2421, allocations: 4 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2421, allocations: 0 / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.27e-06/0.2421, allocations: 0 / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2421, allocations: 4 kB / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2421, allocations: 0 / 1.061 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/0.2422, allocations: 135.3 kB / 1.061 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.268e-05/0.2423, allocations: 124.6 kB / 1.062 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.2423, allocations: 0 / 1.062 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.012e-05/0.2424, allocations: 7.984 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.2424, allocations: 4 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.2424, allocations: 8 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003504/0.2428, allocations: 391 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2428, allocations: 0 / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002196/0.243, allocations: 32 kB / 1.062 GB, free: 14.54 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.0003275/0.2433, allocations: 0.6732 MB / 1.063 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001773/0.2435, allocations: 111.8 kB / 1.063 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2435, allocations: 0 / 1.063 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.523e-05/0.2436, allocations: 15.94 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.2438, allocations: 29.8 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.2464, allocations: 2.929 MB / 1.066 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.2467, allocations: 0.7792 MB / 1.066 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.295e-05/0.2468, allocations: 66.92 kB / 1.066 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.2469, allocations: 91.41 kB / 1.067 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2469, allocations: 0 / 1.067 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6971/0.944, allocations: 5.563 MB / 1.072 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.531/8.475, allocations: 14.38 kB / 1.072 GB, free: 4.238 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.fmu > 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