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.0007682/0.0007682, allocations: 84.44 kB / 20.73 MB, free: 3.836 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.0008319/0.0008319, allocations: 170.3 kB / 24.01 MB, free: 0.5586 MB / 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.8387/0.8387, allocations: 177.1 MB / 204.3 MB, free: 5.734 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.03325/0.03325, allocations: 9.137 MB / 269.9 MB, free: 4.465 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.082e-06/1.082e-06, allocations: 0 / 398.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.501e-05/1.609e-05, allocations: 6.281 kB / 398.3 MB, free: 15.56 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002767/0.002783, allocations: 2.713 MB / 401 MB, free: 12.82 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.000398/0.003181, allocations: 354.8 kB / 401.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.041e-05/0.003261, allocations: 3.938 kB / 401.4 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001857/0.003447, allocations: 55.56 kB / 401.4 MB, free: 12.42 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.00367, allocations: 55.77 kB / 401.5 MB, free: 12.36 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.003838, allocations: 87.64 kB / 401.6 MB, free: 12.28 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001416/0.00398, allocations: 156 kB / 401.7 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.004094, allocations: 45.77 kB / 401.8 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.613e-05/0.00417, allocations: 87.8 kB / 401.9 MB, free: 11.99 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.546e-05/0.004245, allocations: 59.8 kB / 401.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.004267, allocations: 12 kB / 401.9 MB, free: 11.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.004392, allocations: 135.9 kB / 402.1 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.243e-05/0.004445, allocations: 47.83 kB / 402.1 MB, free: 11.74 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 3.869e-05/0.004483, allocations: 43.84 kB / 402.1 MB, free: 11.7 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.004714, allocations: 239.3 kB / 402.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.004716, allocations: 0 / 402.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.004716, allocations: 0 / 402.4 MB, free: 11.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.00472, allocations: 0 / 402.4 MB, free: 11.46 MB / 330.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.0004077/0.005128, allocations: 377.7 kB / 402.8 MB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.005159, allocations: 12.03 kB / 402.8 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.822e-05/0.005197, allocations: 20.84 kB / 402.8 MB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.005357, allocations: 183.8 kB / 403 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.507e-05/0.005372, allocations: 8.609 kB / 403 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.005388, allocations: 12.38 kB / 403 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.005569, allocations: 156.8 kB / 403.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.005577, allocations: 192 / 403.1 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.005591, allocations: 12.36 kB / 403.1 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.005597, allocations: 4.375 kB / 403.2 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.005699, allocations: 80.14 kB / 403.2 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004057/0.006105, allocations: 373.4 kB / 403.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.853e-05/0.006193, allocations: 73.19 kB / 403.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.316e-05/0.006236, allocations: 37.8 kB / 403.7 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.006261, allocations: 7.984 kB / 403.7 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001155/0.006377, allocations: 97.02 kB / 403.8 MB, free: 9.895 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 8.52e-07/0.006377, allocations: 0 / 403.8 MB, free: 9.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.000206/0.006583, allocations: 121.6 kB / 403.9 MB, free: 9.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.006624, allocations: 89.03 kB / 404 MB, free: 9.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.006732, allocations: 158.9 kB / 404.2 MB, free: 9.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.006745, allocations: 29.7 kB / 404.2 MB, free: 9.465 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.197e-05/0.006817, allocations: 136.2 kB / 404.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.98e-05/0.006837, allocations: 31.73 kB / 404.4 MB, free: 9.293 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/0.006878, allocations: 33.64 kB / 404.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.267e-05/0.00695, allocations: 322.8 kB / 404.7 MB, free: 8.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.563e-05/0.006986, allocations: 20 kB / 404.7 MB, free: 8.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.35e-05/0.007029, allocations: 59.59 kB / 404.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.803e-05/0.007117, allocations: 87.36 kB / 404.9 MB, free: 8.742 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.007119, allocations: 0 / 404.9 MB, free: 8.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001172/0.007236, allocations: 129.5 kB / 405 MB, free: 8.609 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.007248, allocations: 8 kB / 405 MB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.007258, allocations: 0 / 405 MB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.007269, allocations: 4 kB / 405 MB, free: 8.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.795e-05/0.007317, allocations: 15.92 kB / 405 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.007321, allocations: 0 / 405 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.007344, allocations: 11.89 kB / 405 MB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.007352, allocations: 4 kB / 405 MB, free: 8.566 MB / 330.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 7.263e-05/0.007425, allocations: 137.8 kB / 405.2 MB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.007437, allocations: 15.84 kB / 405.2 MB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.815e-05/0.007465, allocations: 16.84 kB / 405.2 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.007467, allocations: 0 / 405.2 MB, free: 8.395 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.007471, allocations: 4 kB / 405.2 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.007475, allocations: 0 / 405.2 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.007581, allocations: 161.2 kB / 405.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.007584, allocations: 0 / 405.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.299e-05/0.007597, allocations: 7.938 kB / 405.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.007598, allocations: 0 / 405.4 MB, free: 8.195 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.007605, allocations: 3.938 kB / 405.4 MB, free: 8.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.007607, allocations: 4 kB / 405.4 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.007608, allocations: 0 / 405.4 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.007726, allocations: 141.9 kB / 405.5 MB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.435e-05/0.00774, allocations: 15.88 kB / 405.5 MB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.007753, allocations: 7.938 kB / 405.5 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.334e-05/0.007767, allocations: 0 / 405.5 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.007803, allocations: 7.984 kB / 405.6 MB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.007811, allocations: 8 kB / 405.6 MB, free: 7.988 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.716e-05/0.007868, allocations: 111.2 kB / 405.7 MB, free: 7.879 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.007868, allocations: 0 / 405.7 MB, free: 7.879 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001711/0.008039, allocations: 39.89 kB / 405.7 MB, free: 7.84 MB / 330.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.0003575/0.008397, allocations: 254.3 kB / 406 MB, free: 7.633 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001404/0.008537, allocations: 97.61 kB / 406.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.00854, allocations: 4 kB / 406.1 MB, free: 7.527 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.681e-05/0.008586, allocations: 57.62 kB / 406.1 MB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001092/0.008696, allocations: 8 kB / 406.1 MB, free: 7.457 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006009/0.009296, allocations: 308.7 kB / 406.4 MB, free: 7.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.774e-05/0.009374, allocations: 122.9 kB / 406.5 MB, free: 6.977 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.183e-05/0.009396, allocations: 16.5 kB / 406.6 MB, free: 6.961 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.009396, allocations: 0 / 406.6 MB, free: 6.961 MB / 330.7 MB Notification: Performance of Templates: time 0.00273/0.01213, allocations: 2.678 MB / 409.2 MB, free: 4.293 MB / 330.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=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.544974864460528] Failed to read output from testmodel.py, exit status != 0: 0.016316344030201435 0.15654547100000002 0.150222544 Calling exit ...