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.0009173/0.0009173, allocations: 79.36 kB / 20.47 MB, free: 4.105 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.001019/0.001019, allocations: 169 kB / 23.84 MB, free: 0.7305 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.9524/0.9524, allocations: 177.1 MB / 204.2 MB, free: 5.641 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.03719/0.03719, allocations: 9.146 MB / 269.9 MB, free: 4.262 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 1.442e-06/1.442e-06, allocations: 3.938 kB / 342.5 MB, free: 7.316 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.223e-05/1.368e-05, allocations: 6.312 kB / 342.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.008507/0.008521, allocations: 2.421 MB / 345 MB, free: 4.871 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002066/0.008727, allocations: 131.5 kB / 345.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.392e-05/0.008791, allocations: 0 / 345.1 MB, free: 4.742 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.008944, allocations: 35.72 kB / 345.1 MB, free: 4.707 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.774e-05/0.009012, allocations: 7.875 kB / 345.1 MB, free: 4.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001656/0.009178, allocations: 43.94 kB / 345.2 MB, free: 4.656 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.009311, allocations: 79.77 kB / 345.2 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.035e-05/0.009401, allocations: 12.22 kB / 345.3 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.551e-05/0.009467, allocations: 43.91 kB / 345.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.191e-05/0.009509, allocations: 27.91 kB / 345.3 MB, free: 4.492 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.217e-05/0.009531, allocations: 4 kB / 345.3 MB, free: 4.488 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.693e-05/0.009588, allocations: 31.86 kB / 345.4 MB, free: 4.457 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.919e-05/0.009637, allocations: 23.92 kB / 345.4 MB, free: 4.434 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.529e-05/0.009682, allocations: 23.92 kB / 345.4 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.009842, allocations: 91.66 kB / 345.5 MB, free: 4.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.009845, allocations: 4 kB / 345.5 MB, free: 4.316 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.009846, allocations: 4 kB / 345.5 MB, free: 4.312 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.009849, allocations: 0 / 345.5 MB, free: 4.312 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003461/0.0102, allocations: 479.6 kB / 346 MB, free: 3.793 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.01023, allocations: 8.031 kB / 346 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.01028, allocations: 20.84 kB / 346 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.01043, allocations: 136.5 kB / 346.1 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.01045, allocations: 4.375 kB / 346.1 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.01046, allocations: 12.38 kB / 346.2 MB, free: 3.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.01074, allocations: 278.7 kB / 346.4 MB, free: 3.281 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.01075, allocations: 192 / 346.4 MB, free: 3.281 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.01076, allocations: 12.12 kB / 346.4 MB, free: 3.27 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/0.01078, allocations: 4 kB / 346.4 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.202e-05/0.01085, allocations: 91.31 kB / 346.5 MB, free: 3.164 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003274/0.01412, allocations: 291.4 kB / 346.8 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.01425, allocations: 153.8 kB / 347 MB, free: 2.652 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.924e-05/0.0143, allocations: 106.8 kB / 347.1 MB, free: 2.527 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.234e-06/0.01431, allocations: 3.938 kB / 347.1 MB, free: 2.523 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.01433, allocations: 41.38 kB / 347.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.002e-06/0.01433, allocations: 0 / 347.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002797/0.01461, allocations: 299.7 kB / 347.4 MB, free: 2.137 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.01465, allocations: 136.5 kB / 347.5 MB, free: 1.973 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.451e-05/0.01471, allocations: 185.8 kB / 347.7 MB, free: 1.773 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.063e-06/0.01472, allocations: 33.73 kB / 347.8 MB, free: 1.734 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.463e-05/0.01476, allocations: 143.2 kB / 347.9 MB, free: 1.586 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.987e-06/0.01476, allocations: 3.953 kB / 347.9 MB, free: 1.582 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.01479, allocations: 31.36 kB / 347.9 MB, free: 1.543 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.462e-05/0.01484, allocations: 0.4884 MB / 348.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.029e-05/0.01486, allocations: 55.41 kB / 348.5 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.307e-05/0.01488, allocations: 82.7 kB / 348.6 MB, free: 0.875 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.68e-05/0.01493, allocations: 138.2 kB / 348.7 MB, free: 0.707 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.01493, allocations: 0 / 348.7 MB, free: 0.707 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001009/0.01503, allocations: 180.3 kB / 348.9 MB, free: 0.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.01506, allocations: 63.47 kB / 348.9 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.01506, allocations: 0 / 348.9 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.01508, allocations: 0 / 348.9 MB, free: 436 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.92e-05/0.01511, allocations: 7.984 kB / 348.9 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.01512, allocations: 3.938 kB / 348.9 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.29e-05/0.01514, allocations: 3.938 kB / 348.9 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.413e-06/0.01515, allocations: 4 kB / 348.9 MB, free: 416 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 5.69e-05/0.01521, allocations: 212 kB / 349.2 MB, free: 180 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.942e-05/0.0153, allocations: 104.3 kB / 349.3 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.19e-05/0.01532, allocations: 16.77 kB / 349.3 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.01533, allocations: 8 kB / 349.3 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.01533, allocations: 0 / 349.3 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.01534, allocations: 4 kB / 349.3 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001429/0.01548, allocations: 132.6 kB / 349.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.01548, allocations: 0 / 349.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.454e-06/0.01549, allocations: 4 kB / 349.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.01549, allocations: 3.938 kB / 349.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.0155, allocations: 4 kB / 349.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.0155, allocations: 0 / 349.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.0155, allocations: 0 / 349.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002521/0.01576, allocations: 404.1 kB / 349.8 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.374e-05/0.01577, allocations: 15.89 kB / 349.8 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.01579, allocations: 0 / 349.8 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.771e-05/0.01583, allocations: 4 kB / 349.8 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.01587, allocations: 11.94 kB / 349.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.01587, allocations: 240 / 349.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.112e-05/0.01592, allocations: 135.2 kB / 350 MB, free: 15.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01592, allocations: 0 / 350 MB, free: 15.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002372/0.01616, allocations: 23.92 kB / 350 MB, free: 15.23 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: 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.0005914/0.01675, allocations: 303.7 kB / 350.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002216/0.01697, allocations: 273.1 kB / 350.6 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01698, allocations: 0 / 350.6 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.803e-05/0.01705, allocations: 181.9 kB / 350.7 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.0003055/0.01736, allocations: 51.83 kB / 350.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003073/0.01767, allocations: 285.5 kB / 351.1 MB, free: 14.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.392e-05/0.01771, allocations: 71.59 kB / 351.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.153e-05/0.01774, allocations: 19.86 kB / 351.2 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.667e-05/0.01776, allocations: 8.5 kB / 351.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.01776, allocations: 0 / 351.2 MB, free: 13.99 MB / 282.7 MB Notification: Performance of Templates: time 0.002956/0.02072, allocations: 1.482 MB / 352.7 MB, free: 12.51 MB / 282.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=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.620628917124122]