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.0009344/0.0009344, allocations: 80.98 kB / 20.7 MB, free: 3.793 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.001078/0.001078, allocations: 173.7 kB / 24.1 MB, free: 404 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.095/1.095, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.04003/0.04003, allocations: 9.158 MB / 270.2 MB, free: 4.086 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 1.263e-06/1.263e-06, allocations: 0 / 343 MB, free: 8.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.411e-05/2.537e-05, allocations: 2.312 kB / 343 MB, free: 8.07 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004006/0.004032, allocations: 2.787 MB / 345.8 MB, free: 5.262 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003885/0.00442, allocations: 311 kB / 346.1 MB, free: 4.957 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.541e-05/0.004506, allocations: 11.88 kB / 346.1 MB, free: 4.945 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.004666, allocations: 47.62 kB / 346.2 MB, free: 4.898 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.361e-05/0.00472, allocations: 19.88 kB / 346.2 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.004884, allocations: 91.58 kB / 346.3 MB, free: 4.789 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.005018, allocations: 160 kB / 346.4 MB, free: 4.633 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.005129, allocations: 45.78 kB / 346.5 MB, free: 4.586 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.771e-05/0.005207, allocations: 79.86 kB / 346.5 MB, free: 4.508 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.238e-05/0.005279, allocations: 59.8 kB / 346.6 MB, free: 4.449 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/0.005301, allocations: 12 kB / 346.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.839e-05/0.005349, allocations: 24 kB / 346.6 MB, free: 4.414 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.706e-05/0.005406, allocations: 47.83 kB / 346.7 MB, free: 4.367 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.618e-05/0.005443, allocations: 47.86 kB / 346.7 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.005598, allocations: 143.4 kB / 346.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.0056, allocations: 0 / 346.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.005601, allocations: 0 / 346.9 MB, free: 4.18 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.005605, allocations: 3.938 kB / 346.9 MB, free: 4.176 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000368/0.005973, allocations: 491.3 kB / 347.4 MB, free: 3.656 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.006008, allocations: 12.02 kB / 347.4 MB, free: 3.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.006048, allocations: 32.8 kB / 347.4 MB, free: 3.613 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/0.006189, allocations: 168.4 kB / 347.6 MB, free: 3.422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.006203, allocations: 12.36 kB / 347.6 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.006216, allocations: 16.31 kB / 347.6 MB, free: 3.395 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.006352, allocations: 129.5 kB / 347.7 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.006361, allocations: 192 / 347.7 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.00637, allocations: 4.375 kB / 347.7 MB, free: 3.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.00638, allocations: 4.375 kB / 347.7 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.524e-05/0.006435, allocations: 46.66 kB / 347.8 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003572/0.006792, allocations: 411.9 kB / 348.2 MB, free: 2.766 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.662e-05/0.006879, allocations: 94.14 kB / 348.3 MB, free: 2.648 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.32e-05/0.006912, allocations: 35.36 kB / 348.3 MB, free: 2.605 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.00694, allocations: 7.984 kB / 348.3 MB, free: 2.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001066/0.007047, allocations: 115.5 kB / 348.4 MB, free: 2.465 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 7.62e-07/0.007048, allocations: 0 / 348.4 MB, free: 2.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001831/0.007231, allocations: 155.6 kB / 348.6 MB, free: 2.309 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.007274, allocations: 97.03 kB / 348.7 MB, free: 2.195 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.712e-05/0.007371, allocations: 193.8 kB / 348.9 MB, free: 1.988 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.007389, allocations: 37.7 kB / 348.9 MB, free: 1.945 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.515e-05/0.007454, allocations: 167.6 kB / 349.1 MB, free: 1.777 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.007494, allocations: 71.45 kB / 349.1 MB, free: 1.707 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.546e-05/0.00755, allocations: 59.62 kB / 349.2 MB, free: 1.637 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.007672, allocations: 0.5079 MB / 349.7 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.647e-05/0.007699, allocations: 20.27 kB / 349.7 MB, free: 1.098 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.451e-05/0.007783, allocations: 157.9 kB / 349.9 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.007917, allocations: 195.8 kB / 350.1 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.00792, allocations: 4 kB / 350.1 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0001756/0.008095, allocations: 209.2 kB / 350.3 MB, free: 440 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.033e-05/0.008106, allocations: 8 kB / 350.3 MB, free: 432 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.008119, allocations: 7.984 kB / 350.3 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.008131, allocations: 4 kB / 350.3 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.093e-05/0.008212, allocations: 43.92 kB / 350.3 MB, free: 376 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.008217, allocations: 4 kB / 350.3 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.074e-05/0.008258, allocations: 19.91 kB / 350.3 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.00827, allocations: 8 kB / 350.4 MB, free: 344 kB / 314.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 9.373e-05/0.008363, allocations: 196.5 kB / 350.5 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.652e-05/0.00838, allocations: 27.78 kB / 350.6 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.788e-05/0.008408, allocations: 9.125 kB / 350.6 MB, free: 104 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.00841, allocations: 4 kB / 350.6 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.008411, allocations: 0 / 350.6 MB, free: 100 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.008416, allocations: 3.984 kB / 350.6 MB, free: 96 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001142/0.00853, allocations: 145.1 kB / 350.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.008533, allocations: 0 / 350.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.304e-05/0.008546, allocations: 7.984 kB / 350.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.008549, allocations: 4 kB / 350.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.008556, allocations: 11.94 kB / 350.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.008556, allocations: 256 / 350.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.008557, allocations: 0 / 350.8 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001293/0.008686, allocations: 176.1 kB / 350.9 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.176e-05/0.008698, allocations: 15.89 kB / 350.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.00871, allocations: 11.92 kB / 351 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.477e-05/0.008725, allocations: 3.984 kB / 351 MB, free: 15.67 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.273e-05/0.008748, allocations: 7.984 kB / 351 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.008752, allocations: 4 kB / 351 MB, free: 15.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.928e-05/0.008801, allocations: 149.7 kB / 351.1 MB, free: 15.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008801, allocations: 0 / 351.1 MB, free: 15.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001638/0.008965, allocations: 47.88 kB / 351.2 MB, free: 15.47 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: 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.0003931/0.009358, allocations: 224.5 kB / 351.4 MB, free: 15.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.009511, allocations: 145.3 kB / 351.5 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.009512, allocations: 8.125 kB / 351.5 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.621e-05/0.009558, allocations: 73.28 kB / 351.6 MB, free: 15.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.832e-05/0.009657, allocations: 8 kB / 351.6 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003305/0.009987, allocations: 325.7 kB / 351.9 MB, free: 14.7 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.83e-05/0.01004, allocations: 87.81 kB / 352 MB, free: 14.6 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.172e-05/0.01007, allocations: 13.48 kB / 352 MB, free: 14.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.366e-05/0.01012, allocations: 90.2 kB / 352.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01012, allocations: 0 / 352.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of Templates: time 0.003015/0.01314, allocations: 1.416 MB / 353.5 MB, free: 13.09 MB / 330.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: 8.192424818407744]