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.002079/0.002079, allocations: 108.3 kB / 19.75 MB, free: 1.879 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.002526/0.002526, allocations: 220.2 kB / 23.03 MB, free: 5.016 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.6 MB / 256.8 MB, free: 7.938 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.0668/0.0668, allocations: 12.22 MB / 325.4 MB, free: 7.051 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.002046/0.002046, allocations: 67.89 kB / 453.8 MB, free: 8.328 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1219, allocations: 56.39 MB / 0.4982 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey): time 0.005143/0.1271, allocations: 2.721 MB / 0.5009 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007284/0.1278, allocations: 339 kB / 0.5012 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.1279, allocations: 11.88 kB / 0.5012 GB, free: 12.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002605/0.1282, allocations: 47.64 kB / 0.5013 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.1285, allocations: 59.81 kB / 0.5013 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.1288, allocations: 87.72 kB / 0.5014 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.129, allocations: 155.9 kB / 0.5015 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.1292, allocations: 49.72 kB / 0.5016 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.474e-05/0.1293, allocations: 59.77 kB / 0.5017 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.1294, allocations: 63.69 kB / 0.5017 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.162e-05/0.1294, allocations: 12 kB / 0.5017 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.1296, allocations: 135.9 kB / 0.5019 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.039e-05/0.1297, allocations: 43.84 kB / 0.5019 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.411e-05/0.1298, allocations: 55.67 kB / 0.5019 GB, free: 12 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003699/0.1302, allocations: 239 kB / 0.5022 GB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.1302, allocations: 0 / 0.5022 GB, free: 11.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.918e-06/0.1302, allocations: 4 kB / 0.5022 GB, free: 11.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1302, allocations: 0 / 0.5022 GB, free: 11.77 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.0007148/0.1309, allocations: 385.7 kB / 0.5025 GB, free: 11.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1309, allocations: 8.031 kB / 0.5026 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.055e-05/0.131, allocations: 20.8 kB / 0.5026 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.1313, allocations: 170.3 kB / 0.5027 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.1313, allocations: 4.609 kB / 0.5027 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.1313, allocations: 12.38 kB / 0.5028 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.1317, allocations: 172.7 kB / 0.5029 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1317, allocations: 192 / 0.5029 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.401e-05/0.1317, allocations: 11.94 kB / 0.5029 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.1317, allocations: 4 kB / 0.5029 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1319, allocations: 80.12 kB / 0.503 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006865/0.1326, allocations: 377.4 kB / 0.5034 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.1327, allocations: 69.19 kB / 0.5034 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.851e-05/0.1328, allocations: 41.72 kB / 0.5035 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.405e-05/0.1328, allocations: 8 kB / 0.5035 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.133, allocations: 93.09 kB / 0.5036 GB, free: 10.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.133, allocations: 0 / 0.5036 GB, free: 10.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000322/0.1334, allocations: 129.4 kB / 0.5037 GB, free: 10.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.155e-05/0.1334, allocations: 85.11 kB / 0.5038 GB, free: 9.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.1336, allocations: 150.2 kB / 0.5039 GB, free: 9.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.058e-05/0.1336, allocations: 29.7 kB / 0.5039 GB, free: 9.766 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.1337, allocations: 128.3 kB / 0.5041 GB, free: 9.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.1337, allocations: 31.73 kB / 0.5041 GB, free: 9.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.264e-05/0.1338, allocations: 29.7 kB / 0.5041 GB, free: 9.566 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.134, allocations: 326.8 kB / 0.5044 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.013e-05/0.134, allocations: 27.92 kB / 0.5045 GB, free: 9.211 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.798e-05/0.1341, allocations: 59.42 kB / 0.5045 GB, free: 9.141 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.1343, allocations: 83.55 kB / 0.5046 GB, free: 9.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1343, allocations: 7.938 kB / 0.5046 GB, free: 9.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002176/0.1345, allocations: 117.5 kB / 0.5047 GB, free: 8.918 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1345, allocations: 8 kB / 0.5047 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1345, allocations: 0 / 0.5047 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1345, allocations: 7.984 kB / 0.5047 GB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.756e-05/0.1346, allocations: 11.94 kB / 0.5048 GB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.1346, allocations: 8 kB / 0.5048 GB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.485e-05/0.1347, allocations: 19.83 kB / 0.5048 GB, free: 8.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.1347, allocations: 4 kB / 0.5048 GB, free: 8.859 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.0001423/0.1348, allocations: 146.2 kB / 0.5049 GB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.1348, allocations: 7.953 kB / 0.5049 GB, free: 8.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.248e-05/0.1349, allocations: 12.72 kB / 0.5049 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.1349, allocations: 3.984 kB / 0.5049 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1349, allocations: 4 kB / 0.5049 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1349, allocations: 0 / 0.5049 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001928/0.1351, allocations: 161.2 kB / 0.5051 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.1351, allocations: 8 kB / 0.5051 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.348e-05/0.1351, allocations: 4 kB / 0.5051 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1351, allocations: 0 / 0.5051 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.1351, allocations: 0 / 0.5051 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.882e-06/0.1351, allocations: 4 kB / 0.5051 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1351, allocations: 3.984 kB / 0.5051 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.1354, allocations: 137.8 kB / 0.5053 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.1354, allocations: 11.91 kB / 0.5053 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.1354, allocations: 0 / 0.5053 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.615e-05/0.1354, allocations: 0 / 0.5053 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.96e-05/0.1355, allocations: 11.98 kB / 0.5053 GB, free: 8.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.1355, allocations: 8.125 kB / 0.5053 GB, free: 8.281 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.893e-05/0.1356, allocations: 119.1 kB / 0.5054 GB, free: 8.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1356, allocations: 3.938 kB / 0.5054 GB, free: 8.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.1358, allocations: 43.83 kB / 0.5054 GB, free: 8.117 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.0007075/0.1366, allocations: 250.7 kB / 0.5057 GB, free: 7.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002352/0.1368, allocations: 105.6 kB / 0.5058 GB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1368, allocations: 0 / 0.5058 GB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.512e-05/0.1369, allocations: 57.69 kB / 0.5058 GB, free: 7.746 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001695/0.137, allocations: 17 kB / 0.5059 GB, free: 7.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005658/0.1376, allocations: 275.7 kB / 0.5061 GB, free: 7.438 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001275/0.1377, allocations: 114.9 kB / 0.5062 GB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.137e-05/0.1378, allocations: 12.5 kB / 0.5062 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.1378, allocations: 19.42 kB / 0.5063 GB, free: 7.273 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1378, allocations: 0 / 0.5063 GB, free: 7.273 MB / 382.1 MB Notification: Performance of Templates: time 0.005259/0.1431, allocations: 1.47 MB / 0.5077 GB, free: 5.809 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: 10.400989811867476] Failed to read output from testmodel.py, exit status != 0: 0.15199462696909904 0.405553323 0.272443857 Calling exit ...