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.001444/0.001444, allocations: 70.12 kB / 19.97 MB, free: 1.73 MB / 14.72 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.001509/0.001509, allocations: 170.7 kB / 23.26 MB, free: 4.855 MB / 14.72 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.461/1.461, allocations: 177.1 MB / 203.6 MB, free: 9.172 MB / 190.1 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.08863/0.08863, allocations: 9.167 MB / 269.1 MB, free: 7.895 MB / 254.1 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.443e-06/1.443e-06, allocations: 0 / 397.6 MB, free: 5.289 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.795e-05, allocations: 2.281 kB / 397.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004378/0.004406, allocations: 2.7 MB / 400.3 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005771/0.004983, allocations: 310.9 kB / 400.6 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.436e-05/0.005078, allocations: 7.875 kB / 400.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002303/0.005308, allocations: 47.7 kB / 400.6 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.418e-05/0.005402, allocations: 15.8 kB / 400.6 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002549/0.005657, allocations: 91.7 kB / 400.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.005894, allocations: 152 kB / 400.9 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.006057, allocations: 49.77 kB / 400.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.006172, allocations: 83.8 kB / 401 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.006276, allocations: 51.86 kB / 401 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.888e-05/0.006315, allocations: 12 kB / 401.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.917e-05/0.006394, allocations: 24 kB / 401.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.34e-05/0.006488, allocations: 59.77 kB / 401.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.439e-05/0.006562, allocations: 47.84 kB / 401.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003181/0.00688, allocations: 195.3 kB / 401.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.006887, allocations: 4 kB / 401.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.006887, allocations: 0 / 401.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.006892, allocations: 0 / 401.4 MB, free: 1.434 MB / 318.1 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.0006443/0.007537, allocations: 389.4 kB / 401.8 MB, free: 1.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.007575, allocations: 12.03 kB / 401.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.599e-05/0.007631, allocations: 20.8 kB / 401.8 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.007899, allocations: 169.5 kB / 402 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.007919, allocations: 12.38 kB / 402 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.00795, allocations: 16.38 kB / 402 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003749/0.008325, allocations: 187.9 kB / 402.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.008336, allocations: 192 / 402.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.008359, allocations: 12.36 kB / 402.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.008366, allocations: 384 / 402.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002107/0.008576, allocations: 124.7 kB / 402.3 MB, free: 448 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006635/0.00924, allocations: 377.5 kB / 402.7 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.00946, allocations: 117 kB / 402.8 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.009566, allocations: 61.69 kB / 402.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.26e-05/0.009599, allocations: 4 kB / 402.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.009844, allocations: 147.9 kB / 403 MB, free: 15.67 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.333e-06/0.009846, allocations: 0 / 403 MB, free: 15.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004727/0.01032, allocations: 245.4 kB / 403.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/0.01039, allocations: 89.09 kB / 403.3 MB, free: 15.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.01056, allocations: 153 kB / 403.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.01059, allocations: 29.7 kB / 403.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.561e-05/0.01068, allocations: 124.7 kB / 403.6 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.148e-05/0.01075, allocations: 67.59 kB / 403.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.01085, allocations: 57.97 kB / 403.7 MB, free: 14.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.01103, allocations: 326.8 kB / 404.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.01116, allocations: 76.23 kB / 404.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002259/0.01139, allocations: 161.2 kB / 404.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.01174, allocations: 250.9 kB / 404.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.01174, allocations: 0 / 404.5 MB, free: 13.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004479/0.01219, allocations: 285.1 kB / 404.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.01221, allocations: 4 kB / 404.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.01223, allocations: 7.984 kB / 404.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.01225, allocations: 8 kB / 404.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.01239, allocations: 23.94 kB / 404.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.0124, allocations: 7.984 kB / 404.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.906e-05/0.01249, allocations: 23.83 kB / 404.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.01251, allocations: 12 kB / 404.9 MB, free: 13.62 MB / 334.1 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.0001898/0.0127, allocations: 174.1 kB / 405.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.901e-05/0.01273, allocations: 15.84 kB / 405.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.68e-05/0.01278, allocations: 21.11 kB / 405.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.01279, allocations: 0 / 405.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.0128, allocations: 4 kB / 405.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.0128, allocations: 0 / 405.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002059/0.01301, allocations: 165.2 kB / 405.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.01301, allocations: 4 kB / 405.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.507e-05/0.01305, allocations: 16.11 kB / 405.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.01305, allocations: 0 / 405.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.01306, allocations: 8 kB / 405.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.01306, allocations: 4 kB / 405.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.01306, allocations: 0 / 405.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.01338, allocations: 221.6 kB / 405.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.0134, allocations: 15.84 kB / 405.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.01342, allocations: 4 kB / 405.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.838e-05/0.01345, allocations: 0 / 405.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.435e-05/0.0135, allocations: 15.98 kB / 405.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.01352, allocations: 11.92 kB / 405.6 MB, free: 12.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.01362, allocations: 106.2 kB / 405.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01362, allocations: 3.938 kB / 405.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.01391, allocations: 47.83 kB / 405.7 MB, free: 12.75 MB / 334.1 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.0006448/0.01455, allocations: 221.6 kB / 405.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003618/0.01491, allocations: 210 kB / 406.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01492, allocations: 4.125 kB / 406.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.01505, allocations: 81.69 kB / 406.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.01523, allocations: 15.94 kB / 406.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006672/0.01589, allocations: 339.7 kB / 406.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000137/0.01603, allocations: 131.6 kB / 406.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.326e-05/0.01609, allocations: 25.47 kB / 406.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.546e-05/0.01613, allocations: 16.5 kB / 406.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.01613, allocations: 0 / 406.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of Templates: time 0.004896/0.02102, allocations: 1.281 MB / 408 MB, free: 10.43 MB / 334.1 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=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.571314696222544] Failed to read output from testmodel.py, exit status != 0: 0.03007306531071663 0.045739591 0.035404606000000005 Calling exit ...