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.0007586/0.0007586, allocations: 84.22 kB / 20.98 MB, free: 3.566 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.000947/0.000947, allocations: 165 kB / 24.29 MB, free: 268 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 0.9224/0.9224, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.03633/0.03633, allocations: 9.155 MB / 270.2 MB, free: 4.32 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.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.263e-06/1.263e-06, allocations: 0 / 342.5 MB, free: 7.652 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.336e-05/1.462e-05, allocations: 2.312 kB / 342.5 MB, free: 7.648 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002091/0.002106, allocations: 2.434 MB / 345 MB, free: 5.199 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002138/0.00232, allocations: 175.4 kB / 345.1 MB, free: 5.027 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.232e-05/0.002372, allocations: 7.938 kB / 345.1 MB, free: 5.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.002478, allocations: 19.8 kB / 345.2 MB, free: 5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.00269, allocations: 55.81 kB / 345.2 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001148/0.002805, allocations: 43.89 kB / 345.3 MB, free: 4.902 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.002905, allocations: 75.78 kB / 345.3 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.274e-05/0.002978, allocations: 20.14 kB / 345.4 MB, free: 4.805 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.116e-05/0.003029, allocations: 39.91 kB / 345.4 MB, free: 4.766 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.343e-05/0.003062, allocations: 35.89 kB / 345.4 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.661e-05/0.003079, allocations: 8 kB / 345.4 MB, free: 4.723 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.172e-05/0.003171, allocations: 127.9 kB / 345.6 MB, free: 4.598 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.732e-05/0.003188, allocations: 11.94 kB / 345.6 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.837e-05/0.003216, allocations: 23.91 kB / 345.6 MB, free: 4.562 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.003374, allocations: 143.6 kB / 345.7 MB, free: 4.422 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.003376, allocations: 0 / 345.7 MB, free: 4.422 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.003376, allocations: 0 / 345.7 MB, free: 4.422 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.00338, allocations: 0 / 345.7 MB, free: 4.422 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.0002476/0.003627, allocations: 475.5 kB / 346.2 MB, free: 3.906 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.779e-05/0.003655, allocations: 16.03 kB / 346.2 MB, free: 3.891 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.766e-05/0.003693, allocations: 16.84 kB / 346.2 MB, free: 3.875 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.003844, allocations: 140.5 kB / 346.4 MB, free: 3.711 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.003865, allocations: 8.375 kB / 346.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.003877, allocations: 8.312 kB / 346.4 MB, free: 3.695 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.004077, allocations: 209 kB / 346.6 MB, free: 3.453 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.2e-06/0.004082, allocations: 4.188 kB / 346.6 MB, free: 3.449 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.004092, allocations: 4.375 kB / 346.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.004098, allocations: 384 / 346.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.626e-05/0.004144, allocations: 79.27 kB / 346.7 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001964/0.004341, allocations: 283.5 kB / 347 MB, free: 3.039 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.004442, allocations: 141.5 kB / 347.1 MB, free: 2.863 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.83e-05/0.00448, allocations: 86.84 kB / 347.2 MB, free: 2.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.004497, allocations: 4 kB / 347.2 MB, free: 2.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.00451, allocations: 45.31 kB / 347.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.004512, allocations: 0 / 347.2 MB, free: 2.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001832/0.004695, allocations: 263.8 kB / 347.5 MB, free: 2.398 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.004731, allocations: 132.5 kB / 347.6 MB, free: 2.238 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.176e-05/0.004792, allocations: 196.5 kB / 347.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.235e-06/0.004801, allocations: 29.7 kB / 347.8 MB, free: 1.996 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.149e-05/0.004832, allocations: 146.8 kB / 348 MB, free: 1.848 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.093e-06/0.004839, allocations: 3.953 kB / 348 MB, free: 1.844 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.004866, allocations: 31.36 kB / 348 MB, free: 1.805 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.782e-05/0.004904, allocations: 496.1 kB / 348.5 MB, free: 1.309 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.095e-05/0.004925, allocations: 63.33 kB / 348.6 MB, free: 1.234 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.399e-05/0.004949, allocations: 78.78 kB / 348.6 MB, free: 1.137 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.929e-05/0.004988, allocations: 138.2 kB / 348.8 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.004989, allocations: 4 kB / 348.8 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.311e-05/0.005062, allocations: 172.4 kB / 348.9 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.005084, allocations: 67.33 kB / 349 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/0.005087, allocations: 0 / 349 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.208e-06/0.005096, allocations: 0 / 349 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.311e-05/0.005119, allocations: 0 / 349 MB, free: 0.6875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.005124, allocations: 4 kB / 349 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.502e-05/0.005139, allocations: 0 / 349 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.005146, allocations: 4 kB / 349 MB, free: 0.6797 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 4.544e-05/0.005192, allocations: 224 kB / 349.2 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.697e-05/0.005239, allocations: 61.55 kB / 349.3 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.323e-05/0.005262, allocations: 16.45 kB / 349.3 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.005264, allocations: 0 / 349.3 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.005267, allocations: 0 / 349.3 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.00527, allocations: 4 kB / 349.3 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.809e-05/0.005338, allocations: 128.6 kB / 349.4 MB, free: 192 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.005339, allocations: 4 kB / 349.4 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.063e-05/0.00535, allocations: 0 / 349.4 MB, free: 188 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.005351, allocations: 4 kB / 349.4 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.005359, allocations: 7.938 kB / 349.5 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-07/0.00536, allocations: 0 / 349.5 MB, free: 176 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.005361, allocations: 4.312 kB / 349.5 MB, free: 172 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001674/0.005528, allocations: 358.3 kB / 349.8 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.04e-05/0.005538, allocations: 11.89 kB / 349.8 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.607e-05/0.005554, allocations: 11.94 kB / 349.8 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.012e-05/0.005585, allocations: 3.984 kB / 349.8 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.783e-05/0.005602, allocations: 4 kB / 349.8 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-06/0.005609, allocations: 4 kB / 349.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.079e-05/0.00566, allocations: 139.2 kB / 350 MB, free: 15.6 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.00566, allocations: 3.938 kB / 350 MB, free: 15.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001708/0.005831, allocations: 24 kB / 350 MB, free: 15.57 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: 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.000535/0.006366, allocations: 328.4 kB / 350.3 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001654/0.006531, allocations: 261.2 kB / 350.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.006532, allocations: 0 / 350.6 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.785e-05/0.0066, allocations: 177.9 kB / 350.8 MB, free: 14.81 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.006801, allocations: 35.8 kB / 350.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002671/0.007068, allocations: 252.2 kB / 351 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.72e-05/0.007105, allocations: 63.34 kB / 351.1 MB, free: 14.4 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.85e-05/0.007134, allocations: 11.98 kB / 351.1 MB, free: 14.39 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.865e-05/0.007153, allocations: 12.5 kB / 351.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of SimCode: time 6.52e-07/0.007153, allocations: 0 / 351.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of Templates: time 0.003526/0.01068, allocations: 1.697 MB / 352.8 MB, free: 12.69 MB / 282.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.608459381852299]