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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.005119/0.00512, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001512/0.001512, allocations: 193.9 kB / 16.67 MB, free: 5.969 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.916/2.916, allocations: 482.4 MB / 0.7548 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002023, allocations: 75.86 kB / 1.083 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2814, allocations: 162.2 MB / 1.241 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002142/0.2835, allocations: 0.8591 MB / 1.242 GB, free: 9.352 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002807/0.2838, allocations: 91.64 kB / 1.242 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.983e-05/0.2839, allocations: 4 kB / 1.242 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.2841, allocations: 15.8 kB / 1.242 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.2842, allocations: 23.8 kB / 1.242 GB, free: 9.219 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 7.936e-05/0.2843, allocations: 35.97 kB / 1.242 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003178/0.2846, allocations: 255.4 kB / 1.243 GB, free: 8.934 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.285, allocations: 290.3 kB / 1.243 GB, free: 8.645 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.2852, allocations: 127.6 kB / 1.243 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.2854, allocations: 151.2 kB / 1.243 GB, free: 8.371 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.969e-05/0.2854, allocations: 36 kB / 1.243 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.017e-05/0.2855, allocations: 32 kB / 1.243 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 9.176e-05/0.2856, allocations: 79.78 kB / 1.243 GB, free: 8.227 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.2857, allocations: 159.1 kB / 1.244 GB, free: 8.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.2862, allocations: 462 kB / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2862, allocations: 0 / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2862, allocations: 0 / 1.244 GB, free: 7.617 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.2863, allocations: 0 / 1.244 GB, free: 7.617 MB / 0.9981 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.0007833/0.287, allocations: 0.6077 MB / 1.245 GB, free: 6.953 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2871, allocations: 12.03 kB / 1.245 GB, free: 6.941 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.021e-05/0.2872, allocations: 70.72 kB / 1.245 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.781e-05/0.2872, allocations: 40.7 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.2877, allocations: 340.2 kB / 1.245 GB, free: 6.453 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.264e-05/0.2878, allocations: 37.02 kB / 1.245 GB, free: 6.418 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.2878, allocations: 36.36 kB / 1.245 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006477/0.2885, allocations: 396.2 kB / 1.245 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.2885, allocations: 7.938 kB / 1.245 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.2885, allocations: 16 kB / 1.245 GB, free: 5.961 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.2885, allocations: 8 kB / 1.245 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004959/0.289, allocations: 303.6 kB / 1.246 GB, free: 5.656 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001471/0.2905, allocations: 1.042 MB / 1.247 GB, free: 4.559 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.2907, allocations: 101.1 kB / 1.247 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.166e-05/0.2908, allocations: 45.78 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.2908, allocations: 4 kB / 1.247 GB, free: 4.387 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.2908, allocations: 34.56 kB / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.2908, allocations: 0 / 1.247 GB, free: 4.344 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003494/0.2912, allocations: 169.3 kB / 1.247 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.412e-05/0.2913, allocations: 89.05 kB / 1.247 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006283/0.2919, allocations: 0.5092 MB / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.2919, allocations: 25.7 kB / 1.248 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.2921, allocations: 203.8 kB / 1.248 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2921, allocations: 15.89 kB / 1.248 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/0.2922, allocations: 57.64 kB / 1.248 GB, free: 3.234 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.2924, allocations: 346.8 kB / 1.248 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.2925, allocations: 67.95 kB / 1.248 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.2926, allocations: 85.67 kB / 1.248 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001816/0.2928, allocations: 113.6 kB / 1.249 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2928, allocations: 0 / 1.249 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003296/0.2932, allocations: 209.3 kB / 1.249 GB, free: 2.402 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.2932, allocations: 9.547 kB / 1.249 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2932, allocations: 384 / 1.249 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.2932, allocations: 7.938 kB / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.2934, allocations: 31.88 kB / 1.249 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2934, allocations: 8 kB / 1.249 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.158e-05/0.2935, allocations: 31.72 kB / 1.249 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2935, allocations: 8 kB / 1.249 GB, free: 2.309 MB / 0.9981 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.0002143/0.2937, allocations: 200 kB / 1.249 GB, free: 2.102 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.562e-05/0.2938, allocations: 39.77 kB / 1.249 GB, free: 2.062 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002206/0.294, allocations: 118 kB / 1.249 GB, free: 1.938 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.294, allocations: 7.922 kB / 1.249 GB, free: 1.93 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2941, allocations: 4 kB / 1.249 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2941, allocations: 0 / 1.249 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006328/0.2947, allocations: 0.6525 MB / 1.25 GB, free: 1.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2947, allocations: 4.188 kB / 1.25 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.326e-05/0.2947, allocations: 8 kB / 1.25 GB, free: 1.191 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.2948, allocations: 7.984 kB / 1.25 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.2948, allocations: 0 / 1.25 GB, free: 1.184 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2948, allocations: 3.938 kB / 1.25 GB, free: 1.18 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2948, allocations: 4 kB / 1.25 GB, free: 1.176 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.2949, allocations: 131.4 kB / 1.25 GB, free: 1.02 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.2951, allocations: 120.9 kB / 1.25 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.2951, allocations: 4 kB / 1.25 GB, free: 0.8789 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.666e-05/0.2952, allocations: 0 / 1.25 GB, free: 0.8789 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.367e-05/0.2952, allocations: 4 kB / 1.25 GB, free: 0.875 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2952, allocations: 15.94 kB / 1.25 GB, free: 0.8594 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004638/0.2957, allocations: 383 kB / 1.251 GB, free: 500 kB / 0.9981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2957, allocations: 4 kB / 1.251 GB, free: 496 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002577/0.2959, allocations: 47.89 kB / 1.251 GB, free: 448 kB / 0.9981 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.4644/0.7604, allocations: 0.6615 MB / 1.251 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002912/0.7607, allocations: 110 kB / 1.251 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.7607, allocations: 0.9375 kB / 1.251 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.776e-05/0.7608, allocations: 18.38 kB / 1.251 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.7611, allocations: 35.7 kB / 1.251 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.764, allocations: 2.906 MB / 1.254 GB, free: 13.28 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.7642, allocations: 0.7903 MB / 1.255 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001137/0.7643, allocations: 61.72 kB / 1.255 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.7644, allocations: 94.58 kB / 1.255 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/0.7644, allocations: 0.6562 kB / 1.255 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.791, allocations: 5.67 MB / 1.261 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/8.505, allocations: 6.812 kB / 1.261 GB, free: 11.98 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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