Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.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.001746/0.001746, allocations: 115.3 kB / 19.74 MB, free: 2.137 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.00195/0.00195, allocations: 186.3 kB / 23.02 MB, free: 4.953 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.58/1.58, 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.06454/0.06454, allocations: 12.19 MB / 319.2 MB, free: 12.85 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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey")
translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002043/0.002043, allocations: 71.83 kB / 445.3 MB, free: 3.961 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1291, allocations: 55.2 MB / 0.4888 GB, free: 12.66 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.005001/0.1341, allocations: 2.785 MB / 0.4915 GB, free: 9.871 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0006669/0.1348, allocations: 346.9 kB / 0.4918 GB, free: 9.531 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.1349, allocations: 15.88 kB / 0.4918 GB, free: 9.516 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002753/0.1352, allocations: 51.62 kB / 0.4919 GB, free: 9.465 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.1354, allocations: 47.77 kB / 0.4919 GB, free: 9.418 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002897/0.1357, allocations: 91.64 kB / 0.492 GB, free: 9.328 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002917/0.136, allocations: 156 kB / 0.4922 GB, free: 9.176 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002143/0.1362, allocations: 57.5 kB / 0.4922 GB, free: 9.117 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 8.951e-05/0.1363, allocations: 63.78 kB / 0.4923 GB, free: 9.055 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.1365, allocations: 71.67 kB / 0.4923 GB, free: 8.984 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.316e-05/0.1365, allocations: 12 kB / 0.4923 GB, free: 8.973 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002585/0.1367, allocations: 139.9 kB / 0.4925 GB, free: 8.836 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1368, allocations: 51.84 kB / 0.4925 GB, free: 8.785 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.1369, allocations: 67.56 kB / 0.4926 GB, free: 8.719 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000473/0.1374, allocations: 227.2 kB / 0.4928 GB, free: 8.496 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1374, allocations: 0 / 0.4928 GB, free: 8.496 MB / 366.1 MB
Notification: Performance of FrontEnd: time 3.135e-06/0.1374, allocations: 0 / 0.4928 GB, free: 8.496 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 7.764e-06/0.1374, allocations: 0 / 0.4928 GB, free: 8.496 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: 31
 * Number of variables: 31
Notification: Performance of Generate backend data structure: time 0.0007813/0.1382, allocations: 385.7 kB / 0.4932 GB, free: 8.082 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.1383, allocations: 8.031 kB / 0.4932 GB, free: 8.074 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.303e-05/0.1383, allocations: 16.84 kB / 0.4932 GB, free: 8.059 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.1387, allocations: 182.2 kB / 0.4934 GB, free: 7.855 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.1387, allocations: 8.609 kB / 0.4934 GB, free: 7.848 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.1387, allocations: 8.375 kB / 0.4934 GB, free: 7.84 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/0.1391, allocations: 156.8 kB / 0.4935 GB, free: 7.676 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.1391, allocations: 4.188 kB / 0.4935 GB, free: 7.672 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.1391, allocations: 7.938 kB / 0.4936 GB, free: 7.664 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.265e-05/0.1391, allocations: 8 kB / 0.4936 GB, free: 7.656 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.1393, allocations: 76.19 kB / 0.4936 GB, free: 7.582 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007321/0.14, allocations: 440.7 kB / 0.4941 GB, free: 7.105 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.1402, allocations: 73.12 kB / 0.4941 GB, free: 7.016 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 7.546e-05/0.1402, allocations: 37.8 kB / 0.4942 GB, free: 6.973 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.1403, allocations: 7.938 kB / 0.4942 GB, free: 6.965 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/0.1405, allocations: 93.09 kB / 0.4943 GB, free: 6.855 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.1405, allocations: 0 / 0.4943 GB, free: 6.855 MB / 366.1 MB
Notification: Performance of matching and sorting (n=10): time 0.0003173/0.1408, allocations: 121.8 kB / 0.4944 GB, free: 6.73 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.1409, allocations: 85.05 kB / 0.4945 GB, free: 6.629 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.1411, allocations: 158.2 kB / 0.4946 GB, free: 6.465 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.1411, allocations: 29.7 kB / 0.4946 GB, free: 6.43 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1412, allocations: 128.3 kB / 0.4948 GB, free: 6.297 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.1413, allocations: 31.69 kB / 0.4948 GB, free: 6.266 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.1413, allocations: 33.7 kB / 0.4948 GB, free: 6.227 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001443/0.1415, allocations: 326.8 kB / 0.4951 GB, free: 5.898 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.968e-05/0.1415, allocations: 27.98 kB / 0.4952 GB, free: 5.871 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 7.548e-05/0.1416, allocations: 51.42 kB / 0.4952 GB, free: 5.809 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.1417, allocations: 91.34 kB / 0.4953 GB, free: 5.707 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1417, allocations: 0 / 0.4953 GB, free: 5.707 MB / 366.1 MB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002147/0.142, allocations: 121.5 kB / 0.4954 GB, free: 5.582 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.142, allocations: 4 kB / 0.4954 GB, free: 5.578 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.142, allocations: 3.984 kB / 0.4954 GB, free: 5.574 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.142, allocations: 4 kB / 0.4954 GB, free: 5.57 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/0.1421, allocations: 20.3 kB / 0.4954 GB, free: 5.551 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.1421, allocations: 0 / 0.4954 GB, free: 5.551 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.797e-05/0.1421, allocations: 11.94 kB / 0.4954 GB, free: 5.539 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.1421, allocations: 8 kB / 0.4955 GB, free: 5.531 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (12):
 * Single equations (assignments): 11
 * 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.0001332/0.1423, allocations: 141.7 kB / 0.4956 GB, free: 5.383 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.452e-05/0.1423, allocations: 11.91 kB / 0.4956 GB, free: 5.371 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.776e-05/0.1423, allocations: 12.72 kB / 0.4956 GB, free: 5.352 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1423, allocations: 0 / 0.4956 GB, free: 5.352 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.1424, allocations: 4 kB / 0.4956 GB, free: 5.348 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1424, allocations: 7.984 kB / 0.4956 GB, free: 5.34 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002242/0.1426, allocations: 196.6 kB / 0.4958 GB, free: 5.105 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.1426, allocations: 8 kB / 0.4958 GB, free: 5.098 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.364e-05/0.1426, allocations: 7.938 kB / 0.4958 GB, free: 5.09 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1426, allocations: 0 / 0.4958 GB, free: 5.09 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1426, allocations: 0 / 0.4958 GB, free: 5.09 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.1426, allocations: 3.984 kB / 0.4958 GB, free: 5.086 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1426, allocations: 4 kB / 0.4958 GB, free: 5.082 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.1429, allocations: 141.7 kB / 0.496 GB, free: 4.922 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.724e-05/0.1429, allocations: 7.953 kB / 0.496 GB, free: 4.914 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.1429, allocations: 4 kB / 0.496 GB, free: 4.91 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.727e-05/0.1429, allocations: 4 kB / 0.496 GB, free: 4.906 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.143, allocations: 7.984 kB / 0.496 GB, free: 4.898 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.143, allocations: 0 / 0.496 GB, free: 4.898 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0001024/0.1431, allocations: 120.1 kB / 0.4961 GB, free: 4.781 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1431, allocations: 4 kB / 0.4961 GB, free: 4.777 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.000256/0.1433, allocations: 39.83 kB / 0.4962 GB, free: 4.738 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (7):
 * Single equations (assignments): 4
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 1
 * When equations: 2
 * 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.0006422/0.144, allocations: 243.7 kB / 0.4964 GB, free: 4.539 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002382/0.1442, allocations: 101.5 kB / 0.4965 GB, free: 4.434 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.1442, allocations: 0 / 0.4965 GB, free: 4.434 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 9.201e-05/0.1443, allocations: 57.62 kB / 0.4965 GB, free: 4.371 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.1445, allocations: 14.78 kB / 0.4965 GB, free: 4.359 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005545/0.145, allocations: 275.7 kB / 0.4968 GB, free: 4.062 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.1454, allocations: 0.7353 MB / 0.4975 GB, free: 3.301 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 4.983e-05/0.1455, allocations: 16.48 kB / 0.4975 GB, free: 3.285 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.1455, allocations: 23.31 kB / 0.4976 GB, free: 3.266 MB / 366.1 MB
Notification: Performance of SimCode: time 2.91e-07/0.1455, allocations: 0 / 0.4976 GB, free: 3.266 MB / 366.1 MB
Notification: Performance of Templates: time 0.005051/0.1506, allocations: 1.473 MB / 0.499 GB, free: 1.797 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile [Timeout 660]
(rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey  -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 10.37347632739693]
Failed to read output from testmodel.py, exit status != 0:
0.1596320066601038 0.17660376400000002 0.035716447000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fc8ab8497b0>