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.000988/0.000988, allocations: 80.06 kB / 20.76 MB, free: 3.73 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.001148/0.001148, allocations: 173 kB / 24.18 MB, free: 320 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.9809/0.9809, allocations: 177.2 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.03532/0.03532, allocations: 9.162 MB / 270.2 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.243e-06/1.243e-06, allocations: 3.938 kB / 289.7 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.31e-05/1.434e-05, allocations: 2.312 kB / 289.7 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.1099/0.1099, allocations: 2.449 MB / 292.2 MB, free: 18.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002449/0.1101, allocations: 128.2 kB / 292.3 MB, free: 18.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.911e-05/0.1102, allocations: 2.156 kB / 292.3 MB, free: 18.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001532/0.1104, allocations: 20.44 kB / 292.3 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.587e-05/0.1104, allocations: 8.609 kB / 292.3 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.1106, allocations: 45.91 kB / 292.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001395/0.1108, allocations: 81.77 kB / 292.5 MB, free: 18.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.941e-05/0.1108, allocations: 21.92 kB / 292.5 MB, free: 18.18 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.448e-05/0.1109, allocations: 43.97 kB / 292.5 MB, free: 18.16 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.784e-05/0.111, allocations: 27.59 kB / 292.5 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.111, allocations: 6.469 kB / 292.6 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.034e-05/0.1111, allocations: 29.23 kB / 292.6 MB, free: 18.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.089e-05/0.1111, allocations: 19.58 kB / 292.6 MB, free: 18.13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.117e-05/0.1111, allocations: 25.05 kB / 292.6 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.1113, allocations: 94.03 kB / 292.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1113, allocations: 0.8125 kB / 292.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1113, allocations: 1.094 kB / 292.7 MB, free: 18.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.125e-06/0.1113, allocations: 0.5 kB / 292.7 MB, free: 18.07 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003003/0.1116, allocations: 346.9 kB / 293.1 MB, free: 17.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/0.1116, allocations: 10.58 kB / 293.1 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.1117, allocations: 16.55 kB / 293.1 MB, free: 17.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.1118, allocations: 136.7 kB / 293.2 MB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1118, allocations: 10.25 kB / 293.2 MB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.1119, allocations: 10.75 kB / 293.2 MB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.1121, allocations: 252.9 kB / 293.5 MB, free: 17.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1121, allocations: 4.125 kB / 293.5 MB, free: 17.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1121, allocations: 9.156 kB / 293.5 MB, free: 17.4 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.1122, allocations: 9.641 kB / 293.5 MB, free: 17.4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.275e-05/0.1122, allocations: 81.52 kB / 293.6 MB, free: 17.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.1124, allocations: 175.2 kB / 293.8 MB, free: 17.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.833e-05/0.1125, allocations: 133 kB / 293.9 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.187e-05/0.1125, allocations: 80.98 kB / 294 MB, free: 16.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-06/0.1125, allocations: 4.156 kB / 294 MB, free: 16.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.1126, allocations: 41.44 kB / 294 MB, free: 16.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.052e-06/0.1126, allocations: 0.8125 kB / 294 MB, free: 16.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0001973/0.1128, allocations: 274.9 kB / 294.3 MB, free: 16.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.1128, allocations: 143.6 kB / 294.4 MB, free: 16.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.665e-05/0.1128, allocations: 126 kB / 294.5 MB, free: 16.4 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.644e-06/0.1129, allocations: 26.8 kB / 294.6 MB, free: 16.37 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.555e-05/0.1129, allocations: 98.09 kB / 294.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.166e-05/0.1129, allocations: 11.73 kB / 294.7 MB, free: 16.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/0.1129, allocations: 18.64 kB / 294.7 MB, free: 16.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.906e-05/0.113, allocations: 318.9 kB / 295 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.933e-05/0.113, allocations: 57.98 kB / 295.1 MB, free: 15.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.47e-05/0.113, allocations: 74.05 kB / 295.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.716e-05/0.113, allocations: 132.8 kB / 295.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.113, allocations: 0.625 kB / 295.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.461e-05/0.1131, allocations: 165.2 kB / 295.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/0.1131, allocations: 62.97 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1132, allocations: 1.781 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.1132, allocations: 1.156 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.746e-05/0.1132, allocations: 3.891 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.885e-06/0.1132, allocations: 4.312 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.125e-05/0.1132, allocations: 2 kB / 295.5 MB, free: 15.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.545e-06/0.1132, allocations: 2.281 kB / 295.5 MB, free: 15.41 MB / 266.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 5.348e-05/0.1133, allocations: 175.8 kB / 295.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.1134, allocations: 75.36 kB / 295.8 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.973e-05/0.1134, allocations: 14.8 kB / 295.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.1134, allocations: 6.734 kB / 295.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.1134, allocations: 1.594 kB / 295.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.1134, allocations: 3.734 kB / 295.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.573e-05/0.1135, allocations: 80.23 kB / 295.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1135, allocations: 0 / 295.9 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-06/0.1135, allocations: 14.36 kB / 295.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1135, allocations: 2.484 kB / 295.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.1135, allocations: 2.312 kB / 295.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1135, allocations: 9.656 kB / 295.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1135, allocations: 2.047 kB / 295.9 MB, free: 15.08 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.417e-05/0.1136, allocations: 261.5 kB / 296.1 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.265e-05/0.1136, allocations: 20.45 kB / 296.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.1136, allocations: 2.406 kB / 296.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.923e-05/0.1137, allocations: 11.92 kB / 296.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.1137, allocations: 2.438 kB / 296.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1137, allocations: 4.656 kB / 296.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.756e-05/0.1137, allocations: 16.42 kB / 296.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1137, allocations: 0 / 296.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.1139, allocations: 21.61 kB / 296.2 MB, free: 14.77 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: 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.0006698/0.1146, allocations: 337.1 kB / 296.6 MB, free: 14.69 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.1147, allocations: 253.5 kB / 296.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1147, allocations: 2.562 kB / 296.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.692e-05/0.1148, allocations: 180.9 kB / 297 MB, free: 14.22 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.115, allocations: 51.34 kB / 297 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002782/0.1153, allocations: 269.4 kB / 297.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.206e-05/0.1153, allocations: 83.67 kB / 297.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.474e-05/0.1153, allocations: 14.42 kB / 297.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.483e-05/0.1154, allocations: 73.86 kB / 297.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1154, allocations: 1.906 kB / 297.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of Templates: time 0.003492/0.1189, allocations: 1.494 MB / 299 MB, free: 13.64 MB / 266.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.664391948841512]