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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 108.5 kB / 17.07 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 196 kB / 18.01 MB, free: 5.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05355/0.05355, allocations: 12.04 MB / 303.9 MB, free: 3.117 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.89 kB / 367.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1698/0.171, allocations: 52.33 MB / 420.2 MB, free: 21.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.002808/0.1739, allocations: 2.232 MB / 422.5 MB, free: 18.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002097/0.1741, allocations: 123.6 kB / 422.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.054e-05/0.1742, allocations: 3.469 kB / 422.6 MB, free: 18.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.1743, allocations: 31.78 kB / 422.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.141e-05/0.1744, allocations: 3.938 kB / 422.6 MB, free: 18.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001722/0.1745, allocations: 47.83 kB / 422.7 MB, free: 18.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.1747, allocations: 83.7 kB / 422.8 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.194e-05/0.1748, allocations: 24.2 kB / 422.8 MB, free: 18.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.161e-05/0.1748, allocations: 31.86 kB / 422.8 MB, free: 18.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.09e-05/0.1749, allocations: 35.84 kB / 422.9 MB, free: 18.49 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.1749, allocations: 4 kB / 422.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.219e-05/0.1749, allocations: 26.66 kB / 422.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.263e-05/0.175, allocations: 23.91 kB / 422.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.734e-05/0.175, allocations: 43.73 kB / 422.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.1752, allocations: 111.6 kB / 423.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1752, allocations: 0 / 423.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1752, allocations: 0 / 423.1 MB, free: 18.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.1752, allocations: 0 / 423.1 MB, free: 18.29 MB / 302.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.0003188/0.1755, allocations: 451.7 kB / 423.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.653e-05/0.1756, allocations: 12.03 kB / 423.5 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.1756, allocations: 12.75 kB / 423.5 MB, free: 17.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000168/0.1758, allocations: 196.1 kB / 423.7 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1758, allocations: 8.375 kB / 423.7 MB, free: 17.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.1758, allocations: 12.36 kB / 423.7 MB, free: 17.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003203/0.1762, allocations: 273 kB / 424 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.1762, allocations: 0 / 424 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.1762, allocations: 0 / 424 MB, free: 17.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.1762, allocations: 19.98 kB / 424 MB, free: 17.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.52e-05/0.1763, allocations: 55.97 kB / 424.1 MB, free: 17.16 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002534/0.1766, allocations: 301.5 kB / 424.4 MB, free: 16.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.1767, allocations: 137.4 kB / 424.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.745e-05/0.1768, allocations: 69.78 kB / 424.6 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.1768, allocations: 0 / 424.6 MB, free: 16.58 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.1768, allocations: 30.56 kB / 424.6 MB, free: 16.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.003e-06/0.1768, allocations: 0 / 424.6 MB, free: 16.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0003074/0.1772, allocations: 260.7 kB / 424.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.1772, allocations: 140.5 kB / 425 MB, free: 16.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.132e-05/0.1773, allocations: 125.8 kB / 425.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-06/0.1773, allocations: 25.7 kB / 425.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.094e-05/0.1773, allocations: 92.5 kB / 425.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.1773, allocations: 19.75 kB / 425.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.55e-05/0.1774, allocations: 41.7 kB / 425.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.703e-05/0.1774, allocations: 326.8 kB / 425.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.929e-05/0.1775, allocations: 31.97 kB / 425.6 MB, free: 15.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.311e-05/0.1776, allocations: 157.1 kB / 425.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.1777, allocations: 299.8 kB / 426.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1777, allocations: 7.938 kB / 426.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002338/0.178, allocations: 256.6 kB / 426.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.579e-05/0.178, allocations: 61.91 kB / 426.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.178, allocations: 4 kB / 426.4 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.178, allocations: 8 kB / 426.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.807e-05/0.1781, allocations: 31.86 kB / 426.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.1781, allocations: 12.55 kB / 426.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/0.1782, allocations: 19.84 kB / 426.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.291e-05/0.1782, allocations: 12 kB / 426.5 MB, free: 14.39 MB / 302.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 8.577e-05/0.1783, allocations: 203.5 kB / 426.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.1784, allocations: 125.4 kB / 426.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.1785, allocations: 12.84 kB / 426.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.1785, allocations: 7.938 kB / 426.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.1785, allocations: 4 kB / 426.8 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1785, allocations: 7.984 kB / 426.8 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.1786, allocations: 189.5 kB / 427 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1786, allocations: 4 kB / 427 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.789e-06/0.1786, allocations: 0 / 427 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1786, allocations: 0 / 427 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.1786, allocations: 4 kB / 427 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.1786, allocations: 3.938 kB / 427 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1787, allocations: 0 / 427 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002069/0.1789, allocations: 332.6 kB / 427.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.161e-05/0.1789, allocations: 92.94 kB / 427.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.1789, allocations: 0 / 427.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.287e-05/0.179, allocations: 4 kB / 427.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.179, allocations: 4 kB / 427.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.179, allocations: 4 kB / 427.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.866e-05/0.1791, allocations: 91.27 kB / 427.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1791, allocations: 4 kB / 427.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002773/0.1793, allocations: 24 kB / 427.6 MB, free: 13.16 MB / 302.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.0004104/0.1798, allocations: 268.5 kB / 427.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002135/0.18, allocations: 251.3 kB / 428.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.18, allocations: 320 / 428.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.438e-05/0.18, allocations: 126.8 kB / 428.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.1803, allocations: 80.06 kB / 428.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.1807, allocations: 247.6 kB / 428.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001215/0.1808, allocations: 0.7117 MB / 429.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.554e-05/0.1809, allocations: 21.06 kB / 429.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.773e-05/0.1809, allocations: 15.44 kB / 429.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1809, allocations: 0 / 429.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Templates: time 0.003263/0.1842, allocations: 1.51 MB / 430.8 MB, free: 9.914 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.makefile (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 -s gbode -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)