Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.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.001313/0.001313, allocations: 100.4 kB / 20.49 MB, free: 1.344 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.001602/0.001602, allocations: 200.9 kB / 23.78 MB, free: 4.5 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.469/1.469, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.06098/0.06098, allocations: 12.23 MB / 326.2 MB, free: 7.137 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.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002055/0.002055, allocations: 71.88 kB / 454.5 MB, free: 8.359 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1291, allocations: 56.39 MB / 0.4989 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.004342/0.1334, allocations: 2.359 MB / 0.5013 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003153/0.1337, allocations: 127.5 kB / 0.5014 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.724e-05/0.1338, allocations: 4 kB / 0.5014 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.134, allocations: 27.78 kB / 0.5014 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.187e-05/0.134, allocations: 11.94 kB / 0.5014 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.1343, allocations: 47.83 kB / 0.5015 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.1344, allocations: 87.77 kB / 0.5015 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.1346, allocations: 12.22 kB / 0.5016 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.385e-05/0.1346, allocations: 27.92 kB / 0.5016 GB, free: 13.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.746e-05/0.1347, allocations: 39.78 kB / 0.5016 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.1347, allocations: 4 kB / 0.5016 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.973e-05/0.1348, allocations: 20 kB / 0.5016 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.139e-05/0.1349, allocations: 23.91 kB / 0.5017 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.007e-05/0.1349, allocations: 39.73 kB / 0.5017 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.1351, allocations: 115.5 kB / 0.5018 GB, free: 12.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1351, allocations: 0 / 0.5018 GB, free: 12.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1351, allocations: 4 kB / 0.5018 GB, free: 12.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1352, allocations: 0 / 0.5018 GB, free: 12.92 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.000529/0.1357, allocations: 377.2 kB / 0.5022 GB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1357, allocations: 8.031 kB / 0.5022 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.209e-05/0.1358, allocations: 20.84 kB / 0.5022 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.136, allocations: 134.4 kB / 0.5023 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.851e-05/0.1361, allocations: 8.375 kB / 0.5023 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/0.1361, allocations: 4.375 kB / 0.5023 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.1366, allocations: 328.8 kB / 0.5027 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1366, allocations: 0 / 0.5027 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.1366, allocations: 4 kB / 0.5027 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.1366, allocations: 8 kB / 0.5027 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.1368, allocations: 119.4 kB / 0.5028 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003655/0.1371, allocations: 241.2 kB / 0.503 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.1374, allocations: 176.8 kB / 0.5032 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001286/0.1375, allocations: 113.2 kB / 0.5033 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.207e-05/0.1375, allocations: 0 / 0.5033 GB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.1376, allocations: 34.56 kB / 0.5033 GB, free: 11.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.1376, allocations: 0 / 0.5033 GB, free: 11.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005237/0.1381, allocations: 375.6 kB / 0.5037 GB, free: 10.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.1382, allocations: 140.4 kB / 0.5038 GB, free: 10.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1383, allocations: 121.8 kB / 0.5039 GB, free: 10.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.1383, allocations: 25.7 kB / 0.504 GB, free: 10.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.632e-05/0.1384, allocations: 100.5 kB / 0.5041 GB, free: 10.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.066e-05/0.1385, allocations: 11.95 kB / 0.5041 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.579e-05/0.1386, allocations: 41.7 kB / 0.5041 GB, free: 10.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.1388, allocations: 330.8 kB / 0.5044 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.556e-05/0.1389, allocations: 83.38 kB / 0.5045 GB, free: 9.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002249/0.1391, allocations: 209.8 kB / 0.5047 GB, free: 9.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.1394, allocations: 311.7 kB / 0.505 GB, free: 9.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1394, allocations: 0 / 0.505 GB, free: 9.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004183/0.1399, allocations: 308.6 kB / 0.5053 GB, free: 8.848 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.891e-05/0.1399, allocations: 65.58 kB / 0.5054 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1399, allocations: 4 kB / 0.5054 GB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.1399, allocations: 4 kB / 0.5054 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.14, allocations: 31.92 kB / 0.5054 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.1401, allocations: 15.97 kB / 0.5054 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.907e-05/0.1402, allocations: 23.77 kB / 0.5054 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.1402, allocations: 12 kB / 0.5054 GB, free: 8.684 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 19 (synchronizeRealtime.initialized,keyboardInput.KeyCode[10],keyboardInput.KeyCode[9],keyboardInput.KeyCode[8],keyboardInput.KeyCode[7],keyboardInput.KeyCode[6],keyboardInput.KeyCode[5],keyboardInput.KeyCode[4],keyboardInput.KeyCode[3],keyboardInput.KeyCode[2],keyboardInput.KeyCode[1],keyboardInput.keySpace,keyboardInput.keyReturn,keyboardInput.keyLeft,keyboardInput.keyRight,keyboardInput.keyDown,keyboardInput.keyUp,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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.0001896/0.1404, allocations: 203 kB / 0.5056 GB, free: 8.461 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001766/0.1405, allocations: 125.6 kB / 0.5058 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.44e-05/0.1406, allocations: 12.78 kB / 0.5058 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.1406, allocations: 7.984 kB / 0.5058 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/0.1406, allocations: 11.88 kB / 0.5058 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1406, allocations: 0 / 0.5058 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.1408, allocations: 117.3 kB / 0.5059 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.1408, allocations: 8 kB / 0.5059 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.147e-05/0.1408, allocations: 3.984 kB / 0.5059 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1408, allocations: 0 / 0.5059 GB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.1408, allocations: 4 kB / 0.5059 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.1408, allocations: 0 / 0.5059 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1408, allocations: 4 kB / 0.5059 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004254/0.1412, allocations: 393.1 kB / 0.5063 GB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.363e-05/0.1412, allocations: 7.953 kB / 0.5063 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.1413, allocations: 4 kB / 0.5063 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.762e-05/0.1413, allocations: 8 kB / 0.5063 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.013e-05/0.1414, allocations: 0 / 0.5063 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.1414, allocations: 4 kB / 0.5063 GB, free: 7.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.19e-05/0.1414, allocations: 99.27 kB / 0.5064 GB, free: 7.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1414, allocations: 0 / 0.5064 GB, free: 7.582 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003079/0.1417, allocations: 31.92 kB / 0.5064 GB, free: 7.551 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: 19 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,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: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * 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.0008171/0.1426, allocations: 284.9 kB / 0.5067 GB, free: 7.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004525/0.143, allocations: 346.3 kB / 0.507 GB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.143, allocations: 0 / 0.507 GB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.1432, allocations: 190.4 kB / 0.5072 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.1436, allocations: 78.42 kB / 0.5073 GB, free: 6.668 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005475/0.1441, allocations: 328.8 kB / 0.5076 GB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.1442, allocations: 96.98 kB / 0.5077 GB, free: 6.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.661e-05/0.1442, allocations: 11.44 kB / 0.5077 GB, free: 6.168 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1442, allocations: 0 / 0.5077 GB, free: 6.168 MB / 382.1 MB Notification: Performance of Templates: time 0.004023/0.1483, allocations: 1.791 MB / 0.5095 GB, free: 4.383 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile [Timeout 660] (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.198007235769182] Failed to read output from testmodel.py, exit status != 0: 0.15718400292098522 0.40507195700000004 0.267166351 Calling exit ...