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.0009157/0.0009157, 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.0009068/0.0009068, allocations: 165 kB / 24.29 MB, free: 272 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.9905/0.9905, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.03674/0.03674, allocations: 9.145 MB / 270.2 MB, free: 4.316 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.162e-06/1.162e-06, allocations: 0 / 342.5 MB, free: 7.637 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.226e-05/1.343e-05, allocations: 2.312 kB / 342.5 MB, free: 7.633 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.002226/0.002239, allocations: 2.779 MB / 345.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003152/0.002554, allocations: 318.8 kB / 345.6 MB, free: 4.523 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.303e-05/0.002637, allocations: 11.88 kB / 345.6 MB, free: 4.512 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.002814, allocations: 39.7 kB / 345.7 MB, free: 4.473 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.35e-05/0.002877, allocations: 23.78 kB / 345.7 MB, free: 4.449 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.003053, allocations: 87.7 kB / 345.8 MB, free: 4.363 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.003179, allocations: 160 kB / 345.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.003299, allocations: 53.61 kB / 346 MB, free: 4.148 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.266e-05/0.003362, allocations: 91.73 kB / 346.1 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.156e-05/0.003424, allocations: 47.88 kB / 346.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.003446, allocations: 12 kB / 346.1 MB, free: 4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.003497, allocations: 31.98 kB / 346.2 MB, free: 3.969 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.528e-05/0.003552, allocations: 51.78 kB / 346.2 MB, free: 3.918 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.381e-05/0.003596, allocations: 39.91 kB / 346.3 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.00375, allocations: 139.3 kB / 346.4 MB, free: 3.742 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.003752, allocations: 4 kB / 346.4 MB, free: 3.738 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.003752, allocations: 4 kB / 346.4 MB, free: 3.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.003756, allocations: 0 / 346.4 MB, free: 3.734 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0003277/0.004084, allocations: 491.4 kB / 346.9 MB, free: 3.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.869e-05/0.004113, allocations: 12.02 kB / 346.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.00416, allocations: 32.8 kB / 346.9 MB, free: 3.172 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.004301, allocations: 168.3 kB / 347.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.004312, allocations: 8.375 kB / 347.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.474e-05/0.004327, allocations: 12.38 kB / 347.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.004483, allocations: 133.6 kB / 347.3 MB, free: 2.816 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.004491, allocations: 4.125 kB / 347.3 MB, free: 2.812 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.004506, allocations: 16.36 kB / 347.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.004514, allocations: 384 / 347.3 MB, free: 2.797 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.494e-05/0.004599, allocations: 58.09 kB / 347.3 MB, free: 2.738 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004486/0.005047, allocations: 439.3 kB / 347.8 MB, free: 2.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.059e-05/0.005138, allocations: 90.22 kB / 347.8 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.065e-05/0.005178, allocations: 57.12 kB / 347.9 MB, free: 2.094 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.0052, allocations: 3.938 kB / 347.9 MB, free: 2.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001015/0.005301, allocations: 119.5 kB / 348 MB, free: 1.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.062e-06/0.005302, allocations: 0 / 348 MB, free: 1.953 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002076/0.00551, allocations: 172.3 kB / 348.2 MB, free: 1.781 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.005548, allocations: 93.09 kB / 348.3 MB, free: 1.672 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.893e-05/0.005627, allocations: 200.7 kB / 348.5 MB, free: 1.461 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.005639, allocations: 37.64 kB / 348.5 MB, free: 1.418 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.005686, allocations: 171.6 kB / 348.7 MB, free: 1.246 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.005717, allocations: 71.42 kB / 348.8 MB, free: 1.176 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-05/0.005765, allocations: 59.64 kB / 348.8 MB, free: 1.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.521e-05/0.005811, allocations: 0.5001 MB / 349.3 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.09e-05/0.005852, allocations: 32.27 kB / 349.3 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.349e-05/0.005925, allocations: 157.9 kB / 349.5 MB, free: 364 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.006048, allocations: 215.8 kB / 349.7 MB, free: 92 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.006051, allocations: 0 / 349.7 MB, free: 92 kB / 266.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002158/0.006267, allocations: 217.2 kB / 349.9 MB, free: 15.87 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.00628, allocations: 8 kB / 349.9 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.006294, allocations: 8.188 kB / 349.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.006308, allocations: 4 kB / 349.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.933e-05/0.006408, allocations: 39.92 kB / 350 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.006415, allocations: 4 kB / 350 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.695e-05/0.006462, allocations: 23.84 kB / 350 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.006478, allocations: 12.08 kB / 350 MB, free: 15.77 MB / 282.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.763e-05/0.006576, allocations: 196.7 kB / 350.2 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.803e-05/0.006594, allocations: 19.84 kB / 350.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.92e-05/0.006633, allocations: 29.09 kB / 350.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.006636, allocations: 0 / 350.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.006639, allocations: 0 / 350.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.006643, allocations: 0 / 350.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001156/0.006758, allocations: 168.5 kB / 350.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.006761, allocations: 0 / 350.4 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.377e-05/0.006774, allocations: 11.88 kB / 350.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.006776, allocations: 4 kB / 350.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.006783, allocations: 0 / 350.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.006784, allocations: 0 / 350.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.006785, allocations: 4 kB / 350.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001469/0.006932, allocations: 184.2 kB / 350.6 MB, free: 15.1 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.006947, allocations: 19.83 kB / 350.6 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.006961, allocations: 8 kB / 350.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.465e-05/0.006975, allocations: 4 kB / 350.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/0.007006, allocations: 11.92 kB / 350.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.007011, allocations: 0 / 350.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.304e-05/0.007064, allocations: 147.2 kB / 350.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007064, allocations: 0 / 350.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001836/0.007247, allocations: 51.81 kB / 350.9 MB, free: 14.86 MB / 282.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.0003825/0.00763, allocations: 216.2 kB / 351.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.007817, allocations: 157.3 kB / 351.2 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.007819, allocations: 3.938 kB / 351.2 MB, free: 14.53 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.447e-05/0.007873, allocations: 73.75 kB / 351.3 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.007988, allocations: 19.88 kB / 351.3 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003751/0.008364, allocations: 329.8 kB / 351.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.788e-05/0.008411, allocations: 79.83 kB / 351.7 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.772e-05/0.008449, allocations: 17.47 kB / 351.7 MB, free: 13.96 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.19e-05/0.008471, allocations: 20.5 kB / 351.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of SimCode: time 6.62e-07/0.008472, allocations: 0 / 351.8 MB, free: 13.95 MB / 282.7 MB Notification: Performance of Templates: time 0.002957/0.01143, allocations: 1.301 MB / 353.1 MB, free: 12.65 MB / 282.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.059479390038177]