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.0009575/0.0009575, allocations: 83.34 kB / 20.47 MB, free: 4.105 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.001323/0.001323, allocations: 169 kB / 23.84 MB, free: 0.7305 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 1.009/1.009, allocations: 177.1 MB / 204.2 MB, free: 5.645 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.03649/0.03649, allocations: 9.148 MB / 269.9 MB, free: 4.273 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.152e-06/1.152e-06, allocations: 0 / 342.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.102e-05/2.217e-05, allocations: 2.312 kB / 342.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.002577/0.002599, allocations: 2.814 MB / 345.4 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004426/0.003042, allocations: 358.8 kB / 345.7 MB, free: 4.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.712e-05/0.003129, allocations: 3.938 kB / 345.7 MB, free: 4.121 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.00334, allocations: 51.62 kB / 345.8 MB, free: 4.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.003568, allocations: 59.77 kB / 345.8 MB, free: 4.012 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.003751, allocations: 87.64 kB / 345.9 MB, free: 3.926 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.003895, allocations: 160 kB / 346.1 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.00402, allocations: 49.62 kB / 346.1 MB, free: 3.715 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.72e-05/0.004087, allocations: 83.84 kB / 346.2 MB, free: 3.633 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.815e-05/0.004155, allocations: 55.81 kB / 346.2 MB, free: 3.578 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.233e-05/0.004177, allocations: 12 kB / 346.3 MB, free: 3.566 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.004297, allocations: 139.8 kB / 346.4 MB, free: 3.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.947e-05/0.004347, allocations: 47.83 kB / 346.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.004385, allocations: 43.84 kB / 346.5 MB, free: 3.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.004589, allocations: 187.5 kB / 346.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.004591, allocations: 0 / 346.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.004591, allocations: 0 / 346.7 MB, free: 3.156 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004596, allocations: 3.938 kB / 346.7 MB, free: 3.152 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.0003589/0.004954, allocations: 483.6 kB / 347.1 MB, free: 2.637 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.004987, allocations: 8.031 kB / 347.1 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.724e-05/0.005034, allocations: 24.84 kB / 347.2 MB, free: 2.605 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.005167, allocations: 184.2 kB / 347.3 MB, free: 2.398 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.005186, allocations: 16.55 kB / 347.4 MB, free: 2.383 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.005202, allocations: 12.38 kB / 347.4 MB, free: 2.371 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.005349, allocations: 131.2 kB / 347.5 MB, free: 2.227 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.005358, allocations: 192 / 347.5 MB, free: 2.227 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.00537, allocations: 8.375 kB / 347.5 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.005378, allocations: 8.359 kB / 347.5 MB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.371e-05/0.005442, allocations: 42.11 kB / 347.6 MB, free: 2.172 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003828/0.005825, allocations: 435.4 kB / 348 MB, free: 1.707 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.958e-05/0.005904, allocations: 74.16 kB / 348.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.444e-05/0.005939, allocations: 35.45 kB / 348.1 MB, free: 1.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.005964, allocations: 0 / 348.1 MB, free: 1.566 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.821e-05/0.006052, allocations: 108.3 kB / 348.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 7.91e-07/0.006053, allocations: 0 / 348.2 MB, free: 1.438 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.000209/0.006262, allocations: 101.5 kB / 348.3 MB, free: 1.332 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.006295, allocations: 81.11 kB / 348.4 MB, free: 1.234 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.982e-05/0.006395, allocations: 206.5 kB / 348.6 MB, free: 1.016 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.006404, allocations: 25.7 kB / 348.6 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.006465, allocations: 183 kB / 348.8 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.906e-05/0.006484, allocations: 31.75 kB / 348.8 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.006529, allocations: 35.36 kB / 348.9 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.223e-05/0.006591, allocations: 0.4923 MB / 349.3 MB, free: 224 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.832e-05/0.00662, allocations: 19.98 kB / 349.4 MB, free: 204 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.628e-05/0.006656, allocations: 57.69 kB / 349.4 MB, free: 132 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.435e-05/0.00673, allocations: 70.69 kB / 349.5 MB, free: 44 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.006733, allocations: 3.984 kB / 349.5 MB, free: 40 kB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001565/0.00689, allocations: 109.3 kB / 349.6 MB, free: 15.93 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.006907, allocations: 8 kB / 349.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.00692, allocations: 0 / 349.6 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.006938, allocations: 4 kB / 349.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.761e-05/0.007006, allocations: 20.05 kB / 349.6 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.007013, allocations: 3.984 kB / 349.6 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.01e-05/0.007043, allocations: 4 kB / 349.6 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.007052, allocations: 4 kB / 349.6 MB, free: 15.88 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.606e-05/0.007148, allocations: 164.5 kB / 349.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.007171, allocations: 19.84 kB / 349.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.618e-05/0.007217, allocations: 16.77 kB / 349.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.00722, allocations: 0 / 349.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.007227, allocations: 4 kB / 349.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.007232, allocations: 0 / 349.8 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.007375, allocations: 168.9 kB / 350 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.007379, allocations: 0 / 350 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.488e-05/0.007394, allocations: 8 kB / 350 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.007396, allocations: 3.938 kB / 350 MB, free: 15.46 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.007406, allocations: 7.984 kB / 350 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.007408, allocations: 0 / 350 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.007409, allocations: 0 / 350 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.007543, allocations: 132.2 kB / 350.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.362e-05/0.007556, allocations: 19.81 kB / 350.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.00757, allocations: 7.938 kB / 350.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.765e-05/0.007588, allocations: 4 kB / 350.2 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.847e-05/0.007686, allocations: 7.984 kB / 350.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.007693, allocations: 4 kB / 350.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.853e-05/0.007762, allocations: 160 kB / 350.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007762, allocations: 0 / 350.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001761/0.007938, allocations: 35.89 kB / 350.4 MB, free: 15.06 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.0004972/0.008435, allocations: 255 kB / 350.6 MB, free: 14.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001589/0.008594, allocations: 93.3 kB / 350.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.008595, allocations: 0 / 350.7 MB, free: 14.76 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.702e-05/0.008642, allocations: 57.38 kB / 350.8 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.008764, allocations: 11.98 kB / 350.8 MB, free: 14.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003779/0.009142, allocations: 270.4 kB / 351.1 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.334e-05/0.009185, allocations: 79.27 kB / 351.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.255e-05/0.009218, allocations: 16.42 kB / 351.2 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.642e-05/0.009244, allocations: 20.62 kB / 351.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009244, allocations: 0 / 351.2 MB, free: 14.25 MB / 282.7 MB Notification: Performance of Templates: time 0.003352/0.0126, allocations: 1.408 MB / 352.6 MB, free: 12.86 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.443558977916837]