Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.001764/0.001764, allocations: 109 kB / 20.38 MB, free: 1.551 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.002324/0.002324, allocations: 211.1 kB / 23.66 MB, free: 4.941 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.537/1.537, allocations: 230.5 MB / 257.3 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.06269/0.06269, allocations: 12.17 MB / 325.9 MB, free: 7.336 MB / 254.1 MB " [Timeout remaining time 180] Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") [Timeout 660] "Notification: Modelica_DeviceDrivers requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002808/0.002808, allocations: 72.12 kB / 454.2 MB, free: 8.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1171, allocations: 56.37 MB / 0.4986 GB, free: 216 kB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.004308/0.1215, allocations: 2.793 MB / 0.5013 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000599/0.1221, allocations: 358.8 kB / 0.5016 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.431e-05/0.1221, allocations: 11.88 kB / 0.5016 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.1224, allocations: 51.62 kB / 0.5017 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.1226, allocations: 55.77 kB / 0.5017 GB, free: 12.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.1228, allocations: 91.7 kB / 0.5018 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.1231, allocations: 156 kB / 0.502 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.1232, allocations: 45.73 kB / 0.502 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.985e-05/0.1233, allocations: 59.77 kB / 0.5021 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000126/0.1235, allocations: 67.69 kB / 0.5021 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.404e-05/0.1235, allocations: 12 kB / 0.5022 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002309/0.1237, allocations: 139.9 kB / 0.5023 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.593e-05/0.1238, allocations: 47.78 kB / 0.5023 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.315e-05/0.1239, allocations: 71.55 kB / 0.5024 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003823/0.1243, allocations: 231.2 kB / 0.5026 GB, free: 12.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1243, allocations: 3.938 kB / 0.5026 GB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1243, allocations: 0 / 0.5026 GB, free: 12.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.1243, allocations: 7.938 kB / 0.5026 GB, free: 12.02 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006739/0.125, allocations: 385.7 kB / 0.503 GB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.125, allocations: 8.031 kB / 0.503 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.1251, allocations: 20.8 kB / 0.503 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002952/0.1254, allocations: 170 kB / 0.5032 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1254, allocations: 8.609 kB / 0.5032 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.86e-05/0.1254, allocations: 16.31 kB / 0.5032 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.1257, allocations: 152.8 kB / 0.5034 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1257, allocations: 192 / 0.5034 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.1257, allocations: 15.92 kB / 0.5034 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.1257, allocations: 0 / 0.5034 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.1259, allocations: 80.14 kB / 0.5035 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007561/0.1267, allocations: 440.7 kB / 0.5039 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001455/0.1268, allocations: 77.12 kB / 0.504 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.1269, allocations: 45.73 kB / 0.504 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1269, allocations: 0 / 0.504 GB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.1271, allocations: 89.05 kB / 0.5041 GB, free: 10.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.192e-06/0.1271, allocations: 4 kB / 0.5041 GB, free: 10.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002915/0.1274, allocations: 125.6 kB / 0.5042 GB, free: 10.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.1275, allocations: 85.03 kB / 0.5043 GB, free: 10.15 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.1276, allocations: 156.2 kB / 0.5044 GB, free: 9.988 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.191e-05/0.1277, allocations: 29.7 kB / 0.5045 GB, free: 9.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.553e-05/0.1277, allocations: 120.3 kB / 0.5046 GB, free: 9.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.211e-05/0.1278, allocations: 35.73 kB / 0.5046 GB, free: 9.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.212e-05/0.1278, allocations: 29.7 kB / 0.5046 GB, free: 9.758 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.128, allocations: 334.8 kB / 0.505 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.624e-05/0.128, allocations: 20 kB / 0.505 GB, free: 9.402 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.656e-05/0.1281, allocations: 56.25 kB / 0.505 GB, free: 9.336 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.1282, allocations: 87.34 kB / 0.5051 GB, free: 9.238 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1282, allocations: 0 / 0.5051 GB, free: 9.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001988/0.1284, allocations: 125.5 kB / 0.5052 GB, free: 9.109 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1284, allocations: 4 kB / 0.5052 GB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1285, allocations: 7.938 kB / 0.5052 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.1285, allocations: 240 / 0.5052 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.865e-05/0.1285, allocations: 11.94 kB / 0.5053 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.1285, allocations: 7.984 kB / 0.5053 GB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.006e-05/0.1286, allocations: 11.89 kB / 0.5053 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.1286, allocations: 4 kB / 0.5053 GB, free: 9.062 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.additionalKeyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001221/0.1287, allocations: 142.1 kB / 0.5054 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.1287, allocations: 15.88 kB / 0.5054 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.1288, allocations: 16.72 kB / 0.5054 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1288, allocations: 4 kB / 0.5055 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1288, allocations: 0 / 0.5055 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1288, allocations: 0 / 0.5055 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.129, allocations: 208.6 kB / 0.5057 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.129, allocations: 3.938 kB / 0.5057 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.277e-05/0.129, allocations: 4 kB / 0.5057 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.129, allocations: 0 / 0.5057 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.996e-06/0.129, allocations: 4 kB / 0.5057 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.1291, allocations: 4 kB / 0.5057 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1291, allocations: 0 / 0.5057 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.1293, allocations: 133.8 kB / 0.5058 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.92e-05/0.1293, allocations: 11.91 kB / 0.5058 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.184e-05/0.1293, allocations: 8 kB / 0.5058 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.634e-05/0.1293, allocations: 3.938 kB / 0.5058 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.1294, allocations: 11.98 kB / 0.5058 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.1294, allocations: 0 / 0.5058 GB, free: 8.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.15e-05/0.1295, allocations: 124.1 kB / 0.5059 GB, free: 8.305 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1295, allocations: 0 / 0.5059 GB, free: 8.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.1297, allocations: 39.83 kB / 0.506 GB, free: 8.266 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: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0005987/0.1303, allocations: 245.5 kB / 0.5062 GB, free: 8.066 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002212/0.1305, allocations: 101.5 kB / 0.5063 GB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1305, allocations: 0 / 0.5063 GB, free: 7.961 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.805e-05/0.1306, allocations: 57.62 kB / 0.5064 GB, free: 7.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.1308, allocations: 11.98 kB / 0.5064 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/0.1313, allocations: 271.7 kB / 0.5066 GB, free: 7.594 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.1314, allocations: 114.9 kB / 0.5067 GB, free: 7.461 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.032e-05/0.1314, allocations: 12.48 kB / 0.5068 GB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.1315, allocations: 15.44 kB / 0.5068 GB, free: 7.434 MB / 382.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1315, allocations: 0 / 0.5068 GB, free: 7.434 MB / 382.1 MB Notification: Performance of Templates: time 0.004648/0.1361, allocations: 1.475 MB / 0.5082 GB, free: 5.965 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.191224509995664] Failed to read output from testmodel.py, exit status != 0: 0.14554331300314516 0.35036762299999996 0.22302903300000002 Calling exit ...