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.001415/0.001415, allocations: 104.3 kB / 19.74 MB, free: 1.766 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.001648/0.001648, allocations: 223.3 kB / 23.04 MB, free: 4.617 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.518/1.518, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.08819/0.08819, allocations: 12.22 MB / 325.4 MB, free: 7.145 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.002288/0.002288, allocations: 64.09 kB / 453.8 MB, free: 8.352 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1133, allocations: 56.39 MB / 0.4982 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboard): time 0.004988/0.1183, allocations: 2.708 MB / 0.5009 GB, free: 13.15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007016/0.119, allocations: 307 kB / 0.5012 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1192, allocations: 7.875 kB / 0.5012 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.1195, allocations: 47.69 kB / 0.5012 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.1196, allocations: 15.81 kB / 0.5012 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1199, allocations: 87.7 kB / 0.5013 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.1202, allocations: 152 kB / 0.5014 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1204, allocations: 45.72 kB / 0.5015 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1205, allocations: 67.7 kB / 0.5016 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.1206, allocations: 63.7 kB / 0.5016 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.1206, allocations: 12 kB / 0.5016 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.264e-05/0.1207, allocations: 32 kB / 0.5017 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.46e-05/0.1208, allocations: 55.81 kB / 0.5017 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.737e-05/0.1209, allocations: 55.67 kB / 0.5018 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.1213, allocations: 203 kB / 0.502 GB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1213, allocations: 0 / 0.502 GB, free: 12.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1213, allocations: 0 / 0.502 GB, free: 12.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1213, allocations: 0 / 0.502 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007007/0.122, allocations: 397.4 kB / 0.5023 GB, free: 11.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.122, allocations: 12.03 kB / 0.5023 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.1e-05/0.1221, allocations: 24.8 kB / 0.5024 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000292/0.1224, allocations: 162.3 kB / 0.5025 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1224, allocations: 8.375 kB / 0.5025 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.1224, allocations: 16.38 kB / 0.5026 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.1228, allocations: 195.8 kB / 0.5027 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.1228, allocations: 192 / 0.5027 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.1228, allocations: 7.938 kB / 0.5027 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.1228, allocations: 4 kB / 0.5027 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.123, allocations: 116.1 kB / 0.5029 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006886/0.1237, allocations: 389.2 kB / 0.5032 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.1239, allocations: 109.2 kB / 0.5033 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.765e-05/0.124, allocations: 69.62 kB / 0.5034 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.124, allocations: 8 kB / 0.5034 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.1243, allocations: 121.1 kB / 0.5035 GB, free: 10.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.332e-06/0.1243, allocations: 4 kB / 0.5035 GB, free: 10.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004282/0.1247, allocations: 243.9 kB / 0.5038 GB, free: 10.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.1248, allocations: 93.11 kB / 0.5039 GB, free: 9.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.1249, allocations: 147.7 kB / 0.504 GB, free: 9.754 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.1249, allocations: 33.7 kB / 0.504 GB, free: 9.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/0.125, allocations: 132.8 kB / 0.5042 GB, free: 9.582 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.568e-05/0.1251, allocations: 59.59 kB / 0.5042 GB, free: 9.523 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.912e-05/0.1252, allocations: 65.91 kB / 0.5043 GB, free: 9.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1253, allocations: 334.7 kB / 0.5046 GB, free: 9.113 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.1254, allocations: 72.23 kB / 0.5047 GB, free: 9.043 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001902/0.1256, allocations: 160.6 kB / 0.5048 GB, free: 8.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.126, allocations: 250.9 kB / 0.5051 GB, free: 8.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.126, allocations: 0 / 0.5051 GB, free: 8.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004268/0.1264, allocations: 269.3 kB / 0.5053 GB, free: 8.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.1264, allocations: 8 kB / 0.5053 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.1264, allocations: 7.984 kB / 0.5053 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1264, allocations: 4.25 kB / 0.5053 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1266, allocations: 31.94 kB / 0.5054 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.1266, allocations: 16.11 kB / 0.5054 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.38e-05/0.1267, allocations: 27.78 kB / 0.5054 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.247e-05/0.1267, allocations: 12 kB / 0.5054 GB, free: 8.188 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.0001831/0.1269, allocations: 165.6 kB / 0.5056 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.1269, allocations: 23.89 kB / 0.5056 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.067e-05/0.127, allocations: 9.125 kB / 0.5056 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.127, allocations: 4 kB / 0.5056 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.127, allocations: 288 / 0.5056 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.127, allocations: 0 / 0.5056 GB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001904/0.1272, allocations: 177.1 kB / 0.5058 GB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.1272, allocations: 0 / 0.5058 GB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.177e-05/0.1272, allocations: 15.91 kB / 0.5058 GB, free: 7.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1272, allocations: 4 kB / 0.5058 GB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1272, allocations: 4 kB / 0.5058 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1272, allocations: 0 / 0.5058 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1272, allocations: 0 / 0.5058 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/0.1275, allocations: 229.2 kB / 0.506 GB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.393e-05/0.1275, allocations: 11.91 kB / 0.506 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.1275, allocations: 8 kB / 0.506 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.819e-05/0.1276, allocations: 0 / 0.506 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.1276, allocations: 11.98 kB / 0.506 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.1276, allocations: 11.98 kB / 0.5061 GB, free: 7.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.442e-05/0.1277, allocations: 105.3 kB / 0.5062 GB, free: 7.363 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1277, allocations: 0 / 0.5062 GB, free: 7.363 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002766/0.128, allocations: 47.83 kB / 0.5062 GB, free: 7.316 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.0006364/0.1286, allocations: 233.4 kB / 0.5064 GB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.129, allocations: 201.5 kB / 0.5066 GB, free: 6.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.129, allocations: 0 / 0.5066 GB, free: 6.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.1291, allocations: 85.62 kB / 0.5067 GB, free: 6.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.1293, allocations: 13.66 kB / 0.5067 GB, free: 6.828 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006219/0.1299, allocations: 341.1 kB / 0.507 GB, free: 6.465 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.13, allocations: 131.8 kB / 0.5072 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.15e-05/0.1301, allocations: 21.47 kB / 0.5072 GB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.292e-05/0.1301, allocations: 15.44 kB / 0.5072 GB, free: 6.281 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1301, allocations: 0 / 0.5072 GB, free: 6.281 MB / 382.1 MB Notification: Performance of Templates: time 0.005146/0.1353, allocations: 1.413 MB / 0.5086 GB, free: 4.879 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: 10.496498450636864] Failed to read output from testmodel.py, exit status != 0: 0.14492120780050755 0.426008039 0.301855032 Calling exit ...