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.001886/0.001886, allocations: 113.9 kB / 18.84 MB, free: 2.73 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.002212/0.002212, allocations: 189.2 kB / 22.1 MB, free: 4.762 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.484/1.484, allocations: 225.6 MB / 250.8 MB, free: 13.04 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.194/3.194, allocations: 495.8 MB / 0.783 GB, free: 33.6 MB / 0.6231 GB
"
[Timeout remaining time 176]
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.00207/0.00207, allocations: 67.48 kB / 1.137 GB, free: 33.81 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3274, allocations: 173.6 MB / 1.307 GB, free: 1.836 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Time.Examples.CalendarTime): time 0.002851/0.3303, allocations: 1.529 MB / 1.308 GB, free: 304 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001318/0.3316, allocations: 0.5461 MB / 1.309 GB, free: 15.75 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.837e-05/0.3316, allocations: 0 / 1.309 GB, free: 15.75 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.3317, allocations: 7.922 kB / 1.309 GB, free: 15.74 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.3319, allocations: 35.78 kB / 1.309 GB, free: 15.71 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008102/0.3327, allocations: 311 kB / 1.309 GB, free: 15.41 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0005489/0.3332, allocations: 487.4 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 4.866e-05/0.3333, allocations: 8 kB / 1.31 GB, free: 14.92 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0004066/0.3337, allocations: 279.6 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.334, allocations: 144.8 kB / 1.31 GB, free: 14.51 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 7.738e-05/0.3341, allocations: 28 kB / 1.31 GB, free: 14.48 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.114e-05/0.3342, allocations: 28 kB / 1.31 GB, free: 14.45 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.3343, allocations: 119.6 kB / 1.31 GB, free: 14.34 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.3345, allocations: 187.1 kB / 1.31 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004663/0.335, allocations: 430.4 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.335, allocations: 0 / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.114e-06/0.335, allocations: 4 kB / 1.311 GB, free: 13.73 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.843e-06/0.335, allocations: 0 / 1.311 GB, free: 13.73 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.001374/0.3364, allocations: 0.8045 MB / 1.312 GB, free: 12.85 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3364, allocations: 8.031 kB / 1.312 GB, free: 12.84 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.3366, allocations: 56.7 kB / 1.312 GB, free: 12.79 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000408/0.337, allocations: 256.7 kB / 1.312 GB, free: 12.52 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.383e-05/0.337, allocations: 16.36 kB / 1.312 GB, free: 12.5 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.773e-05/0.3371, allocations: 32.36 kB / 1.312 GB, free: 12.47 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.3382, allocations: 210 kB / 1.312 GB, free: 12.26 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.3382, allocations: 192 / 1.312 GB, free: 12.26 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.3383, allocations: 7.922 kB / 1.312 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3383, allocations: 4 kB / 1.312 GB, free: 12.25 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008433/0.3391, allocations: 103.9 kB / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004728/0.3396, allocations: 360.3 kB / 1.313 GB, free: 11.75 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.3408, allocations: 166.5 kB / 1.313 GB, free: 11.58 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0008303/0.3416, allocations: 100.8 kB / 1.313 GB, free: 11.48 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.3416, allocations: 4 kB / 1.313 GB, free: 11.47 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.3427, allocations: 215.8 kB / 1.313 GB, free: 11.25 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=16): time 5.491e-06/0.3427, allocations: 3.984 kB / 1.313 GB, free: 11.25 MB / 1.014 GB
Notification: Performance of matching and sorting (n=16): time 0.002808/0.3455, allocations: 0.4942 MB / 1.313 GB, free: 10.75 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.3456, allocations: 63.41 kB / 1.314 GB, free: 10.67 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004514/0.346, allocations: 405.9 kB / 1.314 GB, free: 10.26 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 6.257e-05/0.3461, allocations: 37.7 kB / 1.314 GB, free: 10.22 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.3462, allocations: 105.4 kB / 1.314 GB, free: 10.11 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.3462, allocations: 47.62 kB / 1.314 GB, free: 10.07 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.3464, allocations: 125.5 kB / 1.314 GB, free: 9.938 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001472/0.3466, allocations: 322.8 kB / 1.315 GB, free: 9.613 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002719/0.3468, allocations: 115.9 kB / 1.315 GB, free: 9.5 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.3472, allocations: 165.9 kB / 1.315 GB, free: 9.316 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004013/0.3476, allocations: 283.1 kB / 1.315 GB, free: 9.008 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3476, allocations: 0 / 1.315 GB, free: 9.008 MB / 1.014 GB
Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008943/0.3485, allocations: 496.7 kB / 1.316 GB, free: 8.504 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 0.000106/0.3486, allocations: 91.31 kB / 1.316 GB, free: 8.402 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3486, allocations: 0 / 1.316 GB, free: 8.402 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.3486, allocations: 4 kB / 1.316 GB, free: 8.398 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.3488, allocations: 27.91 kB / 1.316 GB, free: 8.371 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.3488, allocations: 0 / 1.316 GB, free: 8.371 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.3493, allocations: 64.03 kB / 1.316 GB, free: 8.309 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.768e-05/0.3494, allocations: 55.98 kB / 1.316 GB, free: 8.254 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.000249/0.3496, allocations: 197.7 kB / 1.316 GB, free: 8.055 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.488e-05/0.3497, allocations: 43.69 kB / 1.316 GB, free: 8.012 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.746e-05/0.3498, allocations: 35.69 kB / 1.316 GB, free: 7.98 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3498, allocations: 0 / 1.316 GB, free: 7.98 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3498, allocations: 4 kB / 1.316 GB, free: 7.977 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3498, allocations: 3.938 kB / 1.316 GB, free: 7.973 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.3522, allocations: 0.7345 MB / 1.317 GB, free: 7.188 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3522, allocations: 0 / 1.317 GB, free: 7.188 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.866e-05/0.3522, allocations: 4 kB / 1.317 GB, free: 7.184 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.3522, allocations: 4 kB / 1.317 GB, free: 7.18 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.3523, allocations: 27.97 kB / 1.317 GB, free: 7.152 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3523, allocations: 0 / 1.317 GB, free: 7.152 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3523, allocations: 3.984 kB / 1.317 GB, free: 7.148 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001923/0.3542, allocations: 487.4 kB / 1.317 GB, free: 6.656 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002665/0.3545, allocations: 129.5 kB / 1.317 GB, free: 6.527 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.183e-05/0.3546, allocations: 11.98 kB / 1.317 GB, free: 6.516 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/0.3551, allocations: 34.97 kB / 1.317 GB, free: 6.484 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.3551, allocations: 7.984 kB / 1.317 GB, free: 6.477 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.035e-05/0.3552, allocations: 55.97 kB / 1.317 GB, free: 6.422 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0003077/0.3555, allocations: 299.1 kB / 1.318 GB, free: 6.129 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.3555, allocations: 0 / 1.318 GB, free: 6.129 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.000406/0.3559, allocations: 71.98 kB / 1.318 GB, free: 6.059 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.0001599/0.3561, allocations: 114.2 kB / 1.318 GB, free: 5.938 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.001398/0.3575, allocations: 410.7 kB / 1.318 GB, free: 5.512 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3575, allocations: 4.125 kB / 1.318 GB, free: 5.508 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0008517/0.3583, allocations: 114.9 kB / 1.318 GB, free: 5.398 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.3587, allocations: 30.83 kB / 1.318 GB, free: 5.371 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.3603, allocations: 0.5512 MB / 1.319 GB, free: 4.793 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.3607, allocations: 0.7786 MB / 1.32 GB, free: 3.984 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 6.073e-05/0.3608, allocations: 9.078 kB / 1.32 GB, free: 3.973 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.621e-05/0.3608, allocations: 19.42 kB / 1.32 GB, free: 3.957 MB / 1.014 GB
Notification: Performance of SimCode: time 4.51e-07/0.3608, allocations: 0 / 1.32 GB, free: 3.957 MB / 1.014 GB
Notification: Performance of Templates: time 0.00998/0.3708, allocations: 5.109 MB / 1.325 GB, free: 14.74 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 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 9.578124982304871]