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.0008035/0.0008035, allocations: 80.06 kB / 20.76 MB, free: 3.727 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.0009355/0.0009355, allocations: 173 kB / 24.19 MB, free: 312 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.096/1.096, allocations: 177.1 MB / 204.6 MB, free: 5.477 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.03971/0.03971, allocations: 9.162 MB / 270.2 MB, free: 4.129 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 2.545e-06/2.545e-06, allocations: 0 / 289.7 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.362e-05/4.617e-05, allocations: 6.25 kB / 289.7 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.1815/0.1815, allocations: 2.816 MB / 292.6 MB, free: 18.1 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007139/0.1823, allocations: 362.6 kB / 292.9 MB, free: 17.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.1824, allocations: 10.34 kB / 292.9 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002588/0.1826, allocations: 48.88 kB / 293 MB, free: 17.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.183, allocations: 61.94 kB / 293 MB, free: 17.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.1833, allocations: 94.14 kB / 293.1 MB, free: 17.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002674/0.1836, allocations: 149 kB / 293.3 MB, free: 17.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.1838, allocations: 52.92 kB / 293.3 MB, free: 17.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.1839, allocations: 82.78 kB / 293.4 MB, free: 17.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.1841, allocations: 56.8 kB / 293.5 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.1841, allocations: 12.47 kB / 293.5 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002006/0.1843, allocations: 135.2 kB / 293.6 MB, free: 17.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.412e-05/0.1844, allocations: 44.81 kB / 293.6 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.777e-05/0.1844, allocations: 33.3 kB / 293.7 MB, free: 17.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003046/0.1847, allocations: 196.2 kB / 293.9 MB, free: 17.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1847, allocations: 2.75 kB / 293.9 MB, free: 17.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1847, allocations: 0 / 293.9 MB, free: 17.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1847, allocations: 0 / 293.9 MB, free: 17.43 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.00051/0.1853, allocations: 355.4 kB / 294.2 MB, free: 17.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1853, allocations: 9.469 kB / 294.2 MB, free: 17.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.411e-05/0.1853, allocations: 26.14 kB / 294.3 MB, free: 17.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.1855, allocations: 158.3 kB / 294.4 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.1855, allocations: 10.3 kB / 294.4 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.1856, allocations: 14.7 kB / 294.4 MB, free: 16.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.1858, allocations: 126.3 kB / 294.6 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.1858, allocations: 0.6875 kB / 294.6 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.1858, allocations: 7.031 kB / 294.6 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1858, allocations: 6.109 kB / 294.6 MB, free: 16.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.327e-05/0.1859, allocations: 34.41 kB / 294.6 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004317/0.1863, allocations: 290.3 kB / 294.9 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.1864, allocations: 52.16 kB / 294.9 MB, free: 16.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.249e-05/0.1864, allocations: 24.62 kB / 295 MB, free: 16.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.1865, allocations: 7.938 kB / 295 MB, free: 16.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001386/0.1866, allocations: 86.84 kB / 295.1 MB, free: 16.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 3.005e-06/0.1866, allocations: 0 / 295.1 MB, free: 16.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001851/0.1868, allocations: 79.78 kB / 295.1 MB, free: 16.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.1869, allocations: 84.02 kB / 295.2 MB, free: 16.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.187, allocations: 148.5 kB / 295.4 MB, free: 16.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.318e-06/0.187, allocations: 30.77 kB / 295.4 MB, free: 16.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.187, allocations: 115.8 kB / 295.5 MB, free: 16.08 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.1871, allocations: 34.77 kB / 295.5 MB, free: 16.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.218e-05/0.1871, allocations: 28.3 kB / 295.6 MB, free: 16.03 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.565e-05/0.1872, allocations: 324.3 kB / 295.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.692e-05/0.1872, allocations: 8.062 kB / 295.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.93e-05/0.1872, allocations: 40.27 kB / 295.9 MB, free: 15.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.196e-05/0.1873, allocations: 67.47 kB / 296 MB, free: 15.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1873, allocations: 1.219 kB / 296 MB, free: 15.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001352/0.1875, allocations: 80.5 kB / 296.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.1875, allocations: 8.719 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.073e-05/0.1875, allocations: 6.625 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.1875, allocations: 5.094 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.34e-05/0.1876, allocations: 13.95 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.1876, allocations: 1.641 kB / 296.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.581e-05/0.1876, allocations: 11.94 kB / 296.1 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.1876, allocations: 7.688 kB / 296.1 MB, free: 15.57 MB / 266.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.046e-05/0.1877, allocations: 118.3 kB / 296.2 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.69e-05/0.1877, allocations: 12.02 kB / 296.3 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.512e-05/0.1878, allocations: 22.03 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1878, allocations: 1.188 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.1878, allocations: 2.469 kB / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.1878, allocations: 0 / 296.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.1879, allocations: 95.23 kB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.1879, allocations: 2.109 kB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.077e-05/0.1879, allocations: 5.391 kB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1879, allocations: 1.5 kB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.1879, allocations: 5.969 kB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.1879, allocations: 1.922 kB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1879, allocations: 3.938 kB / 296.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.1881, allocations: 95.88 kB / 296.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.79e-05/0.1881, allocations: 13.61 kB / 296.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1881, allocations: 1.719 kB / 296.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.179e-05/0.1881, allocations: 1.859 kB / 296.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.1881, allocations: 14.31 kB / 296.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.1882, allocations: 2.844 kB / 296.5 MB, free: 15.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.395e-05/0.1882, allocations: 37.98 kB / 296.6 MB, free: 15.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.1882, allocations: 0 / 296.6 MB, free: 15.22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001958/0.1884, allocations: 40.52 kB / 296.6 MB, free: 15.21 MB / 266.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.0007285/0.1891, allocations: 271 kB / 296.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.1893, allocations: 74.56 kB / 296.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.645e-06/0.1893, allocations: 1.094 kB / 296.9 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.024e-05/0.1893, allocations: 55.61 kB / 297 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.848e-05/0.1894, allocations: 17.66 kB / 297 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004469/0.1899, allocations: 270.9 kB / 297.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.162e-05/0.1899, allocations: 76.59 kB / 297.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.763e-05/0.19, allocations: 9.281 kB / 297.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.057e-05/0.19, allocations: 63.98 kB / 297.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.19, allocations: 0 / 297.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of Templates: time 0.004854/0.1949, allocations: 1.497 MB / 298.9 MB, free: 14.52 MB / 266.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.224975680932403]