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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, 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.001518/0.001518, allocations: 191.6 kB / 23.03 MB, free: 5.02 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.345/1.345, 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.05997/0.05997, allocations: 12.18 MB / 319.2 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.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard")
translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 71.88 kB / 445.3 MB, free: 3.949 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.09645/0.09841, allocations: 55.2 MB / 0.4887 GB, free: 12.65 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003777/0.1022, allocations: 2.346 MB / 0.491 GB, free: 10.3 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0002832/0.1025, allocations: 147.5 kB / 0.4912 GB, free: 10.15 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 5.907e-05/0.1025, allocations: 0 / 0.4912 GB, free: 10.15 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.1027, allocations: 27.8 kB / 0.4912 GB, free: 10.12 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.733e-05/0.1027, allocations: 3.938 kB / 0.4912 GB, free: 10.12 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001898/0.1029, allocations: 43.89 kB / 0.4913 GB, free: 10.08 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001569/0.1031, allocations: 87.75 kB / 0.4913 GB, free: 9.992 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 9.525e-05/0.1032, allocations: 16.17 kB / 0.4914 GB, free: 9.973 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 6.573e-05/0.1032, allocations: 31.92 kB / 0.4914 GB, free: 9.941 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 5.711e-05/0.1033, allocations: 35.78 kB / 0.4914 GB, free: 9.906 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.1033, allocations: 4 kB / 0.4914 GB, free: 9.902 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 6.328e-05/0.1034, allocations: 23.98 kB / 0.4914 GB, free: 9.879 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.1034, allocations: 27.92 kB / 0.4915 GB, free: 9.852 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.935e-05/0.1035, allocations: 43.73 kB / 0.4915 GB, free: 9.809 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002074/0.1037, allocations: 111.5 kB / 0.4916 GB, free: 9.699 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1037, allocations: 0 / 0.4916 GB, free: 9.699 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.112e-06/0.1037, allocations: 0 / 0.4916 GB, free: 9.699 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 4.348e-06/0.1037, allocations: 4 kB / 0.4916 GB, free: 9.695 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: 28
 * Number of variables: 28
Notification: Performance of Generate backend data structure: time 0.0004773/0.1042, allocations: 377.2 kB / 0.492 GB, free: 9.281 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.1042, allocations: 8.031 kB / 0.492 GB, free: 9.273 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.1043, allocations: 16.84 kB / 0.492 GB, free: 9.258 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.1045, allocations: 142.4 kB / 0.4921 GB, free: 9.094 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1045, allocations: 4.375 kB / 0.4921 GB, free: 9.09 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.1045, allocations: 8.375 kB / 0.4922 GB, free: 9.082 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000437/0.105, allocations: 274 kB / 0.4924 GB, free: 8.801 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.105, allocations: 0 / 0.4924 GB, free: 8.801 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.105, allocations: 7.984 kB / 0.4924 GB, free: 8.793 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.105, allocations: 4 kB / 0.4924 GB, free: 8.789 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001131/0.1051, allocations: 59.97 kB / 0.4925 GB, free: 8.73 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003595/0.1055, allocations: 276.6 kB / 0.4927 GB, free: 8.414 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.1057, allocations: 125.4 kB / 0.4929 GB, free: 8.273 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 9.568e-05/0.1058, allocations: 61.81 kB / 0.4929 GB, free: 8.207 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.012e-05/0.1058, allocations: 0 / 0.4929 GB, free: 8.207 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.1058, allocations: 42.5 kB / 0.493 GB, free: 8.156 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.062e-06/0.1058, allocations: 0 / 0.493 GB, free: 8.156 MB / 366.1 MB
Notification: Performance of matching and sorting (n=21): time 0.0004303/0.1063, allocations: 252.8 kB / 0.4932 GB, free: 7.891 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/0.1064, allocations: 143.3 kB / 0.4933 GB, free: 7.723 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1065, allocations: 121.8 kB / 0.4935 GB, free: 7.594 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.1065, allocations: 33.7 kB / 0.4935 GB, free: 7.555 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.1066, allocations: 88.47 kB / 0.4936 GB, free: 7.461 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.1066, allocations: 19.88 kB / 0.4936 GB, free: 7.441 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.593e-05/0.1067, allocations: 49.73 kB / 0.4936 GB, free: 7.387 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001441/0.1068, allocations: 322.8 kB / 0.494 GB, free: 7.062 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 6.099e-05/0.1069, allocations: 27.98 kB / 0.494 GB, free: 7.035 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.107, allocations: 153.2 kB / 0.4941 GB, free: 6.824 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.1073, allocations: 307.7 kB / 0.4944 GB, free: 6.438 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1073, allocations: 0 / 0.4944 GB, free: 6.438 MB / 366.1 MB
Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003338/0.1077, allocations: 252.6 kB / 0.4947 GB, free: 6.172 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.1077, allocations: 64.02 kB / 0.4947 GB, free: 6.098 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1077, allocations: 4 kB / 0.4947 GB, free: 6.094 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1077, allocations: 15.94 kB / 0.4947 GB, free: 6.078 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.695e-05/0.1078, allocations: 31.92 kB / 0.4948 GB, free: 6.047 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.1078, allocations: 7.938 kB / 0.4948 GB, free: 6.039 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.181e-05/0.1079, allocations: 19.84 kB / 0.4948 GB, free: 6.02 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.1079, allocations: 16 kB / 0.4948 GB, free: 6.004 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 20
 * Number of states: 0 ()
 * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (21):
 * Single equations (assignments): 19
 * 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.0001673/0.1081, allocations: 203 kB / 0.495 GB, free: 5.781 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001694/0.1083, allocations: 117.6 kB / 0.4951 GB, free: 5.66 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.1083, allocations: 16.72 kB / 0.4951 GB, free: 5.637 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/0.1083, allocations: 15.92 kB / 0.4951 GB, free: 5.621 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1083, allocations: 0 / 0.4951 GB, free: 5.621 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.175e-06/0.1083, allocations: 0 / 0.4951 GB, free: 5.621 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.1085, allocations: 164.6 kB / 0.4953 GB, free: 5.418 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1085, allocations: 0 / 0.4953 GB, free: 5.418 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.239e-05/0.1086, allocations: 4 kB / 0.4953 GB, free: 5.414 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1086, allocations: 0 / 0.4953 GB, free: 5.414 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1086, allocations: 4 kB / 0.4953 GB, free: 5.41 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1086, allocations: 3.938 kB / 0.4953 GB, free: 5.406 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1086, allocations: 144 / 0.4953 GB, free: 5.406 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003486/0.1089, allocations: 335.5 kB / 0.4956 GB, free: 5.047 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.01e-05/0.1089, allocations: 19.84 kB / 0.4957 GB, free: 5.027 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.109, allocations: 0 / 0.4957 GB, free: 5.027 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.606e-05/0.109, allocations: 8 kB / 0.4957 GB, free: 5.02 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.17e-05/0.109, allocations: 0 / 0.4957 GB, free: 5.02 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.1091, allocations: 4.188 kB / 0.4957 GB, free: 5.016 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 5.719e-05/0.1091, allocations: 95.81 kB / 0.4958 GB, free: 4.922 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1091, allocations: 7.938 kB / 0.4958 GB, free: 4.914 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0002921/0.1094, allocations: 31.98 kB / 0.4958 GB, free: 4.883 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (11):
 * Single equations (assignments): 8
 * Array equations: 1
 * 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 Backend phase and start with SimCode phase: time 0.0006632/0.1101, allocations: 259.2 kB / 0.496 GB, free: 4.695 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003044/0.1104, allocations: 243 kB / 0.4963 GB, free: 4.434 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1104, allocations: 0 / 0.4963 GB, free: 4.434 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.1105, allocations: 126.8 kB / 0.4964 GB, free: 4.285 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1108, allocations: 78.34 kB / 0.4965 GB, free: 4.211 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000416/0.1112, allocations: 244.2 kB / 0.4967 GB, free: 3.949 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.1115, allocations: 0.7198 MB / 0.4974 GB, free: 3.203 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 5.27e-05/0.1116, allocations: 20.95 kB / 0.4974 GB, free: 3.18 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.41e-05/0.1116, allocations: 11.44 kB / 0.4974 GB, free: 3.168 MB / 366.1 MB
Notification: Performance of SimCode: time 3.1e-07/0.1116, allocations: 0 / 0.4974 GB, free: 3.168 MB / 366.1 MB
Notification: Performance of Templates: time 0.004435/0.1161, allocations: 1.606 MB / 0.499 GB, free: 1.566 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile [Timeout 660]
(rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard  -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 9.279571577906609]
Failed to read output from testmodel.py, exit status != 0:
0.12271057814359665 0.136415522 0.029908025
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f91cf4497b0>