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.0006713/0.0006713, allocations: 85.06 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009438/0.001615, allocations: 452 kB / 10.43 MB, free: 264 kB / 10.45 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.001069/0.001069, allocations: 157.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001442/0.002511, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 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.9005/0.9005, allocations: 177.2 MB / 189.7 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07275/0.9732, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-master/package.mo): time 0.03678/0.03678, allocations: 9.163 MB / 253.3 MB, free: 6.008 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-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 2.2.0-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 2.2.0-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 2.2.0-master/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. Notification: Performance of NFInstanceAPI.mkTop(): time 0.005297/0.04208, allocations: 3.448 MB / 256.8 MB, free: 2.555 MB / 250.7 MB " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0-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.312e-06/1.312e-06, allocations: 0 / 258 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.441e-05/1.572e-05, allocations: 10.25 kB / 258.1 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002419/0.002435, allocations: 2.531 MB / 260.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003632/0.002798, allocations: 179.4 kB / 260.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.15e-05/0.00287, allocations: 4 kB / 260.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.153e-05/0.002941, allocations: 23.73 kB / 260.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.003119, allocations: 51.77 kB / 260.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001238/0.003243, allocations: 47.83 kB / 260.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.003358, allocations: 83.7 kB / 261 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.331e-05/0.003432, allocations: 12.22 kB / 261 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.997e-05/0.003512, allocations: 51.89 kB / 261 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.116e-05/0.003553, allocations: 23.91 kB / 261.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.003572, allocations: 8 kB / 261.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.003707, allocations: 135.9 kB / 261.2 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.825e-05/0.003725, allocations: 11.94 kB / 261.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.089e-05/0.003776, allocations: 15.94 kB / 261.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001735/0.003949, allocations: 119.6 kB / 261.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.003957, allocations: 0 / 261.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003958, allocations: 0 / 261.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.003966, allocations: 0 / 261.3 MB, free: 13.95 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.0003306/0.004296, allocations: 363.5 kB / 261.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.659e-05/0.004323, allocations: 8.625 kB / 261.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.42e-05/0.004357, allocations: 8.938 kB / 261.7 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.004502, allocations: 137.5 kB / 261.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.004516, allocations: 8.375 kB / 261.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.004532, allocations: 12.36 kB / 261.9 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002496/0.004781, allocations: 208.6 kB / 262.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.004787, allocations: 4.125 kB / 262.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.004794, allocations: 384 / 262.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.0048, allocations: 384 / 262.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.032e-05/0.00484, allocations: 79.33 kB / 262.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001837/0.005024, allocations: 169.2 kB / 262.3 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001053/0.005129, allocations: 120.4 kB / 262.4 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.566e-05/0.005165, allocations: 81.19 kB / 262.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.005181, allocations: 4 kB / 262.5 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.005201, allocations: 38.55 kB / 262.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 7.91e-07/0.005201, allocations: 0 / 262.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001602/0.005362, allocations: 239.8 kB / 262.8 MB, free: 12.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.005393, allocations: 85.05 kB / 262.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.225e-05/0.005456, allocations: 134.7 kB / 263 MB, free: 12.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.005466, allocations: 25.7 kB / 263 MB, free: 12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.005498, allocations: 96.06 kB / 263.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.947e-06/0.005507, allocations: 15.92 kB / 263.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.00553, allocations: 13.72 kB / 263.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.344e-05/0.005593, allocations: 326.8 kB / 263.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.005617, allocations: 55.41 kB / 263.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.981e-05/0.005646, allocations: 73.11 kB / 263.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.00582, allocations: 136.5 kB / 263.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.005822, allocations: 0 / 263.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.218e-05/0.005904, allocations: 160.4 kB / 263.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.005936, allocations: 59.41 kB / 263.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.005939, allocations: 4.062 kB / 263.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.211e-05/0.005951, allocations: 7.938 kB / 264 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.549e-05/0.005977, allocations: 3.984 kB / 264 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.005979, allocations: 0 / 264 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.005998, allocations: 7.953 kB / 264 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.006004, allocations: 0 / 264 MB, free: 10.94 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.784e-05/0.006072, allocations: 169.2 kB / 264.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.411e-05/0.006116, allocations: 49.69 kB / 264.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.006141, allocations: 12.69 kB / 264.2 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.006145, allocations: 11.92 kB / 264.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.006146, allocations: 0 / 264.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.006149, allocations: 4 kB / 264.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.666e-05/0.006225, allocations: 77.88 kB / 264.3 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.006226, allocations: 0 / 264.3 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.666e-05/0.006243, allocations: 7.984 kB / 264.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-06/0.006251, allocations: 12.2 kB / 264.3 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.006252, allocations: 0 / 264.3 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.00626, allocations: 4 kB / 264.3 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.006263, allocations: 11.94 kB / 264.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.006264, allocations: 3.938 kB / 264.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.006368, allocations: 263.2 kB / 264.6 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.00638, allocations: 4.031 kB / 264.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.807e-05/0.006408, allocations: 4 kB / 264.6 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.557e-05/0.006423, allocations: 7.922 kB / 264.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.006428, allocations: 4 kB / 264.6 MB, free: 10.22 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.146e-05/0.00645, allocations: 32.77 kB / 264.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00645, allocations: 0 / 264.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001404/0.00659, allocations: 20 kB / 264.6 MB, free: 10.16 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: 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.0006502/0.00724, allocations: 387.6 kB / 265 MB, free: 9.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001381/0.007378, allocations: 246.5 kB / 265.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.007383, allocations: 0 / 265.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.358e-05/0.007447, allocations: 183 kB / 265.4 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.007598, allocations: 41.36 kB / 265.5 MB, free: 9.344 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003682/0.007966, allocations: 236.1 kB / 265.7 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.764e-05/0.008004, allocations: 70.53 kB / 265.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.901e-05/0.008043, allocations: 11.98 kB / 265.8 MB, free: 8.973 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.157e-05/0.008104, allocations: 71.36 kB / 265.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of SimCode: time 4.51e-07/0.008105, allocations: 0 / 265.9 MB, free: 8.902 MB / 266.7 MB Notification: Performance of Templates: time 0.003121/0.01123, allocations: 1.766 MB / 267.6 MB, free: 7.141 MB / 266.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.312958520837128]