Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007679/0.0007679, allocations: 72.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009776/0.001746, allocations: 447.8 kB / 10.35 MB, free: 348 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000724/0.000724, allocations: 157.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009274/0.001651, allocations: 467.6 kB / 11.69 MB, free: 2.477 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9564/0.9564, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09119/1.048, allocations: 53.65 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/package.mo): time 0.03448/0.03448, allocations: 9.172 MB / 253.1 MB, free: 6.078 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.008187/0.04267, allocations: 3.437 MB / 256.6 MB, free: 2.641 MB / 250.7 MB " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 257.9 MB, free: 1.371 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.626e-05/1.789e-05, allocations: 2.312 kB / 257.9 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002467/0.002485, allocations: 2.516 MB / 260.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002213/0.002706, allocations: 187.4 kB / 260.6 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.002759, allocations: 3.938 kB / 260.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 6.8e-05/0.002827, allocations: 23.8 kB / 260.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.002991, allocations: 47.83 kB / 260.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001164/0.003108, allocations: 55.8 kB / 260.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.00322, allocations: 67.8 kB / 260.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.39e-05/0.003294, allocations: 16.22 kB / 260.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.747e-05/0.003371, allocations: 43.89 kB / 260.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.579e-05/0.003417, allocations: 27.91 kB / 260.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.003434, allocations: 12 kB / 260.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.003564, allocations: 143.9 kB / 261 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.755e-05/0.003581, allocations: 7.938 kB / 261 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.415e-05/0.003605, allocations: 15.94 kB / 261 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.003776, allocations: 115.6 kB / 261.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.003785, allocations: 0 / 261.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003786, allocations: 0 / 261.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.003796, allocations: 0 / 261.1 MB, free: 14.07 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003345/0.00413, allocations: 359.6 kB / 261.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.732e-05/0.004158, allocations: 8.625 kB / 261.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.004189, allocations: 12.94 kB / 261.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.004324, allocations: 137.7 kB / 261.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.004338, allocations: 4.375 kB / 261.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.818e-06/0.004348, allocations: 8.375 kB / 261.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.004526, allocations: 204.8 kB / 261.8 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.004532, allocations: 192 / 261.8 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-06/0.004539, allocations: 384 / 261.8 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.004544, allocations: 8.375 kB / 261.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.159e-05/0.004586, allocations: 79.27 kB / 261.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.004756, allocations: 169.2 kB / 262.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.004859, allocations: 116.5 kB / 262.2 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.002e-05/0.004899, allocations: 81.19 kB / 262.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.778e-05/0.004917, allocations: 0 / 262.3 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.004935, allocations: 34.56 kB / 262.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 8.51e-07/0.004936, allocations: 0 / 262.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001579/0.005094, allocations: 244.1 kB / 262.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.005128, allocations: 81.2 kB / 262.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.148e-05/0.00519, allocations: 130.7 kB / 262.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.0052, allocations: 29.7 kB / 262.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.005232, allocations: 96.06 kB / 262.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.887e-06/0.005241, allocations: 11.89 kB / 262.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.005266, allocations: 17.7 kB / 262.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.741e-05/0.005334, allocations: 322.8 kB / 263.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.005359, allocations: 63.41 kB / 263.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.193e-05/0.005391, allocations: 81.08 kB / 263.4 MB, free: 11.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.527e-05/0.005446, allocations: 132.5 kB / 263.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.005448, allocations: 4 kB / 263.5 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.483e-05/0.005533, allocations: 160.4 kB / 263.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.484e-05/0.005567, allocations: 55.41 kB / 263.7 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/0.005571, allocations: 0 / 263.7 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.193e-06/0.005578, allocations: 11.92 kB / 263.7 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.528e-05/0.005603, allocations: 0 / 263.7 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-06/0.005605, allocations: 3.938 kB / 263.7 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.914e-05/0.005624, allocations: 11.95 kB / 263.7 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.163e-06/0.005631, allocations: 4 kB / 263.7 MB, free: 11.06 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * 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 6.307e-05/0.005695, allocations: 161.3 kB / 263.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.005737, allocations: 61.61 kB / 264 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.00576, allocations: 12.47 kB / 264 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.005764, allocations: 3.938 kB / 264 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.005766, allocations: 0 / 264 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.005771, allocations: 0 / 264 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.651e-05/0.005848, allocations: 81.88 kB / 264.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.005849, allocations: 0 / 264.1 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.778e-05/0.005867, allocations: 7.984 kB / 264.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-06/0.005875, allocations: 7.953 kB / 264.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.005876, allocations: 0 / 264.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.005881, allocations: 4 kB / 264.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.005884, allocations: 7.938 kB / 264.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.005885, allocations: 0 / 264.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.005988, allocations: 263.1 kB / 264.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.006001, allocations: 8 kB / 264.4 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.917e-05/0.00603, allocations: 8.047 kB / 264.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.54e-05/0.006046, allocations: 7.938 kB / 264.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.138e-06/0.00605, allocations: 0 / 264.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.244e-05/0.006072, allocations: 36.77 kB / 264.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006072, allocations: 0 / 264.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001302/0.006202, allocations: 20 kB / 264.4 MB, free: 10.3 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0006807/0.006883, allocations: 386.5 kB / 264.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001317/0.007015, allocations: 246.4 kB / 265 MB, free: 9.742 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.00702, allocations: 4 kB / 265 MB, free: 9.738 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.213e-05/0.007072, allocations: 179.2 kB / 265.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.007209, allocations: 33.42 kB / 265.3 MB, free: 9.488 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003462/0.007555, allocations: 235.8 kB / 265.5 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.211e-05/0.007587, allocations: 63.34 kB / 265.5 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.765e-05/0.007625, allocations: 15.92 kB / 265.6 MB, free: 9.121 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.007684, allocations: 71.36 kB / 265.6 MB, free: 9.051 MB / 266.7 MB Notification: Performance of SimCode: time 7.01e-07/0.007685, allocations: 0 / 265.6 MB, free: 9.051 MB / 266.7 MB Notification: Performance of Templates: time 0.002926/0.01061, allocations: 1.77 MB / 267.4 MB, free: 7.285 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.425634597428143]