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.001294/0.001294, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001403/0.001403, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.469/1.469, allocations: 230.6 MB / 256.8 MB, free: 7.953 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.278/3.278, allocations: 0.5003 GB / 0.8061 GB, free: 26.73 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="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.002024/0.002024, allocations: 66.98 kB / 1.171 GB, free: 19.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3556, allocations: 179 MB / 1.345 GB, free: 412 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002383/0.358, allocations: 0.8735 MB / 1.346 GB, free: 15.53 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002735/0.3582, allocations: 87.7 kB / 1.346 GB, free: 15.44 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.894e-05/0.3583, allocations: 7.938 kB / 1.346 GB, free: 15.43 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.3585, allocations: 23.78 kB / 1.346 GB, free: 15.41 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.3586, allocations: 15.86 kB / 1.346 GB, free: 15.39 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 8.463e-05/0.3587, allocations: 43.97 kB / 1.346 GB, free: 15.35 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003247/0.359, allocations: 255.4 kB / 1.347 GB, free: 15.1 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.3593, allocations: 179.1 kB / 1.347 GB, free: 14.92 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.3595, allocations: 127.6 kB / 1.347 GB, free: 14.8 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.3597, allocations: 147.2 kB / 1.347 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.342e-05/0.3597, allocations: 32 kB / 1.347 GB, free: 14.62 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.997e-05/0.3598, allocations: 36 kB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.714e-05/0.3599, allocations: 87.72 kB / 1.347 GB, free: 14.5 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.36, allocations: 151.1 kB / 1.347 GB, free: 14.35 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005034/0.3605, allocations: 470 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3605, allocations: 3.938 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3605, allocations: 0 / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.3605, allocations: 0 / 1.348 GB, free: 13.89 MB / 1.045 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.00076/0.3613, allocations: 0.5285 MB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3613, allocations: 8.031 kB / 1.348 GB, free: 13.32 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.414e-05/0.3614, allocations: 8.844 kB / 1.348 GB, free: 13.31 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.521e-05/0.3614, allocations: 74.72 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.202e-05/0.3615, allocations: 44.66 kB / 1.348 GB, free: 13.18 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004824/0.362, allocations: 267.2 kB / 1.349 GB, free: 12.9 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.757e-05/0.3621, allocations: 37.02 kB / 1.349 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.452e-05/0.3621, allocations: 28.38 kB / 1.349 GB, free: 12.84 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006691/0.3628, allocations: 411.7 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3628, allocations: 0 / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.3628, allocations: 20 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.3628, allocations: 8 kB / 1.349 GB, free: 12.39 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.3633, allocations: 291.8 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.3649, allocations: 1.02 MB / 1.35 GB, free: 11.04 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001642/0.365, allocations: 89.16 kB / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.418e-05/0.3651, allocations: 49.78 kB / 1.351 GB, free: 10.88 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.3651, allocations: 0 / 1.351 GB, free: 10.88 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.3652, allocations: 38.5 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.3652, allocations: 0 / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003917/0.3655, allocations: 165.7 kB / 1.351 GB, free: 10.66 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.3656, allocations: 85.05 kB / 1.351 GB, free: 10.56 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006115/0.3662, allocations: 0.5092 MB / 1.351 GB, free: 10.05 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.3662, allocations: 33.7 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.3664, allocations: 203.7 kB / 1.352 GB, free: 9.805 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.163e-05/0.3664, allocations: 19.84 kB / 1.352 GB, free: 9.785 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.749e-05/0.3665, allocations: 57.64 kB / 1.352 GB, free: 9.723 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3667, allocations: 342.8 kB / 1.352 GB, free: 9.379 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.3668, allocations: 71.94 kB / 1.352 GB, free: 9.309 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.367, allocations: 93.58 kB / 1.352 GB, free: 9.211 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.3671, allocations: 117.5 kB / 1.352 GB, free: 9.09 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3671, allocations: 4 kB / 1.352 GB, free: 9.086 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.00032/0.3675, allocations: 205.4 kB / 1.352 GB, free: 8.879 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.3675, allocations: 8 kB / 1.352 GB, free: 8.871 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.3675, allocations: 3.984 kB / 1.352 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3675, allocations: 3.938 kB / 1.352 GB, free: 8.863 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.3676, allocations: 27.94 kB / 1.352 GB, free: 8.836 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.3677, allocations: 0 / 1.352 GB, free: 8.836 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.301e-05/0.3677, allocations: 39.72 kB / 1.352 GB, free: 8.797 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.3678, allocations: 8 kB / 1.353 GB, free: 8.789 MB / 1.045 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.0002154/0.368, allocations: 200.1 kB / 1.353 GB, free: 8.582 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.514e-05/0.368, allocations: 35.77 kB / 1.353 GB, free: 8.547 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.3683, allocations: 118.1 kB / 1.353 GB, free: 8.418 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.3683, allocations: 3.938 kB / 1.353 GB, free: 8.414 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3683, allocations: 3.984 kB / 1.353 GB, free: 8.41 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3683, allocations: 0 / 1.353 GB, free: 8.41 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006265/0.3689, allocations: 0.6282 MB / 1.353 GB, free: 7.719 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3689, allocations: 0 / 1.353 GB, free: 7.719 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.339e-05/0.3689, allocations: 8.156 kB / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3689, allocations: 0 / 1.353 GB, free: 7.711 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.3689, allocations: 4.188 kB / 1.353 GB, free: 7.707 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.369, allocations: 7.922 kB / 1.353 GB, free: 7.699 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.369, allocations: 3.938 kB / 1.353 GB, free: 7.695 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001754/0.3691, allocations: 135.4 kB / 1.354 GB, free: 7.535 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.584e-05/0.3692, allocations: 43.75 kB / 1.354 GB, free: 7.492 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.3692, allocations: 4 kB / 1.354 GB, free: 7.488 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.432e-05/0.3693, allocations: 4 kB / 1.354 GB, free: 7.484 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.3693, allocations: 7.938 kB / 1.354 GB, free: 7.477 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.3693, allocations: 3.938 kB / 1.354 GB, free: 7.473 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004566/0.3698, allocations: 391 kB / 1.354 GB, free: 7.094 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.3698, allocations: 0 / 1.354 GB, free: 7.094 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002547/0.37, allocations: 43.89 kB / 1.354 GB, free: 7.051 MB / 1.045 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.0004925/0.3705, allocations: 0.6655 MB / 1.355 GB, free: 6.344 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002236/0.3708, allocations: 103.8 kB / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3708, allocations: 0 / 1.355 GB, free: 6.242 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 3.142e-05/0.3708, allocations: 15.98 kB / 1.355 GB, free: 6.227 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.3711, allocations: 35.31 kB / 1.355 GB, free: 6.191 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003532/0.3746, allocations: 2.905 MB / 1.358 GB, free: 3.184 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.3751, allocations: 0.7948 MB / 1.358 GB, free: 2.359 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001207/0.3752, allocations: 58.88 kB / 1.359 GB, free: 2.297 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3753, allocations: 95.78 kB / 1.359 GB, free: 2.203 MB / 1.045 GB Notification: Performance of SimCode: time 4.71e-07/0.3753, allocations: 0 / 1.359 GB, free: 2.203 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.4037, allocations: 5.895 MB / 1.364 GB, free: 12.47 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.9, allocations: 8.141 kB / 1.364 GB, free: 12.47 MB / 1.061 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.761148140998557]