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.001396/0.001396, allocations: 83.34 kB / 20.46 MB, free: 4.098 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.001398/0.001398, allocations: 165 kB / 23.84 MB, free: 0.7266 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.07/1.07, allocations: 177.1 MB / 204.2 MB, free: 5.621 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.04298/0.04298, allocations: 9.149 MB / 269.9 MB, free: 4.242 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 4.218e-06/4.218e-06, allocations: 4 kB / 342.5 MB, free: 8.344 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.063e-05/3.485e-05, allocations: 6.312 kB / 342.6 MB, free: 8.336 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004801/0.004835, allocations: 2.795 MB / 345.3 MB, free: 5.52 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005971/0.005433, allocations: 318.9 kB / 345.7 MB, free: 5.207 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.005551, allocations: 15.88 kB / 345.7 MB, free: 5.191 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000292/0.005843, allocations: 47.62 kB / 345.7 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 9.832e-05/0.005941, allocations: 15.86 kB / 345.7 MB, free: 5.129 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.006247, allocations: 91.64 kB / 345.8 MB, free: 5.039 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.006442, allocations: 152 kB / 346 MB, free: 4.891 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.006611, allocations: 45.78 kB / 346 MB, free: 4.844 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.006714, allocations: 79.86 kB / 346.1 MB, free: 4.766 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.461e-05/0.006809, allocations: 55.8 kB / 346.1 MB, free: 4.711 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.447e-05/0.006843, allocations: 16 kB / 346.2 MB, free: 4.695 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.972e-05/0.006923, allocations: 24 kB / 346.2 MB, free: 4.672 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.859e-05/0.007011, allocations: 55.83 kB / 346.2 MB, free: 4.617 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 5.901e-05/0.00707, allocations: 43.86 kB / 346.3 MB, free: 4.574 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.007306, allocations: 139.4 kB / 346.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.007311, allocations: 0 / 346.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.007314, allocations: 0 / 346.4 MB, free: 4.438 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.007323, allocations: 3.938 kB / 346.4 MB, free: 4.434 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007189/0.008042, allocations: 491.3 kB / 346.9 MB, free: 3.914 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.008106, allocations: 12.02 kB / 346.9 MB, free: 3.902 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.987e-05/0.008196, allocations: 32.8 kB / 346.9 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.008416, allocations: 164.4 kB / 347.1 MB, free: 3.684 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.008436, allocations: 16.36 kB / 347.1 MB, free: 3.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.008457, allocations: 20.38 kB / 347.1 MB, free: 3.648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.008673, allocations: 133.5 kB / 347.3 MB, free: 3.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.008684, allocations: 4.188 kB / 347.3 MB, free: 3.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.008699, allocations: 4.375 kB / 347.3 MB, free: 3.496 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.008712, allocations: 4.375 kB / 347.3 MB, free: 3.492 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.226e-05/0.008804, allocations: 60.06 kB / 347.3 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006016/0.009406, allocations: 435.3 kB / 347.8 MB, free: 2.965 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.009563, allocations: 90.22 kB / 347.9 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.242e-05/0.009626, allocations: 43.36 kB / 347.9 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.486e-05/0.009671, allocations: 8.078 kB / 347.9 MB, free: 2.793 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.009874, allocations: 123.3 kB / 348 MB, free: 2.652 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.839e-06/0.009879, allocations: 3.984 kB / 348 MB, free: 2.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003352/0.01021, allocations: 163.5 kB / 348.2 MB, free: 2.484 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.01028, allocations: 89.09 kB / 348.3 MB, free: 2.379 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.01041, allocations: 197.9 kB / 348.5 MB, free: 2.168 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.01043, allocations: 33.7 kB / 348.5 MB, free: 2.129 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/0.01052, allocations: 171.6 kB / 348.7 MB, free: 1.957 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.52e-05/0.01058, allocations: 67.48 kB / 348.7 MB, free: 1.891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.671e-05/0.01066, allocations: 59.64 kB / 348.8 MB, free: 1.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.01086, allocations: 0.5079 MB / 349.3 MB, free: 1.301 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.83e-05/0.01093, allocations: 28.45 kB / 349.3 MB, free: 1.273 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.01107, allocations: 169.9 kB / 349.5 MB, free: 1.055 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002268/0.0113, allocations: 207.7 kB / 349.7 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.0113, allocations: 0 / 349.7 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003182/0.01162, allocations: 225.3 kB / 349.9 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.01165, allocations: 8 kB / 349.9 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.01167, allocations: 4 kB / 349.9 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.0117, allocations: 4 kB / 349.9 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.01186, allocations: 43.86 kB / 350 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.01187, allocations: 4 kB / 350 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.838e-05/0.01193, allocations: 23.91 kB / 350 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.01195, allocations: 8 kB / 350 MB, free: 488 kB / 314.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.0001622/0.01211, allocations: 196.6 kB / 350.2 MB, free: 284 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.01214, allocations: 23.84 kB / 350.2 MB, free: 260 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.741e-05/0.01221, allocations: 17.11 kB / 350.2 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01221, allocations: 0 / 350.2 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.01222, allocations: 4 kB / 350.3 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.01223, allocations: 0 / 350.3 MB, free: 240 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001957/0.01242, allocations: 168.5 kB / 350.4 MB, free: 36 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.01243, allocations: 4 kB / 350.4 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.215e-05/0.01246, allocations: 11.88 kB / 350.4 MB, free: 20 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01246, allocations: 4 kB / 350.4 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.01247, allocations: 0 / 350.4 MB, free: 16 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01247, allocations: 4 kB / 350.4 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.01248, allocations: 80 / 350.4 MB, free: 12 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.01271, allocations: 179.9 kB / 350.6 MB, free: 15.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.01275, allocations: 19.83 kB / 350.6 MB, free: 15.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.01276, allocations: 4 kB / 350.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.626e-05/0.01279, allocations: 0 / 350.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005727/0.01336, allocations: 12.12 kB / 350.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.01337, allocations: 4 kB / 350.7 MB, free: 15.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.512e-05/0.01346, allocations: 145.7 kB / 350.8 MB, free: 15.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01346, allocations: 4 kB / 350.8 MB, free: 15.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002644/0.01372, allocations: 51.8 kB / 350.9 MB, free: 15.57 MB / 330.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.0006333/0.01435, allocations: 231 kB / 351.1 MB, free: 15.39 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002659/0.01462, allocations: 153.1 kB / 351.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.01462, allocations: 0 / 351.2 MB, free: 15.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.298e-05/0.01469, allocations: 77.31 kB / 351.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001558/0.01484, allocations: 13.97 kB / 351.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005556/0.0154, allocations: 329.7 kB / 351.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.023e-05/0.01546, allocations: 83.81 kB / 351.7 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.784e-05/0.01552, allocations: 25.84 kB / 351.7 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.01555, allocations: 16.5 kB / 351.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01555, allocations: 0 / 351.8 MB, free: 14.64 MB / 330.7 MB Notification: Performance of Templates: time 0.004112/0.01966, allocations: 1.376 MB / 353.1 MB, free: 13.28 MB / 330.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.267149055376649]