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.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.0007016/0.0007016, allocations: 84.44 kB / 20.73 MB, free: 3.836 MB / 18.57 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.0007082/0.0007082, allocations: 165.9 kB / 24 MB, free: 0.5586 MB / 18.57 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.7928/0.7928, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers master/package.mo): time 0.03307/0.03307, allocations: 9.14 MB / 269.9 MB, free: 4.465 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 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 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 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 master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 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.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 2.294e-06/2.294e-06, allocations: 4 kB / 398.3 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.825e-05/2.055e-05, allocations: 5.094 kB / 398.3 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002345/0.002366, allocations: 2.359 MB / 400.7 MB, free: 14.4 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00019/0.002556, allocations: 135.5 kB / 400.8 MB, free: 14.27 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.171e-05/0.002617, allocations: 0 / 400.8 MB, free: 14.27 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.002758, allocations: 23.84 kB / 400.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.02e-05/0.002818, allocations: 7.875 kB / 400.8 MB, free: 14.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001582/0.002976, allocations: 54.89 kB / 400.9 MB, free: 14.19 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.003108, allocations: 83.75 kB / 401 MB, free: 14.11 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.132e-05/0.0032, allocations: 12.23 kB / 401 MB, free: 14.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.466e-05/0.003264, allocations: 43.91 kB / 401 MB, free: 14.05 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.058e-05/0.003305, allocations: 27.89 kB / 401 MB, free: 14.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.003326, allocations: 8 kB / 401 MB, free: 14.01 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.623e-05/0.003382, allocations: 23.94 kB / 401.1 MB, free: 13.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.918e-05/0.003431, allocations: 23.91 kB / 401.1 MB, free: 13.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.224e-05/0.003473, allocations: 19.94 kB / 401.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.00365, allocations: 123.5 kB / 401.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.003653, allocations: 4 kB / 401.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.003654, allocations: 0 / 401.2 MB, free: 13.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.003657, allocations: 4 kB / 401.2 MB, free: 13.82 MB / 378.7 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.0003479/0.004005, allocations: 373.3 kB / 401.6 MB, free: 13.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.004037, allocations: 8.031 kB / 401.6 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.004072, allocations: 12.89 kB / 401.6 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.004238, allocations: 137.5 kB / 401.8 MB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.00425, allocations: 12.36 kB / 401.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.004262, allocations: 4.375 kB / 401.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.004572, allocations: 326.4 kB / 402.1 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.00458, allocations: 192 / 402.1 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.004591, allocations: 8.125 kB / 402.1 MB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.004607, allocations: 11.98 kB / 402.1 MB, free: 12.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.047e-05/0.004698, allocations: 115.4 kB / 402.2 MB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000246/0.004943, allocations: 225.3 kB / 402.4 MB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.00509, allocations: 176.8 kB / 402.6 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.279e-05/0.005162, allocations: 117.1 kB / 402.7 MB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.895e-06/0.00517, allocations: 4 kB / 402.7 MB, free: 12.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.005188, allocations: 34.56 kB / 402.8 MB, free: 12.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.142e-06/0.005189, allocations: 0 / 402.8 MB, free: 12.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003039/0.005493, allocations: 370.3 kB / 403.1 MB, free: 11.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.00555, allocations: 140.5 kB / 403.3 MB, free: 11.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.949e-05/0.00562, allocations: 129.7 kB / 403.4 MB, free: 11.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.00563, allocations: 29.7 kB / 403.4 MB, free: 11.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.632e-05/0.005677, allocations: 96.45 kB / 403.5 MB, free: 11.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.04e-05/0.005687, allocations: 7.938 kB / 403.5 MB, free: 11.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.005718, allocations: 25.7 kB / 403.6 MB, free: 11.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.577e-05/0.005784, allocations: 318.9 kB / 403.9 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.512e-05/0.005819, allocations: 67.39 kB / 403.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.457e-05/0.005854, allocations: 73.22 kB / 404 MB, free: 10.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.827e-05/0.005922, allocations: 148.3 kB / 404.1 MB, free: 10.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.005924, allocations: 0 / 404.1 MB, free: 10.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001044/0.006028, allocations: 176.4 kB / 404.3 MB, free: 10.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.00606, allocations: 63.41 kB / 404.4 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.006065, allocations: 3.984 kB / 404.4 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.949e-06/0.006075, allocations: 0 / 404.4 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.512e-05/0.00611, allocations: 4.062 kB / 404.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.006115, allocations: 4 kB / 404.4 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.006133, allocations: 7.891 kB / 404.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.006141, allocations: 7.984 kB / 404.4 MB, free: 10.23 MB / 378.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 0.0003224/0.006463, allocations: 177.2 kB / 404.6 MB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.211e-05/0.006555, allocations: 121.6 kB / 404.7 MB, free: 9.914 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.081e-05/0.006576, allocations: 12.78 kB / 404.7 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.006585, allocations: 8 kB / 404.7 MB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.006589, allocations: 4.234 kB / 404.7 MB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.006592, allocations: 0 / 404.7 MB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.066e-05/0.006683, allocations: 125.2 kB / 404.8 MB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.006686, allocations: 7.984 kB / 404.9 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.193e-06/0.006693, allocations: 7.938 kB / 404.9 MB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.006695, allocations: 7.938 kB / 404.9 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.006703, allocations: 0 / 404.9 MB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.006705, allocations: 4 kB / 404.9 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.006705, allocations: 0 / 404.9 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002045/0.00691, allocations: 381.5 kB / 405.2 MB, free: 9.289 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.105e-05/0.006921, allocations: 11.95 kB / 405.3 MB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.006933, allocations: 4 kB / 405.3 MB, free: 9.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.17e-05/0.006965, allocations: 3.984 kB / 405.3 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.17e-05/0.006987, allocations: 15.94 kB / 405.3 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.006992, allocations: 4 kB / 405.3 MB, free: 9.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.298e-05/0.007025, allocations: 91.27 kB / 405.4 MB, free: 9.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007025, allocations: 3.938 kB / 405.4 MB, free: 9.156 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001605/0.007186, allocations: 23.94 kB / 405.4 MB, free: 9.133 MB / 378.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: 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.0003672/0.007553, allocations: 276.8 kB / 405.7 MB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001842/0.007737, allocations: 301.5 kB / 406 MB, free: 8.598 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.007738, allocations: 0 / 406 MB, free: 8.598 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.227e-05/0.007801, allocations: 178.2 kB / 406.1 MB, free: 8.387 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002276/0.008028, allocations: 67.98 kB / 406.2 MB, free: 8.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003182/0.008347, allocations: 327 kB / 406.5 MB, free: 7.953 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.336e-05/0.00841, allocations: 97.11 kB / 406.6 MB, free: 7.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.561e-05/0.008426, allocations: 16.69 kB / 406.6 MB, free: 7.82 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.008426, allocations: 0 / 406.6 MB, free: 7.82 MB / 378.7 MB Notification: Performance of Templates: time 0.002124/0.01055, allocations: 1.602 MB / 408.2 MB, free: 6.215 MB / 378.7 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: 8.937096951529384] Failed to read output from testmodel.py, exit status != 0: 0.014861824922263622 0.022193413000000002 0.017033883 Calling exit ...