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.001758/0.001758, allocations: 88.98 kB / 20.25 MB, free: 4.172 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.001804/0.001804, allocations: 173.2 kB / 23.57 MB, free: 0.8555 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.434/1.434, allocations: 177.1 MB / 203.9 MB, free: 5.609 MB / 186.7 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.06473/0.06473, allocations: 9.151 MB / 269.5 MB, free: 4.293 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.453e-06/1.453e-06, allocations: 0 / 341.8 MB, free: 7.676 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.236e-05, allocations: 2.312 kB / 341.8 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002575/0.002597, allocations: 2.403 MB / 344.2 MB, free: 5.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000266/0.002863, allocations: 171.4 kB / 344.4 MB, free: 5.086 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.121e-05/0.002935, allocations: 7.938 kB / 344.4 MB, free: 5.078 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.003061, allocations: 23.78 kB / 344.4 MB, free: 5.055 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.003323, allocations: 55.83 kB / 344.4 MB, free: 5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001257/0.003449, allocations: 47.88 kB / 344.5 MB, free: 4.953 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001041/0.003553, allocations: 79.77 kB / 344.6 MB, free: 4.875 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.942e-05/0.003633, allocations: 8.234 kB / 344.6 MB, free: 4.863 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.643e-05/0.003699, allocations: 43.89 kB / 344.6 MB, free: 4.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.731e-05/0.003736, allocations: 23.91 kB / 344.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.027e-05/0.003757, allocations: 4 kB / 344.6 MB, free: 4.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.003893, allocations: 139.9 kB / 344.8 MB, free: 4.656 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.82e-05/0.003911, allocations: 7.938 kB / 344.8 MB, free: 4.648 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.149e-05/0.003943, allocations: 23.92 kB / 344.8 MB, free: 4.625 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.004159, allocations: 175.5 kB / 345 MB, free: 4.453 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.004161, allocations: 0 / 345 MB, free: 4.453 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.51e-07/0.004162, allocations: 0 / 345 MB, free: 4.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.004165, allocations: 0 / 345 MB, free: 4.453 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003402/0.004505, allocations: 471.3 kB / 345.4 MB, free: 3.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.004534, allocations: 8.031 kB / 345.5 MB, free: 3.934 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.004584, allocations: 20.83 kB / 345.5 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.004737, allocations: 152.4 kB / 345.6 MB, free: 3.738 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.004752, allocations: 8.312 kB / 345.6 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.004764, allocations: 8.375 kB / 345.6 MB, free: 3.723 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002577/0.005022, allocations: 221.5 kB / 345.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.005031, allocations: 192 / 345.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.005042, allocations: 4.359 kB / 345.9 MB, free: 3.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.005046, allocations: 8.312 kB / 345.9 MB, free: 3.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.462e-05/0.005121, allocations: 83.33 kB / 345.9 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000242/0.005363, allocations: 291.5 kB / 346.2 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.005511, allocations: 157.5 kB / 346.4 MB, free: 2.852 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.387e-05/0.005575, allocations: 90.83 kB / 346.5 MB, free: 2.742 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.005598, allocations: 3.984 kB / 346.5 MB, free: 2.738 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.395e-05/0.005612, allocations: 45.33 kB / 346.5 MB, free: 2.684 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.005613, allocations: 0 / 346.5 MB, free: 2.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003026/0.005916, allocations: 275.8 kB / 346.8 MB, free: 2.371 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.005949, allocations: 136.5 kB / 346.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.538e-05/0.006034, allocations: 209 kB / 347.1 MB, free: 1.988 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.006043, allocations: 25.7 kB / 347.2 MB, free: 1.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.006081, allocations: 142.8 kB / 347.3 MB, free: 1.812 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.006092, allocations: 15.92 kB / 347.3 MB, free: 1.797 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.006127, allocations: 35.36 kB / 347.3 MB, free: 1.754 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.238e-05/0.006179, allocations: 0.4884 MB / 347.8 MB, free: 1.254 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.793e-05/0.006217, allocations: 63.39 kB / 347.9 MB, free: 1.18 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.658e-05/0.006254, allocations: 82.78 kB / 348 MB, free: 1.078 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.156e-05/0.006315, allocations: 142.2 kB / 348.1 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.006317, allocations: 0 / 348.1 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001222/0.006439, allocations: 184.6 kB / 348.3 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.006464, allocations: 71.33 kB / 348.4 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.006467, allocations: 0 / 348.4 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.00648, allocations: 8.062 kB / 348.4 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.592e-05/0.006506, allocations: 4 kB / 348.4 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.566e-06/0.006509, allocations: 0 / 348.4 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.376e-05/0.006533, allocations: 4 kB / 348.4 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.006541, allocations: 0 / 348.4 MB, free: 0.5977 MB / 266.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 6.404e-05/0.006605, allocations: 223.9 kB / 348.6 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.296e-05/0.006698, allocations: 69.55 kB / 348.7 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.798e-05/0.006726, allocations: 12.45 kB / 348.7 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.006728, allocations: 4 kB / 348.7 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.00673, allocations: 0 / 348.7 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.006733, allocations: 4 kB / 348.7 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.552e-05/0.006829, allocations: 140.6 kB / 348.8 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.00683, allocations: 0 / 348.8 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.129e-05/0.006851, allocations: 4.234 kB / 348.8 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.006852, allocations: 0 / 348.8 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.006863, allocations: 3.938 kB / 348.8 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.006864, allocations: 4 kB / 348.8 MB, free: 76 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.006866, allocations: 3.938 kB / 348.8 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003637/0.007229, allocations: 370.4 kB / 349.2 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.425e-05/0.007243, allocations: 11.95 kB / 349.2 MB, free: 15.65 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.007267, allocations: 7.938 kB / 349.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.333e-05/0.00732, allocations: 11.98 kB / 349.2 MB, free: 15.63 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.649e-05/0.007346, allocations: 4 kB / 349.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.007358, allocations: 4 kB / 349.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.007459, allocations: 151.1 kB / 349.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007459, allocations: 0 / 349.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002484/0.007708, allocations: 24 kB / 349.4 MB, free: 15.45 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: 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.001173/0.008881, allocations: 316.3 kB / 349.7 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004253/0.009306, allocations: 277.3 kB / 350 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.009308, allocations: 0 / 350 MB, free: 14.89 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.009455, allocations: 185.9 kB / 350.2 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002897/0.009745, allocations: 39.08 kB / 350.2 MB, free: 14.63 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004236/0.01017, allocations: 260.3 kB / 350.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.968e-05/0.01025, allocations: 75.58 kB / 350.5 MB, free: 14.24 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.855e-05/0.01029, allocations: 11.98 kB / 350.5 MB, free: 14.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.445e-05/0.01031, allocations: 16.69 kB / 350.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of SimCode: time 4.31e-07/0.01031, allocations: 0 / 350.6 MB, free: 14.21 MB / 282.7 MB Notification: Performance of Templates: time 0.004847/0.01516, allocations: 1.695 MB / 352.3 MB, free: 12.53 MB / 282.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=240 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 9.324983241967857]