Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.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.001307/0.001307, allocations: 84.23 kB / 20.25 MB, free: 4.184 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.001542/0.001542, allocations: 157.7 kB / 23.56 MB, free: 0.875 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.349/1.349, allocations: 177.1 MB / 203.9 MB, free: 5.594 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.05702/0.05702, allocations: 9.151 MB / 269.5 MB, free: 4.273 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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 3.938 kB / 341.8 MB, free: 8.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.569e-05, allocations: 4.703 kB / 341.8 MB, free: 8.836 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.004179/0.004205, allocations: 2.39 MB / 344.2 MB, free: 6.426 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003898/0.004594, allocations: 171.4 kB / 344.3 MB, free: 6.258 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.979e-05/0.004664, allocations: 0 / 344.3 MB, free: 6.258 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.00483, allocations: 31.73 kB / 344.4 MB, free: 6.227 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003071/0.005137, allocations: 55.81 kB / 344.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001647/0.005301, allocations: 43.89 kB / 344.5 MB, free: 6.129 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001693/0.005471, allocations: 75.77 kB / 344.6 MB, free: 6.055 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.237e-05/0.005563, allocations: 20.16 kB / 344.6 MB, free: 6.031 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.448e-05/0.005647, allocations: 35.91 kB / 344.6 MB, free: 5.996 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.484e-05/0.005702, allocations: 31.89 kB / 344.6 MB, free: 5.965 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.706e-05/0.005729, allocations: 8 kB / 344.6 MB, free: 5.957 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001877/0.005917, allocations: 127.9 kB / 344.8 MB, free: 5.832 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.035e-05/0.005947, allocations: 11.94 kB / 344.8 MB, free: 5.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.72e-05/0.005995, allocations: 27.97 kB / 344.8 MB, free: 5.793 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.006271, allocations: 163.6 kB / 345 MB, free: 5.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573e-06/0.006273, allocations: 0 / 345 MB, free: 5.633 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.006273, allocations: 4 kB / 345 MB, free: 5.629 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.496e-06/0.006277, allocations: 0 / 345 MB, free: 5.629 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005258/0.006803, allocations: 373.2 kB / 345.3 MB, free: 5.219 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.006839, allocations: 8.031 kB / 345.3 MB, free: 5.211 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.006906, allocations: 20.84 kB / 345.4 MB, free: 5.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.007152, allocations: 144.8 kB / 345.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/0.007177, allocations: 8.359 kB / 345.5 MB, free: 5.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.007192, allocations: 8.375 kB / 345.5 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003901/0.007582, allocations: 208.9 kB / 345.7 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.345e-06/0.00759, allocations: 192 / 345.7 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.007603, allocations: 384 / 345.7 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.00761, allocations: 4.375 kB / 345.7 MB, free: 4.773 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.007737, allocations: 91.27 kB / 345.8 MB, free: 4.672 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003384/0.008076, allocations: 221.4 kB / 346 MB, free: 4.422 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.008305, allocations: 132.6 kB / 346.2 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.008423, allocations: 89.14 kB / 346.3 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.008447, allocations: 0 / 346.3 MB, free: 4.156 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.008482, allocations: 46.48 kB / 346.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 8.42e-07/0.008483, allocations: 0 / 346.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004593/0.008943, allocations: 275.8 kB / 346.6 MB, free: 3.789 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.009044, allocations: 132.5 kB / 346.7 MB, free: 3.629 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.009184, allocations: 137 kB / 346.8 MB, free: 3.484 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.00921, allocations: 33.7 kB / 346.9 MB, free: 3.445 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.492e-05/0.009285, allocations: 96.08 kB / 347 MB, free: 3.348 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.372e-05/0.009299, allocations: 11.98 kB / 347 MB, free: 3.336 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.00934, allocations: 17.72 kB / 347 MB, free: 3.312 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.009507, allocations: 318.8 kB / 347.3 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.013e-05/0.009577, allocations: 63.41 kB / 347.4 MB, free: 2.918 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.1e-05/0.009658, allocations: 88.98 kB / 347.4 MB, free: 2.812 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001369/0.009795, allocations: 136.5 kB / 347.6 MB, free: 2.648 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.009796, allocations: 0 / 347.6 MB, free: 2.648 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002174/0.01001, allocations: 180.4 kB / 347.8 MB, free: 2.441 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.614e-05/0.01007, allocations: 63.34 kB / 347.8 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.01007, allocations: 4.062 kB / 347.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.01009, allocations: 0 / 347.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.448e-05/0.01012, allocations: 7.984 kB / 347.8 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.01012, allocations: 256 / 347.8 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.588e-05/0.01016, allocations: 7.953 kB / 347.8 MB, free: 2.348 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.01017, allocations: 4 kB / 347.8 MB, free: 2.344 MB / 314.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 0.0001405/0.01031, allocations: 169.2 kB / 348 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.01044, allocations: 77.75 kB / 348.1 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.01048, allocations: 12.45 kB / 348.1 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.01049, allocations: 0 / 348.1 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.01049, allocations: 8 kB / 348.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.01049, allocations: 0 / 348.1 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.01065, allocations: 129.2 kB / 348.2 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.01066, allocations: 0 / 348.2 MB, free: 1.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.555e-05/0.01068, allocations: 4 kB / 348.2 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.01068, allocations: 0 / 348.2 MB, free: 1.891 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.0107, allocations: 11.92 kB / 348.2 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.0107, allocations: 0 / 348.2 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.0107, allocations: 0 / 348.2 MB, free: 1.879 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003496/0.01105, allocations: 315.1 kB / 348.6 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.224e-05/0.01106, allocations: 3.953 kB / 348.6 MB, free: 1.523 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.01108, allocations: 11.94 kB / 348.6 MB, free: 1.512 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.881e-05/0.01114, allocations: 8 kB / 348.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.505e-05/0.01117, allocations: 0 / 348.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.215e-05/0.01118, allocations: 7.984 kB / 348.6 MB, free: 1.496 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.161e-05/0.01126, allocations: 99.27 kB / 348.7 MB, free: 1.398 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01126, allocations: 0 / 348.7 MB, free: 1.398 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002568/0.01152, allocations: 27.94 kB / 348.7 MB, free: 1.371 MB / 314.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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.001109/0.01263, allocations: 310.8 kB / 349 MB, free: 1.145 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003005/0.01293, allocations: 269.5 kB / 349.3 MB, free: 0.832 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.01293, allocations: 4 kB / 349.3 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.01308, allocations: 170.2 kB / 349.4 MB, free: 0.625 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.01336, allocations: 33.38 kB / 349.5 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004242/0.01379, allocations: 251.4 kB / 349.7 MB, free: 316 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.333e-05/0.01387, allocations: 79.08 kB / 349.8 MB, free: 216 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.333e-05/0.01391, allocations: 16.11 kB / 349.8 MB, free: 200 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.01394, allocations: 16.5 kB / 349.8 MB, free: 184 kB / 314.7 MB Notification: Performance of SimCode: time 3.51e-07/0.01394, allocations: 0 / 349.8 MB, free: 184 kB / 314.7 MB Notification: Performance of Templates: time 0.004772/0.01871, allocations: 1.685 MB / 351.5 MB, free: 14.51 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.09248024399858]