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.00175/0.00175, allocations: 88.98 kB / 20.25 MB, free: 4.168 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.001863/0.001863, allocations: 173.2 kB / 23.57 MB, free: 0.8555 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.438/1.438, allocations: 177.1 MB / 203.9 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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.0638/0.0638, allocations: 9.161 MB / 269.5 MB, free: 4.281 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.112e-06/1.112e-06, allocations: 0 / 341.8 MB, free: 7.641 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.838e-05/1.95e-05, allocations: 4.844 kB / 341.8 MB, free: 7.637 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002539/0.002559, allocations: 2.382 MB / 344.2 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002286/0.002787, allocations: 131.5 kB / 344.3 MB, free: 5.109 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.993e-05/0.002847, allocations: 4 kB / 344.3 MB, free: 5.105 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.002982, allocations: 7.875 kB / 344.3 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.264e-05/0.003044, allocations: 23.84 kB / 344.3 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001563/0.003201, allocations: 47.83 kB / 344.4 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.003309, allocations: 75.78 kB / 344.5 MB, free: 4.953 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.882e-05/0.003387, allocations: 20.2 kB / 344.5 MB, free: 4.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.914e-05/0.003457, allocations: 39.91 kB / 344.5 MB, free: 4.891 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.876e-05/0.003505, allocations: 27.91 kB / 344.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.00353, allocations: 8 kB / 344.6 MB, free: 4.855 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.394e-05/0.003583, allocations: 27.92 kB / 344.6 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.493e-05/0.003628, allocations: 15.94 kB / 344.6 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.003672, allocations: 27.91 kB / 344.6 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.003832, allocations: 115.5 kB / 344.7 MB, free: 4.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.003833, allocations: 4 kB / 344.7 MB, free: 4.668 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.003834, allocations: 0 / 344.7 MB, free: 4.668 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.426e-06/0.003837, allocations: 4 kB / 344.7 MB, free: 4.664 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.0003382/0.004176, allocations: 487.2 kB / 345.2 MB, free: 4.137 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.004205, allocations: 8.031 kB / 345.2 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.082e-05/0.004256, allocations: 20.84 kB / 345.3 MB, free: 4.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.004407, allocations: 140.5 kB / 345.4 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.004419, allocations: 8.375 kB / 345.4 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.004443, allocations: 4.375 kB / 345.4 MB, free: 3.934 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.004741, allocations: 283.3 kB / 345.7 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.00475, allocations: 192 / 345.7 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.004762, allocations: 8.109 kB / 345.7 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.004781, allocations: 11.98 kB / 345.7 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.783e-05/0.004869, allocations: 91.39 kB / 345.8 MB, free: 3.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002546/0.005124, allocations: 291.4 kB / 346.1 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.005271, allocations: 169.8 kB / 346.2 MB, free: 2.973 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.234e-05/0.005343, allocations: 114.8 kB / 346.4 MB, free: 2.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.005356, allocations: 4 kB / 346.4 MB, free: 2.836 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.185e-05/0.005368, allocations: 33.39 kB / 346.4 MB, free: 2.793 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.005369, allocations: 0 / 346.4 MB, free: 2.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003238/0.005693, allocations: 323.7 kB / 346.7 MB, free: 2.434 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.005729, allocations: 144.5 kB / 346.8 MB, free: 2.262 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.41e-05/0.005803, allocations: 197.7 kB / 347 MB, free: 2.051 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.005813, allocations: 29.7 kB / 347.1 MB, free: 2.016 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.557e-05/0.005849, allocations: 139.2 kB / 347.2 MB, free: 1.871 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.015e-05/0.005859, allocations: 7.953 kB / 347.2 MB, free: 1.863 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.005896, allocations: 31.36 kB / 347.2 MB, free: 1.824 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.135e-05/0.005947, allocations: 0.4923 MB / 347.7 MB, free: 1.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.908e-05/0.005986, allocations: 67.39 kB / 347.8 MB, free: 1.242 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.667e-05/0.006023, allocations: 82.78 kB / 347.9 MB, free: 1.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.271e-05/0.006086, allocations: 146.1 kB / 348 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.006087, allocations: 0 / 348 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000123/0.00621, allocations: 180.4 kB / 348.2 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.006234, allocations: 63.39 kB / 348.3 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/0.006237, allocations: 0 / 348.3 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.006248, allocations: 0 / 348.3 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.058e-05/0.006279, allocations: 8.062 kB / 348.3 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.817e-06/0.006283, allocations: 3.938 kB / 348.3 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.103e-05/0.006314, allocations: 4 kB / 348.3 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.006322, allocations: 3.938 kB / 348.3 MB, free: 0.6641 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.489e-05/0.006387, allocations: 228 kB / 348.5 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.00649, allocations: 96.23 kB / 348.6 MB, free: 328 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.006517, allocations: 12.78 kB / 348.6 MB, free: 308 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.006527, allocations: 4 kB / 348.6 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.00653, allocations: 0 / 348.6 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.006534, allocations: 240 / 348.6 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.673e-05/0.00663, allocations: 152.5 kB / 348.8 MB, free: 116 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.006633, allocations: 4 kB / 348.8 MB, free: 112 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-05/0.006643, allocations: 3.938 kB / 348.8 MB, free: 108 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.006645, allocations: 11.92 kB / 348.8 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.006656, allocations: 0 / 348.8 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.006657, allocations: 0 / 348.8 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.006658, allocations: 4 kB / 348.8 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004041/0.007062, allocations: 412.1 kB / 349.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.779e-05/0.00708, allocations: 11.89 kB / 349.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.007103, allocations: 8 kB / 349.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.01e-05/0.007153, allocations: 3.938 kB / 349.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.007186, allocations: 15.92 kB / 349.2 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.279e-05/0.007199, allocations: 8 kB / 349.2 MB, free: 15.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.853e-05/0.007297, allocations: 135.2 kB / 349.4 MB, free: 15.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007297, allocations: 4 kB / 349.4 MB, free: 15.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002291/0.007527, allocations: 19.94 kB / 349.4 MB, free: 15.44 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: 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.001085/0.008611, allocations: 277.7 kB / 349.7 MB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003323/0.008944, allocations: 293.1 kB / 349.9 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.008945, allocations: 4 kB / 350 MB, free: 14.9 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.009101, allocations: 181.9 kB / 350.1 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.009427, allocations: 47.91 kB / 350.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004824/0.009909, allocations: 305.3 kB / 350.5 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.01002, allocations: 93.36 kB / 350.6 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.956e-05/0.01006, allocations: 12.17 kB / 350.6 MB, free: 14.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.115e-05/0.01008, allocations: 12.5 kB / 350.6 MB, free: 14.16 MB / 282.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01008, allocations: 3.938 kB / 350.6 MB, free: 14.15 MB / 282.7 MB Notification: Performance of Templates: time 0.004535/0.01462, allocations: 1.417 MB / 352 MB, free: 12.74 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=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.219633155036718]