Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.000979/0.000979, allocations: 80.05 kB / 20.76 MB, free: 3.719 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.0009732/0.0009732, allocations: 165 kB / 24.18 MB, free: 308 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 1.116/1.116, allocations: 177.1 MB / 204.6 MB, free: 5.305 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.03797/0.03797, allocations: 9.153 MB / 270.2 MB, free: 3.969 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.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.605e-06/2.605e-06, allocations: 0 / 289.7 MB, free: 484 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.039e-05/3.299e-05, allocations: 6.109 kB / 289.7 MB, free: 480 kB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.1725/0.1725, allocations: 2.785 MB / 292.5 MB, free: 18.08 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009184/0.1734, allocations: 328.2 kB / 292.8 MB, free: 17.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001805/0.1736, allocations: 6.094 kB / 292.8 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.1739, allocations: 45.16 kB / 292.9 MB, free: 17.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.814e-05/0.1739, allocations: 19.55 kB / 292.9 MB, free: 17.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.1743, allocations: 94.03 kB / 293 MB, free: 17.78 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002729/0.1746, allocations: 145.6 kB / 293.1 MB, free: 17.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.1747, allocations: 56.44 kB / 293.2 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.1749, allocations: 84 kB / 293.3 MB, free: 17.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.175, allocations: 52.48 kB / 293.3 MB, free: 17.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.1751, allocations: 12.25 kB / 293.3 MB, free: 17.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.595e-05/0.1752, allocations: 31.38 kB / 293.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.65e-05/0.1753, allocations: 49.41 kB / 293.4 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.324e-05/0.1753, allocations: 45.48 kB / 293.5 MB, free: 17.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.1756, allocations: 141.1 kB / 293.6 MB, free: 17.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1756, allocations: 1.703 kB / 293.6 MB, free: 17.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1756, allocations: 0 / 293.6 MB, free: 17.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1756, allocations: 0 / 293.6 MB, free: 17.51 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005321/0.1762, allocations: 371.9 kB / 294 MB, free: 17.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.1762, allocations: 9.969 kB / 294 MB, free: 17.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.857e-05/0.1763, allocations: 22.91 kB / 294 MB, free: 17.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002083/0.1765, allocations: 168.8 kB / 294.2 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.1765, allocations: 9.781 kB / 294.2 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.28e-05/0.1765, allocations: 13.94 kB / 294.2 MB, free: 17.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.1768, allocations: 117.7 kB / 294.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1768, allocations: 0.7188 kB / 294.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.1768, allocations: 5.5 kB / 294.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1768, allocations: 5.156 kB / 294.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.598e-05/0.1769, allocations: 49.73 kB / 294.4 MB, free: 16.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.1774, allocations: 308.2 kB / 294.7 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.1775, allocations: 73.33 kB / 294.7 MB, free: 16.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.294e-05/0.1776, allocations: 30.28 kB / 294.8 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.1776, allocations: 4.969 kB / 294.8 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001613/0.1778, allocations: 109.3 kB / 294.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 4.779e-06/0.1778, allocations: 0 / 294.9 MB, free: 16.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002304/0.178, allocations: 119.5 kB / 295 MB, free: 16.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.183e-05/0.1781, allocations: 87.38 kB / 295.1 MB, free: 16.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.1782, allocations: 152.4 kB / 295.2 MB, free: 16.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.1782, allocations: 35.91 kB / 295.3 MB, free: 16.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.1783, allocations: 122.5 kB / 295.4 MB, free: 16.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.355e-05/0.1783, allocations: 61 kB / 295.4 MB, free: 16.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.692e-05/0.1784, allocations: 53.8 kB / 295.5 MB, free: 16.04 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.217e-05/0.1784, allocations: 332.8 kB / 295.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.233e-05/0.1785, allocations: 21.03 kB / 295.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.894e-05/0.1786, allocations: 115.9 kB / 296 MB, free: 15.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.1787, allocations: 164.2 kB / 296.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.1787, allocations: 0 / 296.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002505/0.179, allocations: 168.4 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.179, allocations: 7.281 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.703e-05/0.179, allocations: 5.5 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.179, allocations: 4.125 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.1792, allocations: 43 kB / 296.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.1792, allocations: 10.69 kB / 296.4 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.892e-05/0.1792, allocations: 25.12 kB / 296.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.1792, allocations: 13.58 kB / 296.4 MB, free: 15.39 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001038/0.1793, allocations: 149.2 kB / 296.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.195e-05/0.1794, allocations: 14.17 kB / 296.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.1794, allocations: 17.8 kB / 296.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.1794, allocations: 4.281 kB / 296.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1794, allocations: 1.625 kB / 296.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1794, allocations: 1.828 kB / 296.6 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.1795, allocations: 109.9 kB / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.1796, allocations: 1.062 kB / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.25e-05/0.1796, allocations: 5.656 kB / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1796, allocations: 6.219 kB / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.1796, allocations: 1.906 kB / 296.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1796, allocations: 5 kB / 296.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1796, allocations: 1.641 kB / 296.7 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.1797, allocations: 134.8 kB / 296.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.707e-05/0.1798, allocations: 10.38 kB / 296.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.1798, allocations: 1.906 kB / 296.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.176e-05/0.1798, allocations: 9.688 kB / 296.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.1798, allocations: 10.3 kB / 296.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.1798, allocations: 5.703 kB / 296.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.029e-05/0.1799, allocations: 32.08 kB / 296.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1799, allocations: 0 / 296.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002213/0.1801, allocations: 50.7 kB / 297 MB, free: 14.99 MB / 266.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: 17 ($whenCondition1,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: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0006646/0.1808, allocations: 258.7 kB / 297.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.181, allocations: 134.1 kB / 297.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.181, allocations: 1.125 kB / 297.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.326e-05/0.181, allocations: 67.3 kB / 297.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.49e-05/0.1811, allocations: 9.422 kB / 297.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004467/0.1816, allocations: 321.8 kB / 297.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.512e-05/0.1816, allocations: 84.8 kB / 297.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.581e-05/0.1817, allocations: 16.22 kB / 297.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.134e-05/0.1817, allocations: 71.03 kB / 297.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1817, allocations: 0 / 297.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of Templates: time 0.004629/0.1863, allocations: 1.43 MB / 299.3 MB, free: 14.29 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.194730189163238]