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.001382/0.001382, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001625/0.001625, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.525/1.525, allocations: 230.6 MB / 256 MB, free: 7.781 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 3.299/3.299, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 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="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"}) [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.002123/0.002123, allocations: 67.14 kB / 1.186 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3585, allocations: 181.9 MB / 1.363 GB, free: 14.14 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002316/0.3608, allocations: 0.8438 MB / 1.364 GB, free: 13.29 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003196/0.3611, allocations: 95.69 kB / 1.364 GB, free: 13.2 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.965e-05/0.3612, allocations: 7.938 kB / 1.364 GB, free: 13.19 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.3613, allocations: 15.8 kB / 1.364 GB, free: 13.18 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.3615, allocations: 19.86 kB / 1.364 GB, free: 13.16 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 9.046e-05/0.3616, allocations: 35.97 kB / 1.364 GB, free: 13.12 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003273/0.3619, allocations: 259.4 kB / 1.365 GB, free: 12.87 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003277/0.3622, allocations: 166.8 kB / 1.365 GB, free: 12.7 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.3624, allocations: 135.5 kB / 1.365 GB, free: 12.57 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.3626, allocations: 155.2 kB / 1.365 GB, free: 12.41 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.677e-05/0.3627, allocations: 32 kB / 1.365 GB, free: 12.38 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.84e-05/0.3628, allocations: 32 kB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.3629, allocations: 83.78 kB / 1.365 GB, free: 12.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.3631, allocations: 123.3 kB / 1.365 GB, free: 12.15 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006527/0.3637, allocations: 466.3 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3637, allocations: 3.938 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of FrontEnd: time 3.226e-06/0.3637, allocations: 0 / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.191e-05/0.3637, allocations: 0 / 1.366 GB, free: 11.69 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.001068/0.3648, allocations: 0.5247 MB / 1.366 GB, free: 11.13 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 6.698e-05/0.3649, allocations: 16.03 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.365, allocations: 78.72 kB / 1.366 GB, free: 11.03 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.852e-05/0.3651, allocations: 36.7 kB / 1.366 GB, free: 10.99 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006229/0.3657, allocations: 270.5 kB / 1.367 GB, free: 10.7 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-05/0.3658, allocations: 37.02 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.283e-05/0.3658, allocations: 32.38 kB / 1.367 GB, free: 10.63 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007983/0.3666, allocations: 400 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.3667, allocations: 3.938 kB / 1.367 GB, free: 10.23 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.3667, allocations: 19.92 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.805e-05/0.3667, allocations: 8 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005795/0.3673, allocations: 299.8 kB / 1.367 GB, free: 9.906 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001713/0.369, allocations: 0.9615 MB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.3692, allocations: 89.16 kB / 1.368 GB, free: 8.789 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.782e-05/0.3693, allocations: 45.78 kB / 1.368 GB, free: 8.738 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3693, allocations: 4 kB / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.3693, allocations: 30.56 kB / 1.369 GB, free: 8.695 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.3693, allocations: 0 / 1.369 GB, free: 8.695 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003842/0.3697, allocations: 177.3 kB / 1.369 GB, free: 8.516 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/0.3698, allocations: 85.05 kB / 1.369 GB, free: 8.414 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007016/0.3705, allocations: 0.513 MB / 1.369 GB, free: 7.895 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3705, allocations: 25.7 kB / 1.369 GB, free: 7.863 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.3707, allocations: 203.8 kB / 1.369 GB, free: 7.66 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.627e-05/0.3708, allocations: 19.83 kB / 1.37 GB, free: 7.641 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.3709, allocations: 53.69 kB / 1.37 GB, free: 7.582 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002414/0.3711, allocations: 346.8 kB / 1.37 GB, free: 7.234 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.3712, allocations: 71.88 kB / 1.37 GB, free: 7.164 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.3714, allocations: 85.58 kB / 1.37 GB, free: 7.074 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001898/0.3716, allocations: 117.6 kB / 1.37 GB, free: 6.953 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.644e-06/0.3716, allocations: 4 kB / 1.37 GB, free: 6.949 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003255/0.3719, allocations: 213.3 kB / 1.37 GB, free: 6.734 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3719, allocations: 4 kB / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3719, allocations: 0 / 1.37 GB, free: 6.73 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.372, allocations: 7.922 kB / 1.37 GB, free: 6.723 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.3721, allocations: 27.94 kB / 1.37 GB, free: 6.695 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.3721, allocations: 4 kB / 1.37 GB, free: 6.691 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.363e-05/0.3722, allocations: 35.67 kB / 1.37 GB, free: 6.656 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/0.3722, allocations: 11.98 kB / 1.37 GB, free: 6.645 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.0002606/0.3725, allocations: 201 kB / 1.371 GB, free: 6.441 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.3725, allocations: 35.77 kB / 1.371 GB, free: 6.406 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.3728, allocations: 114.1 kB / 1.371 GB, free: 6.285 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.3728, allocations: 3.938 kB / 1.371 GB, free: 6.281 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3728, allocations: 4 kB / 1.371 GB, free: 6.277 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3728, allocations: 3.984 kB / 1.371 GB, free: 6.273 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000689/0.3735, allocations: 0.6011 MB / 1.371 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3735, allocations: 4.031 kB / 1.371 GB, free: 5.605 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.126e-05/0.3735, allocations: 8 kB / 1.371 GB, free: 5.598 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.3735, allocations: 4 kB / 1.371 GB, free: 5.594 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.3735, allocations: 0 / 1.371 GB, free: 5.594 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3735, allocations: 4.188 kB / 1.371 GB, free: 5.59 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3735, allocations: 4 kB / 1.371 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.3737, allocations: 140.3 kB / 1.372 GB, free: 5.422 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001085/0.3738, allocations: 43.75 kB / 1.372 GB, free: 5.379 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.3738, allocations: 4 kB / 1.372 GB, free: 5.375 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.194e-05/0.3739, allocations: 3.984 kB / 1.372 GB, free: 5.371 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.275e-05/0.3739, allocations: 15.94 kB / 1.372 GB, free: 5.355 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.3739, allocations: 4 kB / 1.372 GB, free: 5.352 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004582/0.3744, allocations: 387 kB / 1.372 GB, free: 4.973 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.3744, allocations: 0 / 1.372 GB, free: 4.973 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002668/0.3746, allocations: 43.89 kB / 1.372 GB, free: 4.93 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.0005181/0.3752, allocations: 0.6655 MB / 1.373 GB, free: 4.223 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002215/0.3754, allocations: 99.88 kB / 1.373 GB, free: 4.125 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3754, allocations: 4 kB / 1.373 GB, free: 4.121 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 3.016e-05/0.3754, allocations: 15.94 kB / 1.373 GB, free: 4.105 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.3757, allocations: 31.83 kB / 1.373 GB, free: 4.078 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.3792, allocations: 2.901 MB / 1.376 GB, free: 1.07 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.3794, allocations: 183.6 kB / 1.376 GB, free: 0.8672 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001144/0.3795, allocations: 58.92 kB / 1.376 GB, free: 0.8125 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3797, allocations: 95.41 kB / 1.376 GB, free: 0.7227 MB / 1.061 GB Notification: Performance of SimCode: time 3.81e-07/0.3797, allocations: 384 / 1.376 GB, free: 0.7227 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03811/0.4178, allocations: 6.333 MB / 1.382 GB, free: 10.55 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.76, allocations: 7.672 kB / 1.382 GB, free: 10.55 MB / 1.076 GB " [Timeout remaining time 288] (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: 18.603690582793206]