Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001991/0.001991, allocations: 188 kB / 22.22 MB, free: 5.164 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.147/3.147, allocations: 496 MB / 0.7835 GB, free: 33.67 MB / 0.6231 GB
"
[Timeout remaining time 177]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_12_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_12_Buildings.Utilities.Time.Examples.CalendarTime") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.84 kB / 1.138 GB, free: 33.81 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3496, allocations: 173.6 MB / 1.307 GB, free: 1.805 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002743/0.3523, allocations: 1.548 MB / 1.309 GB, free: 252 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001366/0.3537, allocations: 0.5405 MB / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.236e-05/0.3538, allocations: 3.938 kB / 1.309 GB, free: 15.7 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001032/0.3539, allocations: 11.92 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.354, allocations: 23.84 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008493/0.3548, allocations: 318.2 kB / 1.31 GB, free: 15.36 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0005532/0.3554, allocations: 483.5 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.378e-05/0.3554, allocations: 8 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003917/0.3558, allocations: 275.6 kB / 1.31 GB, free: 14.61 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.3562, allocations: 156.7 kB / 1.311 GB, free: 14.45 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 7.279e-05/0.3562, allocations: 24 kB / 1.311 GB, free: 14.43 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.178e-05/0.3563, allocations: 28 kB / 1.311 GB, free: 14.4 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001359/0.3564, allocations: 119.6 kB / 1.311 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001932/0.3566, allocations: 183.1 kB / 1.311 GB, free: 14.11 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004657/0.3571, allocations: 426.4 kB / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3571, allocations: 0 / 1.311 GB, free: 13.69 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.753e-06/0.3571, allocations: 4 kB / 1.311 GB, free: 13.68 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.171e-05/0.3571, allocations: 0 / 1.311 GB, free: 13.68 MB / 1.014 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.00133/0.3584, allocations: 0.8029 MB / 1.312 GB, free: 12.81 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3585, allocations: 12.92 kB / 1.312 GB, free: 12.8 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.3586, allocations: 52.69 kB / 1.312 GB, free: 12.75 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/0.359, allocations: 264.6 kB / 1.312 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/0.3591, allocations: 20.36 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.667e-05/0.3592, allocations: 28.36 kB / 1.312 GB, free: 12.42 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000985/0.3602, allocations: 214 kB / 1.313 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3602, allocations: 192 / 1.313 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.3602, allocations: 11.92 kB / 1.313 GB, free: 12.19 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3602, allocations: 0 / 1.313 GB, free: 12.19 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007109/0.3609, allocations: 95.92 kB / 1.313 GB, free: 12.1 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004626/0.3614, allocations: 360.4 kB / 1.313 GB, free: 11.7 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0009748/0.3624, allocations: 162.3 kB / 1.313 GB, free: 11.54 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0007053/0.3631, allocations: 108.8 kB / 1.313 GB, free: 11.43 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.3631, allocations: 11.97 kB / 1.313 GB, free: 11.41 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009532/0.3641, allocations: 216.6 kB / 1.314 GB, free: 11.19 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=16): time 1.723e-06/0.3641, allocations: 0 / 1.314 GB, free: 11.19 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16): time 0.002439/0.3665, allocations: 497.8 kB / 1.314 GB, free: 10.7 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.3665, allocations: 59.41 kB / 1.314 GB, free: 10.63 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000436/0.367, allocations: 405.9 kB / 1.314 GB, free: 10.22 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 6.145e-05/0.367, allocations: 45.69 kB / 1.314 GB, free: 10.17 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.213e-05/0.3671, allocations: 93.44 kB / 1.315 GB, free: 10.07 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 5.132e-05/0.3672, allocations: 43.62 kB / 1.315 GB, free: 10.03 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.3674, allocations: 129.5 kB / 1.315 GB, free: 9.898 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000134/0.3675, allocations: 318.8 kB / 1.315 GB, free: 9.578 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.3678, allocations: 123.9 kB / 1.315 GB, free: 9.457 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000298/0.3681, allocations: 170.8 kB / 1.315 GB, free: 9.27 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004053/0.3685, allocations: 291.4 kB / 1.316 GB, free: 8.953 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3685, allocations: 0 / 1.316 GB, free: 8.953 MB / 1.014 GB
Notification: Performance of matching and sorting (n=29) (initialization): time 0.000837/0.3693, allocations: 488.7 kB / 1.316 GB, free: 8.457 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 9.147e-05/0.3694, allocations: 87.31 kB / 1.316 GB, free: 8.359 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3694, allocations: 4.188 kB / 1.316 GB, free: 8.355 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3694, allocations: 4 kB / 1.316 GB, free: 8.352 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.3696, allocations: 23.92 kB / 1.316 GB, free: 8.328 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.3696, allocations: 7.984 kB / 1.316 GB, free: 8.32 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004666/0.3701, allocations: 59.84 kB / 1.316 GB, free: 8.262 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.324e-05/0.3702, allocations: 55.98 kB / 1.316 GB, free: 8.207 MB / 1.014 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.0002312/0.3704, allocations: 201.7 kB / 1.316 GB, free: 8.004 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.914e-05/0.3705, allocations: 43.7 kB / 1.317 GB, free: 7.961 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.48e-05/0.3705, allocations: 43.61 kB / 1.317 GB, free: 7.922 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.3705, allocations: 0 / 1.317 GB, free: 7.922 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.3705, allocations: 0 / 1.317 GB, free: 7.922 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.3705, allocations: 3.984 kB / 1.317 GB, free: 7.918 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.3727, allocations: 0.7222 MB / 1.317 GB, free: 7.145 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3727, allocations: 0 / 1.317 GB, free: 7.145 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.3728, allocations: 7.984 kB / 1.317 GB, free: 7.137 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.3728, allocations: 0 / 1.317 GB, free: 7.137 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.352e-05/0.3728, allocations: 19.98 kB / 1.317 GB, free: 7.117 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.3728, allocations: 3.984 kB / 1.317 GB, free: 7.113 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3728, allocations: 4 kB / 1.317 GB, free: 7.109 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001662/0.3745, allocations: 475.4 kB / 1.318 GB, free: 6.629 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002709/0.3747, allocations: 129.5 kB / 1.318 GB, free: 6.5 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.397e-05/0.3748, allocations: 16 kB / 1.318 GB, free: 6.484 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004694/0.3753, allocations: 31.95 kB / 1.318 GB, free: 6.453 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.886e-05/0.3753, allocations: 11.92 kB / 1.318 GB, free: 6.441 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.138e-05/0.3754, allocations: 59.98 kB / 1.318 GB, free: 6.383 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0003644/0.3758, allocations: 295.1 kB / 1.318 GB, free: 6.094 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.3758, allocations: 0 / 1.318 GB, free: 6.094 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003652/0.3762, allocations: 63.98 kB / 1.318 GB, free: 6.031 MB / 1.014 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 0.0001882/0.3763, allocations: 122.3 kB / 1.318 GB, free: 5.902 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.001262/0.3776, allocations: 402.4 kB / 1.319 GB, free: 5.484 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.3776, allocations: 0 / 1.319 GB, free: 5.484 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0007318/0.3783, allocations: 118.8 kB / 1.319 GB, free: 5.371 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.3787, allocations: 29.58 kB / 1.319 GB, free: 5.344 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.3803, allocations: 0.5512 MB / 1.32 GB, free: 4.766 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.3807, allocations: 0.7708 MB / 1.32 GB, free: 3.965 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 6.842e-05/0.3808, allocations: 17.08 kB / 1.32 GB, free: 3.949 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.3808, allocations: 15.38 kB / 1.32 GB, free: 3.934 MB / 1.014 GB
Notification: Performance of SimCode: time 8.92e-07/0.3808, allocations: 0 / 1.32 GB, free: 3.934 MB / 1.014 GB
Notification: Performance of Templates: time 0.009862/0.3907, allocations: 5.119 MB / 1.325 GB, free: 14.71 MB / 1.029 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.sim & ./Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Time_Examples_CalendarTime.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Time.Examples.CalendarTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 299]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.751906194724143]