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.001341/0.001341, allocations: 84.23 kB / 20.25 MB, free: 4.188 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.001405/0.001405, allocations: 157.7 kB / 23.56 MB, free: 0.8789 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 1.373/1.373, allocations: 177.1 MB / 203.9 MB, free: 5.316 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.05713/0.05713, allocations: 9.16 MB / 269.5 MB, free: 4.125 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.363e-06/1.363e-06, allocations: 3.938 kB / 341.8 MB, free: 7.66 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.138e-05/2.274e-05, allocations: 5.266 kB / 341.8 MB, free: 7.656 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.00256/0.002583, allocations: 2.371 MB / 344.2 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002301/0.002813, allocations: 127.5 kB / 344.3 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.11e-05/0.002874, allocations: 7.938 kB / 344.3 MB, free: 5.137 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.003013, allocations: 15.84 kB / 344.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.046e-05/0.003073, allocations: 15.86 kB / 344.3 MB, free: 5.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.003235, allocations: 43.89 kB / 344.4 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.003348, allocations: 79.77 kB / 344.5 MB, free: 4.984 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.485e-05/0.003432, allocations: 16.22 kB / 344.5 MB, free: 4.965 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.666e-05/0.003499, allocations: 47.84 kB / 344.5 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.003e-05/0.003539, allocations: 27.91 kB / 344.5 MB, free: 4.891 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.003561, allocations: 8 kB / 344.5 MB, free: 4.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.306e-05/0.003614, allocations: 27.92 kB / 344.6 MB, free: 4.855 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.003655, allocations: 19.92 kB / 344.6 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.419e-05/0.003699, allocations: 23.92 kB / 344.6 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.003857, allocations: 111.6 kB / 344.7 MB, free: 4.703 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.003859, allocations: 4 kB / 344.7 MB, free: 4.699 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.00386, allocations: 0 / 344.7 MB, free: 4.699 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.506e-06/0.003863, allocations: 0 / 344.7 MB, free: 4.699 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.0003431/0.004207, allocations: 373.3 kB / 345.1 MB, free: 4.289 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.004236, allocations: 12.03 kB / 345.1 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.526e-05/0.004291, allocations: 24.84 kB / 345.1 MB, free: 4.254 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001766/0.004468, allocations: 133.6 kB / 345.3 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.004481, allocations: 8.375 kB / 345.3 MB, free: 4.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.004495, allocations: 8.359 kB / 345.3 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.004838, allocations: 324.4 kB / 345.6 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.004846, allocations: 192 / 345.6 MB, free: 3.734 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.00486, allocations: 8.125 kB / 345.6 MB, free: 3.727 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.004877, allocations: 4 kB / 345.6 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.00498, allocations: 119.3 kB / 345.7 MB, free: 3.594 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002305/0.005211, allocations: 225.4 kB / 345.9 MB, free: 3.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.005376, allocations: 176.8 kB / 346.1 MB, free: 3.137 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.259e-05/0.005458, allocations: 123.1 kB / 346.2 MB, free: 3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.005471, allocations: 4 kB / 346.2 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.665e-05/0.005487, allocations: 38.56 kB / 346.3 MB, free: 2.949 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.232e-06/0.005489, allocations: 0 / 346.3 MB, free: 2.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003523/0.005841, allocations: 367.8 kB / 346.6 MB, free: 2.547 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.005876, allocations: 136.5 kB / 346.8 MB, free: 2.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.578e-05/0.005942, allocations: 129.7 kB / 346.9 MB, free: 2.246 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.548e-06/0.005952, allocations: 25.7 kB / 346.9 MB, free: 2.215 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.961e-05/0.005981, allocations: 92.47 kB / 347 MB, free: 2.117 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.146e-05/0.005993, allocations: 15.92 kB / 347 MB, free: 2.102 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.006025, allocations: 21.72 kB / 347 MB, free: 2.074 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.543e-05/0.00606, allocations: 318.8 kB / 347.4 MB, free: 1.754 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.69e-05/0.006097, allocations: 63.34 kB / 347.4 MB, free: 1.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.554e-05/0.006133, allocations: 89.12 kB / 347.5 MB, free: 1.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.174e-05/0.006195, allocations: 132.5 kB / 347.6 MB, free: 1.414 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.006196, allocations: 0 / 347.6 MB, free: 1.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001357/0.006332, allocations: 192.3 kB / 347.8 MB, free: 1.195 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.006355, allocations: 55.41 kB / 347.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.006358, allocations: 0 / 347.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.006371, allocations: 4 kB / 347.9 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.236e-05/0.006404, allocations: 0 / 347.9 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.006408, allocations: 3.938 kB / 347.9 MB, free: 1.121 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.629e-05/0.006434, allocations: 8.062 kB / 347.9 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/0.006441, allocations: 0 / 347.9 MB, free: 1.113 MB / 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 6.669e-05/0.006508, allocations: 185.2 kB / 348.1 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.006628, allocations: 126.8 kB / 348.2 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.453e-05/0.006653, allocations: 16.78 kB / 348.2 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.006663, allocations: 7.984 kB / 348.2 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.006667, allocations: 0 / 348.2 MB, free: 0.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.00667, allocations: 4 kB / 348.2 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.575e-05/0.006765, allocations: 117.2 kB / 348.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.006768, allocations: 7.984 kB / 348.4 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.638e-06/0.006778, allocations: 4 kB / 348.4 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.00678, allocations: 3.938 kB / 348.4 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.006791, allocations: 8 kB / 348.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.006792, allocations: 0 / 348.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.006793, allocations: 0 / 348.4 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.007022, allocations: 387 kB / 348.7 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.007034, allocations: 11.89 kB / 348.8 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.007053, allocations: 4 kB / 348.8 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.571e-05/0.007109, allocations: 0 / 348.8 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.007146, allocations: 11.94 kB / 348.8 MB, free: 132 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.007154, allocations: 4 kB / 348.8 MB, free: 128 kB / 266.7 MB Notification: Performance of sorting global known variables: time 2.889e-05/0.007183, allocations: 99.75 kB / 348.9 MB, free: 28 kB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007183, allocations: 0 / 348.9 MB, free: 28 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002387/0.007422, allocations: 23.94 kB / 348.9 MB, free: 4 kB / 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: 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.0008591/0.008281, allocations: 292.2 kB / 349.2 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.008623, allocations: 291.2 kB / 349.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.008625, allocations: 0 / 349.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001482/0.008773, allocations: 182.3 kB / 349.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003603/0.009133, allocations: 75.83 kB / 349.7 MB, free: 15.18 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005035/0.009637, allocations: 300.9 kB / 350 MB, free: 14.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.009748, allocations: 101.3 kB / 350.1 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.789e-05/0.009786, allocations: 15.86 kB / 350.1 MB, free: 14.71 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/0.00981, allocations: 12.56 kB / 350.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of SimCode: time 4e-07/0.009811, allocations: 4 kB / 350.1 MB, free: 14.69 MB / 282.7 MB Notification: Performance of Templates: time 0.00456/0.01437, allocations: 1.411 MB / 351.6 MB, free: 13.29 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=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.927933753002435]