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.0007146/0.0007146, allocations: 83.34 kB / 20.47 MB, free: 4.109 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.0008238/0.0008238, allocations: 169.3 kB / 23.84 MB, free: 0.7344 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.9398/0.9398, allocations: 177.1 MB / 204.2 MB, free: 5.645 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.03493/0.03493, allocations: 9.15 MB / 269.9 MB, free: 4.27 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.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.743e-06/1.743e-06, allocations: 0 / 342.5 MB, free: 7.344 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.771e-05/2.946e-05, allocations: 6.25 kB / 342.5 MB, free: 7.336 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002923/0.002953, allocations: 2.444 MB / 345 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002016/0.003154, allocations: 179.4 kB / 345.1 MB, free: 4.699 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.051e-05/0.003215, allocations: 7.938 kB / 345.2 MB, free: 4.691 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.003327, allocations: 19.8 kB / 345.2 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.003528, allocations: 55.81 kB / 345.2 MB, free: 4.617 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001039/0.003632, allocations: 43.89 kB / 345.3 MB, free: 4.574 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.577e-05/0.003727, allocations: 75.78 kB / 345.3 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.847e-05/0.003806, allocations: 16.2 kB / 345.4 MB, free: 4.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.095e-05/0.003857, allocations: 43.84 kB / 345.4 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.222e-05/0.003889, allocations: 27.91 kB / 345.4 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.734e-05/0.003906, allocations: 8 kB / 345.4 MB, free: 4.402 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.739e-05/0.004004, allocations: 131.9 kB / 345.6 MB, free: 4.273 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.004022, allocations: 19.91 kB / 345.6 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.835e-05/0.00405, allocations: 15.98 kB / 345.6 MB, free: 4.238 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.00422, allocations: 151.5 kB / 345.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.424e-06/0.004222, allocations: 0 / 345.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.004224, allocations: 0 / 345.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.004227, allocations: 0 / 345.8 MB, free: 4.09 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.0002733/0.0045, allocations: 471.6 kB / 346.2 MB, free: 3.578 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.004529, allocations: 12.03 kB / 346.2 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.004566, allocations: 20.84 kB / 346.2 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.004683, allocations: 144.4 kB / 346.4 MB, free: 3.379 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.004697, allocations: 4.375 kB / 346.4 MB, free: 3.375 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.004709, allocations: 8.375 kB / 346.4 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.004904, allocations: 211.9 kB / 346.6 MB, free: 3.125 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.004912, allocations: 4.125 kB / 346.6 MB, free: 3.121 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.004923, allocations: 8.375 kB / 346.6 MB, free: 3.113 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.004929, allocations: 384 / 346.6 MB, free: 3.113 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.907e-05/0.004968, allocations: 75.33 kB / 346.7 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001956/0.005163, allocations: 283.5 kB / 347 MB, free: 2.711 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001033/0.005267, allocations: 137.5 kB / 347.1 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.989e-05/0.005307, allocations: 90.83 kB / 347.2 MB, free: 2.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.005325, allocations: 4 kB / 347.2 MB, free: 2.426 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.302e-05/0.005338, allocations: 41.31 kB / 347.2 MB, free: 2.375 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 8.42e-07/0.005339, allocations: 0 / 347.2 MB, free: 2.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001849/0.005524, allocations: 267.8 kB / 347.5 MB, free: 2.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.997e-05/0.005554, allocations: 132.5 kB / 347.6 MB, free: 1.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.932e-05/0.005613, allocations: 189.9 kB / 347.8 MB, free: 1.707 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-06/0.00562, allocations: 29.7 kB / 347.8 MB, free: 1.672 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.13e-05/0.005651, allocations: 146.8 kB / 348 MB, free: 1.523 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.582e-06/0.005657, allocations: 7.953 kB / 348 MB, free: 1.516 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/0.005682, allocations: 31.36 kB / 348 MB, free: 1.477 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.578e-05/0.005718, allocations: 492.1 kB / 348.5 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.483e-05/0.005742, allocations: 63.39 kB / 348.6 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.094e-05/0.005763, allocations: 74.78 kB / 348.6 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.048e-05/0.005804, allocations: 146.1 kB / 348.8 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.005806, allocations: 4 kB / 348.8 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.85e-05/0.005874, allocations: 168.4 kB / 348.9 MB, free: 452 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.005894, allocations: 67.34 kB / 349 MB, free: 372 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.005898, allocations: 3.984 kB / 349 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.137e-05/0.00591, allocations: 0 / 349 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.432e-05/0.005934, allocations: 0 / 349 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.005938, allocations: 4 kB / 349 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.005953, allocations: 0 / 349 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.005962, allocations: 7.938 kB / 349 MB, free: 356 kB / 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 4.815e-05/0.00601, allocations: 216 kB / 349.2 MB, free: 116 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003197/0.009207, allocations: 65.53 kB / 349.3 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.401e-05/0.009271, allocations: 12.47 kB / 349.3 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.125e-06/0.009274, allocations: 0 / 349.3 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.009279, allocations: 0 / 349.3 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.009284, allocations: 7.984 kB / 349.3 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001566/0.009441, allocations: 128.6 kB / 349.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.009443, allocations: 0 / 349.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.173e-05/0.009485, allocations: 7.984 kB / 349.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.009489, allocations: 4 kB / 349.5 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.0095, allocations: 3.938 kB / 349.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.009504, allocations: 7.938 kB / 349.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.009509, allocations: 4.312 kB / 349.5 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.009744, allocations: 346.4 kB / 349.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.009763, allocations: 19.89 kB / 349.8 MB, free: 15.43 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.00978, allocations: 3.938 kB / 349.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.095e-05/0.009851, allocations: 4 kB / 349.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.292e-05/0.009874, allocations: 3.984 kB / 349.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-06/0.009881, allocations: 4.234 kB / 349.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.165e-05/0.009942, allocations: 143.2 kB / 350 MB, free: 15.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009943, allocations: 0 / 350 MB, free: 15.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.01012, allocations: 20 kB / 350 MB, free: 15.25 MB / 282.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.0006385/0.01076, allocations: 330.8 kB / 350.3 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002531/0.01101, allocations: 257.3 kB / 350.6 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.01102, allocations: 4 kB / 350.6 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.227e-05/0.01109, allocations: 173.9 kB / 350.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002547/0.01134, allocations: 33.36 kB / 350.8 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004105/0.01175, allocations: 252.4 kB / 351 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.3e-05/0.0118, allocations: 63.34 kB / 351.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.397e-05/0.01184, allocations: 11.98 kB / 351.1 MB, free: 14.06 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.041e-05/0.01187, allocations: 12.5 kB / 351.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01187, allocations: 0 / 351.1 MB, free: 14.05 MB / 282.7 MB Notification: Performance of Templates: time 0.003813/0.01569, allocations: 1.697 MB / 352.8 MB, free: 12.37 MB / 282.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.848789798095822]