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.000959/0.000959, allocations: 81.86 kB / 21.48 MB, free: 3.023 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.001311/0.001311, allocations: 171.8 kB / 24.88 MB, free: 9.238 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.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.48 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.08276/0.08276, allocations: 9.162 MB / 271 MB, free: 4.078 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.193e-06/1.193e-06, allocations: 0 / 343.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.261e-05/1.381e-05, allocations: 2.312 kB / 343.8 MB, free: 8.078 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.003083/0.003097, allocations: 2.805 MB / 346.6 MB, free: 5.254 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004337/0.003531, allocations: 370.7 kB / 347 MB, free: 4.891 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.218e-05/0.003613, allocations: 7.938 kB / 347 MB, free: 4.883 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001782/0.003791, allocations: 39.7 kB / 347 MB, free: 4.844 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.004003, allocations: 71.67 kB / 347.1 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.004162, allocations: 91.7 kB / 347.2 MB, free: 4.684 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.004297, allocations: 151.9 kB / 347.3 MB, free: 4.535 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001104/0.004407, allocations: 49.77 kB / 347.4 MB, free: 4.484 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.261e-05/0.00448, allocations: 83.8 kB / 347.4 MB, free: 4.402 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.727e-05/0.004547, allocations: 47.88 kB / 347.5 MB, free: 4.355 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.004567, allocations: 12 kB / 347.5 MB, free: 4.344 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.004695, allocations: 139.9 kB / 347.6 MB, free: 4.207 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.765e-05/0.004742, allocations: 43.84 kB / 347.7 MB, free: 4.164 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.708e-05/0.004779, allocations: 43.84 kB / 347.7 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001969/0.004976, allocations: 191.4 kB / 347.9 MB, free: 3.934 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.843e-06/0.004978, allocations: 4 kB / 347.9 MB, free: 3.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004979, allocations: 0 / 347.9 MB, free: 3.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.004982, allocations: 0 / 347.9 MB, free: 3.93 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.0003697/0.005352, allocations: 479.7 kB / 348.4 MB, free: 3.418 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.005381, allocations: 12.02 kB / 348.4 MB, free: 3.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.68e-05/0.005418, allocations: 24.8 kB / 348.4 MB, free: 3.383 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.00555, allocations: 179.3 kB / 348.6 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.005567, allocations: 16.53 kB / 348.6 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.00558, allocations: 8.375 kB / 348.6 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001344/0.005715, allocations: 131.2 kB / 348.7 MB, free: 3.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.005721, allocations: 4.188 kB / 348.7 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.005731, allocations: 4.375 kB / 348.7 MB, free: 3.008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.005737, allocations: 4.375 kB / 348.8 MB, free: 3.004 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.656e-05/0.005783, allocations: 36.09 kB / 348.8 MB, free: 2.969 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003422/0.006125, allocations: 392.1 kB / 349.2 MB, free: 2.555 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.308e-05/0.006198, allocations: 70.05 kB / 349.2 MB, free: 2.461 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.509e-05/0.006233, allocations: 35.55 kB / 349.3 MB, free: 2.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.006251, allocations: 4 kB / 349.3 MB, free: 2.414 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.631e-05/0.006337, allocations: 100.3 kB / 349.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.006338, allocations: 0 / 349.4 MB, free: 2.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001486/0.006487, allocations: 97.45 kB / 349.5 MB, free: 2.191 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.261e-05/0.006519, allocations: 77.11 kB / 349.5 MB, free: 2.098 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.00662, allocations: 210.4 kB / 349.8 MB, free: 1.875 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.006632, allocations: 29.7 kB / 349.8 MB, free: 1.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.006704, allocations: 182.9 kB / 350 MB, free: 1.652 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.006723, allocations: 31.73 kB / 350 MB, free: 1.621 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.006758, allocations: 31.36 kB / 350 MB, free: 1.582 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.006865, allocations: 0.5 MB / 350.5 MB, free: 1.07 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.833e-05/0.006883, allocations: 11.98 kB / 350.5 MB, free: 1.059 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.365e-05/0.006917, allocations: 50.73 kB / 350.6 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.762e-05/0.006975, allocations: 70.66 kB / 350.7 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.006976, allocations: 4 kB / 350.7 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 9.678e-05/0.007073, allocations: 101.7 kB / 350.8 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.007087, allocations: 11.94 kB / 350.8 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.007095, allocations: 0 / 350.8 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.456e-06/0.007104, allocations: 7.984 kB / 350.8 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.203e-05/0.007146, allocations: 8 kB / 350.8 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.376e-06/0.007149, allocations: 8.062 kB / 350.8 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.101e-05/0.00717, allocations: 0 / 350.8 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.007176, allocations: 4 kB / 350.8 MB, free: 0.7578 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 7.201e-05/0.007248, allocations: 168.5 kB / 351 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.007263, allocations: 15.91 kB / 351 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.157e-05/0.007295, allocations: 24.7 kB / 351 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.007297, allocations: 0 / 351 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.007299, allocations: 0 / 351 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.007302, allocations: 0 / 351 MB, free: 0.543 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.813e-05/0.0074, allocations: 129.2 kB / 351.1 MB, free: 400 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.007404, allocations: 8 kB / 351.1 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.187e-05/0.007415, allocations: 7.938 kB / 351.1 MB, free: 384 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.007417, allocations: 0 / 351.1 MB, free: 384 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.671e-06/0.007422, allocations: 3.984 kB / 351.1 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.007424, allocations: 4 kB / 351.1 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.007426, allocations: 3.938 kB / 351.2 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.007536, allocations: 128 kB / 351.3 MB, free: 216 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.31e-05/0.007549, allocations: 15.88 kB / 351.3 MB, free: 200 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.348e-06/0.007558, allocations: 0 / 351.3 MB, free: 200 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.515e-05/0.007574, allocations: 4 kB / 351.3 MB, free: 196 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.007599, allocations: 7.922 kB / 351.3 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.007607, allocations: 12 kB / 351.3 MB, free: 176 kB / 314.7 MB Notification: Performance of sorting global known variables: time 4.708e-05/0.007654, allocations: 147.1 kB / 351.5 MB, free: 28 kB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007654, allocations: 0 / 351.5 MB, free: 28 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.000175/0.007829, allocations: 40.08 kB / 351.5 MB, free: 15.98 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.0007576/0.008586, allocations: 262.3 kB / 351.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.008696, allocations: 85.28 kB / 351.8 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.008698, allocations: 4 kB / 351.8 MB, free: 15.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.564e-05/0.008733, allocations: 49.38 kB / 351.9 MB, free: 15.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/0.008847, allocations: 11.98 kB / 351.9 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.009155, allocations: 278 kB / 352.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.775e-05/0.009193, allocations: 79.33 kB / 352.3 MB, free: 15.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.429e-05/0.009217, allocations: 8.484 kB / 352.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.786e-05/0.009265, allocations: 82.2 kB / 352.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of SimCode: time 5.41e-07/0.009266, allocations: 4.125 kB / 352.3 MB, free: 15.11 MB / 330.7 MB Notification: Performance of Templates: time 0.003/0.01227, allocations: 1.527 MB / 353.9 MB, free: 13.6 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.078074533026665]