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.0007868/0.0007868, allocations: 83.34 kB / 20.47 MB, free: 4.109 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.0008169/0.0008169, allocations: 169 kB / 23.84 MB, free: 0.7344 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.9/0.9, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.05902/0.05902, allocations: 9.159 MB / 269.9 MB, free: 4.262 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.453e-06/1.453e-06, allocations: 0 / 342.5 MB, free: 8.391 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.803e-05/2.949e-05, allocations: 8.5 kB / 342.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003033/0.003062, allocations: 2.433 MB / 345 MB, free: 5.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002333/0.003296, allocations: 131.5 kB / 345.1 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.083e-05/0.003366, allocations: 0 / 345.1 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.003532, allocations: 31.72 kB / 345.1 MB, free: 5.77 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.058e-05/0.003602, allocations: 3.938 kB / 345.1 MB, free: 5.766 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.003803, allocations: 43.89 kB / 345.2 MB, free: 5.723 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001419/0.003945, allocations: 83.75 kB / 345.3 MB, free: 5.641 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.637e-05/0.004041, allocations: 8.234 kB / 345.3 MB, free: 5.629 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.075e-05/0.004112, allocations: 47.89 kB / 345.3 MB, free: 5.582 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.076e-05/0.004163, allocations: 27.91 kB / 345.3 MB, free: 5.555 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.507e-05/0.004188, allocations: 4 kB / 345.3 MB, free: 5.551 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.33e-05/0.004251, allocations: 23.94 kB / 345.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.004312, allocations: 35.84 kB / 345.4 MB, free: 5.492 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.004359, allocations: 19.94 kB / 345.4 MB, free: 5.473 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001826/0.004541, allocations: 91.66 kB / 345.5 MB, free: 5.383 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.113e-06/0.004543, allocations: 0 / 345.5 MB, free: 5.383 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.004545, allocations: 4 kB / 345.5 MB, free: 5.379 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.004549, allocations: 0 / 345.5 MB, free: 5.379 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.0003977/0.004947, allocations: 475.6 kB / 346 MB, free: 4.863 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.004984, allocations: 8.031 kB / 346 MB, free: 4.855 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.119e-05/0.005035, allocations: 20.84 kB / 346 MB, free: 4.836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.005218, allocations: 156.3 kB / 346.2 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.00523, allocations: 8.375 kB / 346.2 MB, free: 4.648 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.556e-05/0.005245, allocations: 8.375 kB / 346.2 MB, free: 4.641 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.005551, allocations: 269.7 kB / 346.4 MB, free: 4.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.00556, allocations: 192 / 346.4 MB, free: 4.348 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.005572, allocations: 12.12 kB / 346.4 MB, free: 4.336 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.581e-05/0.005598, allocations: 11.98 kB / 346.5 MB, free: 4.324 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.096e-05/0.005669, allocations: 87.33 kB / 346.5 MB, free: 4.227 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003121/0.005981, allocations: 287.4 kB / 346.8 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001438/0.006125, allocations: 161.8 kB / 347 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.455e-05/0.006189, allocations: 102.8 kB / 347.1 MB, free: 3.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.003e-06/0.006196, allocations: 0 / 347.1 MB, free: 3.59 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.006221, allocations: 41.33 kB / 347.1 MB, free: 3.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.006222, allocations: 0 / 347.1 MB, free: 3.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002981/0.00652, allocations: 305.7 kB / 347.4 MB, free: 3.199 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.006578, allocations: 136.5 kB / 347.6 MB, free: 3.035 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.661e-05/0.006674, allocations: 189.9 kB / 347.7 MB, free: 2.832 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.25e-05/0.006687, allocations: 29.7 kB / 347.8 MB, free: 2.797 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.437e-05/0.006741, allocations: 139.2 kB / 347.9 MB, free: 2.652 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.224e-05/0.006753, allocations: 7.938 kB / 347.9 MB, free: 2.645 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.006788, allocations: 27.38 kB / 347.9 MB, free: 2.609 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.006896, allocations: 0.4923 MB / 348.4 MB, free: 2.105 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.424e-05/0.00693, allocations: 55.41 kB / 348.5 MB, free: 2.039 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.863e-05/0.006969, allocations: 78.77 kB / 348.6 MB, free: 1.941 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.637e-05/0.007035, allocations: 138.1 kB / 348.7 MB, free: 1.773 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.007038, allocations: 0 / 348.7 MB, free: 1.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001154/0.007153, allocations: 184.3 kB / 348.9 MB, free: 1.562 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.007189, allocations: 59.41 kB / 348.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.007194, allocations: 0 / 348.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.007207, allocations: 0 / 348.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.433e-05/0.007251, allocations: 4 kB / 348.9 MB, free: 1.488 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.211e-06/0.007258, allocations: 4 kB / 348.9 MB, free: 1.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.191e-05/0.00728, allocations: 7.875 kB / 349 MB, free: 1.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.007286, allocations: 4 kB / 349 MB, free: 1.473 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 9.031e-05/0.007377, allocations: 216 kB / 349.2 MB, free: 1.238 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.044e-05/0.007467, allocations: 106.2 kB / 349.3 MB, free: 1.129 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.61e-05/0.007493, allocations: 12.78 kB / 349.3 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.007506, allocations: 4 kB / 349.3 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.007509, allocations: 0 / 349.3 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.007515, allocations: 7.984 kB / 349.3 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001034/0.007618, allocations: 124.6 kB / 349.4 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.007622, allocations: 0 / 349.4 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.749e-06/0.007631, allocations: 4 kB / 349.4 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.007634, allocations: 3.938 kB / 349.4 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.007643, allocations: 4 kB / 349.4 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.007645, allocations: 3.984 kB / 349.4 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.007646, allocations: 4 kB / 349.4 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.007868, allocations: 400.7 kB / 349.8 MB, free: 500 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.336e-05/0.007882, allocations: 11.89 kB / 349.8 MB, free: 488 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.007897, allocations: 3.984 kB / 349.8 MB, free: 484 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.986e-05/0.007927, allocations: 4 kB / 349.8 MB, free: 480 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.007951, allocations: 12.17 kB / 349.9 MB, free: 468 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.007957, allocations: 0 / 349.9 MB, free: 468 kB / 314.7 MB Notification: Performance of sorting global known variables: time 4.372e-05/0.008, allocations: 139.7 kB / 350 MB, free: 328 kB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.008, allocations: 0 / 350 MB, free: 328 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001598/0.00816, allocations: 19.94 kB / 350 MB, free: 308 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.0005892/0.008749, allocations: 305 kB / 350.3 MB, free: 84 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002018/0.008951, allocations: 269.2 kB / 350.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.008953, allocations: 0 / 350.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.43e-05/0.009017, allocations: 181.9 kB / 350.8 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.009254, allocations: 52.02 kB / 350.8 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003438/0.009597, allocations: 281.2 kB / 351.1 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.578e-05/0.009643, allocations: 75.33 kB / 351.1 MB, free: 15.08 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.6e-05/0.009679, allocations: 11.98 kB / 351.2 MB, free: 15.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.914e-05/0.009698, allocations: 12.44 kB / 351.2 MB, free: 15.06 MB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.009699, allocations: 0 / 351.2 MB, free: 15.06 MB / 330.7 MB Notification: Performance of Templates: time 0.003388/0.01309, allocations: 1.425 MB / 352.6 MB, free: 13.64 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.8052368853241205]