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.001311/0.001311, allocations: 100.4 kB / 20.48 MB, free: 1.227 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.001461/0.001461, allocations: 211 kB / 23.79 MB, free: 4.414 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.467/1.467, allocations: 230.6 MB / 257.6 MB, free: 7.809 MB / 206.1 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.06145/0.06145, allocations: 12.23 MB / 326.2 MB, free: 7.059 MB / 254.1 MB " [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.002073/0.002073, allocations: 67.89 kB / 454.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1282, allocations: 56.39 MB / 0.499 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.004223/0.1324, allocations: 2.376 MB / 0.5013 GB, free: 13.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003962/0.1328, allocations: 175.5 kB / 0.5014 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.97e-05/0.1329, allocations: 3.938 kB / 0.5014 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.1331, allocations: 23.86 kB / 0.5015 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003052/0.1334, allocations: 47.83 kB / 0.5015 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001975/0.1336, allocations: 51.88 kB / 0.5016 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001822/0.1338, allocations: 75.78 kB / 0.5016 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.1339, allocations: 16.22 kB / 0.5016 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.204e-05/0.1339, allocations: 31.92 kB / 0.5017 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.331e-05/0.134, allocations: 31.78 kB / 0.5017 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.386e-05/0.134, allocations: 8 kB / 0.5017 GB, free: 13.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1342, allocations: 131.9 kB / 0.5018 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.024e-05/0.1343, allocations: 19.86 kB / 0.5019 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.193e-05/0.1343, allocations: 23.86 kB / 0.5019 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002615/0.1346, allocations: 147.5 kB / 0.502 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1346, allocations: 0 / 0.502 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1346, allocations: 0 / 0.502 GB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.1346, allocations: 0 / 0.502 GB, free: 12.71 MB / 382.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.0005531/0.1351, allocations: 373.3 kB / 0.5024 GB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1352, allocations: 12.03 kB / 0.5024 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.999e-05/0.1352, allocations: 8.891 kB / 0.5024 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.1355, allocations: 142.3 kB / 0.5025 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.1355, allocations: 12.31 kB / 0.5025 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.1356, allocations: 4.375 kB / 0.5026 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003728/0.1359, allocations: 208.9 kB / 0.5028 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.1359, allocations: 4.188 kB / 0.5028 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.842e-05/0.136, allocations: 7.938 kB / 0.5028 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.136, allocations: 0 / 0.5028 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001098/0.1361, allocations: 83.39 kB / 0.5028 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003488/0.1364, allocations: 221.4 kB / 0.5031 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002208/0.1366, allocations: 136.5 kB / 0.5032 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.1367, allocations: 93.16 kB / 0.5033 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.1368, allocations: 4.031 kB / 0.5033 GB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/0.1368, allocations: 38.5 kB / 0.5033 GB, free: 11.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.1368, allocations: 4 kB / 0.5033 GB, free: 11.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0004097/0.1372, allocations: 271.8 kB / 0.5036 GB, free: 10.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.155e-05/0.1373, allocations: 132.5 kB / 0.5037 GB, free: 10.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1374, allocations: 140 kB / 0.5038 GB, free: 10.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.1375, allocations: 29.7 kB / 0.5039 GB, free: 10.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.1376, allocations: 92.12 kB / 0.504 GB, free: 10.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.1376, allocations: 19.84 kB / 0.504 GB, free: 10.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.665e-05/0.1376, allocations: 25.7 kB / 0.504 GB, free: 10.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1378, allocations: 318.8 kB / 0.5043 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.705e-05/0.1378, allocations: 75.39 kB / 0.5044 GB, free: 9.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.368e-05/0.1379, allocations: 109.4 kB / 0.5045 GB, free: 9.844 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001734/0.1381, allocations: 188.9 kB / 0.5047 GB, free: 9.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1381, allocations: 0 / 0.5047 GB, free: 9.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002409/0.1383, allocations: 220.2 kB / 0.5049 GB, free: 9.367 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.027e-05/0.1384, allocations: 59.62 kB / 0.5049 GB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.1384, allocations: 4 kB / 0.5049 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.1384, allocations: 0 / 0.5049 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.387e-05/0.1385, allocations: 19.92 kB / 0.5049 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.1385, allocations: 96 / 0.5049 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.09e-05/0.1385, allocations: 7.938 kB / 0.505 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.1385, allocations: 4 kB / 0.505 GB, free: 9.262 MB / 382.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.000135/0.1387, allocations: 181.1 kB / 0.5051 GB, free: 9.062 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.1388, allocations: 65.58 kB / 0.5052 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.1388, allocations: 12.41 kB / 0.5052 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1388, allocations: 4 kB / 0.5052 GB, free: 8.969 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1388, allocations: 4 kB / 0.5052 GB, free: 8.965 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1388, allocations: 3.984 kB / 0.5052 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.139, allocations: 121.2 kB / 0.5053 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.139, allocations: 3.938 kB / 0.5053 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.394e-05/0.139, allocations: 7.984 kB / 0.5053 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.139, allocations: 0 / 0.5053 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.139, allocations: 4 kB / 0.5053 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.139, allocations: 4.312 kB / 0.5054 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.139, allocations: 0 / 0.5054 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.1393, allocations: 319.1 kB / 0.5057 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.581e-05/0.1393, allocations: 15.89 kB / 0.5057 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.939e-05/0.1394, allocations: 0 / 0.5057 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.504e-05/0.1394, allocations: 8 kB / 0.5057 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.641e-05/0.1394, allocations: 7.922 kB / 0.5057 GB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.1395, allocations: 4 kB / 0.5057 GB, free: 8.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.077e-05/0.1395, allocations: 104.4 kB / 0.5058 GB, free: 8.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1395, allocations: 0 / 0.5058 GB, free: 8.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002644/0.1398, allocations: 24 kB / 0.5058 GB, free: 8.277 MB / 382.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.0008635/0.1407, allocations: 317.8 kB / 0.5061 GB, free: 8.047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003151/0.141, allocations: 273.5 kB / 0.5064 GB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.141, allocations: 0 / 0.5064 GB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1411, allocations: 182.1 kB / 0.5065 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003508/0.1415, allocations: 31.95 kB / 0.5066 GB, free: 7.484 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004517/0.1419, allocations: 256 kB / 0.5068 GB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.928e-05/0.142, allocations: 79.83 kB / 0.5069 GB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.797e-05/0.142, allocations: 15.44 kB / 0.5069 GB, free: 7.074 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.142, allocations: 4 kB / 0.5069 GB, free: 7.07 MB / 382.1 MB Notification: Performance of Templates: time 0.004462/0.1465, allocations: 2.279 MB / 0.5091 GB, free: 4.797 MB / 382.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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.23503272421658] Failed to read output from testmodel.py, exit status != 0: 0.15490833297371864 0.40435979200000005 0.26705374000000004 Calling exit ...