Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.001384/0.001384, allocations: 111.2 kB / 19.74 MB, free: 2.152 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.001577/0.001577, allocations: 190.4 kB / 23.03 MB, free: 5.016 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.645/1.645, allocations: 225.6 MB / 251.8 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.06981/0.06981, allocations: 12.18 MB / 319.3 MB, free: 12.84 MB / 254.1 MB
"
[Timeout remaining time 180]
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.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard")
translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 67.89 kB / 445.3 MB, free: 3.961 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1322, allocations: 55.2 MB / 0.4888 GB, free: 12.66 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004987/0.1371, allocations: 2.763 MB / 0.4915 GB, free: 9.891 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0006131/0.1378, allocations: 315 kB / 0.4918 GB, free: 9.582 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.1379, allocations: 11.88 kB / 0.4918 GB, free: 9.57 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.000277/0.1381, allocations: 51.64 kB / 0.4918 GB, free: 9.52 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 8.582e-05/0.1382, allocations: 19.84 kB / 0.4918 GB, free: 9.5 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000306/0.1385, allocations: 87.66 kB / 0.4919 GB, free: 9.414 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002477/0.1388, allocations: 152 kB / 0.4921 GB, free: 9.266 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.139, allocations: 61.48 kB / 0.4921 GB, free: 9.203 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 7.69e-05/0.139, allocations: 59.78 kB / 0.4922 GB, free: 9.145 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.1392, allocations: 67.69 kB / 0.4922 GB, free: 9.078 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.1392, allocations: 12 kB / 0.4923 GB, free: 9.066 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.368e-05/0.1393, allocations: 31.98 kB / 0.4923 GB, free: 9.035 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.932e-05/0.1394, allocations: 59.77 kB / 0.4923 GB, free: 8.977 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.871e-05/0.1394, allocations: 71.56 kB / 0.4924 GB, free: 8.906 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.1398, allocations: 199.1 kB / 0.4926 GB, free: 8.711 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1398, allocations: 0 / 0.4926 GB, free: 8.711 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.643e-06/0.1398, allocations: 0 / 0.4926 GB, free: 8.711 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 6.953e-06/0.1398, allocations: 0 / 0.4926 GB, free: 8.711 MB / 366.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 44
 * Number of variables: 44
Notification: Performance of Generate backend data structure: time 0.0006702/0.1404, allocations: 397.4 kB / 0.493 GB, free: 8.289 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1405, allocations: 8.031 kB / 0.493 GB, free: 8.281 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.953e-05/0.1405, allocations: 20.8 kB / 0.493 GB, free: 8.262 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1408, allocations: 174.2 kB / 0.4932 GB, free: 8.066 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.1408, allocations: 16.38 kB / 0.4932 GB, free: 8.051 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.1409, allocations: 12.38 kB / 0.4932 GB, free: 8.039 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003267/0.1412, allocations: 183.9 kB / 0.4934 GB, free: 7.848 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1412, allocations: 192 / 0.4934 GB, free: 7.848 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.45e-05/0.1412, allocations: 11.94 kB / 0.4934 GB, free: 7.836 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.1412, allocations: 4 kB / 0.4934 GB, free: 7.832 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.1415, allocations: 116.1 kB / 0.4935 GB, free: 7.715 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007927/0.1423, allocations: 452.6 kB / 0.4939 GB, free: 7.227 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.1425, allocations: 109.1 kB / 0.494 GB, free: 7.102 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.1426, allocations: 69.69 kB / 0.4941 GB, free: 7.027 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.1426, allocations: 0 / 0.4941 GB, free: 7.027 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.1429, allocations: 133 kB / 0.4942 GB, free: 6.879 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=23): time 1.112e-06/0.1429, allocations: 0 / 0.4942 GB, free: 6.879 MB / 366.1 MB
Notification: Performance of matching and sorting (n=23): time 0.0004582/0.1433, allocations: 247.5 kB / 0.4945 GB, free: 6.633 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.1434, allocations: 89.11 kB / 0.4945 GB, free: 6.527 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001552/0.1436, allocations: 149.2 kB / 0.4947 GB, free: 6.375 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.1436, allocations: 33.7 kB / 0.4947 GB, free: 6.336 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/0.1437, allocations: 128.8 kB / 0.4948 GB, free: 6.207 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.911e-05/0.1437, allocations: 67.59 kB / 0.4949 GB, free: 6.141 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.1438, allocations: 57.94 kB / 0.495 GB, free: 6.074 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001604/0.144, allocations: 342.7 kB / 0.4953 GB, free: 5.73 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1441, allocations: 68.23 kB / 0.4954 GB, free: 5.664 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002064/0.1443, allocations: 167.5 kB / 0.4955 GB, free: 5.461 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.1446, allocations: 247 kB / 0.4958 GB, free: 5.18 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1446, allocations: 0 / 0.4958 GB, free: 5.18 MB / 366.1 MB
Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004211/0.1451, allocations: 281.4 kB / 0.496 GB, free: 4.898 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.1451, allocations: 4 kB / 0.496 GB, free: 4.895 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.1451, allocations: 4 kB / 0.496 GB, free: 4.891 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.1451, allocations: 12.17 kB / 0.496 GB, free: 4.879 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1452, allocations: 27.94 kB / 0.4961 GB, free: 4.852 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/0.1452, allocations: 7.984 kB / 0.4961 GB, free: 4.844 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.144e-05/0.1453, allocations: 23.84 kB / 0.4961 GB, free: 4.82 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.1453, allocations: 12 kB / 0.4961 GB, free: 4.809 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 13
 * Number of states: 0 ()
 * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (33):
 * Single equations (assignments): 32
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 1
 * 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.0001787/0.1455, allocations: 169.6 kB / 0.4963 GB, free: 4.633 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.52e-05/0.1456, allocations: 11.95 kB / 0.4963 GB, free: 4.621 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.449e-05/0.1456, allocations: 21.36 kB / 0.4963 GB, free: 4.598 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1456, allocations: 7.938 kB / 0.4963 GB, free: 4.59 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.1456, allocations: 4 kB / 0.4963 GB, free: 4.586 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1456, allocations: 0 / 0.4963 GB, free: 4.586 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.1459, allocations: 216.5 kB / 0.4965 GB, free: 4.332 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.1459, allocations: 4 kB / 0.4965 GB, free: 4.328 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.674e-05/0.1459, allocations: 4 kB / 0.4965 GB, free: 4.324 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1459, allocations: 0 / 0.4965 GB, free: 4.324 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.1459, allocations: 4 kB / 0.4965 GB, free: 4.32 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.1459, allocations: 4 kB / 0.4965 GB, free: 4.316 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1459, allocations: 4 kB / 0.4965 GB, free: 4.312 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003261/0.1463, allocations: 233.7 kB / 0.4968 GB, free: 4.062 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.1463, allocations: 15.84 kB / 0.4968 GB, free: 4.047 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.1463, allocations: 3.984 kB / 0.4968 GB, free: 4.043 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.125e-05/0.1463, allocations: 8 kB / 0.4968 GB, free: 4.035 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.1464, allocations: 7.984 kB / 0.4968 GB, free: 4.027 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.1464, allocations: 4 kB / 0.4968 GB, free: 4.023 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 8.887e-05/0.1465, allocations: 117.8 kB / 0.4969 GB, free: 3.91 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8.1e-08/0.1465, allocations: 0 / 0.4969 GB, free: 3.91 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.000281/0.1468, allocations: 47.88 kB / 0.497 GB, free: 3.863 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10])
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (11):
 * Single equations (assignments): 9
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 1
 * When equations: 1
 * 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.0006133/0.1474, allocations: 217.5 kB / 0.4972 GB, free: 3.684 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003532/0.1477, allocations: 205.2 kB / 0.4974 GB, free: 3.477 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1477, allocations: 0 / 0.4974 GB, free: 3.477 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001142/0.1478, allocations: 89.61 kB / 0.4974 GB, free: 3.383 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001749/0.148, allocations: 11.94 kB / 0.4975 GB, free: 3.371 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006446/0.1487, allocations: 348.6 kB / 0.4978 GB, free: 3 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/0.149, allocations: 0.7439 MB / 0.4985 GB, free: 2.23 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 6.031e-05/0.1491, allocations: 17.48 kB / 0.4985 GB, free: 2.215 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.1491, allocations: 15.44 kB / 0.4985 GB, free: 2.199 MB / 366.1 MB
Notification: Performance of SimCode: time 3.21e-07/0.1491, allocations: 0 / 0.4985 GB, free: 2.199 MB / 366.1 MB
Notification: Performance of Templates: time 0.005034/0.1542, allocations: 1.428 MB / 0.4999 GB, free: 0.7734 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile [Timeout 660]
(rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard  -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 10.338452138006687]
Failed to read output from testmodel.py, exit status != 0:
0.16158638149499893 0.176755399 0.033784894
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fb491d717b0>