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.001024/0.001024, allocations: 80.06 kB / 20.76 MB, free: 3.727 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.001141/0.001141, allocations: 177 kB / 24.19 MB, free: 312 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.9613/0.9613, allocations: 177.1 MB / 204.6 MB, free: 5.473 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.03966/0.03966, allocations: 9.159 MB / 270.2 MB, free: 4.125 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.463e-06/1.463e-06, allocations: 0 / 289.7 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.599e-05/2.745e-05, allocations: 6.25 kB / 289.7 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.1379/0.1379, allocations: 2.457 MB / 292.2 MB, free: 18.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003264/0.1383, allocations: 176.5 kB / 292.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.883e-05/0.1383, allocations: 6.094 kB / 292.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.1385, allocations: 22.06 kB / 292.4 MB, free: 18.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.1388, allocations: 55.8 kB / 292.4 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.1389, allocations: 50.89 kB / 292.5 MB, free: 18.17 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001332/0.1391, allocations: 76.95 kB / 292.6 MB, free: 18.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.104e-05/0.1392, allocations: 17.3 kB / 292.6 MB, free: 18.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.613e-05/0.1392, allocations: 38.94 kB / 292.6 MB, free: 18.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.961e-05/0.1393, allocations: 27.72 kB / 292.6 MB, free: 18.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.324e-05/0.1393, allocations: 7.156 kB / 292.7 MB, free: 18.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.1395, allocations: 133 kB / 292.8 MB, free: 18.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.737e-05/0.1395, allocations: 13.48 kB / 292.8 MB, free: 18.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.318e-05/0.1395, allocations: 25.8 kB / 292.8 MB, free: 18.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002353/0.1398, allocations: 151 kB / 293 MB, free: 17.95 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1398, allocations: 0.7812 kB / 293 MB, free: 17.95 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1398, allocations: 0 / 293 MB, free: 17.95 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1398, allocations: 1.344 kB / 293 MB, free: 17.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.0003267/0.1401, allocations: 341.8 kB / 293.3 MB, free: 17.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.1401, allocations: 8.781 kB / 293.3 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.969e-05/0.1402, allocations: 12.5 kB / 293.3 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.1403, allocations: 137.1 kB / 293.5 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.1403, allocations: 4.844 kB / 293.5 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.1404, allocations: 12.59 kB / 293.5 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.1406, allocations: 200.6 kB / 293.7 MB, free: 17.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.914e-06/0.1406, allocations: 1.125 kB / 293.7 MB, free: 17.31 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.1406, allocations: 1.5 kB / 293.7 MB, free: 17.31 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1406, allocations: 2.062 kB / 293.7 MB, free: 17.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.307e-05/0.1406, allocations: 74.44 kB / 293.8 MB, free: 17.24 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002162/0.1409, allocations: 171 kB / 293.9 MB, free: 17.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.141, allocations: 115.6 kB / 294 MB, free: 16.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.775e-05/0.141, allocations: 78.98 kB / 294.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.141, allocations: 2.047 kB / 294.1 MB, free: 16.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.1411, allocations: 34.3 kB / 294.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 1.843e-06/0.1411, allocations: 0 / 294.1 MB, free: 16.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001653/0.1412, allocations: 240.7 kB / 294.4 MB, free: 16.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.1413, allocations: 137.2 kB / 294.5 MB, free: 16.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.866e-05/0.1413, allocations: 133.1 kB / 294.6 MB, free: 16.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.375e-06/0.1413, allocations: 26.98 kB / 294.7 MB, free: 16.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.429e-05/0.1414, allocations: 102.4 kB / 294.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.1414, allocations: 7.047 kB / 294.8 MB, free: 16.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.1414, allocations: 21.22 kB / 294.8 MB, free: 16.18 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.851e-05/0.1415, allocations: 319.7 kB / 295.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.563e-05/0.1415, allocations: 57.66 kB / 295.2 MB, free: 15.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.75e-05/0.1415, allocations: 73.25 kB / 295.2 MB, free: 15.72 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.644e-05/0.1416, allocations: 130.1 kB / 295.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.1416, allocations: 1.688 kB / 295.4 MB, free: 15.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.548e-05/0.1417, allocations: 162.1 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.1417, allocations: 60 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1417, allocations: 0 / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1417, allocations: 5.656 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.14e-05/0.1417, allocations: 3.062 kB / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.835e-06/0.1417, allocations: 0 / 295.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.743e-05/0.1418, allocations: 7.531 kB / 295.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.1418, allocations: 2.25 kB / 295.6 MB, free: 15.34 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.808e-05/0.1419, allocations: 170.6 kB / 295.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.1419, allocations: 57.34 kB / 295.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.32e-05/0.1419, allocations: 12.31 kB / 295.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1419, allocations: 8.828 kB / 295.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-06/0.1419, allocations: 0.7031 kB / 295.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.142, allocations: 1.094 kB / 295.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.593e-05/0.142, allocations: 83.94 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.142, allocations: 1.875 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.252e-05/0.1421, allocations: 5.031 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1421, allocations: 1.719 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.1421, allocations: 1.781 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1421, allocations: 3.125 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.1421, allocations: 1.828 kB / 295.9 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.1422, allocations: 271 kB / 296.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.341e-05/0.1422, allocations: 3.281 kB / 296.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.1422, allocations: 3.172 kB / 296.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.197e-05/0.1423, allocations: 7.5 kB / 296.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.1423, allocations: 6.453 kB / 296.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.1423, allocations: 3.281 kB / 296.2 MB, free: 14.74 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.223e-05/0.1423, allocations: 21.28 kB / 296.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1423, allocations: 0 / 296.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001815/0.1425, allocations: 33.86 kB / 296.3 MB, free: 14.72 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.0007705/0.1433, allocations: 359.2 kB / 296.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000156/0.1434, allocations: 248.6 kB / 296.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.1434, allocations: 0 / 296.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.677e-05/0.1435, allocations: 180.9 kB / 297.1 MB, free: 14.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.1436, allocations: 31.84 kB / 297.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002812/0.1439, allocations: 225.1 kB / 297.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.641e-05/0.144, allocations: 63.41 kB / 297.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.87e-05/0.144, allocations: 18.06 kB / 297.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.834e-05/0.1441, allocations: 68.88 kB / 297.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1441, allocations: 0 / 297.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Templates: time 0.004578/0.1487, allocations: 1.75 MB / 299.2 MB, free: 13.59 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.702014996204525]