Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001812/0.001812, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.002556/0.002556, allocations: 219 kB / 22.26 MB, free: 5.125 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.489/1.489, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.211/3.211, allocations: 0.49 GB / 0.7951 GB, free: 33.5 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue,fileNamePrefix="Buildings_12_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.002147/0.002147, allocations: 64.72 kB / 1.154 GB, free: 25.66 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3683, allocations: 176.1 MB / 1.326 GB, free: 1.945 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.002537/0.3708, allocations: 0.8607 MB / 1.327 GB, free: 1.09 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002657/0.3711, allocations: 99.62 kB / 1.327 GB, free: 0.9922 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.059e-05/0.3712, allocations: 4 kB / 1.327 GB, free: 0.9883 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000133/0.3713, allocations: 23.72 kB / 1.327 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.3714, allocations: 19.92 kB / 1.327 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 7.605e-05/0.3715, allocations: 39.91 kB / 1.327 GB, free: 0.9062 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002984/0.3718, allocations: 251.5 kB / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.3721, allocations: 179.1 kB / 1.327 GB, free: 492 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.3723, allocations: 131.5 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.3724, allocations: 147.3 kB / 1.328 GB, free: 212 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.012e-05/0.3725, allocations: 32 kB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.3725, allocations: 32 kB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.741e-05/0.3726, allocations: 87.72 kB / 1.328 GB, free: 60 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.3728, allocations: 159.2 kB / 1.328 GB, free: 15.9 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.3733, allocations: 462 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.3733, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of FrontEnd: time 9.72e-07/0.3733, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.3733, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 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.000784/0.3741, allocations: 0.5285 MB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3741, allocations: 12.03 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.619e-05/0.3742, allocations: 70.72 kB / 1.329 GB, free: 14.8 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.869e-05/0.3743, allocations: 44.66 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.3747, allocations: 267.2 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.528e-05/0.3748, allocations: 41.02 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.3749, allocations: 36.31 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006605/0.3755, allocations: 392.2 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.3755, allocations: 3.938 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.113e-05/0.3756, allocations: 16 kB / 1.33 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.3756, allocations: 15.92 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.3761, allocations: 307.4 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.3776, allocations: 1.024 MB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.3778, allocations: 85.22 kB / 1.331 GB, free: 12.48 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.604e-05/0.3778, allocations: 45.78 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.3779, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.3779, allocations: 38.44 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.3779, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003617/0.3783, allocations: 173.3 kB / 1.331 GB, free: 12.21 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.368e-05/0.3783, allocations: 77.11 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00059/0.3789, allocations: 0.5053 MB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.3789, allocations: 25.7 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.3791, allocations: 211.7 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.3791, allocations: 19.83 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/0.3792, allocations: 57.69 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.3794, allocations: 342.8 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3795, allocations: 67.95 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.3796, allocations: 85.67 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.3798, allocations: 113.6 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3798, allocations: 4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003182/0.3801, allocations: 221.2 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.3801, allocations: 5.25 kB / 1.333 GB, free: 10.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.3801, allocations: 4 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.43e-05/0.3801, allocations: 3.938 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.3803, allocations: 24 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.3803, allocations: 3.984 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.809e-05/0.3804, allocations: 31.73 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.3804, allocations: 8 kB / 1.333 GB, free: 10.35 MB / 1.029 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.0002286/0.3806, allocations: 204.4 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.152e-05/0.3807, allocations: 39.73 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002238/0.3809, allocations: 114.1 kB / 1.333 GB, free: 9.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3809, allocations: 11.94 kB / 1.333 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.3809, allocations: 0 / 1.333 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.3809, allocations: 0 / 1.333 GB, free: 9.969 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006477/0.3816, allocations: 0.6283 MB / 1.334 GB, free: 9.277 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3816, allocations: 0 / 1.334 GB, free: 9.277 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.528e-05/0.3816, allocations: 7.938 kB / 1.334 GB, free: 9.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.3816, allocations: 7.984 kB / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.3816, allocations: 0 / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3816, allocations: 0 / 1.334 GB, free: 9.262 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.3816, allocations: 8.125 kB / 1.334 GB, free: 9.254 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.3818, allocations: 127.4 kB / 1.334 GB, free: 9.102 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.589e-05/0.3819, allocations: 51.69 kB / 1.334 GB, free: 9.051 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.32e-05/0.3819, allocations: 7.938 kB / 1.334 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.184e-05/0.382, allocations: 4 kB / 1.334 GB, free: 9.039 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.933e-05/0.382, allocations: 4 kB / 1.334 GB, free: 9.035 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.382, allocations: 4 kB / 1.334 GB, free: 9.031 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004603/0.3824, allocations: 391 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3824, allocations: 0 / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002481/0.3827, allocations: 39.94 kB / 1.335 GB, free: 8.613 MB / 1.029 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.0005099/0.3832, allocations: 0.6812 MB / 1.335 GB, free: 7.891 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002221/0.3834, allocations: 99.88 kB / 1.335 GB, free: 7.793 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3834, allocations: 0 / 1.335 GB, free: 7.793 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.018e-05/0.3835, allocations: 20.12 kB / 1.335 GB, free: 7.773 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.3837, allocations: 31.03 kB / 1.335 GB, free: 7.746 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.3871, allocations: 2.903 MB / 1.338 GB, free: 4.738 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.3876, allocations: 0.7985 MB / 1.339 GB, free: 3.91 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001228/0.3877, allocations: 58.94 kB / 1.339 GB, free: 3.852 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.3878, allocations: 91.41 kB / 1.339 GB, free: 3.762 MB / 1.029 GB Notification: Performance of SimCode: time 3.61e-07/0.3878, allocations: 0 / 1.339 GB, free: 3.762 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.4215, allocations: 5.864 MB / 1.345 GB, free: 14.04 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.59, allocations: 5.547 kB / 1.345 GB, free: 14.04 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_CountTrue.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable couTru.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.csv. Warning: Get data of variable couTru.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.csv failed! Error: Could not read variable couTruAllFal.y in file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.csv. Warning: Get data of variable couTruAllFal.y from file Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.483924448000835]