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.001436/0.001436, allocations: 81.86 kB / 21.48 MB, free: 3.016 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.00109/0.00109, allocations: 169.2 kB / 24.88 MB, free: 9.254 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 1.026/1.026, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.03636/0.03636, allocations: 9.159 MB / 271 MB, free: 4.055 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 2.144e-06/2.144e-06, allocations: 0 / 343.8 MB, free: 7.008 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.273e-05/2.488e-05, allocations: 2.312 kB / 343.8 MB, free: 7.004 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004472/0.004497, allocations: 2.775 MB / 346.6 MB, free: 4.211 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006371/0.005134, allocations: 318.9 kB / 346.9 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.005259, allocations: 11.88 kB / 346.9 MB, free: 3.887 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002584/0.005517, allocations: 47.64 kB / 346.9 MB, free: 3.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.005622, allocations: 15.86 kB / 346.9 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.00593, allocations: 91.64 kB / 347 MB, free: 3.734 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000211/0.006142, allocations: 156 kB / 347.2 MB, free: 3.582 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.006338, allocations: 57.61 kB / 347.2 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.006449, allocations: 83.8 kB / 347.3 MB, free: 3.438 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.006561, allocations: 55.88 kB / 347.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.446e-05/0.006595, allocations: 12 kB / 347.4 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.061e-05/0.006676, allocations: 27.98 kB / 347.4 MB, free: 3.344 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.837e-05/0.006764, allocations: 51.78 kB / 347.5 MB, free: 3.293 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.57e-05/0.00682, allocations: 47.84 kB / 347.5 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.007058, allocations: 135.4 kB / 347.6 MB, free: 3.113 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.00706, allocations: 0 / 347.6 MB, free: 3.113 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.007061, allocations: 0 / 347.6 MB, free: 3.113 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.007067, allocations: 0 / 347.6 MB, free: 3.113 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.000463/0.00753, allocations: 495.3 kB / 348.1 MB, free: 2.59 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.007566, allocations: 8.031 kB / 348.1 MB, free: 2.582 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.037e-05/0.007627, allocations: 44.78 kB / 348.2 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.007809, allocations: 164.3 kB / 348.3 MB, free: 2.352 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.007824, allocations: 12.38 kB / 348.4 MB, free: 2.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.007843, allocations: 12.38 kB / 348.4 MB, free: 2.328 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.008017, allocations: 129.5 kB / 348.5 MB, free: 2.188 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.008027, allocations: 192 / 348.5 MB, free: 2.188 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.008041, allocations: 4.375 kB / 348.5 MB, free: 2.184 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.00805, allocations: 4.375 kB / 348.5 MB, free: 2.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.37e-05/0.008133, allocations: 52.91 kB / 348.6 MB, free: 2.129 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000477/0.00861, allocations: 411.8 kB / 349 MB, free: 1.695 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.83e-05/0.008709, allocations: 90.09 kB / 349 MB, free: 1.582 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.051e-05/0.008739, allocations: 35.36 kB / 349.1 MB, free: 1.539 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.008759, allocations: 8.062 kB / 349.1 MB, free: 1.531 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.4e-05/0.008853, allocations: 110.8 kB / 349.2 MB, free: 1.402 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.273e-06/0.008854, allocations: 0 / 349.2 MB, free: 1.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001808/0.009035, allocations: 160.3 kB / 349.3 MB, free: 1.242 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.009069, allocations: 93.03 kB / 349.4 MB, free: 1.133 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.735e-05/0.009137, allocations: 196.1 kB / 349.6 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.152e-05/0.009148, allocations: 33.7 kB / 349.7 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.501e-05/0.009193, allocations: 175.6 kB / 349.8 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.084e-05/0.009224, allocations: 75.39 kB / 349.9 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.743e-05/0.009271, allocations: 63.61 kB / 350 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.009319, allocations: 0.504 MB / 350.5 MB, free: 48 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.518e-05/0.009344, allocations: 24.25 kB / 350.5 MB, free: 24 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.955e-05/0.009444, allocations: 157.3 kB / 350.7 MB, free: 15.82 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.009592, allocations: 199.7 kB / 350.8 MB, free: 15.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.009595, allocations: 4 kB / 350.9 MB, free: 15.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002021/0.009797, allocations: 197.2 kB / 351 MB, free: 15.37 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.009811, allocations: 8 kB / 351.1 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.009824, allocations: 7.984 kB / 351.1 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.009836, allocations: 4 kB / 351.1 MB, free: 15.35 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.048e-05/0.009926, allocations: 43.92 kB / 351.1 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.009933, allocations: 8.062 kB / 351.1 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.497e-05/0.009978, allocations: 28.28 kB / 351.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.24e-05/0.00999, allocations: 8 kB / 351.1 MB, free: 15.26 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 0.0001062/0.0101, allocations: 196.4 kB / 351.3 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.01012, allocations: 23.84 kB / 351.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.411e-05/0.01015, allocations: 17.06 kB / 351.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.01015, allocations: 4.281 kB / 351.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.01016, allocations: 0 / 351.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.01016, allocations: 3.984 kB / 351.4 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.01028, allocations: 137.2 kB / 351.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01028, allocations: 0 / 351.5 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.72e-05/0.0103, allocations: 11.98 kB / 351.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.0103, allocations: 0 / 351.5 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.01031, allocations: 7.938 kB / 351.5 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.01031, allocations: 0 / 351.5 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01031, allocations: 0 / 351.5 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001529/0.01046, allocations: 175.9 kB / 351.7 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.987e-05/0.01048, allocations: 19.89 kB / 351.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.198e-05/0.01049, allocations: 7.938 kB / 351.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.318e-05/0.01051, allocations: 0 / 351.7 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.726e-05/0.01054, allocations: 11.98 kB / 351.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.075e-06/0.01055, allocations: 11.98 kB / 351.8 MB, free: 14.58 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.766e-05/0.01061, allocations: 137.9 kB / 351.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01061, allocations: 0 / 351.9 MB, free: 14.45 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001778/0.01079, allocations: 47.83 kB / 351.9 MB, free: 14.4 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.0003869/0.01117, allocations: 226.7 kB / 352.2 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001606/0.01134, allocations: 145.1 kB / 352.3 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.282e-06/0.01134, allocations: 0 / 352.3 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.702e-05/0.01138, allocations: 73.86 kB / 352.4 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001127/0.0115, allocations: 15.94 kB / 352.4 MB, free: 13.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003537/0.01185, allocations: 326.2 kB / 352.7 MB, free: 13.63 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.89e-05/0.0119, allocations: 83.81 kB / 352.8 MB, free: 13.53 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.39e-05/0.01193, allocations: 17.64 kB / 352.8 MB, free: 13.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.183e-05/0.01198, allocations: 82.2 kB / 352.9 MB, free: 13.43 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01199, allocations: 4 kB / 352.9 MB, free: 13.43 MB / 282.7 MB Notification: Performance of Templates: time 0.003197/0.01518, allocations: 1.443 MB / 354.3 MB, free: 12 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.11874590208754]