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.0008362/0.0008362, allocations: 84.22 kB / 20.98 MB, free: 3.566 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.0008419/0.0008419, allocations: 165 kB / 24.29 MB, free: 268 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 0.9282/0.9282, allocations: 177.1 MB / 204.6 MB, free: 5.637 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.03737/0.03737, allocations: 9.149 MB / 270.2 MB, free: 4.34 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 2.044e-06/2.044e-06, allocations: 3.984 kB / 342.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.585e-05/1.789e-05, allocations: 4.703 kB / 342.5 MB, free: 8.703 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.0025/0.002518, allocations: 2.433 MB / 345 MB, free: 6.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.000208/0.002726, allocations: 127.5 kB / 345.1 MB, free: 6.125 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.987e-05/0.002795, allocations: 0 / 345.1 MB, free: 6.125 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.002947, allocations: 23.73 kB / 345.1 MB, free: 6.102 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.481e-05/0.003011, allocations: 7.875 kB / 345.1 MB, free: 6.094 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.003186, allocations: 43.94 kB / 345.2 MB, free: 6.051 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.003315, allocations: 79.77 kB / 345.2 MB, free: 5.973 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.192e-05/0.003407, allocations: 24.2 kB / 345.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.296e-05/0.00347, allocations: 39.91 kB / 345.3 MB, free: 5.906 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.227e-05/0.003512, allocations: 31.91 kB / 345.3 MB, free: 5.875 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.043e-05/0.003533, allocations: 7.938 kB / 345.3 MB, free: 5.867 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.973e-05/0.003582, allocations: 27.92 kB / 345.4 MB, free: 5.84 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.5e-05/0.003627, allocations: 15.94 kB / 345.4 MB, free: 5.824 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.6e-05/0.003673, allocations: 31.91 kB / 345.4 MB, free: 5.793 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.003829, allocations: 87.67 kB / 345.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.003831, allocations: 0 / 345.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.003832, allocations: 0 / 345.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.003835, allocations: 0 / 345.5 MB, free: 5.707 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.0003701/0.004205, allocations: 479.5 kB / 346 MB, free: 5.188 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.124e-05/0.004236, allocations: 12.03 kB / 346 MB, free: 5.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.696e-05/0.004283, allocations: 24.84 kB / 346 MB, free: 5.152 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.004441, allocations: 144.3 kB / 346.1 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.004452, allocations: 8.375 kB / 346.2 MB, free: 4.977 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.004465, allocations: 8.375 kB / 346.2 MB, free: 4.969 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.004741, allocations: 275.5 kB / 346.4 MB, free: 4.664 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.004749, allocations: 192 / 346.4 MB, free: 4.664 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.00476, allocations: 4.125 kB / 346.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.004781, allocations: 11.94 kB / 346.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.549e-05/0.004847, allocations: 87.31 kB / 346.5 MB, free: 4.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002665/0.005113, allocations: 291.4 kB / 346.8 MB, free: 4.227 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.005236, allocations: 153.8 kB / 347 MB, free: 4.039 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.233e-05/0.005299, allocations: 102.8 kB / 347.1 MB, free: 3.918 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.823e-06/0.005306, allocations: 4 kB / 347.1 MB, free: 3.914 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.005326, allocations: 33.39 kB / 347.1 MB, free: 3.871 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.012e-06/0.005327, allocations: 4 kB / 347.1 MB, free: 3.867 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002685/0.005595, allocations: 309.7 kB / 347.4 MB, free: 3.523 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.00565, allocations: 136.5 kB / 347.5 MB, free: 3.359 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.625e-05/0.005736, allocations: 185.8 kB / 347.7 MB, free: 3.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.005747, allocations: 25.7 kB / 347.7 MB, free: 3.129 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.173e-05/0.005799, allocations: 143.2 kB / 347.9 MB, free: 2.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.001e-05/0.005809, allocations: 7.953 kB / 347.9 MB, free: 2.973 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.005838, allocations: 23.38 kB / 347.9 MB, free: 2.941 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.00594, allocations: 0.4923 MB / 348.4 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.075e-05/0.00597, allocations: 55.41 kB / 348.5 MB, free: 2.371 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.802e-05/0.006008, allocations: 90.86 kB / 348.6 MB, free: 2.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.968e-05/0.006078, allocations: 138.2 kB / 348.7 MB, free: 2.094 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.006079, allocations: 0 / 348.7 MB, free: 2.094 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001076/0.006187, allocations: 176.3 kB / 348.9 MB, free: 1.891 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.006217, allocations: 59.41 kB / 348.9 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.006221, allocations: 0 / 348.9 MB, free: 1.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.006233, allocations: 3.938 kB / 348.9 MB, free: 1.816 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.084e-05/0.006263, allocations: 4 kB / 348.9 MB, free: 1.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.00627, allocations: 7.984 kB / 348.9 MB, free: 1.805 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.951e-05/0.006289, allocations: 7.938 kB / 348.9 MB, free: 1.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.006295, allocations: 4.062 kB / 348.9 MB, free: 1.793 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.014e-05/0.006375, allocations: 216 kB / 349.2 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.006456, allocations: 104.1 kB / 349.3 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.986e-05/0.006476, allocations: 8.781 kB / 349.3 MB, free: 1.441 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.006487, allocations: 11.98 kB / 349.3 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.006491, allocations: 0 / 349.3 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.006494, allocations: 0 / 349.3 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.522e-05/0.006589, allocations: 128.6 kB / 349.4 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.006591, allocations: 0 / 349.4 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-06/0.006597, allocations: 3.984 kB / 349.4 MB, free: 1.266 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.0066, allocations: 7.938 kB / 349.4 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.006607, allocations: 4 kB / 349.4 MB, free: 1.254 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.006608, allocations: 0 / 349.4 MB, free: 1.254 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.00661, allocations: 4 kB / 349.4 MB, free: 1.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002/0.00681, allocations: 405.2 kB / 349.8 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.109e-05/0.006821, allocations: 11.89 kB / 349.8 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.006835, allocations: 4 kB / 349.8 MB, free: 0.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.07e-05/0.006865, allocations: 4 kB / 349.8 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2e-05/0.006885, allocations: 7.938 kB / 349.8 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.006891, allocations: 4 kB / 349.9 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4e-05/0.006931, allocations: 135.2 kB / 350 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006931, allocations: 4 kB / 350 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001752/0.007106, allocations: 23.94 kB / 350 MB, free: 0.6172 MB / 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.0004662/0.007573, allocations: 301 kB / 350.3 MB, free: 416 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001701/0.007743, allocations: 261.3 kB / 350.6 MB, free: 100 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.007744, allocations: 0 / 350.6 MB, free: 100 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.315e-05/0.007817, allocations: 186 kB / 350.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002366/0.008054, allocations: 51.83 kB / 350.8 MB, free: 15.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003082/0.008362, allocations: 289.2 kB / 351.1 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.337e-05/0.008406, allocations: 79.33 kB / 351.2 MB, free: 15.4 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.918e-05/0.008435, allocations: 11.92 kB / 351.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.634e-05/0.008451, allocations: 12.5 kB / 351.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of SimCode: time 5.71e-07/0.008452, allocations: 0 / 351.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of Templates: time 0.002818/0.01127, allocations: 1.418 MB / 352.6 MB, free: 13.96 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.584297299850732]