Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.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.001813/0.001813, allocations: 109.2 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.003135/0.003135, allocations: 217.6 kB / 23.66 MB, free: 4.938 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.539/1.539, allocations: 230.5 MB / 257.3 MB, free: 8.074 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.06393/0.06393, allocations: 12.17 MB / 325.9 MB, free: 7.371 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.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard") [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.002058/0.002058, allocations: 71.89 kB / 454.2 MB, free: 8.715 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1285, allocations: 56.38 MB / 0.4986 GB, free: 248 kB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004891/0.1334, allocations: 2.769 MB / 0.5013 GB, free: 13.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005928/0.134, allocations: 318.9 kB / 0.5016 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1341, allocations: 15.88 kB / 0.5016 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.1344, allocations: 43.7 kB / 0.5016 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.306e-05/0.1344, allocations: 19.8 kB / 0.5017 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.1347, allocations: 87.7 kB / 0.5017 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002226/0.1349, allocations: 148.1 kB / 0.5019 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001687/0.1351, allocations: 45.72 kB / 0.5019 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.701e-05/0.1352, allocations: 67.72 kB / 0.502 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.1353, allocations: 63.69 kB / 0.502 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.607e-05/0.1353, allocations: 12 kB / 0.5021 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.151e-05/0.1354, allocations: 35.98 kB / 0.5021 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.834e-05/0.1355, allocations: 51.84 kB / 0.5021 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.743e-05/0.1356, allocations: 71.55 kB / 0.5022 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003157/0.1359, allocations: 207 kB / 0.5024 GB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.1359, allocations: 0 / 0.5024 GB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1359, allocations: 0 / 0.5024 GB, free: 12.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.1359, allocations: 0 / 0.5024 GB, free: 12.29 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007021/0.1366, allocations: 397.3 kB / 0.5028 GB, free: 11.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1367, allocations: 8.031 kB / 0.5028 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.1368, allocations: 24.8 kB / 0.5028 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.137, allocations: 170.3 kB / 0.503 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.1371, allocations: 8.375 kB / 0.503 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.1371, allocations: 16.31 kB / 0.503 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003347/0.1374, allocations: 195.7 kB / 0.5032 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1374, allocations: 192 / 0.5032 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.1375, allocations: 11.94 kB / 0.5032 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.1375, allocations: 4 kB / 0.5032 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002133/0.1377, allocations: 112.1 kB / 0.5033 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000769/0.1384, allocations: 452.6 kB / 0.5037 GB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.1386, allocations: 113.1 kB / 0.5039 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.1387, allocations: 65.7 kB / 0.5039 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.1388, allocations: 3.984 kB / 0.5039 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.1391, allocations: 133.1 kB / 0.504 GB, free: 10.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.202e-06/0.1391, allocations: 0 / 0.504 GB, free: 10.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004608/0.1395, allocations: 242.3 kB / 0.5043 GB, free: 10.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/0.1396, allocations: 97.16 kB / 0.5044 GB, free: 10.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.1398, allocations: 141.8 kB / 0.5045 GB, free: 9.945 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.1398, allocations: 37.69 kB / 0.5045 GB, free: 9.902 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.366e-05/0.1399, allocations: 128.8 kB / 0.5047 GB, free: 9.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.534e-05/0.14, allocations: 59.58 kB / 0.5047 GB, free: 9.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.1401, allocations: 53.98 kB / 0.5048 GB, free: 9.652 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.1402, allocations: 330.8 kB / 0.5051 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1404, allocations: 76.17 kB / 0.5052 GB, free: 9.246 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.1406, allocations: 164.6 kB / 0.5053 GB, free: 9.047 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003407/0.1409, allocations: 251 kB / 0.5056 GB, free: 8.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1409, allocations: 0 / 0.5056 GB, free: 8.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004203/0.1413, allocations: 281.2 kB / 0.5058 GB, free: 8.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.1413, allocations: 8.188 kB / 0.5058 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.1414, allocations: 8 kB / 0.5058 GB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.1414, allocations: 4 kB / 0.5058 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.1415, allocations: 35.92 kB / 0.5059 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.1415, allocations: 7.938 kB / 0.5059 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.907e-05/0.1416, allocations: 19.84 kB / 0.5059 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.1416, allocations: 12 kB / 0.5059 GB, free: 8.387 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 27 (keyboardInput.KeyCode[10],$PRE.keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],$PRE.keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],$PRE.keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],$PRE.keyboardInput.KeyCode[7],$whenCondition1,keyboardInput.KeyCode[6],$PRE.keyboardInput.KeyCode[6],keyboardInput.keySpace,keyboardInput.KeyCode[5],$PRE.keyboardInput.KeyCode[5],keyboardInput.keyReturn,keyboardInput.KeyCode[4],$PRE.keyboardInput.KeyCode[4],keyboardInput.keyLeft,keyboardInput.KeyCode[3],$PRE.keyboardInput.KeyCode[3],keyboardInput.keyRight,keyboardInput.KeyCode[2],$PRE.keyboardInput.KeyCode[2],keyboardInput.keyDown,keyboardInput.KeyCode[1],$PRE.keyboardInput.KeyCode[1],keyboardInput.keyUp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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.000178/0.1418, allocations: 173.7 kB / 0.5061 GB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.1418, allocations: 15.91 kB / 0.5061 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.311e-05/0.1419, allocations: 9.125 kB / 0.5061 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1419, allocations: 4 kB / 0.5061 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1419, allocations: 0 / 0.5061 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1419, allocations: 4.266 kB / 0.5061 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002402/0.1421, allocations: 216.5 kB / 0.5063 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.1421, allocations: 4 kB / 0.5063 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.052e-05/0.1422, allocations: 11.98 kB / 0.5063 GB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1422, allocations: 3.984 kB / 0.5063 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.407e-06/0.1422, allocations: 3.938 kB / 0.5063 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.1422, allocations: 8 kB / 0.5064 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1422, allocations: 256 / 0.5064 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.1425, allocations: 231.7 kB / 0.5066 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.416e-05/0.1425, allocations: 15.84 kB / 0.5066 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.1425, allocations: 8 kB / 0.5066 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.752e-05/0.1426, allocations: 0 / 0.5066 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.842e-05/0.1426, allocations: 11.98 kB / 0.5066 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1426, allocations: 8 kB / 0.5066 GB, free: 7.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.458e-05/0.1427, allocations: 113.2 kB / 0.5067 GB, free: 7.496 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1427, allocations: 0 / 0.5067 GB, free: 7.496 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.143, allocations: 47.83 kB / 0.5068 GB, free: 7.449 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: 17 ($whenCondition1,keyboardInput.keyUp,keyboardInput.keyDown,keyboardInput.keyRight,keyboardInput.keyLeft,keyboardInput.keyReturn,keyboardInput.keySpace,keyboardInput.KeyCode[1],keyboardInput.KeyCode[2],keyboardInput.KeyCode[3],keyboardInput.KeyCode[4],keyboardInput.KeyCode[5],keyboardInput.KeyCode[6],keyboardInput.KeyCode[7],keyboardInput.KeyCode[8],keyboardInput.KeyCode[9],keyboardInput.KeyCode[10]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 1 * 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.0006036/0.1436, allocations: 213.8 kB / 0.507 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003817/0.144, allocations: 197.5 kB / 0.5072 GB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.144, allocations: 0 / 0.5072 GB, free: 7.078 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.1441, allocations: 93.61 kB / 0.5073 GB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001724/0.1443, allocations: 12 kB / 0.5073 GB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007437/0.145, allocations: 340.8 kB / 0.5076 GB, free: 6.605 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.1452, allocations: 132.1 kB / 0.5077 GB, free: 6.457 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.778e-05/0.1452, allocations: 21.47 kB / 0.5077 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.1453, allocations: 27.38 kB / 0.5078 GB, free: 6.41 MB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1453, allocations: 0 / 0.5078 GB, free: 6.41 MB / 382.1 MB Notification: Performance of Templates: time 0.005246/0.1505, allocations: 1.419 MB / 0.5091 GB, free: 4.996 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.273101399987354] Failed to read output from testmodel.py, exit status != 0: 0.15940217100433074 0.39879423499999994 0.259732871 Calling exit ...