Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.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.0009813/0.0009813, allocations: 81.86 kB / 19.87 MB, free: 4.617 MB / 18.57 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.0009602/0.0009602, allocations: 169.7 kB / 23.27 MB, free: 1.219 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.9866/0.9866, allocations: 177.1 MB / 203.7 MB, free: 5.492 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 2.333/2.333, allocations: 438.1 MB / 0.682 GB, free: 14.15 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.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: translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") translateModel(Buildings.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=155429,variableFilter="time|calendarTime2016.year|calendarTime2016.month|calendarTime2016.day|calendarTime2016.hour|calendarTime2016.minute",fileNamePrefix="Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.8897 GB, free: 9.781 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.429e-05/1.593e-05, allocations: 5.266 kB / 0.8897 GB, free: 9.777 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.001738/0.001754, allocations: 1.575 MB / 0.8912 GB, free: 8.195 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.00276, allocations: 0.5303 MB / 0.8917 GB, free: 7.66 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.671e-05/0.002816, allocations: 4 kB / 0.8917 GB, free: 7.656 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 9.624e-05/0.002913, allocations: 7.922 kB / 0.8918 GB, free: 7.648 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.003021, allocations: 23.86 kB / 0.8918 GB, free: 7.625 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005558/0.003577, allocations: 323.2 kB / 0.8921 GB, free: 7.309 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.003904, allocations: 487.4 kB / 0.8926 GB, free: 6.832 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 3.392e-05/0.003938, allocations: 12 kB / 0.8926 GB, free: 6.82 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003231/0.004261, allocations: 363.5 kB / 0.8929 GB, free: 6.465 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000196/0.004457, allocations: 131.8 kB / 0.893 GB, free: 6.336 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.004515, allocations: 28 kB / 0.8931 GB, free: 6.309 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 5.211e-05/0.004567, allocations: 24 kB / 0.8931 GB, free: 6.285 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 9.042e-05/0.004658, allocations: 115.7 kB / 0.8932 GB, free: 6.172 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 9.524e-05/0.004753, allocations: 131.7 kB / 0.8933 GB, free: 6.043 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002708/0.005024, allocations: 378.9 kB / 0.8937 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 1.563e-06/0.005025, allocations: 0 / 0.8937 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of FrontEnd: time 5.41e-07/0.005026, allocations: 0 / 0.8937 GB, free: 5.672 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 3.116e-06/0.005029, allocations: 0 / 0.8937 GB, free: 5.672 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000764/0.005793, allocations: 0.9182 MB / 0.8946 GB, free: 4.676 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.005829, allocations: 8.625 kB / 0.8946 GB, free: 4.668 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.516e-05/0.005914, allocations: 64.62 kB / 0.8946 GB, free: 4.605 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.006136, allocations: 254.9 kB / 0.8949 GB, free: 4.328 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.006166, allocations: 20.36 kB / 0.8949 GB, free: 4.309 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.006212, allocations: 32.34 kB / 0.8949 GB, free: 4.277 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.006515, allocations: 198.7 kB / 0.8951 GB, free: 4.074 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.006521, allocations: 4.188 kB / 0.8951 GB, free: 4.07 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.006536, allocations: 384 / 0.8951 GB, free: 4.07 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.00654, allocations: 4.312 kB / 0.8951 GB, free: 4.066 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.189e-05/0.006622, allocations: 59.84 kB / 0.8952 GB, free: 4.008 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002221/0.006844, allocations: 248.9 kB / 0.8954 GB, free: 3.738 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.00701, allocations: 123 kB / 0.8956 GB, free: 3.605 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.827e-05/0.007088, allocations: 55.66 kB / 0.8956 GB, free: 3.547 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.007108, allocations: 4 kB / 0.8956 GB, free: 3.543 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.007272, allocations: 172.9 kB / 0.8958 GB, free: 3.359 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=16): time 1.112e-06/0.007273, allocations: 4 kB / 0.8958 GB, free: 3.355 MB / 0.8542 GB Notification: Performance of matching and sorting (n=16): time 0.0006927/0.007966, allocations: 363.5 kB / 0.8961 GB, free: 2.996 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.007998, allocations: 63.39 kB / 0.8962 GB, free: 2.922 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002258/0.008224, allocations: 414.5 kB / 0.8966 GB, free: 2.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.008255, allocations: 37.7 kB / 0.8966 GB, free: 2.457 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.00831, allocations: 144.2 kB / 0.8968 GB, free: 2.309 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.008344, allocations: 43.66 kB / 0.8968 GB, free: 2.266 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.008463, allocations: 135.1 kB / 0.8969 GB, free: 2.125 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.008575, allocations: 0.4961 MB / 0.8974 GB, free: 1.617 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.008724, allocations: 163.3 kB / 0.8976 GB, free: 1.445 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001597/0.008884, allocations: 237 kB / 0.8978 GB, free: 1.172 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.009062, allocations: 250.3 kB / 0.898 GB, free: 0.8867 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.009064, allocations: 7.938 kB / 0.898 GB, free: 0.8789 MB / 0.8542 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004438/0.009507, allocations: 0.5235 MB / 0.8985 GB, free: 332 kB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.899e-05/0.009556, allocations: 85.56 kB / 0.8986 GB, free: 236 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.009561, allocations: 0 / 0.8986 GB, free: 236 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.009574, allocations: 4 kB / 0.8986 GB, free: 232 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.00968, allocations: 43.91 kB / 0.8987 GB, free: 188 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.009686, allocations: 4 kB / 0.8987 GB, free: 184 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.009842, allocations: 55.94 kB / 0.8987 GB, free: 128 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.847e-05/0.00989, allocations: 55.98 kB / 0.8988 GB, free: 72 kB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 24 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 2 * 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.0001167/0.01001, allocations: 188.5 kB / 0.899 GB, free: 15.88 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.268e-05/0.01005, allocations: 39.77 kB / 0.899 GB, free: 15.84 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.018e-05/0.01009, allocations: 39.67 kB / 0.899 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.01009, allocations: 4 kB / 0.899 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-06/0.01009, allocations: 0 / 0.899 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.0101, allocations: 3.984 kB / 0.899 GB, free: 15.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005456/0.01064, allocations: 0.6111 MB / 0.8996 GB, free: 15.15 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01065, allocations: 0 / 0.8996 GB, free: 15.15 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.176e-05/0.01067, allocations: 11.98 kB / 0.8997 GB, free: 15.14 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.01067, allocations: 0 / 0.8997 GB, free: 15.14 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.01069, allocations: 15.98 kB / 0.8997 GB, free: 15.12 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.01069, allocations: 4 kB / 0.8997 GB, free: 15.12 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.01069, allocations: 3.938 kB / 0.8997 GB, free: 15.11 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003332/0.01103, allocations: 459.9 kB / 0.9001 GB, free: 14.64 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.01116, allocations: 121.5 kB / 0.9002 GB, free: 14.52 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.0112, allocations: 15.98 kB / 0.9003 GB, free: 14.51 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.01138, allocations: 31.97 kB / 0.9003 GB, free: 14.48 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.0114, allocations: 11.92 kB / 0.9003 GB, free: 14.46 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.01144, allocations: 55.98 kB / 0.9003 GB, free: 14.41 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001184/0.01156, allocations: 263 kB / 0.9006 GB, free: 14.15 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.01156, allocations: 4 kB / 0.9006 GB, free: 14.14 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002094/0.01177, allocations: 67.98 kB / 0.9007 GB, free: 14.08 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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 8.736e-05/0.01186, allocations: 117.2 kB / 0.9008 GB, free: 13.95 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003996/0.01226, allocations: 432.2 kB / 0.9012 GB, free: 13.49 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01226, allocations: 0 / 0.9012 GB, free: 13.49 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 9.772e-05/0.01236, allocations: 75.64 kB / 0.9013 GB, free: 13.41 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002311/0.01259, allocations: 57.61 kB / 0.9013 GB, free: 13.36 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005971/0.01318, allocations: 471.4 kB / 0.9018 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.844e-05/0.01323, allocations: 87.8 kB / 0.9018 GB, free: 12.76 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.555e-05/0.01327, allocations: 13.16 kB / 0.9019 GB, free: 12.75 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.01344, allocations: 142.2 kB / 0.902 GB, free: 12.61 MB / 0.8698 GB Notification: Performance of SimCode: time 5.71e-07/0.01344, allocations: 4 kB / 0.902 GB, free: 12.6 MB / 0.8698 GB Notification: Performance of Templates: time 0.006454/0.01989, allocations: 5.432 MB / 0.9073 GB, free: 7.125 MB / 0.8698 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Time_Examples_CalendarTime.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.9984905030578375]