Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001281/0.001281, 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.001313/0.001313, allocations: 192 kB / 22.23 MB, free: 5.16 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.338/1.338, 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/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00241/0.00241, allocations: 287.9 kB / 306.6 MB, free: 8.422 MB / 238.1 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.188/1.188, allocations: 180.9 MB / 0.53 GB, free: 14.42 MB / 382.1 MB
"
[Timeout remaining time 179]
Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo)
Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime")
translateModel(BuildingSystems.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002681/0.002681, allocations: 99.31 kB / 0.7308 GB, free: 38.5 MB / 0.545 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1609, allocations: 94.19 MB / 0.8228 GB, free: 1.852 MB / 0.5606 GB
Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.00276/0.1637, allocations: 1.533 MB / 0.8243 GB, free: 312 kB / 0.5606 GB
Notification: Performance of NFInst.instExpressions: time 0.001353/0.1651, allocations: 0.5515 MB / 0.8248 GB, free: 15.75 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 8.175e-05/0.1651, allocations: 3.938 kB / 0.8248 GB, free: 15.75 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 8.883e-05/0.1652, allocations: 7.922 kB / 0.8248 GB, free: 15.74 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.1653, allocations: 27.86 kB / 0.8249 GB, free: 15.71 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0007693/0.1661, allocations: 318.1 kB / 0.8252 GB, free: 15.41 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.0005299/0.1666, allocations: 483.5 kB / 0.8256 GB, free: 14.93 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 3.583e-05/0.1667, allocations: 4 kB / 0.8256 GB, free: 14.93 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.1671, allocations: 283.6 kB / 0.8259 GB, free: 14.65 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002849/0.1673, allocations: 143.7 kB / 0.826 GB, free: 14.51 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 9.394e-05/0.1674, allocations: 24 kB / 0.8261 GB, free: 14.49 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 8.918e-05/0.1675, allocations: 35.94 kB / 0.8261 GB, free: 14.45 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1677, allocations: 115.7 kB / 0.8262 GB, free: 14.34 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002223/0.1679, allocations: 187 kB / 0.8264 GB, free: 14.16 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.1684, allocations: 422.4 kB / 0.8268 GB, free: 13.74 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1684, allocations: 3.984 kB / 0.8268 GB, free: 13.74 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.373e-06/0.1684, allocations: 0 / 0.8268 GB, free: 13.74 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 5.42e-06/0.1684, allocations: 0 / 0.8268 GB, free: 13.74 MB / 0.5762 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.00131/0.1697, allocations: 0.7989 MB / 0.8276 GB, free: 12.87 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1697, allocations: 16.03 kB / 0.8276 GB, free: 12.85 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1699, allocations: 48.7 kB / 0.8276 GB, free: 12.8 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004595/0.1703, allocations: 260.6 kB / 0.8279 GB, free: 12.52 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.485e-05/0.1704, allocations: 20.36 kB / 0.8279 GB, free: 12.5 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 8.488e-05/0.1705, allocations: 28.36 kB / 0.8279 GB, free: 12.48 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.1716, allocations: 208.8 kB / 0.8281 GB, free: 12.27 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.1716, allocations: 192 / 0.8281 GB, free: 12.27 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.1716, allocations: 11.94 kB / 0.8281 GB, free: 12.26 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1716, allocations: 0 / 0.8281 GB, free: 12.26 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008446/0.1724, allocations: 103.9 kB / 0.8282 GB, free: 12.16 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004629/0.1729, allocations: 360.3 kB / 0.8286 GB, free: 11.76 MB / 0.5762 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.174, allocations: 174.4 kB / 0.8288 GB, free: 11.58 MB / 0.5762 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0007916/0.1748, allocations: 100.8 kB / 0.8289 GB, free: 11.48 MB / 0.5762 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.1748, allocations: 4 kB / 0.8289 GB, free: 11.48 MB / 0.5762 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001035/0.1759, allocations: 222.7 kB / 0.8291 GB, free: 11.25 MB / 0.5762 GB
Notification: Performance of pre-optimization done (n=16): time 2.114e-06/0.1759, allocations: 0 / 0.8291 GB, free: 11.25 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=16): time 0.002818/0.1787, allocations: 496.9 kB / 0.8295 GB, free: 10.76 MB / 0.5762 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.1787, allocations: 59.39 kB / 0.8296 GB, free: 10.69 MB / 0.5762 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/0.1792, allocations: 413.9 kB / 0.83 GB, free: 10.27 MB / 0.5762 GB
Notification: Performance of collectPreVariables (initialization): time 0.0001359/0.1793, allocations: 41.69 kB / 0.83 GB, free: 10.23 MB / 0.5762 GB
Notification: Performance of collectInitialEqns (initialization): time 8.391e-05/0.1794, allocations: 97.44 kB / 0.8301 GB, free: 10.13 MB / 0.5762 GB
Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.1795, allocations: 43.69 kB / 0.8302 GB, free: 10.09 MB / 0.5762 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.1797, allocations: 129.5 kB / 0.8303 GB, free: 9.953 MB / 0.5762 GB
Notification: Performance of setup shared object (initialization): time 0.0001411/0.1798, allocations: 326.8 kB / 0.8306 GB, free: 9.625 MB / 0.5762 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.1801, allocations: 111.9 kB / 0.8307 GB, free: 9.516 MB / 0.5762 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.1804, allocations: 183.1 kB / 0.8309 GB, free: 9.316 MB / 0.5762 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.1808, allocations: 277.2 kB / 0.8311 GB, free: 9.012 MB / 0.5762 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1808, allocations: 0 / 0.8311 GB, free: 9.012 MB / 0.5762 GB
Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008513/0.1816, allocations: 494.9 kB / 0.8316 GB, free: 8.512 MB / 0.5762 GB
Notification: Performance of prepare postOptimizeDAE: time 9.011e-05/0.1817, allocations: 91.31 kB / 0.8317 GB, free: 8.41 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.1817, allocations: 0 / 0.8317 GB, free: 8.41 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (initialization): time 2.59e-05/0.1818, allocations: 4 kB / 0.8317 GB, free: 8.406 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1819, allocations: 23.92 kB / 0.8317 GB, free: 8.383 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1819, allocations: 0 / 0.8317 GB, free: 8.383 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005097/0.1824, allocations: 71.95 kB / 0.8318 GB, free: 8.312 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.358e-05/0.1825, allocations: 55.98 kB / 0.8319 GB, free: 8.258 MB / 0.5762 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.0002474/0.1828, allocations: 198.4 kB / 0.832 GB, free: 8.055 MB / 0.5762 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.457e-05/0.1828, allocations: 43.66 kB / 0.8321 GB, free: 8.012 MB / 0.5762 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.1829, allocations: 39.67 kB / 0.8321 GB, free: 7.973 MB / 0.5762 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1829, allocations: 0 / 0.8321 GB, free: 7.973 MB / 0.5762 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1829, allocations: 4 kB / 0.8321 GB, free: 7.969 MB / 0.5762 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1829, allocations: 4 kB / 0.8321 GB, free: 7.965 MB / 0.5762 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.1853, allocations: 0.7122 MB / 0.8328 GB, free: 7.199 MB / 0.5762 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1853, allocations: 0 / 0.8328 GB, free: 7.199 MB / 0.5762 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.978e-05/0.1854, allocations: 7.984 kB / 0.8328 GB, free: 7.191 MB / 0.5762 GB
Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.1854, allocations: 8 kB / 0.8328 GB, free: 7.184 MB / 0.5762 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.1854, allocations: 15.98 kB / 0.8329 GB, free: 7.168 MB / 0.5762 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1854, allocations: 4 kB / 0.8329 GB, free: 7.164 MB / 0.5762 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1854, allocations: 0 / 0.8329 GB, free: 7.164 MB / 0.5762 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.1873, allocations: 479.4 kB / 0.8333 GB, free: 6.68 MB / 0.5762 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/0.1876, allocations: 133.5 kB / 0.8334 GB, free: 6.547 MB / 0.5762 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-05/0.1877, allocations: 12 kB / 0.8335 GB, free: 6.535 MB / 0.5762 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004993/0.1882, allocations: 35.95 kB / 0.8335 GB, free: 6.5 MB / 0.5762 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.1882, allocations: 7.984 kB / 0.8335 GB, free: 6.492 MB / 0.5762 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.94e-05/0.1883, allocations: 55.98 kB / 0.8336 GB, free: 6.438 MB / 0.5762 GB
Notification: Performance of sorting global known variables: time 0.0003151/0.1886, allocations: 299.1 kB / 0.8338 GB, free: 6.145 MB / 0.5762 GB
Notification: Performance of sort global known variables: time 8e-08/0.1886, allocations: 0 / 0.8338 GB, free: 6.145 MB / 0.5762 GB
Notification: Performance of remove unused functions: time 0.0003977/0.189, allocations: 63.98 kB / 0.8339 GB, free: 6.082 MB / 0.5762 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.0001541/0.1892, allocations: 121 kB / 0.834 GB, free: 5.953 MB / 0.5762 GB
Notification: Performance of simCode: created initialization part: time 0.00136/0.1905, allocations: 413.9 kB / 0.8344 GB, free: 5.527 MB / 0.5762 GB
Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1905, allocations: 3.938 kB / 0.8344 GB, free: 5.523 MB / 0.5762 GB
Notification: Performance of simCode: created simulation system equations: time 0.0008297/0.1914, allocations: 115.8 kB / 0.8345 GB, free: 5.41 MB / 0.5762 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.1917, allocations: 30.17 kB / 0.8346 GB, free: 5.383 MB / 0.5762 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.1933, allocations: 0.5475 MB / 0.8351 GB, free: 4.812 MB / 0.5762 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004696/0.1938, allocations: 0.7708 MB / 0.8358 GB, free: 4.016 MB / 0.5762 GB
Notification: Performance of simCode: alias equations: time 6.503e-05/0.1938, allocations: 13.08 kB / 0.8359 GB, free: 4.004 MB / 0.5762 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.1939, allocations: 15.44 kB / 0.8359 GB, free: 3.988 MB / 0.5762 GB
Notification: Performance of SimCode: time 2.8e-07/0.1939, allocations: 0 / 0.8359 GB, free: 3.988 MB / 0.5762 GB
Notification: Performance of Templates: time 0.009666/0.2035, allocations: 5.133 MB / 0.8409 GB, free: 14.76 MB / 0.5919 GB
"
[Timeout remaining time 660]
make -j1 -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.makefile [Timeout 660]
(rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & ./BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime  -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.768541281111538]
Failed to read output from testmodel.py, exit status != 0:
0.21141315530985594 0.22622513600000002 0.05487264
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fd0a47ad7b0>