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.001277/0.001277, allocations: 109 kB / 20.5 MB, free: 1.453 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.001481/0.001481, allocations: 206.4 kB / 23.8 MB, free: 4.672 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.436/1.436, allocations: 230.6 MB / 257.6 MB, free: 7.957 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.06471/0.06471, allocations: 12.22 MB / 326.2 MB, free: 7.219 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.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: Performance of FrontEnd - loaded program: time 0.002199/0.002199, allocations: 60.14 kB / 454.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1151, allocations: 56.39 MB / 0.499 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.005379/0.1204, allocations: 2.787 MB / 0.5018 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007161/0.1212, allocations: 318.9 kB / 0.5021 GB, free: 12.87 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.1213, allocations: 7.938 kB / 0.5021 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000277/0.1216, allocations: 47.64 kB / 0.5021 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.1217, allocations: 15.86 kB / 0.5021 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.1221, allocations: 95.64 kB / 0.5022 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002716/0.1223, allocations: 152 kB / 0.5024 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.1225, allocations: 41.73 kB / 0.5024 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.1226, allocations: 67.75 kB / 0.5025 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.1228, allocations: 63.7 kB / 0.5025 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.323e-05/0.1228, allocations: 12 kB / 0.5025 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.732e-05/0.1229, allocations: 31.98 kB / 0.5026 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.881e-05/0.123, allocations: 55.78 kB / 0.5026 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.1231, allocations: 71.55 kB / 0.5027 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.1234, allocations: 199.1 kB / 0.5029 GB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1234, allocations: 7.938 kB / 0.5029 GB, free: 12.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1234, allocations: 0 / 0.5029 GB, free: 12.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1234, allocations: 0 / 0.5029 GB, free: 12.01 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.0006658/0.1241, allocations: 405.3 kB / 0.5033 GB, free: 11.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1241, allocations: 8.031 kB / 0.5033 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.641e-05/0.1242, allocations: 20.8 kB / 0.5033 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.1245, allocations: 162.3 kB / 0.5035 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.1245, allocations: 8.375 kB / 0.5035 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.1245, allocations: 12.38 kB / 0.5035 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.1248, allocations: 195.8 kB / 0.5037 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1249, allocations: 4.125 kB / 0.5037 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.1249, allocations: 11.94 kB / 0.5037 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.1249, allocations: 7.984 kB / 0.5037 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.1251, allocations: 116 kB / 0.5038 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007622/0.1259, allocations: 444.6 kB / 0.5042 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.1261, allocations: 109.2 kB / 0.5043 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.872e-05/0.1261, allocations: 65.69 kB / 0.5044 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1262, allocations: 4 kB / 0.5044 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002665/0.1264, allocations: 136.7 kB / 0.5045 GB, free: 10.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.393e-06/0.1264, allocations: 0 / 0.5045 GB, free: 10.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004371/0.1269, allocations: 253.4 kB / 0.5048 GB, free: 9.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.869e-05/0.1269, allocations: 89.09 kB / 0.5049 GB, free: 9.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001587/0.1271, allocations: 145.8 kB / 0.505 GB, free: 9.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.1271, allocations: 37.69 kB / 0.505 GB, free: 9.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.124e-05/0.1272, allocations: 124.8 kB / 0.5051 GB, free: 9.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.83e-05/0.1273, allocations: 59.59 kB / 0.5052 GB, free: 9.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.1274, allocations: 57.97 kB / 0.5053 GB, free: 9.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1275, allocations: 334.8 kB / 0.5056 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1277, allocations: 68.23 kB / 0.5056 GB, free: 8.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1279, allocations: 166.9 kB / 0.5058 GB, free: 8.773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003279/0.1282, allocations: 251 kB / 0.506 GB, free: 8.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1282, allocations: 0 / 0.506 GB, free: 8.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000429/0.1286, allocations: 273.4 kB / 0.5063 GB, free: 8.215 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.1286, allocations: 11.98 kB / 0.5063 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.1287, allocations: 7.938 kB / 0.5063 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.1287, allocations: 4 kB / 0.5063 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.1288, allocations: 40.11 kB / 0.5064 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1288, allocations: 8 kB / 0.5064 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.624e-05/0.1289, allocations: 19.84 kB / 0.5064 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.1289, allocations: 12 kB / 0.5064 GB, free: 8.113 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.0001859/0.1291, allocations: 177.9 kB / 0.5066 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.778e-05/0.1291, allocations: 15.91 kB / 0.5066 GB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.1292, allocations: 9.125 kB / 0.5066 GB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.1292, allocations: 8 kB / 0.5066 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1292, allocations: 3.938 kB / 0.5066 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1292, allocations: 0 / 0.5066 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.1295, allocations: 220.4 kB / 0.5068 GB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.1295, allocations: 8 kB / 0.5068 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3e-05/0.1295, allocations: 4 kB / 0.5068 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.1295, allocations: 0 / 0.5068 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.1295, allocations: 0 / 0.5068 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.1295, allocations: 7.984 kB / 0.5068 GB, free: 7.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1295, allocations: 3.938 kB / 0.5068 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003067/0.1299, allocations: 231.9 kB / 0.5071 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.603e-05/0.1299, allocations: 15.89 kB / 0.5071 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.1299, allocations: 7.938 kB / 0.5071 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.988e-05/0.1299, allocations: 4 kB / 0.5071 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.801e-05/0.13, allocations: 11.98 kB / 0.5071 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.13, allocations: 4 kB / 0.5071 GB, free: 7.324 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.47e-05/0.1301, allocations: 113.6 kB / 0.5072 GB, free: 7.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1301, allocations: 4 kB / 0.5072 GB, free: 7.211 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002933/0.1304, allocations: 47.83 kB / 0.5073 GB, free: 7.164 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.0006278/0.131, allocations: 211.5 kB / 0.5075 GB, free: 6.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003764/0.1314, allocations: 201.5 kB / 0.5077 GB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1314, allocations: 0 / 0.5077 GB, free: 6.789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.1315, allocations: 89.61 kB / 0.5077 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001819/0.1317, allocations: 12 kB / 0.5078 GB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007282/0.1324, allocations: 370.2 kB / 0.5081 GB, free: 6.285 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.1328, allocations: 0.744 MB / 0.5088 GB, free: 5.516 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.1328, allocations: 23.42 kB / 0.5089 GB, free: 5.492 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1328, allocations: 0 / 0.5089 GB, free: 5.492 MB / 382.1 MB Notification: Performance of Templates: time 0.004971/0.1378, allocations: 2.304 MB / 0.5111 GB, free: 3.195 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.45279523381032] Failed to read output from testmodel.py, exit status != 0: 0.14688660809770226 0.342141555 0.21599399799999996 Calling exit ...