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.001008/0.001008, allocations: 85.86 kB / 21.48 MB, free: 3.016 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.001132/0.001132, allocations: 171.4 kB / 24.88 MB, free: 8.891 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.9393/0.9393, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.0362/0.0362, allocations: 9.165 MB / 271 MB, free: 4.09 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.703e-06/1.703e-06, allocations: 0 / 343.8 MB, free: 7.035 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.224e-05/2.395e-05, allocations: 2.312 kB / 343.8 MB, free: 7.031 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002315/0.002338, allocations: 2.455 MB / 346.2 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002227/0.002561, allocations: 179.4 kB / 346.4 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.916e-05/0.00264, allocations: 4 kB / 346.4 MB, free: 4.383 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.002777, allocations: 15.81 kB / 346.4 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000204/0.002981, allocations: 55.77 kB / 346.5 MB, free: 4.312 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001304/0.003112, allocations: 47.92 kB / 346.5 MB, free: 4.266 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.003225, allocations: 79.72 kB / 346.6 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.592e-05/0.003311, allocations: 12.22 kB / 346.6 MB, free: 4.172 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.164e-05/0.003372, allocations: 43.89 kB / 346.7 MB, free: 4.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.707e-05/0.003409, allocations: 23.92 kB / 346.7 MB, free: 4.105 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.003429, allocations: 8 kB / 346.7 MB, free: 4.098 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.003531, allocations: 135.8 kB / 346.8 MB, free: 3.965 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.284e-05/0.003554, allocations: 19.92 kB / 346.8 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.383e-05/0.003578, allocations: 15.94 kB / 346.8 MB, free: 3.93 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.003752, allocations: 147.6 kB / 347 MB, free: 3.785 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.003754, allocations: 0 / 347 MB, free: 3.785 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.003755, allocations: 0 / 347 MB, free: 3.785 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.003759, allocations: 0 / 347 MB, free: 3.785 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.0003077/0.004067, allocations: 471.5 kB / 347.5 MB, free: 3.273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.004103, allocations: 16.02 kB / 347.5 MB, free: 3.258 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.563e-05/0.004148, allocations: 16.84 kB / 347.5 MB, free: 3.242 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.004275, allocations: 147.8 kB / 347.6 MB, free: 3.074 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.004289, allocations: 8.375 kB / 347.6 MB, free: 3.066 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.004299, allocations: 8.375 kB / 347.6 MB, free: 3.059 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.004471, allocations: 200.9 kB / 347.8 MB, free: 2.824 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.004478, allocations: 192 / 347.8 MB, free: 2.824 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.004487, allocations: 4.375 kB / 347.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.004492, allocations: 384 / 347.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.031e-05/0.004522, allocations: 75.33 kB / 347.9 MB, free: 2.734 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001792/0.004701, allocations: 268 kB / 348.2 MB, free: 2.441 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.004802, allocations: 141.5 kB / 348.3 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.03e-05/0.004833, allocations: 86.84 kB / 348.4 MB, free: 2.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.004849, allocations: 0 / 348.4 MB, free: 2.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.568e-05/0.004865, allocations: 41.33 kB / 348.4 MB, free: 2.109 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 7.31e-07/0.004866, allocations: 0 / 348.4 MB, free: 2.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001842/0.00505, allocations: 251.7 kB / 348.7 MB, free: 1.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.005084, allocations: 132.5 kB / 348.8 MB, free: 1.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.716e-05/0.005151, allocations: 201.2 kB / 349 MB, free: 1.449 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.422e-06/0.005157, allocations: 29.73 kB / 349 MB, free: 1.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.005193, allocations: 146.8 kB / 349.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.043e-06/0.0052, allocations: 3.953 kB / 349.2 MB, free: 1.262 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.005227, allocations: 35.34 kB / 349.2 MB, free: 1.219 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.162e-05/0.005268, allocations: 0.4884 MB / 349.7 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.969e-05/0.005288, allocations: 59.39 kB / 349.8 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.189e-05/0.00531, allocations: 70.78 kB / 349.8 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.016e-05/0.00535, allocations: 138.1 kB / 350 MB, free: 400 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.005352, allocations: 4 kB / 350 MB, free: 396 kB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.293e-05/0.005435, allocations: 172.5 kB / 350.2 MB, free: 192 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.005461, allocations: 62.52 kB / 350.2 MB, free: 120 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.005467, allocations: 7.938 kB / 350.2 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.005476, allocations: 0 / 350.2 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.808e-05/0.005504, allocations: 4.188 kB / 350.2 MB, free: 108 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-06/0.005506, allocations: 0 / 350.2 MB, free: 108 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.774e-05/0.005524, allocations: 8 kB / 350.2 MB, free: 100 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.005532, allocations: 4 kB / 350.2 MB, free: 96 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 9.302e-05/0.005625, allocations: 212 kB / 350.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.207e-05/0.005687, allocations: 61.59 kB / 350.5 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.005715, allocations: 12.44 kB / 350.5 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.005718, allocations: 8 kB / 350.5 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.005721, allocations: 3.984 kB / 350.5 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.005724, allocations: 0 / 350.5 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.239e-05/0.005817, allocations: 109.2 kB / 350.6 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.005818, allocations: 0 / 350.6 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.789e-05/0.005836, allocations: 7.938 kB / 350.6 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.005837, allocations: 0 / 350.6 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.005845, allocations: 4 kB / 350.6 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.005846, allocations: 4 kB / 350.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.005848, allocations: 3.938 kB / 350.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.005996, allocations: 330.6 kB / 351 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.36e-05/0.00601, allocations: 11.83 kB / 351 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.006029, allocations: 11.98 kB / 351 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.868e-05/0.006058, allocations: 0 / 351 MB, free: 15.22 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.795e-05/0.006076, allocations: 11.92 kB / 351 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.006082, allocations: 4 kB / 351 MB, free: 15.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.228e-05/0.006124, allocations: 135.2 kB / 351.1 MB, free: 15.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006124, allocations: 0 / 351.1 MB, free: 15.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001686/0.006293, allocations: 27.94 kB / 351.2 MB, free: 15.05 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.0005251/0.006818, allocations: 328.7 kB / 351.5 MB, free: 14.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001561/0.006974, allocations: 245.3 kB / 351.7 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.006976, allocations: 0 / 351.7 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.556e-05/0.007041, allocations: 185.8 kB / 351.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.00723, allocations: 27.67 kB / 351.9 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002677/0.007498, allocations: 248.1 kB / 352.2 MB, free: 13.97 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.638e-05/0.007534, allocations: 63.34 kB / 352.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.559e-05/0.00757, allocations: 16.17 kB / 352.3 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.76e-05/0.007637, allocations: 94.19 kB / 352.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of SimCode: time 5.91e-07/0.007638, allocations: 0 / 352.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of Templates: time 0.00353/0.01117, allocations: 1.798 MB / 354.2 MB, free: 12 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.631311256904155]