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.0009544/0.0009544, allocations: 81.08 kB / 20.7 MB, free: 3.801 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.0009758/0.0009758, allocations: 173.7 kB / 24.1 MB, free: 412 kB / 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.9643/0.9643, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.03628/0.03628, allocations: 9.148 MB / 270.2 MB, free: 4.098 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.242e-06/1.242e-06, allocations: 0 / 343 MB, free: 8.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.458e-05, allocations: 2.312 kB / 343 MB, free: 8.066 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003526/0.003551, allocations: 2.427 MB / 345.4 MB, free: 5.621 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.000242/0.003793, allocations: 127.5 kB / 345.5 MB, free: 5.496 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.076e-05/0.003863, allocations: 11.88 kB / 345.5 MB, free: 5.484 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.004011, allocations: 27.78 kB / 345.6 MB, free: 5.457 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.271e-05/0.004074, allocations: 3.938 kB / 345.6 MB, free: 5.453 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002077/0.004282, allocations: 47.89 kB / 345.6 MB, free: 5.406 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.004454, allocations: 79.75 kB / 345.7 MB, free: 5.328 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.298e-05/0.004547, allocations: 12.23 kB / 345.7 MB, free: 5.312 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.794e-05/0.004625, allocations: 47.89 kB / 345.8 MB, free: 5.266 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.666e-05/0.004672, allocations: 23.91 kB / 345.8 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.004697, allocations: 8 kB / 345.8 MB, free: 5.234 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.958e-05/0.004757, allocations: 19.94 kB / 345.8 MB, free: 5.215 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.331e-05/0.00481, allocations: 31.91 kB / 345.8 MB, free: 5.184 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.004851, allocations: 27.88 kB / 345.9 MB, free: 5.156 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001758/0.005027, allocations: 83.72 kB / 346 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.00503, allocations: 7.938 kB / 346 MB, free: 5.066 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.005031, allocations: 0 / 346 MB, free: 5.066 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.005035, allocations: 0 / 346 MB, free: 5.066 MB / 314.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.0005411/0.005576, allocations: 471.6 kB / 346.4 MB, free: 4.555 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.005614, allocations: 12.03 kB / 346.4 MB, free: 4.543 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.678e-05/0.005661, allocations: 20.84 kB / 346.5 MB, free: 4.523 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/0.005835, allocations: 152.3 kB / 346.6 MB, free: 4.348 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.005846, allocations: 12.38 kB / 346.6 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.00586, allocations: 8.375 kB / 346.6 MB, free: 4.328 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002926/0.006153, allocations: 266.5 kB / 346.9 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.006162, allocations: 192 / 346.9 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.006173, allocations: 8.125 kB / 346.9 MB, free: 4.027 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/0.006195, allocations: 12 kB / 346.9 MB, free: 4.016 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.567e-05/0.006261, allocations: 77.36 kB / 347 MB, free: 3.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003146/0.006575, allocations: 268 kB / 347.2 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.006725, allocations: 153.8 kB / 347.4 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.583e-05/0.006791, allocations: 98.77 kB / 347.5 MB, free: 3.332 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.006801, allocations: 4 kB / 347.5 MB, free: 3.328 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.006829, allocations: 37.33 kB / 347.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.883e-06/0.00683, allocations: 0 / 347.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003188/0.007149, allocations: 295.7 kB / 347.8 MB, free: 2.949 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.007208, allocations: 132.5 kB / 347.9 MB, free: 2.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.66e-05/0.007305, allocations: 193.8 kB / 348.1 MB, free: 2.582 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.007316, allocations: 25.7 kB / 348.2 MB, free: 2.551 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.078e-05/0.007377, allocations: 139.2 kB / 348.3 MB, free: 2.406 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/0.007391, allocations: 11.94 kB / 348.3 MB, free: 2.395 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.032e-05/0.007431, allocations: 23.36 kB / 348.3 MB, free: 2.363 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.007556, allocations: 0.4884 MB / 348.8 MB, free: 1.863 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.071e-05/0.007597, allocations: 71.33 kB / 348.9 MB, free: 1.781 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.867e-05/0.007635, allocations: 70.78 kB / 349 MB, free: 1.691 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.429e-05/0.00771, allocations: 138.2 kB / 349.1 MB, free: 1.523 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.007712, allocations: 4 kB / 349.1 MB, free: 1.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001469/0.007859, allocations: 172.3 kB / 349.3 MB, free: 1.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.007897, allocations: 66.05 kB / 349.3 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.007901, allocations: 0 / 349.3 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.007913, allocations: 0 / 349.3 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.247e-05/0.007945, allocations: 0 / 349.3 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.575e-06/0.007948, allocations: 4 kB / 349.3 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.779e-05/0.007976, allocations: 7.938 kB / 349.3 MB, free: 1.234 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.007983, allocations: 4 kB / 349.3 MB, free: 1.23 MB / 314.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.0003544/0.008338, allocations: 216 kB / 349.6 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.008443, allocations: 97.55 kB / 349.7 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/0.008471, allocations: 12.77 kB / 349.7 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.008484, allocations: 8 kB / 349.7 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.008486, allocations: 0 / 349.7 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.008489, allocations: 0 / 349.7 MB, free: 0.8711 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.008613, allocations: 113.2 kB / 349.8 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.008617, allocations: 3.984 kB / 349.8 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.686e-06/0.008626, allocations: 0 / 349.8 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.008628, allocations: 4 kB / 349.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.008636, allocations: 0 / 349.8 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.00864, allocations: 7.938 kB / 349.8 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.008641, allocations: 4 kB / 349.8 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000187/0.008828, allocations: 334.3 kB / 350.1 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.008841, allocations: 7.953 kB / 350.1 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.008856, allocations: 4 kB / 350.1 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.263e-05/0.008909, allocations: 11.94 kB / 350.2 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.008926, allocations: 240 / 350.2 MB, free: 324 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.008934, allocations: 4 kB / 350.2 MB, free: 320 kB / 314.7 MB Notification: Performance of sorting global known variables: time 4.161e-05/0.008975, allocations: 131.6 kB / 350.3 MB, free: 188 kB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.008976, allocations: 0 / 350.3 MB, free: 188 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002387/0.009214, allocations: 27.89 kB / 350.3 MB, free: 160 kB / 314.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.0006007/0.009815, allocations: 316 kB / 350.6 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001931/0.01001, allocations: 253.2 kB / 350.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.01001, allocations: 4 kB / 350.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.51e-05/0.01009, allocations: 173.9 kB / 351 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.01041, allocations: 52.02 kB / 351.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003706/0.01078, allocations: 277.3 kB / 351.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.698e-05/0.01083, allocations: 86.31 kB / 351.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.698e-05/0.01087, allocations: 7.984 kB / 351.5 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.563e-05/0.01096, allocations: 86.19 kB / 351.5 MB, free: 14.85 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.01096, allocations: 0 / 351.5 MB, free: 14.85 MB / 330.7 MB Notification: Performance of Templates: time 0.003772/0.01473, allocations: 1.496 MB / 353 MB, free: 13.36 MB / 330.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.536756809800863]