Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.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(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 111 kB / 17.09 MB, free: 5.988 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.001151/0.001151, allocations: 188.7 kB / 18.03 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.249/1.249, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.0552/0.0552, allocations: 12.05 MB / 303.9 MB, free: 3.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.085e-05/2.086e-05, allocations: 2.281 kB / 367.9 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.00328/0.003315, allocations: 2.23 MB / 370.1 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00025/0.003579, allocations: 123.5 kB / 370.2 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.052e-05/0.003652, allocations: 4 kB / 370.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.003795, allocations: 27.84 kB / 370.3 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.873e-05/0.003861, allocations: 7.875 kB / 370.3 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.004068, allocations: 51.81 kB / 370.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.004248, allocations: 83.81 kB / 370.4 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.00437, allocations: 32.19 kB / 370.4 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.353e-05/0.00443, allocations: 31.86 kB / 370.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.545e-05/0.004482, allocations: 35.8 kB / 370.5 MB, free: 476 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.004509, allocations: 8 kB / 370.5 MB, free: 468 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.05e-05/0.004575, allocations: 27.98 kB / 370.5 MB, free: 440 kB / 302.1 MB Notification: Performance of combineBinaries: time 0.0001054/0.004686, allocations: 122.5 kB / 370.6 MB, free: 316 kB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 4.044e-05/0.004733, allocations: 74.88 kB / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.083e-05/0.004771, allocations: 11.94 kB / 370.7 MB, free: 228 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.111e-05/0.004797, allocations: 3.938 kB / 370.7 MB, free: 224 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 (16) * Number of variables: 26 (17) Notification: Performance of Bindings: time 0.1201/0.1249, allocations: 406.9 kB / 371.1 MB, free: 51.29 MB / 302.1 MB Notification: Performance of FunctionAlias: time 3.897e-05/0.1249, allocations: 25.27 kB / 371.2 MB, free: 51.29 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0001607/0.1251, allocations: 202.4 kB / 371.4 MB, free: 51.23 MB / 302.1 MB Notification: Performance of simplify1: time 1.062e-05/0.1251, allocations: 10.03 kB / 371.4 MB, free: 51.23 MB / 302.1 MB Notification: Performance of Alias: time 0.0003845/0.1255, allocations: 292.3 kB / 371.6 MB, free: 51.09 MB / 302.1 MB Notification: Performance of simplify2: time 6.121e-06/0.1255, allocations: 5.484 kB / 371.7 MB, free: 51.09 MB / 302.1 MB Notification: Performance of Events: time 0.0001297/0.1257, allocations: 74.91 kB / 371.7 MB, free: 51.09 MB / 302.1 MB Notification: Performance of Detect States: time 0.0001757/0.1258, allocations: 108.4 kB / 371.8 MB, free: 51.06 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001097/0.126, allocations: 101.2 kB / 371.9 MB, free: 51.03 MB / 302.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (15/24) ******************************* (1) [DISC] (1) Boolean keyboardInput.keyRight (2) [DISC] (1) Boolean keyboardInput.keyReturn (3) [ALGB] (1) Clock periodicRealClock.y (4) [DISC] (1) Boolean $SEV_11 (5) [DISC] (1) Boolean keyboardInput.keyUp (6) [DISC] (1) Boolean $SEV_10 (7) [DISC] (1) Boolean $SEV_9 (8) [DISC] (1) Boolean $SEV_8 (9) [DISC] (1) Boolean $SEV_7 (10) [DISC] (1) Boolean $SEV_6 (11) [DISS] (10) protected Integer[10] keyboardInput.KeyCode (fixed = {true for $i1 in 1:10}, start = {0 for $i1 in 1:10}) (12) [DISC] (1) Boolean keyboardInput.keySpace (13) [DISC] (1) Boolean keyboardInput.keyLeft (14) [DISC] (1) Boolean keyboardInput.keyDown (15) [DISS] (1) Boolean assignClock1.y system eqns Equations (15/24) ******************************* (1) [WHEN] (1)when periodicRealClock.y then (1) [----] assignClock1.y := keyboardInput.keyUp (1) [----] end when; (2) [WHEN] (10)when Clock() then (2) [----] keyboardInput.KeyCode := Modelica_DeviceDrivers.InputDevices.Keyboard.getData() (2) [----] end when; (3) [SCAL] (1) keyboardInput.keyUp = $SEV_11 ($RES_SIM_7) (4) [SCAL] (1) keyboardInput.keyDown = $SEV_10 ($RES_SIM_6) (5) [SCAL] (1) keyboardInput.keyRight = $SEV_9 ($RES_SIM_5) (6) [SCAL] (1) periodicRealClock.y = Clock(periodicRealClock.period) ($RES_SIM_10) (7) [SCAL] (1) $SEV_10 = keyboardInput.KeyCode[2] == 1 ($RES_EVT_20) (8) [SCAL] (1) $SEV_11 = keyboardInput.KeyCode[1] == 1 ($RES_EVT_21) (9) [SCAL] (1) keyboardInput.keyLeft = $SEV_8 ($RES_SIM_4) (10) [SCAL] (1) keyboardInput.keyReturn = $SEV_7 ($RES_SIM_3) (11) [SCAL] (1) $SEV_6 = keyboardInput.KeyCode[6] == 1 ($RES_EVT_16) (12) [SCAL] (1) $SEV_7 = keyboardInput.KeyCode[5] == 1 ($RES_EVT_17) (13) [SCAL] (1) keyboardInput.keySpace = $SEV_6 ($RES_SIM_2) (14) [SCAL] (1) $SEV_8 = keyboardInput.KeyCode[4] == 1 ($RES_EVT_18) (15) [SCAL] (1) $SEV_9 = keyboardInput.KeyCode[3] == 1 ($RES_EVT_19) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 14 var 2 --> eqn 19 var 3 --> eqn 15 var 4 --> eqn 17 var 5 --> eqn 12 var 6 --> eqn 16 var 7 --> eqn 24 var 8 --> eqn 23 var 9 --> eqn 21 var 10 --> eqn 20 var 11 --> eqn 11 var 12 --> eqn 10 var 13 --> eqn 9 var 14 --> eqn 8 var 15 --> eqn 7 var 16 --> eqn 6 var 17 --> eqn 5 var 18 --> eqn 4 var 19 --> eqn 3 var 20 --> eqn 2 var 21 --> eqn 22 var 22 --> eqn 18 var 23 --> eqn 13 var 24 --> eqn 1 equation to variable ********************** eqn 1 --> var 24 eqn 2 --> var 20 eqn 3 --> var 19 eqn 4 --> var 18 eqn 5 --> var 17 eqn 6 --> var 16 eqn 7 --> var 15 eqn 8 --> var 14 eqn 9 --> var 13 eqn 10 --> var 12 eqn 11 --> var 11 eqn 12 --> var 5 eqn 13 --> var 23 eqn 14 --> var 1 eqn 15 --> var 3 eqn 16 --> var 6 eqn 17 --> var 4 eqn 18 --> var 22 eqn 19 --> var 2 eqn 20 --> var 10 eqn 21 --> var 9 eqn 22 --> var 21 eqn 23 --> var 8 eqn 24 --> var 7