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.001468/0.001468, allocations: 72.23 kB / 19.97 MB, free: 1.734 MB / 14.72 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.00151/0.00151, allocations: 171.4 kB / 23.26 MB, free: 4.848 MB / 14.72 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 1.368/1.368, allocations: 177.1 MB / 203.6 MB, free: 9.156 MB / 190.1 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.05557/0.05557, allocations: 9.175 MB / 269.1 MB, free: 7.887 MB / 254.1 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.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.323e-06/1.323e-06, allocations: 0 / 397.5 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.098e-05/2.23e-05, allocations: 2.281 kB / 397.5 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.00388/0.003903, allocations: 2.373 MB / 399.9 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000363/0.004266, allocations: 175.4 kB / 400.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.194e-05/0.004338, allocations: 0 / 400.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.004477, allocations: 23.75 kB / 400.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003082/0.004786, allocations: 47.83 kB / 400.2 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001767/0.004962, allocations: 55.86 kB / 400.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.005134, allocations: 75.72 kB / 400.3 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.005251, allocations: 16.22 kB / 400.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.218e-05/0.005333, allocations: 43.89 kB / 400.3 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.192e-05/0.005385, allocations: 19.92 kB / 400.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.005411, allocations: 8 kB / 400.4 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.005617, allocations: 135.9 kB / 400.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.005647, allocations: 15.92 kB / 400.5 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.712e-05/0.005694, allocations: 19.94 kB / 400.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003079/0.006002, allocations: 163.6 kB / 400.7 MB, free: 2.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.006004, allocations: 4 kB / 400.7 MB, free: 2.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.41e-07/0.006005, allocations: 4 kB / 400.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.006009, allocations: 0 / 400.7 MB, free: 2.102 MB / 318.1 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.000567/0.006576, allocations: 369.3 kB / 401.1 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.006613, allocations: 12.02 kB / 401.1 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.006657, allocations: 8.891 kB / 401.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002599/0.006917, allocations: 141.6 kB / 401.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.006928, allocations: 4.375 kB / 401.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.875e-05/0.006947, allocations: 4.375 kB / 401.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.007335, allocations: 220.8 kB / 401.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.007344, allocations: 192 / 401.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.007359, allocations: 4.359 kB / 401.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.007363, allocations: 384 / 401.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001266/0.00749, allocations: 91.33 kB / 401.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003448/0.007835, allocations: 229.4 kB / 401.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.008045, allocations: 128.5 kB / 401.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.008159, allocations: 93.19 kB / 402 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.008178, allocations: 0 / 402 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.008211, allocations: 46.44 kB / 402 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.008212, allocations: 0 / 402 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004413/0.008654, allocations: 267.8 kB / 402.3 MB, free: 276 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.835e-05/0.008752, allocations: 140.4 kB / 402.4 MB, free: 104 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.008896, allocations: 136.7 kB / 402.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.00892, allocations: 29.7 kB / 402.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.00898, allocations: 96.09 kB / 402.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.008992, allocations: 7.891 kB / 402.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.009036, allocations: 29.73 kB / 402.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.009186, allocations: 314.8 kB / 403 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.744e-05/0.009253, allocations: 67.39 kB / 403.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.288e-05/0.009326, allocations: 73.12 kB / 403.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.009449, allocations: 140.5 kB / 403.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.009451, allocations: 0 / 403.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000201/0.009652, allocations: 180.4 kB / 403.5 MB, free: 14.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.365e-05/0.009705, allocations: 67.33 kB / 403.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.009709, allocations: 0 / 403.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.009727, allocations: 0 / 403.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.824e-05/0.009755, allocations: 4.062 kB / 403.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.009762, allocations: 4 kB / 403.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.49e-05/0.009786, allocations: 0 / 403.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.009798, allocations: 4 kB / 403.6 MB, free: 14.83 MB / 334.1 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.0001362/0.009934, allocations: 181.8 kB / 403.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.01005, allocations: 57.59 kB / 403.8 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.927e-05/0.01009, allocations: 16.45 kB / 403.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.01009, allocations: 0 / 403.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.0101, allocations: 0 / 403.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.0101, allocations: 4 kB / 403.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.01025, allocations: 129.2 kB / 403.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.01025, allocations: 4.312 kB / 403.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.226e-05/0.01029, allocations: 7.938 kB / 403.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.01029, allocations: 4.172 kB / 404 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.0103, allocations: 7.938 kB / 404 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.01031, allocations: 4 kB / 404 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01031, allocations: 0 / 404 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003523/0.01066, allocations: 323 kB / 404.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.366e-05/0.01067, allocations: 7.953 kB / 404.3 MB, free: 14 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.0107, allocations: 7.938 kB / 404.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.735e-05/0.01076, allocations: 7.984 kB / 404.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.65e-05/0.01079, allocations: 4 kB / 404.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.0108, allocations: 4 kB / 404.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.146e-05/0.01089, allocations: 107.2 kB / 404.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01089, allocations: 0 / 404.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002588/0.01114, allocations: 24 kB / 404.4 MB, free: 13.85 MB / 334.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: 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.0008082/0.01195, allocations: 306.2 kB / 404.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.01225, allocations: 269.5 kB / 405 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01226, allocations: 4.125 kB / 405 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.01239, allocations: 174.2 kB / 405.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.01267, allocations: 31.94 kB / 405.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004024/0.01308, allocations: 237.8 kB / 405.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.299e-05/0.01316, allocations: 79.08 kB / 405.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.19e-05/0.0132, allocations: 15.92 kB / 405.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.303e-05/0.01322, allocations: 12.5 kB / 405.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.01322, allocations: 4.062 kB / 405.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of Templates: time 0.004743/0.01797, allocations: 1.663 MB / 407.2 MB, free: 11.02 MB / 334.1 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=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.077458556741476] Failed to read output from testmodel.py, exit status != 0: 0.0254526250064373 0.039660279 0.030610815000000003 Calling exit ...