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.001263/0.001263, 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.001425/0.001425, allocations: 209.9 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.445/1.445, 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.06122/0.06122, allocations: 12.21 MB / 326.2 MB, free: 7.223 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.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: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 63.91 kB / 454.6 MB, free: 8.473 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1142, allocations: 56.38 MB / 0.499 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.005032/0.1192, allocations: 2.805 MB / 0.5018 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007041/0.1199, allocations: 362.8 kB / 0.5021 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.1201, allocations: 7.875 kB / 0.5021 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002529/0.1203, allocations: 51.64 kB / 0.5022 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002244/0.1206, allocations: 51.75 kB / 0.5022 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.1208, allocations: 95.64 kB / 0.5023 GB, free: 12.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002389/0.1211, allocations: 148 kB / 0.5025 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1212, allocations: 49.72 kB / 0.5025 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.832e-05/0.1213, allocations: 63.75 kB / 0.5026 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.1215, allocations: 67.7 kB / 0.5026 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.1215, allocations: 12 kB / 0.5026 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.1217, allocations: 139.9 kB / 0.5028 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.11e-05/0.1218, allocations: 47.84 kB / 0.5028 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.764e-05/0.1219, allocations: 71.53 kB / 0.5029 GB, free: 12.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003447/0.1222, allocations: 231.1 kB / 0.5031 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1222, allocations: 3.938 kB / 0.5031 GB, free: 11.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.299e-06/0.1222, allocations: 4 kB / 0.5031 GB, free: 11.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1222, allocations: 3.938 kB / 0.5031 GB, free: 11.79 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.0006121/0.1228, allocations: 377.7 kB / 0.5035 GB, free: 11.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1229, allocations: 8.031 kB / 0.5035 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.054e-05/0.1229, allocations: 20.8 kB / 0.5035 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.1232, allocations: 166 kB / 0.5037 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.1232, allocations: 12.61 kB / 0.5037 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.1232, allocations: 16.31 kB / 0.5037 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.1235, allocations: 156.8 kB / 0.5038 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1235, allocations: 4.188 kB / 0.5039 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.1235, allocations: 7.938 kB / 0.5039 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1235, allocations: 4 kB / 0.5039 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.1237, allocations: 84.12 kB / 0.5039 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006964/0.1244, allocations: 440.7 kB / 0.5044 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.1245, allocations: 73.22 kB / 0.5044 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.143e-05/0.1246, allocations: 41.7 kB / 0.5045 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.1246, allocations: 3.984 kB / 0.5045 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.1249, allocations: 89.05 kB / 0.5046 GB, free: 10.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.1249, allocations: 0 / 0.5046 GB, free: 10.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003327/0.1252, allocations: 129.6 kB / 0.5047 GB, free: 10.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.1253, allocations: 85.05 kB / 0.5048 GB, free: 9.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.1254, allocations: 154.2 kB / 0.5049 GB, free: 9.766 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.1254, allocations: 29.7 kB / 0.5049 GB, free: 9.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.528e-05/0.1255, allocations: 128.3 kB / 0.5051 GB, free: 9.598 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.344e-05/0.1256, allocations: 35.73 kB / 0.5051 GB, free: 9.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/0.1256, allocations: 21.72 kB / 0.5051 GB, free: 9.535 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1258, allocations: 330.8 kB / 0.5054 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.824e-05/0.1258, allocations: 27.98 kB / 0.5055 GB, free: 9.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.611e-05/0.1259, allocations: 59.59 kB / 0.5055 GB, free: 9.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.126, allocations: 87.36 kB / 0.5056 GB, free: 9.008 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.126, allocations: 0 / 0.5056 GB, free: 9.008 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001989/0.1262, allocations: 125.5 kB / 0.5057 GB, free: 8.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1263, allocations: 4 kB / 0.5057 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1263, allocations: 4 kB / 0.5057 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.1263, allocations: 0 / 0.5057 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.339e-05/0.1264, allocations: 19.94 kB / 0.5057 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1264, allocations: 0 / 0.5057 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.254e-05/0.1264, allocations: 15.83 kB / 0.5058 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.1264, allocations: 4 kB / 0.5058 GB, free: 8.832 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.000163/0.1266, allocations: 137.7 kB / 0.5059 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.374e-05/0.1266, allocations: 16.02 kB / 0.5059 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.048e-05/0.1267, allocations: 16.7 kB / 0.5059 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1267, allocations: 0 / 0.5059 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1267, allocations: 0 / 0.5059 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.1267, allocations: 0 / 0.5059 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.1269, allocations: 212.5 kB / 0.5061 GB, free: 8.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.1269, allocations: 3.938 kB / 0.5061 GB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.318e-05/0.127, allocations: 4 kB / 0.5061 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.127, allocations: 0 / 0.5061 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.127, allocations: 4 kB / 0.5061 GB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.127, allocations: 4 kB / 0.5061 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.127, allocations: 0 / 0.5061 GB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.1272, allocations: 133.9 kB / 0.5063 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.767e-05/0.1272, allocations: 23.83 kB / 0.5063 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.049e-05/0.1273, allocations: 4 kB / 0.5063 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.616e-05/0.1273, allocations: 0 / 0.5063 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.1273, allocations: 8.219 kB / 0.5063 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.1273, allocations: 8 kB / 0.5063 GB, free: 8.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.417e-05/0.1274, allocations: 120.1 kB / 0.5064 GB, free: 8.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1274, allocations: 0 / 0.5064 GB, free: 8.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000262/0.1277, allocations: 43.83 kB / 0.5065 GB, free: 8.027 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.0006283/0.1283, allocations: 234.3 kB / 0.5067 GB, free: 7.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.1285, allocations: 109.5 kB / 0.5068 GB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1285, allocations: 0 / 0.5068 GB, free: 7.723 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.209e-05/0.1286, allocations: 61.62 kB / 0.5069 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001666/0.1288, allocations: 8 kB / 0.5069 GB, free: 7.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005964/0.1294, allocations: 305.4 kB / 0.5072 GB, free: 7.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.1297, allocations: 0.7276 MB / 0.5079 GB, free: 6.562 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.892e-05/0.1298, allocations: 19.42 kB / 0.5079 GB, free: 6.547 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1298, allocations: 0 / 0.5079 GB, free: 6.547 MB / 382.1 MB Notification: Performance of Templates: time 0.005078/0.1349, allocations: 2.634 MB / 0.5105 GB, free: 3.922 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.36922389199026] Failed to read output from testmodel.py, exit status != 0: 0.143732946831733 0.335320411 0.21020655300000002 Calling exit ...