Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.001102/0.001102, allocations: 80.2 kB / 20.7 MB, free: 3.801 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.001304/0.001304, allocations: 173 kB / 24.09 MB, free: 416 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 1.091/1.091, allocations: 177.1 MB / 204.5 MB, free: 5.176 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.03902/0.03902, allocations: 9.153 MB / 270.2 MB, free: 3.977 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.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 343 MB, free: 7.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.588e-05, allocations: 6.25 kB / 343 MB, free: 7.043 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002778/0.002803, allocations: 2.783 MB / 345.8 MB, free: 4.242 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004648/0.003268, allocations: 370.7 kB / 346.1 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.003369, allocations: 7.875 kB / 346.2 MB, free: 3.871 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002358/0.003604, allocations: 47.7 kB / 346.2 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002297/0.003834, allocations: 59.75 kB / 346.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002074/0.004041, allocations: 83.66 kB / 346.3 MB, free: 3.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.004183, allocations: 164 kB / 346.5 MB, free: 3.523 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.004334, allocations: 57.61 kB / 346.6 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.886e-05/0.004413, allocations: 79.81 kB / 346.6 MB, free: 3.383 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.644e-05/0.004489, allocations: 47.88 kB / 346.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.004514, allocations: 12 kB / 346.7 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001372/0.004652, allocations: 139.9 kB / 346.8 MB, free: 3.188 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.336e-05/0.004705, allocations: 43.83 kB / 346.9 MB, free: 3.145 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.701e-05/0.004742, allocations: 43.84 kB / 346.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.004942, allocations: 195.4 kB / 347.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.004944, allocations: 0 / 347.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.004945, allocations: 0 / 347.1 MB, free: 2.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.004948, allocations: 0 / 347.1 MB, free: 2.91 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0003771/0.005325, allocations: 483.6 kB / 347.6 MB, free: 2.395 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.005361, allocations: 12.03 kB / 347.6 MB, free: 2.383 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.402e-05/0.005405, allocations: 24.84 kB / 347.6 MB, free: 2.359 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.005538, allocations: 186.7 kB / 347.8 MB, free: 2.152 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.005561, allocations: 8.609 kB / 347.8 MB, free: 2.145 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.479e-05/0.005575, allocations: 12.38 kB / 347.8 MB, free: 2.133 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001484/0.005724, allocations: 131.2 kB / 347.9 MB, free: 1.988 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.005735, allocations: 192 / 347.9 MB, free: 1.988 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.005746, allocations: 4.375 kB / 347.9 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.005756, allocations: 4.375 kB / 348 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.16e-05/0.005808, allocations: 41.61 kB / 348 MB, free: 1.941 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004266/0.006234, allocations: 396.1 kB / 348.4 MB, free: 1.523 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.173e-05/0.006306, allocations: 74.03 kB / 348.5 MB, free: 1.426 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.525e-05/0.006331, allocations: 31.48 kB / 348.5 MB, free: 1.387 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.006359, allocations: 4 kB / 348.5 MB, free: 1.383 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.932e-05/0.006459, allocations: 92.41 kB / 348.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 9.22e-07/0.00646, allocations: 0 / 348.6 MB, free: 1.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001741/0.006634, allocations: 101.4 kB / 348.7 MB, free: 1.164 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.00666, allocations: 85.11 kB / 348.8 MB, free: 1.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.889e-05/0.006739, allocations: 206.4 kB / 349 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.006751, allocations: 29.7 kB / 349 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.612e-05/0.006807, allocations: 178.9 kB / 349.2 MB, free: 0.625 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.526e-05/0.006822, allocations: 27.73 kB / 349.2 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.006862, allocations: 47.28 kB / 349.2 MB, free: 0.543 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.611e-05/0.006918, allocations: 0.4923 MB / 349.7 MB, free: 40 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.249e-05/0.006941, allocations: 11.98 kB / 349.7 MB, free: 28 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.413e-05/0.006995, allocations: 53.3 kB / 349.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.285e-05/0.007068, allocations: 78.59 kB / 349.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.00707, allocations: 0 / 349.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001263/0.007196, allocations: 97.47 kB / 350 MB, free: 15.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.007213, allocations: 11.94 kB / 350 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.007229, allocations: 0 / 350 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.007245, allocations: 0 / 350 MB, free: 15.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.144e-05/0.007307, allocations: 15.98 kB / 350 MB, free: 15.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.007312, allocations: 4 kB / 350 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.685e-05/0.007339, allocations: 4 kB / 350 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.007346, allocations: 4 kB / 350 MB, free: 15.73 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.867e-05/0.007445, allocations: 168.6 kB / 350.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.007464, allocations: 16.22 kB / 350.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.007504, allocations: 16.7 kB / 350.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.007506, allocations: 4 kB / 350.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.007509, allocations: 4 kB / 350.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.007513, allocations: 0 / 350.2 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.007628, allocations: 133.2 kB / 350.3 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.007633, allocations: 7.938 kB / 350.3 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.589e-05/0.007648, allocations: 4 kB / 350.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.00765, allocations: 0 / 350.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.007655, allocations: 4 kB / 350.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.007656, allocations: 0 / 350.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.00766, allocations: 7.938 kB / 350.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001304/0.00779, allocations: 127.9 kB / 350.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.46e-05/0.007805, allocations: 15.88 kB / 350.5 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.123e-05/0.007816, allocations: 4 kB / 350.5 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.595e-05/0.007832, allocations: 0 / 350.5 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.007863, allocations: 11.92 kB / 350.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.00787, allocations: 4 kB / 350.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.244e-05/0.007933, allocations: 151.1 kB / 350.7 MB, free: 14.99 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007933, allocations: 0 / 350.7 MB, free: 14.99 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002466/0.008179, allocations: 39.89 kB / 350.7 MB, free: 14.95 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0005867/0.008766, allocations: 271 kB / 351 MB, free: 14.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.008926, allocations: 77.3 kB / 351 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.008928, allocations: 0 / 351 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.809e-05/0.008976, allocations: 57.48 kB / 351.1 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.009128, allocations: 16.5 kB / 351.1 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.00953, allocations: 278.4 kB / 351.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.588e-05/0.009616, allocations: 75.33 kB / 351.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.485e-05/0.00965, allocations: 12.48 kB / 351.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.961e-05/0.00971, allocations: 82.2 kB / 351.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.009711, allocations: 0 / 351.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of Templates: time 0.003971/0.01368, allocations: 1.498 MB / 353.1 MB, free: 12.59 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.228831458836794]