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.001186/0.001186, allocations: 75.59 kB / 20.56 MB, free: 1.242 MB / 14.72 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.001301/0.001301, allocations: 166.2 kB / 23.8 MB, free: 4.426 MB / 14.72 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.319/1.319, allocations: 177.2 MB / 204.2 MB, free: 8.941 MB / 190.1 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.05563/0.05563, allocations: 9.159 MB / 269.7 MB, free: 7.863 MB / 254.1 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 0.001926/0.001926, allocations: 71.89 kB / 398 MB, free: 6.52 MB / 366.1 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. Notification: Performance of FrontEnd - Absyn->SCode: time 0.09396/0.09589, allocations: 56.35 MB / 454.4 MB, free: 14.07 MB / 430.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.004156/0.1, allocations: 2.373 MB / 456.8 MB, free: 11.68 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003648/0.1004, allocations: 171.4 kB / 456.9 MB, free: 11.51 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.511e-05/0.1005, allocations: 0 / 456.9 MB, free: 11.51 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.1006, allocations: 31.78 kB / 457 MB, free: 11.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002733/0.1009, allocations: 43.91 kB / 457 MB, free: 11.43 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.1011, allocations: 51.88 kB / 457.1 MB, free: 11.38 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001517/0.1012, allocations: 79.7 kB / 457.1 MB, free: 11.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.1013, allocations: 20.2 kB / 457.1 MB, free: 11.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.355e-05/0.1014, allocations: 31.86 kB / 457.2 MB, free: 11.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.583e-05/0.1014, allocations: 35.84 kB / 457.2 MB, free: 11.21 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.1015, allocations: 4 kB / 457.2 MB, free: 11.21 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001805/0.1017, allocations: 127.9 kB / 457.3 MB, free: 11.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.019e-05/0.1017, allocations: 15.92 kB / 457.4 MB, free: 11.07 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.1017, allocations: 23.81 kB / 457.4 MB, free: 11.05 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.102, allocations: 151.5 kB / 457.5 MB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.102, allocations: 0 / 457.5 MB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.102, allocations: 0 / 457.5 MB, free: 10.9 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.102, allocations: 4 kB / 457.5 MB, free: 10.89 MB / 430.1 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.0005507/0.1026, allocations: 365.3 kB / 457.9 MB, free: 10.49 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.1026, allocations: 12.03 kB / 457.9 MB, free: 10.48 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.663e-05/0.1026, allocations: 12.89 kB / 457.9 MB, free: 10.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.1029, allocations: 140.7 kB / 458.1 MB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.1029, allocations: 384 / 458.1 MB, free: 10.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.1029, allocations: 12.38 kB / 458.1 MB, free: 10.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003659/0.1033, allocations: 212.1 kB / 458.3 MB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1033, allocations: 4.188 kB / 458.3 MB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.1033, allocations: 7.875 kB / 458.3 MB, free: 10.05 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.1033, allocations: 8 kB / 458.3 MB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.1035, allocations: 87.33 kB / 458.4 MB, free: 9.945 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003405/0.1038, allocations: 229.4 kB / 458.6 MB, free: 9.688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001995/0.104, allocations: 132.5 kB / 458.7 MB, free: 9.527 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.539e-05/0.1041, allocations: 89.16 kB / 458.8 MB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1041, allocations: 4.031 kB / 458.8 MB, free: 9.418 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.1042, allocations: 34.56 kB / 458.9 MB, free: 9.375 MB / 430.1 MB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.1042, allocations: 0 / 458.9 MB, free: 9.375 MB / 430.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003904/0.1046, allocations: 275.8 kB / 459.1 MB, free: 9.062 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.1046, allocations: 136.5 kB / 459.3 MB, free: 8.898 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.1048, allocations: 142 kB / 459.4 MB, free: 8.746 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1048, allocations: 25.7 kB / 459.4 MB, free: 8.715 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.1048, allocations: 100.1 kB / 459.5 MB, free: 8.613 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.127e-05/0.1048, allocations: 3.953 kB / 459.5 MB, free: 8.609 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.771e-05/0.1049, allocations: 33.7 kB / 459.6 MB, free: 8.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.105, allocations: 310.8 kB / 459.9 MB, free: 8.258 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.766e-05/0.1051, allocations: 71.39 kB / 459.9 MB, free: 8.176 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.692e-05/0.1052, allocations: 121.3 kB / 460 MB, free: 8.023 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.1053, allocations: 180.8 kB / 460.2 MB, free: 7.801 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1053, allocations: 0 / 460.2 MB, free: 7.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002365/0.1056, allocations: 220.2 kB / 460.4 MB, free: 7.547 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.644e-05/0.1056, allocations: 59.62 kB / 460.5 MB, free: 7.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1056, allocations: 4 kB / 460.5 MB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.1056, allocations: 4 kB / 460.5 MB, free: 7.469 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.677e-05/0.1057, allocations: 8 kB / 460.5 MB, free: 7.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/0.1057, allocations: 3.984 kB / 460.5 MB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.818e-05/0.1057, allocations: 4 kB / 460.5 MB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.1057, allocations: 4 kB / 460.5 MB, free: 7.449 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.0001503/0.1059, allocations: 198.6 kB / 460.7 MB, free: 7.234 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.106, allocations: 69.58 kB / 460.8 MB, free: 7.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.66e-05/0.106, allocations: 12.47 kB / 460.8 MB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.106, allocations: 0 / 460.8 MB, free: 7.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.106, allocations: 4 kB / 460.8 MB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1061, allocations: 0 / 460.8 MB, free: 7.141 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.1062, allocations: 121.3 kB / 460.9 MB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1062, allocations: 4.25 kB / 460.9 MB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.682e-05/0.1062, allocations: 8 kB / 460.9 MB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1062, allocations: 8.078 kB / 460.9 MB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1062, allocations: 3.938 kB / 460.9 MB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1062, allocations: 3.938 kB / 460.9 MB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1062, allocations: 4 kB / 461 MB, free: 6.961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002953/0.1065, allocations: 307.2 kB / 461.3 MB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.366e-05/0.1065, allocations: 11.89 kB / 461.3 MB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.1066, allocations: 8 kB / 461.3 MB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/0.1066, allocations: 0 / 461.3 MB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.309e-05/0.1066, allocations: 7.984 kB / 461.3 MB, free: 6.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.1067, allocations: 4 kB / 461.3 MB, free: 6.586 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.864e-05/0.1067, allocations: 99.27 kB / 461.4 MB, free: 6.488 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1067, allocations: 0 / 461.4 MB, free: 6.488 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.107, allocations: 31.94 kB / 461.4 MB, free: 6.457 MB / 430.1 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.0007807/0.1078, allocations: 310.5 kB / 461.7 MB, free: 6.227 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002876/0.1081, allocations: 273.5 kB / 462 MB, free: 5.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1081, allocations: 7.938 kB / 462 MB, free: 5.902 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.1082, allocations: 170.2 kB / 462.2 MB, free: 5.699 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.1084, allocations: 30.31 kB / 462.2 MB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003862/0.1088, allocations: 250 kB / 462.4 MB, free: 5.387 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.742e-05/0.1089, allocations: 87.58 kB / 462.5 MB, free: 5.281 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.362e-05/0.109, allocations: 8.719 kB / 462.5 MB, free: 5.273 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.642e-05/0.109, allocations: 16.5 kB / 462.5 MB, free: 5.258 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.109, allocations: 0 / 462.5 MB, free: 5.258 MB / 430.1 MB Notification: Performance of Templates: time 0.00453/0.1135, allocations: 1.7 MB / 464.2 MB, free: 3.574 MB / 430.1 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 -s ida -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.279524423996918] Failed to read output from testmodel.py, exit status != 0: 0.12091998406685889 0.133970336 0.029221507 Calling exit ...