Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.0008944/0.0008944, allocations: 82.64 kB / 21.48 MB, free: 3.02 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.0009752/0.0009752, allocations: 167.8 kB / 24.88 MB, free: 8.754 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 0.9507/0.9507, allocations: 177.1 MB / 205.3 MB, free: 5.531 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.0381/0.0381, allocations: 9.15 MB / 271 MB, free: 4.121 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.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.082e-06/1.082e-06, allocations: 0 / 343.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.231e-05/1.34e-05, allocations: 4.562 kB / 343.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002367/0.00238, allocations: 2.437 MB / 346.2 MB, free: 5.652 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001938/0.002574, allocations: 127.5 kB / 346.3 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.682e-05/0.002641, allocations: 0 / 346.3 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.002767, allocations: 31.72 kB / 346.4 MB, free: 5.496 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.328e-05/0.00282, allocations: 3.938 kB / 346.4 MB, free: 5.492 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001388/0.002959, allocations: 47.89 kB / 346.4 MB, free: 5.445 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.003071, allocations: 83.75 kB / 346.5 MB, free: 5.363 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.47e-05/0.003145, allocations: 12.23 kB / 346.5 MB, free: 5.348 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.215e-05/0.003207, allocations: 47.89 kB / 346.5 MB, free: 5.301 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.785e-05/0.003245, allocations: 23.91 kB / 346.6 MB, free: 5.277 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.003264, allocations: 8 kB / 346.6 MB, free: 5.27 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.835e-05/0.003313, allocations: 23.94 kB / 346.6 MB, free: 5.246 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.354e-05/0.003356, allocations: 19.91 kB / 346.6 MB, free: 5.227 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.464e-05/0.003391, allocations: 23.94 kB / 346.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.003534, allocations: 95.59 kB / 346.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.312e-06/0.003535, allocations: 0 / 346.7 MB, free: 5.109 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.003536, allocations: 4 kB / 346.7 MB, free: 5.105 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.00354, allocations: 0 / 346.7 MB, free: 5.105 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003214/0.003861, allocations: 479.5 kB / 347.2 MB, free: 4.586 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.003896, allocations: 12.03 kB / 347.2 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.102e-05/0.003937, allocations: 20.84 kB / 347.2 MB, free: 4.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.004079, allocations: 156.2 kB / 347.4 MB, free: 4.375 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.00409, allocations: 4.375 kB / 347.4 MB, free: 4.371 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.004101, allocations: 12.38 kB / 347.4 MB, free: 4.359 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.004315, allocations: 261.9 kB / 347.7 MB, free: 4.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.004322, allocations: 192 / 347.7 MB, free: 4.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.00433, allocations: 4.125 kB / 347.7 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.004349, allocations: 11.98 kB / 347.7 MB, free: 4.055 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.917e-05/0.004398, allocations: 75.39 kB / 347.8 MB, free: 3.969 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003728/0.004771, allocations: 272 kB / 348 MB, free: 3.672 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.004923, allocations: 157.8 kB / 348.2 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.139e-05/0.004974, allocations: 90.84 kB / 348.3 MB, free: 3.371 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.004982, allocations: 4 kB / 348.3 MB, free: 3.367 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.005006, allocations: 41.33 kB / 348.3 MB, free: 3.316 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.575e-06/0.005008, allocations: 0 / 348.3 MB, free: 3.316 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002751/0.005283, allocations: 297.5 kB / 348.6 MB, free: 2.984 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.005343, allocations: 136.5 kB / 348.7 MB, free: 2.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.202e-05/0.005435, allocations: 181.8 kB / 348.9 MB, free: 2.625 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.00545, allocations: 29.7 kB / 348.9 MB, free: 2.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.372e-05/0.005513, allocations: 143.1 kB / 349.1 MB, free: 2.441 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.201e-05/0.005525, allocations: 11.95 kB / 349.1 MB, free: 2.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.819e-05/0.005563, allocations: 27.39 kB / 349.1 MB, free: 2.395 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.005675, allocations: 0.4884 MB / 349.6 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/0.005714, allocations: 63.39 kB / 349.7 MB, free: 1.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.474e-05/0.005749, allocations: 74.78 kB / 349.7 MB, free: 1.727 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.783e-05/0.005817, allocations: 142.1 kB / 349.9 MB, free: 1.555 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.00582, allocations: 0 / 349.9 MB, free: 1.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001173/0.005937, allocations: 168.4 kB / 350 MB, free: 1.359 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.005973, allocations: 63.39 kB / 350.1 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.005977, allocations: 0 / 350.1 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.005987, allocations: 4.062 kB / 350.1 MB, free: 1.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.385e-05/0.006021, allocations: 3.938 kB / 350.1 MB, free: 1.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.507e-06/0.006024, allocations: 4 kB / 350.1 MB, free: 1.273 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.296e-05/0.006047, allocations: 3.938 kB / 350.1 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-06/0.006054, allocations: 4 kB / 350.1 MB, free: 1.266 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (synchronizeRealtime.initialized) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.863e-05/0.006142, allocations: 216 kB / 350.3 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.453e-05/0.006227, allocations: 89.53 kB / 350.4 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.315e-05/0.00625, allocations: 16.77 kB / 350.4 MB, free: 0.918 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.006266, allocations: 8 kB / 350.5 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.006267, allocations: 0 / 350.5 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.006274, allocations: 0 / 350.5 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.739e-05/0.006371, allocations: 113.2 kB / 350.6 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.006374, allocations: 3.938 kB / 350.6 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.077e-06/0.006383, allocations: 7.984 kB / 350.6 MB, free: 0.7617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.006386, allocations: 4 kB / 350.6 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.006392, allocations: 3.938 kB / 350.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.015e-05/0.006402, allocations: 7.938 kB / 350.6 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.006403, allocations: 0 / 350.6 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001595/0.006563, allocations: 325.1 kB / 350.9 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.684e-05/0.00658, allocations: 19.86 kB / 350.9 MB, free: 372 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.006594, allocations: 4 kB / 350.9 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.324e-05/0.006627, allocations: 7.969 kB / 350.9 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.626e-05/0.006644, allocations: 4 kB / 350.9 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.575e-06/0.006651, allocations: 8 kB / 350.9 MB, free: 348 kB / 314.7 MB Notification: Performance of sorting global known variables: time 4.022e-05/0.006691, allocations: 131.2 kB / 351.1 MB, free: 216 kB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006691, allocations: 0 / 351.1 MB, free: 216 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001653/0.006857, allocations: 27.89 kB / 351.1 MB, free: 188 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.0005378/0.007395, allocations: 291.1 kB / 351.4 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001772/0.007572, allocations: 265.1 kB / 351.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.007573, allocations: 0 / 351.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.804e-05/0.007631, allocations: 181.9 kB / 351.8 MB, free: 15.45 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.007864, allocations: 51.81 kB / 351.9 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002967/0.00816, allocations: 269.3 kB / 352.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.636e-05/0.008207, allocations: 78.38 kB / 352.2 MB, free: 15 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.488e-05/0.008242, allocations: 16.17 kB / 352.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.182e-05/0.008313, allocations: 90.19 kB / 352.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.008315, allocations: 0 / 352.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of Templates: time 0.003036/0.01135, allocations: 1.528 MB / 353.8 MB, free: 13.37 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.627765720244497]