Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false)
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false)
Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo)
Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable")
translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable")
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 104.4 kB / 16.38 MB, free: 6.016 MB / 14.72 MB
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 188.4 kB / 17.31 MB, free: 5.617 MB / 14.72 MB
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB
Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.931/1.931, allocations: 292.3 MB / 0.5496 GB, free: 17.6 MB / 462.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 2.994e-05/3.043e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.902 MB / 0.545 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable): time 0.002225/0.002275, allocations: 0.8715 MB / 0.6737 GB, free: 5.031 MB / 0.545 GB
Notification: Performance of NFInst.instExpressions: time 0.002152/0.004442, allocations: 1.452 MB / 0.6751 GB, free: 3.562 MB / 0.545 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.004567, allocations: 8 kB / 0.6752 GB, free: 3.555 MB / 0.545 GB
Notification: Performance of NFTyping.typeComponents: time 0.0005837/0.005157, allocations: 203.4 kB / 0.6754 GB, free: 3.355 MB / 0.545 GB
Notification: Performance of NFTyping.typeBindings: time 0.000135/0.005304, allocations: 103.6 kB / 0.6754 GB, free: 3.254 MB / 0.545 GB
Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.006414, allocations: 364.8 kB / 0.6758 GB, free: 2.906 MB / 0.545 GB
Notification: Performance of NFFlatten.flatten: time 0.0004809/0.006903, allocations: 443.1 kB / 0.6762 GB, free: 2.473 MB / 0.545 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.007053, allocations: 45.66 kB / 0.6763 GB, free: 2.426 MB / 0.545 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.007263, allocations: 211.5 kB / 0.6765 GB, free: 2.219 MB / 0.545 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.007485, allocations: 151.6 kB / 0.6766 GB, free: 2.07 MB / 0.545 GB
Notification: Performance of NFPackage.collectConstants: time 5.636e-05/0.00755, allocations: 28 kB / 0.6766 GB, free: 2.043 MB / 0.545 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002302/0.007787, allocations: 91.88 kB / 0.6767 GB, free: 1.953 MB / 0.545 GB
Notification: Performance of combineBinaries: time 0.0003286/0.008125, allocations: 368.7 kB / 0.6771 GB, free: 1.59 MB / 0.545 GB
Notification: Performance of replaceArrayConstructors: time 0.0001136/0.008246, allocations: 185.5 kB / 0.6773 GB, free: 1.406 MB / 0.545 GB
Notification: Performance of NFVerifyModel.verify: time 4.393e-05/0.008296, allocations: 27.88 kB / 0.6773 GB, free: 1.379 MB / 0.545 GB
Notification: Performance of FrontEnd: time 2.61e-05/0.008329, allocations: 8 kB / 0.6773 GB, free: 1.371 MB / 0.545 GB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 27 (15)
 * Number of variables: 27 (15)
Notification: Performance of Bindings: time 0.001308/0.009642, allocations: 1.231 MB / 0.6785 GB, free: 36 kB / 0.545 GB
Notification: Performance of FunctionAlias: time 0.0001053/0.009755, allocations: 54.23 kB / 0.6785 GB, free: 15.98 MB / 0.5606 GB
Notification: Performance of Early Inline: time 0.0007512/0.01051, allocations: 0.7687 MB / 0.6793 GB, free: 15.2 MB / 0.5606 GB
Notification: Performance of simplify1: time 5.487e-05/0.01058, allocations: 51.92 kB / 0.6793 GB, free: 15.14 MB / 0.5606 GB
Notification: Performance of Alias: time 0.0001503/0.01074, allocations: 145.4 kB / 0.6795 GB, free: 14.96 MB / 0.5606 GB
Notification: Performance of simplify2: time 4.67e-05/0.01079, allocations: 43.94 kB / 0.6795 GB, free: 14.92 MB / 0.5606 GB
Notification: Performance of Events: time 0.0005628/0.01136, allocations: 445.8 kB / 0.6799 GB, free: 14.5 MB / 0.5606 GB
Notification: Performance of Detect States: time 0.0004984/0.01187, allocations: 436.4 kB / 0.6804 GB, free: 14.06 MB / 0.5606 GB
Notification: Performance of Partitioning: time 0.0003974/0.01228, allocations: 378.1 kB / 0.6807 GB, free: 13.55 MB / 0.5606 GB
Error: Internal error NBSorting.tarjan failed to sort system:
system vars Variables (8/13)
******************************
(1)       [DISC] (2) protected Boolean[2] booTimTabOneRow.intGreThr.y
(2)       [DISC] (2) Boolean[2] $SEV_18[$i1]
(3)       [DISC] (2) protected Integer[2] booTimTabOneRow.intGreThr.u
(4)       [DISS] (2) protected Integer[2] booTimTabOneRow.intTimTab.y
(5)       [DISS] (1) protected Integer booTimTabOneRow.intTimTab.idx (fixed = false)
(6)       [DISC] (1) Boolean $TEV_1
(7)       [DISC] (1) Boolean $TEV_0
(8)       [DISC] (2) Boolean[2] booTimTabOneRow.y


system eqns Equations (8/13)
******************************
(1)       [SCAL] (1) $TEV_0 = sample(2, booTimTabOneRow.intTimTab.t0 + booTimTabOneRow.intTimTab.timeStamps[1], booTimTabOneRow.intTimTab.period) ($RES_EVT_48)
(2)       [FOR-] (2) ($RES_SIM_31)
(2)       [----] for $i1 in 1:2 loop
(2)       [----]   [SCAL] (1) booTimTabOneRow.intGreThr[$i1].y = $SEV_18[$i1] ($RES_SIM_32)
(2)       [----] end for;
(3)       [SCAL] (1) $TEV_1 = sample(3, booTimTabOneRow.intTimTab.t0 + booTimTabOneRow.intTimTab.timeStamps[1], booTimTabOneRow.intTimTab.period) ($RES_EVT_49)
(4)       [WHEN] (1)when {$TEV_0} then 
(4)       [----]   booTimTabOneRow.intTimTab.idx := Buildings.Controls.OBC.CDL.Logical.Sources.Validation.TimeTable.booTimTabOneRow.intTimTab.getIndex(time, booTimTabOneRow.intTimTab.period, booTimTabOneRow.intTimTab.timeStamps)
(4)       [----] end when;
(5)       [WHEN] (2)when {$TEV_1} then 
(5)       [----]   booTimTabOneRow.intTimTab.y[:] := booTimTabOneRow.intTimTab.val[booTimTabOneRow.intTimTab.idx, :]
(5)       [----] end when;
(6)       [FOR-] (2) ($RES_EVT_75)
(6)       [----] for $i1 in 1:2 loop
(6)       [----]   [SCAL] (1) $SEV_18[$i1] = booTimTabOneRow.intGreThr[$i1].u > booTimTabOneRow.intGreThr[$i1].t ($RES_EVT_76)
(6)       [----] end for;
(7)       [ARRY] (2) booTimTabOneRow.intGreThr.y = booTimTabOneRow.y ($RES_SIM_41)
(8)       [ARRY] (2) booTimTabOneRow.intTimTab.y = booTimTabOneRow.intGreThr.u ($RES_SIM_42)


===================
Scalar Matching
===================

variable to equation
**********************
        var 1 --> eqn 2
        var 2 --> eqn 3
        var 3 --> eqn 8
        var 4 --> eqn 9
        var 5 --> eqn 12
        var 6 --> eqn 13
        var 7 --> eqn 7
        var 8 --> eqn 6
        var 9 --> eqn 5
        var 10 --> eqn 4
        var 11 --> eqn 1
        var 12 --> eqn 10
        var 13 --> eqn 11

equation to variable
**********************
        eqn 1 --> var 11
        eqn 2 --> var 1
        eqn 3 --> var 2
        eqn 4 --> var 10
        eqn 5 --> var 9
        eqn 6 --> var 8
        eqn 7 --> var 7
        eqn 8 --> var 3
        eqn 9 --> var 4
        eqn 10 --> var 12
        eqn 11 --> var 13
        eqn 12 --> var 5
        eqn 13 --> var 6