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.0007656/0.0007656, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0007903/0.0007903, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8841/0.8841, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.734/1.734, allocations: 389 MB / 0.633 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 3.116e-06/3.116e-06, allocations: 0 / 0.9997 GB, free: 13.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.322e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.51 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.CountTrue): time 0.00154/0.001563, allocations: 0.8288 MB / 1 GB, free: 12.68 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002236/0.001786, allocations: 91.69 kB / 1.001 GB, free: 12.59 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.477e-05/0.001861, allocations: 7.938 kB / 1.001 GB, free: 12.59 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001054/0.001967, allocations: 19.78 kB / 1.001 GB, free: 12.57 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.002089, allocations: 23.8 kB / 1.001 GB, free: 12.54 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 6.168e-05/0.002151, allocations: 47.89 kB / 1.001 GB, free: 12.5 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001927/0.002344, allocations: 255.4 kB / 1.001 GB, free: 12.25 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002365/0.00258, allocations: 170.9 kB / 1.001 GB, free: 12.07 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.002711, allocations: 187.6 kB / 1.001 GB, free: 11.89 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001297/0.00284, allocations: 123.7 kB / 1.001 GB, free: 11.77 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 4.5e-05/0.002885, allocations: 32 kB / 1.001 GB, free: 11.74 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 2.777e-05/0.002913, allocations: 32 kB / 1.001 GB, free: 11.71 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.177e-05/0.002975, allocations: 95.67 kB / 1.002 GB, free: 11.61 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 6.185e-05/0.003037, allocations: 83.77 kB / 1.002 GB, free: 11.53 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002982/0.003335, allocations: 474.4 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.003337, allocations: 0 / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.12e-07/0.003338, allocations: 4 kB / 1.002 GB, free: 11.06 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.003343, allocations: 0 / 1.002 GB, free: 11.06 MB / 0.9636 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.0004488/0.003792, allocations: 0.5285 MB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.00383, allocations: 12.75 kB / 1.003 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.036e-05/0.00388, allocations: 70.72 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.03e-05/0.00392, allocations: 44.66 kB / 1.003 GB, free: 10.37 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.004194, allocations: 273.7 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.004235, allocations: 37.02 kB / 1.003 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.004261, allocations: 32.38 kB / 1.003 GB, free: 10 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000385/0.004646, allocations: 408 kB / 1.003 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.004656, allocations: 192 / 1.003 GB, free: 9.594 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.004679, allocations: 12.38 kB / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.004688, allocations: 12.12 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002893/0.004977, allocations: 299.8 kB / 1.004 GB, free: 9.277 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008883/0.005865, allocations: 0.9615 MB / 1.005 GB, free: 8.266 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.005969, allocations: 89.16 kB / 1.005 GB, free: 8.16 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.145e-05/0.006011, allocations: 41.8 kB / 1.005 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.006028, allocations: 7.984 kB / 1.005 GB, free: 8.105 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.006046, allocations: 38.56 kB / 1.005 GB, free: 8.059 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.006047, allocations: 3.938 kB / 1.005 GB, free: 8.055 MB / 0.9636 GB Notification: Performance of matching and sorting (n=6): time 0.0002267/0.006274, allocations: 161.4 kB / 1.005 GB, free: 7.891 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.006308, allocations: 81.05 kB / 1.005 GB, free: 7.793 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003659/0.006674, allocations: 0.5169 MB / 1.006 GB, free: 7.266 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.006686, allocations: 29.7 kB / 1.006 GB, free: 7.23 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.006793, allocations: 207.7 kB / 1.006 GB, free: 7.023 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.06e-05/0.006804, allocations: 11.95 kB / 1.006 GB, free: 7.012 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.066e-05/0.006854, allocations: 49.66 kB / 1.006 GB, free: 6.957 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.595e-05/0.00694, allocations: 350.8 kB / 1.006 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.755e-05/0.007008, allocations: 67.95 kB / 1.006 GB, free: 6.539 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.855e-05/0.007086, allocations: 97.56 kB / 1.006 GB, free: 6.438 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.00719, allocations: 121.5 kB / 1.006 GB, free: 6.312 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.007192, allocations: 0 / 1.006 GB, free: 6.312 MB / 0.9636 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001802/0.007372, allocations: 201.4 kB / 1.007 GB, free: 6.109 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.007384, allocations: 5.875 kB / 1.007 GB, free: 6.105 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.007389, allocations: 0 / 1.007 GB, free: 6.105 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.0074, allocations: 4 kB / 1.007 GB, free: 6.102 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.199e-05/0.007492, allocations: 31.92 kB / 1.007 GB, free: 6.07 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.007498, allocations: 7.938 kB / 1.007 GB, free: 6.062 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.602e-05/0.007544, allocations: 35.61 kB / 1.007 GB, free: 6.027 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.007558, allocations: 16 kB / 1.007 GB, free: 6.012 MB / 0.9636 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.0001303/0.007688, allocations: 200 kB / 1.007 GB, free: 5.809 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.452e-05/0.007722, allocations: 35.7 kB / 1.007 GB, free: 5.773 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.007857, allocations: 114.1 kB / 1.007 GB, free: 5.652 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.007859, allocations: 4 kB / 1.007 GB, free: 5.648 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.007863, allocations: 384 / 1.007 GB, free: 5.648 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.007867, allocations: 8 kB / 1.007 GB, free: 5.641 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.008216, allocations: 0.6087 MB / 1.008 GB, free: 4.969 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.00822, allocations: 4 kB / 1.008 GB, free: 4.965 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.376e-05/0.008233, allocations: 4 kB / 1.008 GB, free: 4.961 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.008237, allocations: 7.922 kB / 1.008 GB, free: 4.953 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.008243, allocations: 0 / 1.008 GB, free: 4.953 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.008245, allocations: 4 kB / 1.008 GB, free: 4.949 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.008248, allocations: 3.938 kB / 1.008 GB, free: 4.945 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.378e-05/0.008332, allocations: 119.7 kB / 1.008 GB, free: 4.801 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.282e-05/0.008374, allocations: 55.69 kB / 1.008 GB, free: 4.746 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.822e-05/0.008393, allocations: 7.938 kB / 1.008 GB, free: 4.738 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.032e-05/0.008423, allocations: 4 kB / 1.008 GB, free: 4.734 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.705e-05/0.00844, allocations: 3.984 kB / 1.008 GB, free: 4.73 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.008444, allocations: 4 kB / 1.008 GB, free: 4.727 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002643/0.008708, allocations: 391 kB / 1.008 GB, free: 4.348 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.008708, allocations: 0 / 1.008 GB, free: 4.348 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.000155/0.008863, allocations: 43.89 kB / 1.008 GB, free: 4.305 MB / 0.9636 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.000256/0.009119, allocations: 0.6694 MB / 1.009 GB, free: 3.598 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001371/0.009256, allocations: 103.8 kB / 1.009 GB, free: 3.496 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.009257, allocations: 0 / 1.009 GB, free: 3.496 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 1.463e-05/0.009272, allocations: 12 kB / 1.009 GB, free: 3.484 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001727/0.009445, allocations: 33.58 kB / 1.009 GB, free: 3.453 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.01146, allocations: 2.913 MB / 1.012 GB, free: 444 kB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.01158, allocations: 191.7 kB / 1.012 GB, free: 228 kB / 0.9636 GB Notification: Performance of simCode: alias equations: time 6.545e-05/0.01164, allocations: 54.94 kB / 1.012 GB, free: 176 kB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.121e-05/0.01173, allocations: 96.47 kB / 1.012 GB, free: 80 kB / 0.9636 GB Notification: Performance of SimCode: time 5.31e-07/0.01173, allocations: 0 / 1.012 GB, free: 80 kB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.02802, allocations: 6.456 MB / 1.019 GB, free: 9.785 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.667/6.695, allocations: 10.28 kB / 1.019 GB, free: 9.777 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/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: 10.646851073019207]