Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.001857/0.001857, allocations: 87.69 kB / 20.25 MB, free: 4.164 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.001924/0.001924, allocations: 165.2 kB / 23.57 MB, free: 0.8516 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.515/1.515, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.06839/0.06839, allocations: 9.154 MB / 269.5 MB, free: 4.281 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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 3.984 kB / 341.8 MB, free: 7.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.457e-05/2.703e-05, allocations: 2.312 kB / 341.8 MB, free: 7.645 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.003302/0.003329, allocations: 2.743 MB / 344.5 MB, free: 4.887 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004624/0.003791, allocations: 314.9 kB / 344.9 MB, free: 4.578 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.154e-05/0.003883, allocations: 7.938 kB / 344.9 MB, free: 4.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.004112, allocations: 43.64 kB / 344.9 MB, free: 4.527 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.182e-05/0.004193, allocations: 31.78 kB / 344.9 MB, free: 4.496 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002121/0.004406, allocations: 87.64 kB / 345 MB, free: 4.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.004551, allocations: 152 kB / 345.2 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.004706, allocations: 49.75 kB / 345.2 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.045e-05/0.004786, allocations: 79.86 kB / 345.3 MB, free: 4.129 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.144e-05/0.004868, allocations: 55.81 kB / 345.3 MB, free: 4.074 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.004897, allocations: 12 kB / 345.4 MB, free: 4.062 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.179e-05/0.004959, allocations: 27.98 kB / 345.4 MB, free: 4.035 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.475e-05/0.005024, allocations: 47.84 kB / 345.4 MB, free: 3.988 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.304e-05/0.005077, allocations: 43.84 kB / 345.5 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.005295, allocations: 207.2 kB / 345.7 MB, free: 3.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.005298, allocations: 0 / 345.7 MB, free: 3.742 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.0053, allocations: 0 / 345.7 MB, free: 3.742 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.005306, allocations: 0 / 345.7 MB, free: 3.742 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004708/0.005776, allocations: 0.5032 MB / 346.2 MB, free: 3.199 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.13e-05/0.005808, allocations: 8.031 kB / 346.2 MB, free: 3.191 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.283e-05/0.005871, allocations: 32.8 kB / 346.2 MB, free: 3.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001872/0.006058, allocations: 168.3 kB / 346.4 MB, free: 2.969 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.006071, allocations: 8.375 kB / 346.4 MB, free: 2.961 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.006089, allocations: 12.38 kB / 346.4 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.006288, allocations: 149.6 kB / 346.6 MB, free: 2.789 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.006298, allocations: 8.125 kB / 346.6 MB, free: 2.781 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.006314, allocations: 8.359 kB / 346.6 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.00632, allocations: 4.375 kB / 346.6 MB, free: 2.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.006442, allocations: 70.05 kB / 346.6 MB, free: 2.699 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005477/0.00699, allocations: 467.9 kB / 347.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.007105, allocations: 102.1 kB / 347.2 MB, free: 2.078 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.393e-05/0.007159, allocations: 43.36 kB / 347.2 MB, free: 2.027 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.018e-05/0.007189, allocations: 4 kB / 347.2 MB, free: 2.023 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.007326, allocations: 132.3 kB / 347.4 MB, free: 1.871 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.282e-06/0.007327, allocations: 4 kB / 347.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002864/0.007613, allocations: 181.4 kB / 347.6 MB, free: 1.684 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.007649, allocations: 89.09 kB / 347.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.00776, allocations: 224.7 kB / 347.9 MB, free: 1.344 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.007776, allocations: 33.7 kB / 347.9 MB, free: 1.305 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.196e-05/0.007828, allocations: 175.4 kB / 348.1 MB, free: 1.129 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.021e-05/0.007868, allocations: 67.55 kB / 348.1 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/0.007935, allocations: 67.64 kB / 348.2 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.835e-05/0.008003, allocations: 0.5157 MB / 348.7 MB, free: 468 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.214e-05/0.008066, allocations: 28.27 kB / 348.7 MB, free: 440 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.725e-05/0.008163, allocations: 185.8 kB / 348.9 MB, free: 200 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.00839, allocations: 219.8 kB / 349.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.008393, allocations: 0 / 349.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004032/0.008796, allocations: 237.4 kB / 349.4 MB, free: 15.69 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.008812, allocations: 8 kB / 349.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.008827, allocations: 4 kB / 349.4 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.008844, allocations: 4 kB / 349.4 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.009001, allocations: 43.92 kB / 349.4 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.009017, allocations: 12 kB / 349.4 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.757e-05/0.009094, allocations: 19.84 kB / 349.5 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.009115, allocations: 16 kB / 349.5 MB, free: 15.58 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 0.0001854/0.0093, allocations: 196.5 kB / 349.7 MB, free: 15.38 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.009331, allocations: 15.89 kB / 349.7 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/0.009396, allocations: 21.11 kB / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.009403, allocations: 4 kB / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.009406, allocations: 0 / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.00941, allocations: 0 / 349.7 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.009643, allocations: 192.4 kB / 349.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.009648, allocations: 0 / 349.9 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.988e-05/0.009678, allocations: 7.938 kB / 349.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.009682, allocations: 4 kB / 349.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.009696, allocations: 4 kB / 349.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.009698, allocations: 4 kB / 349.9 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.009701, allocations: 4 kB / 349.9 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.009979, allocations: 188.6 kB / 350.1 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.01001, allocations: 23.77 kB / 350.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.01003, allocations: 0 / 350.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.022e-05/0.01006, allocations: 4 kB / 350.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.0101, allocations: 7.984 kB / 350.1 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.01011, allocations: 4.25 kB / 350.1 MB, free: 14.84 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001259/0.01024, allocations: 158.1 kB / 350.3 MB, free: 14.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01024, allocations: 0 / 350.3 MB, free: 14.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002866/0.01052, allocations: 51.81 kB / 350.3 MB, free: 14.64 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: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0009245/0.01145, allocations: 227.9 kB / 350.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003407/0.01179, allocations: 159.6 kB / 350.7 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01179, allocations: 384 / 350.7 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.01191, allocations: 89.31 kB / 350.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001778/0.01209, allocations: 15.8 kB / 350.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006475/0.01274, allocations: 337.8 kB / 351.2 MB, free: 13.83 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.01288, allocations: 127.4 kB / 351.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.832e-05/0.01294, allocations: 21.47 kB / 351.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.593e-05/0.01297, allocations: 16.5 kB / 351.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01297, allocations: 0 / 351.3 MB, free: 13.65 MB / 282.7 MB Notification: Performance of Templates: time 0.004939/0.01791, allocations: 1.302 MB / 352.6 MB, free: 12.35 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.752346848952584]