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.001228/0.001228, allocations: 83.34 kB / 20.46 MB, free: 4.109 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.001305/0.001305, allocations: 169.3 kB / 23.84 MB, free: 0.7344 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.076/1.076, allocations: 177.2 MB / 204.2 MB, free: 5.633 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.03919/0.03919, allocations: 9.148 MB / 269.9 MB, free: 4.262 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 3.436e-06/3.436e-06, allocations: 0 / 342.5 MB, free: 8.379 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.328e-05/3.672e-05, allocations: 2.312 kB / 342.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003512/0.003549, allocations: 2.826 MB / 345.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005601/0.004109, allocations: 362.9 kB / 345.7 MB, free: 5.172 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.004217, allocations: 15.88 kB / 345.7 MB, free: 5.156 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.004443, allocations: 43.64 kB / 345.8 MB, free: 5.113 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002788/0.004721, allocations: 59.75 kB / 345.8 MB, free: 5.055 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.004934, allocations: 91.64 kB / 345.9 MB, free: 4.965 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.005098, allocations: 156 kB / 346.1 MB, free: 4.812 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.005225, allocations: 45.78 kB / 346.1 MB, free: 4.766 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.342e-05/0.005308, allocations: 79.84 kB / 346.2 MB, free: 4.688 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.901e-05/0.005387, allocations: 51.83 kB / 346.3 MB, free: 4.637 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.005412, allocations: 12 kB / 346.3 MB, free: 4.625 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001487/0.005561, allocations: 139.9 kB / 346.4 MB, free: 4.488 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.889e-05/0.00562, allocations: 43.84 kB / 346.4 MB, free: 4.445 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.293e-05/0.005673, allocations: 47.84 kB / 346.5 MB, free: 4.398 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002626/0.005935, allocations: 187.4 kB / 346.7 MB, free: 4.215 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.005938, allocations: 0 / 346.7 MB, free: 4.215 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.00594, allocations: 0 / 346.7 MB, free: 4.215 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.005945, allocations: 0 / 346.7 MB, free: 4.215 MB / 314.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.0005558/0.006501, allocations: 483.7 kB / 347.1 MB, free: 3.699 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.006536, allocations: 8.031 kB / 347.2 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.939e-05/0.006595, allocations: 28.8 kB / 347.2 MB, free: 3.664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.006773, allocations: 176.3 kB / 347.4 MB, free: 3.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.204e-05/0.006795, allocations: 12.61 kB / 347.4 MB, free: 3.453 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.00681, allocations: 12.38 kB / 347.4 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.007005, allocations: 139.1 kB / 347.5 MB, free: 3.289 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.007015, allocations: 4.188 kB / 347.5 MB, free: 3.285 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.007029, allocations: 4.375 kB / 347.5 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.007039, allocations: 4.375 kB / 347.5 MB, free: 3.277 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.27e-05/0.007112, allocations: 40.14 kB / 347.6 MB, free: 3.238 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004983/0.00761, allocations: 435.4 kB / 348 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.007713, allocations: 74.11 kB / 348.1 MB, free: 2.676 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.482e-05/0.007758, allocations: 35.5 kB / 348.1 MB, free: 2.633 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.007782, allocations: 4 kB / 348.1 MB, free: 2.629 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001134/0.007896, allocations: 92.36 kB / 348.2 MB, free: 2.516 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.007897, allocations: 0 / 348.2 MB, free: 2.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002121/0.008109, allocations: 109.5 kB / 348.3 MB, free: 2.402 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.008149, allocations: 85.05 kB / 348.4 MB, free: 2.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.008276, allocations: 210.5 kB / 348.6 MB, free: 2.078 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.008292, allocations: 29.7 kB / 348.6 MB, free: 2.043 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.008373, allocations: 179 kB / 348.8 MB, free: 1.859 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.008396, allocations: 31.73 kB / 348.8 MB, free: 1.828 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.262e-05/0.008439, allocations: 39.36 kB / 348.9 MB, free: 1.781 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.008548, allocations: 0.4923 MB / 349.4 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.235e-05/0.008581, allocations: 15.98 kB / 349.4 MB, free: 1.262 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002904/0.008871, allocations: 57.55 kB / 349.4 MB, free: 1.191 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.704e-05/0.008948, allocations: 70.67 kB / 349.5 MB, free: 1.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.00895, allocations: 0 / 349.5 MB, free: 1.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001271/0.009077, allocations: 113.4 kB / 349.6 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.009091, allocations: 4 kB / 349.6 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.009103, allocations: 64 / 349.6 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.009118, allocations: 8 kB / 349.6 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.491e-05/0.009183, allocations: 20.16 kB / 349.6 MB, free: 0.957 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.009189, allocations: 0 / 349.6 MB, free: 0.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.778e-05/0.009217, allocations: 4 kB / 349.6 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.009226, allocations: 8 kB / 349.6 MB, free: 0.9453 MB / 314.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 8.448e-05/0.00931, allocations: 158.8 kB / 349.8 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.009328, allocations: 23.84 kB / 349.8 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.019e-05/0.009368, allocations: 20.7 kB / 349.8 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.009372, allocations: 0 / 349.8 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.009378, allocations: 4 kB / 349.9 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.009382, allocations: 4 kB / 349.9 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001249/0.009507, allocations: 156.6 kB / 350 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.00951, allocations: 0 / 350 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.049e-05/0.009531, allocations: 8.312 kB / 350 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.009533, allocations: 0 / 350 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.009545, allocations: 15.92 kB / 350 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.009547, allocations: 0 / 350 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.009548, allocations: 0 / 350 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.009676, allocations: 132 kB / 350.2 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.265e-05/0.009688, allocations: 15.83 kB / 350.2 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.009703, allocations: 7.938 kB / 350.2 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.764e-05/0.00972, allocations: 8 kB / 350.2 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.392e-05/0.009754, allocations: 3.984 kB / 350.2 MB, free: 336 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.009762, allocations: 4 kB / 350.2 MB, free: 332 kB / 314.7 MB Notification: Performance of sorting global known variables: time 6.988e-05/0.009832, allocations: 155.2 kB / 350.4 MB, free: 176 kB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009832, allocations: 0 / 350.4 MB, free: 176 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001795/0.01001, allocations: 31.89 kB / 350.4 MB, free: 144 kB / 314.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.00052/0.01053, allocations: 264.6 kB / 350.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00016/0.01069, allocations: 89.3 kB / 350.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.01069, allocations: 0 / 350.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.744e-05/0.01074, allocations: 65.25 kB / 350.8 MB, free: 15.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.01087, allocations: 14.98 kB / 350.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000394/0.01126, allocations: 278.2 kB / 351.1 MB, free: 15.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.31e-05/0.01131, allocations: 75.33 kB / 351.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.475e-05/0.01134, allocations: 16.61 kB / 351.2 MB, free: 15.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.637e-05/0.01137, allocations: 16.5 kB / 351.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01137, allocations: 0 / 351.2 MB, free: 15.31 MB / 330.7 MB Notification: Performance of Templates: time 0.003841/0.01521, allocations: 1.468 MB / 352.7 MB, free: 13.85 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=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.347610506229103]