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.009021/0.009021, allocations: 100.4 kB / 15.73 MB, free: 6.023 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.001773/0.001773, allocations: 192.9 kB / 16.67 MB, free: 5.957 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.823/2.823, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 71.89 kB / 1.054 GB, free: 7.688 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2938/0.2961, allocations: 157.4 MB / 1.207 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.00211/0.2983, allocations: 0.8512 MB / 1.208 GB, free: 9.332 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003192/0.2986, allocations: 91.69 kB / 1.208 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2988, allocations: 3.938 kB / 1.208 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.2989, allocations: 23.8 kB / 1.208 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.2991, allocations: 15.86 kB / 1.208 GB, free: 9.199 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 9.289e-05/0.2992, allocations: 43.97 kB / 1.208 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002956/0.2995, allocations: 251.4 kB / 1.209 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.2999, allocations: 302.2 kB / 1.209 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.3001, allocations: 123.5 kB / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001786/0.3002, allocations: 151.2 kB / 1.209 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.3003, allocations: 32 kB / 1.209 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 4.4e-05/0.3004, allocations: 32 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.789e-05/0.3004, allocations: 83.78 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.3006, allocations: 155.1 kB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.301, allocations: 462.3 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.301, allocations: 4 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.533e-06/0.301, allocations: 0 / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.243e-05/0.301, allocations: 4 kB / 1.21 GB, free: 7.586 MB / 0.9669 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.0007523/0.3018, allocations: 0.5928 MB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.3018, allocations: 12.62 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.009e-05/0.3019, allocations: 74.72 kB / 1.21 GB, free: 6.844 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.066e-05/0.302, allocations: 40.47 kB / 1.211 GB, free: 6.805 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.3024, allocations: 332.1 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.216e-05/0.3025, allocations: 41.02 kB / 1.211 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.3025, allocations: 28.38 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005737/0.3031, allocations: 404.2 kB / 1.211 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.3031, allocations: 3.938 kB / 1.211 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.3031, allocations: 15.94 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.3032, allocations: 8 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004405/0.3036, allocations: 299.6 kB / 1.212 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.305, allocations: 1.049 MB / 1.213 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.3052, allocations: 93.16 kB / 1.213 GB, free: 4.434 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.766e-05/0.3052, allocations: 45.78 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3053, allocations: 4 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.3053, allocations: 34.56 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.3053, allocations: 0 / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0003302/0.3056, allocations: 169.1 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.3057, allocations: 77.11 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.3063, allocations: 0.5091 MB / 1.214 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.3063, allocations: 25.7 kB / 1.214 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.3064, allocations: 211.4 kB / 1.214 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.546e-05/0.3065, allocations: 11.91 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.948e-05/0.3065, allocations: 57.59 kB / 1.214 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.3067, allocations: 346.8 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.3068, allocations: 71.89 kB / 1.214 GB, free: 2.82 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001104/0.3069, allocations: 83.73 kB / 1.214 GB, free: 2.734 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001538/0.3071, allocations: 113.6 kB / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.3071, allocations: 0 / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002882/0.3074, allocations: 213.1 kB / 1.215 GB, free: 2.402 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3074, allocations: 11.98 kB / 1.215 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.3074, allocations: 0 / 1.215 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3074, allocations: 3.938 kB / 1.215 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.3076, allocations: 27.94 kB / 1.215 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3076, allocations: 0 / 1.215 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.519e-05/0.3077, allocations: 43.52 kB / 1.215 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.3077, allocations: 4.375 kB / 1.215 GB, free: 2.312 MB / 0.9669 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.0001867/0.3079, allocations: 207.5 kB / 1.215 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.803e-05/0.308, allocations: 31.62 kB / 1.215 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002151/0.3082, allocations: 114.2 kB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3082, allocations: 7.922 kB / 1.215 GB, free: 1.934 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3082, allocations: 3.938 kB / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.3082, allocations: 0 / 1.215 GB, free: 1.93 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.3087, allocations: 0.6604 MB / 1.216 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3088, allocations: 0 / 1.216 GB, free: 1.199 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.322e-05/0.3088, allocations: 4 kB / 1.216 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3088, allocations: 3.984 kB / 1.216 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.3088, allocations: 4 kB / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.338e-06/0.3088, allocations: 4 kB / 1.216 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3088, allocations: 128 / 1.216 GB, free: 1.184 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001325/0.309, allocations: 139.1 kB / 1.216 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.3091, allocations: 120.7 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.3091, allocations: 4 kB / 1.216 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.147e-05/0.3092, allocations: 4 kB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.989e-05/0.3092, allocations: 8 kB / 1.216 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.3092, allocations: 0 / 1.216 GB, free: 0.8672 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000385/0.3096, allocations: 391 kB / 1.216 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3096, allocations: 0 / 1.216 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002455/0.3098, allocations: 39.91 kB / 1.216 GB, free: 464 kB / 0.9669 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.0004072/0.3103, allocations: 0.6692 MB / 1.217 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002176/0.3105, allocations: 107.9 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3105, allocations: 0 / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 3.285e-05/0.3105, allocations: 20.12 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.3108, allocations: 29.56 kB / 1.217 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.3141, allocations: 2.913 MB / 1.22 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.3145, allocations: 0.7909 MB / 1.221 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001119/0.3147, allocations: 58.94 kB / 1.221 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3148, allocations: 87.41 kB / 1.221 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of SimCode: time 2.9e-07/0.3148, allocations: 0 / 1.221 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02346/0.3383, allocations: 5.733 MB / 1.227 GB, free: 6.035 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.097, allocations: 9.047 kB / 1.227 GB, free: 6.027 MB / 0.9825 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