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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 115.6 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.436/1.436, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.875/2.875, allocations: 0.5003 GB / 0.8026 GB, free: 6.746 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.91 kB / 1.165 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8927/0.8946, allocations: 179 MB / 1.34 GB, free: 16.23 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.001994/0.8966, allocations: 0.863 MB / 1.341 GB, free: 15.68 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002576/0.8969, allocations: 89.27 kB / 1.341 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.75e-05/0.897, allocations: 7.938 kB / 1.341 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.8971, allocations: 26.45 kB / 1.341 GB, free: 15.59 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.8972, allocations: 16.02 kB / 1.341 GB, free: 15.57 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 7.234e-05/0.8973, allocations: 40.11 kB / 1.341 GB, free: 15.55 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002619/0.8975, allocations: 250 kB / 1.341 GB, free: 15.44 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.8978, allocations: 235 kB / 1.342 GB, free: 15.35 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.8979, allocations: 138.9 kB / 1.342 GB, free: 15.27 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.8981, allocations: 139.2 kB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.708e-05/0.8981, allocations: 33.16 kB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.092e-05/0.8982, allocations: 32.38 kB / 1.342 GB, free: 15.2 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.071e-05/0.8983, allocations: 87.55 kB / 1.342 GB, free: 15.14 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.8984, allocations: 158.2 kB / 1.342 GB, free: 15.02 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0004315/0.8988, allocations: 467.1 kB / 1.343 GB, free: 14.84 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.8988, allocations: 0 / 1.343 GB, free: 14.84 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8988, allocations: 1.562 kB / 1.343 GB, free: 14.84 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.416e-05/0.8988, allocations: 0 / 1.343 GB, free: 14.84 MB / 1.061 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.0006111/0.8994, allocations: 0.6012 MB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.8995, allocations: 10.88 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.908e-05/0.8995, allocations: 12.12 kB / 1.343 GB, free: 14.31 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.026e-05/0.8996, allocations: 71.67 kB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.8996, allocations: 48.25 kB / 1.343 GB, free: 14.23 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.9, allocations: 331.4 kB / 1.344 GB, free: 13.96 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/0.9, allocations: 33.02 kB / 1.344 GB, free: 13.94 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.31e-05/0.9001, allocations: 34.38 kB / 1.344 GB, free: 13.93 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005825/0.9007, allocations: 405.4 kB / 1.344 GB, free: 13.76 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.9007, allocations: 0 / 1.344 GB, free: 13.76 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/0.9007, allocations: 10.75 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.9007, allocations: 8.25 kB / 1.344 GB, free: 13.75 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.9011, allocations: 303.9 kB / 1.344 GB, free: 13.66 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.9024, allocations: 1.057 MB / 1.345 GB, free: 13 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.9026, allocations: 86.11 kB / 1.346 GB, free: 12.94 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.621e-05/0.9026, allocations: 47.89 kB / 1.346 GB, free: 12.91 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.9027, allocations: 6.062 kB / 1.346 GB, free: 12.9 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.9027, allocations: 36.5 kB / 1.346 GB, free: 12.86 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.9027, allocations: 0 / 1.346 GB, free: 12.86 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003245/0.903, allocations: 175.8 kB / 1.346 GB, free: 12.77 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/0.903, allocations: 79.28 kB / 1.346 GB, free: 12.67 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005303/0.9036, allocations: 0.5081 MB / 1.346 GB, free: 12.45 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.9036, allocations: 25.7 kB / 1.346 GB, free: 12.42 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.9037, allocations: 205 kB / 1.347 GB, free: 12.25 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.9037, allocations: 16.14 kB / 1.347 GB, free: 12.23 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.914e-05/0.9038, allocations: 57.31 kB / 1.347 GB, free: 12.2 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.955e-05/0.9038, allocations: 352 kB / 1.347 GB, free: 11.87 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.904, allocations: 64.92 kB / 1.347 GB, free: 11.85 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.9041, allocations: 89.72 kB / 1.347 GB, free: 11.8 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.9042, allocations: 118.2 kB / 1.347 GB, free: 11.74 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.9042, allocations: 0 / 1.347 GB, free: 11.74 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002799/0.9045, allocations: 209.8 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.9045, allocations: 6.109 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.9045, allocations: 4 kB / 1.347 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.9045, allocations: 5.219 kB / 1.347 GB, free: 11.63 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.9047, allocations: 27.48 kB / 1.347 GB, free: 11.63 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.9047, allocations: 1.609 kB / 1.347 GB, free: 11.63 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.364e-05/0.9048, allocations: 36.92 kB / 1.348 GB, free: 11.61 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.9048, allocations: 6.891 kB / 1.348 GB, free: 11.61 MB / 1.061 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.0001572/0.9049, allocations: 205.1 kB / 1.348 GB, free: 11.45 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.241e-05/0.905, allocations: 34.78 kB / 1.348 GB, free: 11.43 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.9052, allocations: 118.7 kB / 1.348 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.9052, allocations: 1.625 kB / 1.348 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.9052, allocations: 0.6562 kB / 1.348 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.9052, allocations: 1.25 kB / 1.348 GB, free: 11.35 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004474/0.9057, allocations: 0.6558 MB / 1.349 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.9057, allocations: 5.719 kB / 1.349 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.088e-05/0.9057, allocations: 4.906 kB / 1.349 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.9057, allocations: 1 kB / 1.349 GB, free: 10.78 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.064e-06/0.9057, allocations: 10.28 kB / 1.349 GB, free: 10.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.9057, allocations: 1.469 kB / 1.349 GB, free: 10.77 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.9057, allocations: 0.9688 kB / 1.349 GB, free: 10.77 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.9058, allocations: 142.6 kB / 1.349 GB, free: 10.64 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.361e-05/0.9059, allocations: 123.6 kB / 1.349 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.9059, allocations: 3.047 kB / 1.349 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.175e-05/0.906, allocations: 2.875 kB / 1.349 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.906, allocations: 3.828 kB / 1.349 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-06/0.906, allocations: 6.656 kB / 1.349 GB, free: 10.51 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003885/0.9064, allocations: 389.9 kB / 1.349 GB, free: 10.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.9064, allocations: 1.469 kB / 1.349 GB, free: 10.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002398/0.9066, allocations: 44.55 kB / 1.349 GB, free: 10.33 MB / 1.061 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.0002968/0.9069, allocations: 0.6668 MB / 1.35 GB, free: 9.68 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002116/0.9071, allocations: 103.4 kB / 1.35 GB, free: 9.645 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9071, allocations: 1.188 kB / 1.35 GB, free: 9.645 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.52e-05/0.9072, allocations: 16.86 kB / 1.35 GB, free: 9.637 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.9074, allocations: 32.69 kB / 1.35 GB, free: 9.617 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.9104, allocations: 2.905 MB / 1.353 GB, free: 7.867 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.9107, allocations: 0.7919 MB / 1.354 GB, free: 7.156 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001233/0.9108, allocations: 62.19 kB / 1.354 GB, free: 7.148 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.9109, allocations: 93.66 kB / 1.354 GB, free: 7.082 MB / 1.061 GB Notification: Performance of SimCode: time 5.21e-07/0.9109, allocations: 0 / 1.354 GB, free: 7.082 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.9356, allocations: 5.739 MB / 1.359 GB, free: 6.383 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/9.001, allocations: 15.81 kB / 1.359 GB, free: 6.375 MB / 1.061 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --timeout=800 --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) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.229869547998533]