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.0009152/0.0009152, allocations: 79.94 kB / 20.76 MB, free: 3.73 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.001437/0.001437, allocations: 173 kB / 24.19 MB, free: 316 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.9454/0.9454, allocations: 177.1 MB / 204.6 MB, free: 5.094 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.04002/0.04002, allocations: 9.158 MB / 270.2 MB, free: 4 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.372e-06/1.372e-06, allocations: 0 / 289.8 MB, free: 484 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.956e-05, allocations: 6.312 kB / 289.8 MB, free: 476 kB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.1145/0.1145, allocations: 2.509 MB / 292.3 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002333/0.1147, allocations: 172 kB / 292.4 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.7e-05/0.1148, allocations: 1.25 kB / 292.4 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1149, allocations: 26.64 kB / 292.5 MB, free: 18.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.1151, allocations: 46.23 kB / 292.5 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001427/0.1153, allocations: 48.31 kB / 292.6 MB, free: 18.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.1154, allocations: 81.81 kB / 292.6 MB, free: 18.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.051e-05/0.1154, allocations: 14.39 kB / 292.7 MB, free: 18.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.996e-05/0.1155, allocations: 40.72 kB / 292.7 MB, free: 18.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.667e-05/0.1155, allocations: 31.05 kB / 292.7 MB, free: 18.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.799e-05/0.1156, allocations: 6.656 kB / 292.7 MB, free: 18.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.1157, allocations: 137.5 kB / 292.9 MB, free: 17.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.909e-05/0.1157, allocations: 17.64 kB / 292.9 MB, free: 17.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.1157, allocations: 18.92 kB / 292.9 MB, free: 17.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.1159, allocations: 150.4 kB / 293.1 MB, free: 17.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.1159, allocations: 0.5312 kB / 293.1 MB, free: 17.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1159, allocations: 0.625 kB / 293.1 MB, free: 17.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.1159, allocations: 3.938 kB / 293.1 MB, free: 17.87 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.000232/0.1161, allocations: 343.1 kB / 293.4 MB, free: 17.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.1162, allocations: 9.219 kB / 293.4 MB, free: 17.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.014e-05/0.1162, allocations: 12.05 kB / 293.4 MB, free: 17.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.1163, allocations: 138.2 kB / 293.6 MB, free: 17.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.1163, allocations: 7.656 kB / 293.6 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.1163, allocations: 6.922 kB / 293.6 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.1165, allocations: 200.5 kB / 293.8 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.1165, allocations: 2.312 kB / 293.8 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-06/0.1165, allocations: 1.438 kB / 293.8 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1165, allocations: 1.531 kB / 293.8 MB, free: 17.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.331e-05/0.1166, allocations: 78.94 kB / 293.8 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.1167, allocations: 171.9 kB / 294 MB, free: 16.99 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.078e-05/0.1168, allocations: 109.5 kB / 294.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.992e-05/0.1168, allocations: 82.5 kB / 294.2 MB, free: 16.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.493e-05/0.1168, allocations: 2.844 kB / 294.2 MB, free: 16.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.448e-05/0.1168, allocations: 33.98 kB / 294.2 MB, free: 16.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.1169, allocations: 0 / 294.2 MB, free: 16.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001334/0.117, allocations: 239.8 kB / 294.5 MB, free: 16.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.117, allocations: 133.1 kB / 294.6 MB, free: 16.37 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.656e-05/0.1171, allocations: 143.6 kB / 294.7 MB, free: 16.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.052e-06/0.1171, allocations: 27.64 kB / 294.8 MB, free: 16.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.948e-05/0.1171, allocations: 92.91 kB / 294.9 MB, free: 16.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.606e-06/0.1171, allocations: 6.828 kB / 294.9 MB, free: 16.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.1171, allocations: 25.03 kB / 294.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.561e-05/0.1172, allocations: 319.4 kB / 295.2 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.619e-05/0.1172, allocations: 57.7 kB / 295.3 MB, free: 15.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.964e-05/0.1172, allocations: 68.22 kB / 295.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.806e-05/0.1172, allocations: 138.2 kB / 295.5 MB, free: 15.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.1172, allocations: 0 / 295.5 MB, free: 15.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.685e-05/0.1173, allocations: 158 kB / 295.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1173, allocations: 62.98 kB / 295.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1173, allocations: 2.281 kB / 295.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.1173, allocations: 6.562 kB / 295.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.107e-05/0.1173, allocations: 6.125 kB / 295.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.254e-06/0.1173, allocations: 1.406 kB / 295.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.1174, allocations: 9.703 kB / 295.7 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.1174, allocations: 2.469 kB / 295.7 MB, free: 15.25 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.463e-05/0.1174, allocations: 169.1 kB / 295.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.213e-05/0.1175, allocations: 54.7 kB / 295.9 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.229e-05/0.1175, allocations: 12.19 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1175, allocations: 7.062 kB / 295.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.1175, allocations: 3.219 kB / 295.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1175, allocations: 1.703 kB / 295.9 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.75e-05/0.1176, allocations: 80.45 kB / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1176, allocations: 0 / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.266e-05/0.1176, allocations: 6.344 kB / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.1176, allocations: 0 / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.1176, allocations: 8.609 kB / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.1176, allocations: 1.125 kB / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1176, allocations: 1.391 kB / 296 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.128e-05/0.1176, allocations: 265.8 kB / 296.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-06/0.1177, allocations: 4.875 kB / 296.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.1177, allocations: 2.344 kB / 296.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.967e-05/0.1177, allocations: 5.312 kB / 296.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.551e-05/0.1177, allocations: 8.938 kB / 296.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.1177, allocations: 2.281 kB / 296.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.05e-05/0.1177, allocations: 29.34 kB / 296.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1177, allocations: 0 / 296.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001427/0.1179, allocations: 28.92 kB / 296.4 MB, free: 14.64 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.0005987/0.1185, allocations: 359.2 kB / 296.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.1186, allocations: 251.2 kB / 297 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1186, allocations: 1.031 kB / 297 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.114e-05/0.1186, allocations: 176.6 kB / 297.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.1187, allocations: 25.78 kB / 297.2 MB, free: 14.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001973/0.1189, allocations: 232.1 kB / 297.4 MB, free: 13.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.599e-05/0.119, allocations: 64.25 kB / 297.5 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.886e-05/0.119, allocations: 14.81 kB / 297.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.545e-05/0.1191, allocations: 77.16 kB / 297.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of SimCode: time 3.7e-07/0.1191, allocations: 1.031 kB / 297.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of Templates: time 0.003155/0.1222, allocations: 1.733 MB / 299.3 MB, free: 13.52 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.4445003611035645]