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.001012/0.001012, allocations: 81.08 kB / 20.69 MB, free: 3.793 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.001121/0.001121, allocations: 169.7 kB / 24.1 MB, free: 400 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.965/0.965, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.03671/0.03671, allocations: 9.155 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.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.563e-06/1.563e-06, allocations: 0 / 343 MB, free: 8.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.814e-05/1.97e-05, allocations: 2.312 kB / 343 MB, free: 8.074 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002537/0.002557, allocations: 2.437 MB / 345.4 MB, free: 5.617 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002226/0.00278, allocations: 175.4 kB / 345.6 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.488e-05/0.002845, allocations: 7.938 kB / 345.6 MB, free: 5.438 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.002973, allocations: 31.72 kB / 345.6 MB, free: 5.406 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000207/0.00318, allocations: 43.89 kB / 345.7 MB, free: 5.363 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001178/0.003298, allocations: 47.83 kB / 345.7 MB, free: 5.316 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.003408, allocations: 75.77 kB / 345.8 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.26e-05/0.003491, allocations: 16.22 kB / 345.8 MB, free: 5.223 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.731e-05/0.003558, allocations: 47.89 kB / 345.9 MB, free: 5.176 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.468e-05/0.003593, allocations: 23.91 kB / 345.9 MB, free: 5.152 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.003614, allocations: 8 kB / 345.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.003727, allocations: 131.9 kB / 346 MB, free: 5.016 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.23e-05/0.003749, allocations: 15.92 kB / 346 MB, free: 5 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.003774, allocations: 23.92 kB / 346.1 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001704/0.003945, allocations: 139.7 kB / 346.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.003947, allocations: 0 / 346.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.003948, allocations: 0 / 346.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.745e-06/0.00395, allocations: 3.938 kB / 346.2 MB, free: 4.836 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003322/0.004283, allocations: 471.6 kB / 346.7 MB, free: 4.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.004315, allocations: 8.031 kB / 346.7 MB, free: 4.316 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.004349, allocations: 20.84 kB / 346.7 MB, free: 4.297 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001358/0.004485, allocations: 148.4 kB / 346.8 MB, free: 4.125 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.004499, allocations: 4.375 kB / 346.8 MB, free: 4.121 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.829e-06/0.004509, allocations: 8.375 kB / 346.9 MB, free: 4.113 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.004708, allocations: 212.1 kB / 347.1 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.004715, allocations: 192 / 347.1 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.004723, allocations: 4.375 kB / 347.1 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.004728, allocations: 384 / 347.1 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.801e-05/0.004766, allocations: 71.33 kB / 347.1 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002143/0.004981, allocations: 272 kB / 347.4 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.005093, allocations: 133.6 kB / 347.5 MB, free: 3.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.551e-05/0.005139, allocations: 90.77 kB / 347.6 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.005159, allocations: 8 kB / 347.6 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.005177, allocations: 33.39 kB / 347.7 MB, free: 3.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.005178, allocations: 4 kB / 347.7 MB, free: 3.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002181/0.005396, allocations: 255.7 kB / 347.9 MB, free: 2.863 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.005447, allocations: 136.5 kB / 348 MB, free: 2.699 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.076e-05/0.005528, allocations: 181.9 kB / 348.2 MB, free: 2.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.00554, allocations: 33.7 kB / 348.3 MB, free: 2.465 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.901e-05/0.005589, allocations: 146.7 kB / 348.4 MB, free: 2.316 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.687e-06/0.005598, allocations: 7.953 kB / 348.4 MB, free: 2.309 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-05/0.005626, allocations: 23.38 kB / 348.4 MB, free: 2.277 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.005726, allocations: 0.4884 MB / 348.9 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.662e-05/0.005753, allocations: 59.41 kB / 349 MB, free: 1.707 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.435e-05/0.005787, allocations: 86.78 kB / 349.1 MB, free: 1.602 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.814e-05/0.005845, allocations: 138.1 kB / 349.2 MB, free: 1.434 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.005847, allocations: 0 / 349.2 MB, free: 1.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.715e-05/0.005944, allocations: 168.4 kB / 349.4 MB, free: 1.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.005972, allocations: 59.41 kB / 349.4 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.005976, allocations: 3.938 kB / 349.4 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.005986, allocations: 0 / 349.4 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.311e-05/0.006009, allocations: 4 kB / 349.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.465e-06/0.006012, allocations: 0 / 349.4 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.875e-05/0.00603, allocations: 8.016 kB / 349.4 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.006038, allocations: 11.98 kB / 349.4 MB, free: 1.141 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 7.282e-05/0.006111, allocations: 208 kB / 349.6 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.006162, allocations: 57.64 kB / 349.7 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.387e-05/0.006196, allocations: 20.34 kB / 349.7 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.006197, allocations: 0 / 349.7 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.006199, allocations: 0 / 349.7 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.006202, allocations: 4 kB / 349.7 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.557e-05/0.006288, allocations: 113.2 kB / 349.8 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.00629, allocations: 3.984 kB / 349.8 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.431e-05/0.006304, allocations: 4 kB / 349.8 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.006306, allocations: 4.312 kB / 349.9 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.523e-06/0.006312, allocations: 4 kB / 349.9 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.006314, allocations: 4 kB / 349.9 MB, free: 0.668 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.006316, allocations: 3.938 kB / 349.9 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.006454, allocations: 330.4 kB / 350.2 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-06/0.006463, allocations: 15.83 kB / 350.2 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.006474, allocations: 0 / 350.2 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.882e-05/0.006503, allocations: 4 kB / 350.2 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.006519, allocations: 8.172 kB / 350.2 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.341e-06/0.006524, allocations: 4 kB / 350.2 MB, free: 268 kB / 314.7 MB Notification: Performance of sorting global known variables: time 4.047e-05/0.006564, allocations: 143.2 kB / 350.4 MB, free: 124 kB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006564, allocations: 4 kB / 350.4 MB, free: 120 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001578/0.006722, allocations: 24 kB / 350.4 MB, free: 96 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: 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.0005067/0.007229, allocations: 323.8 kB / 350.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.007372, allocations: 257.2 kB / 351 MB, free: 15.56 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.007373, allocations: 0 / 351 MB, free: 15.56 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.467e-05/0.007428, allocations: 174 kB / 351.1 MB, free: 15.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.007605, allocations: 25.5 kB / 351.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000241/0.007846, allocations: 244.2 kB / 351.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.392e-05/0.00788, allocations: 67.28 kB / 351.5 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.158e-05/0.007912, allocations: 7.984 kB / 351.5 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.444e-05/0.007976, allocations: 94.19 kB / 351.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.007977, allocations: 3.938 kB / 351.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of Templates: time 0.002955/0.01093, allocations: 1.783 MB / 353.3 MB, free: 13.08 MB / 330.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.568885197862983]