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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 222.9 MB / 240.3 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000954/0.000954, allocations: 109.9 kB / 290.6 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05168/0.05168, allocations: 12.03 MB / 352.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009456/0.0009457, allocations: 55.8 kB / 415.8 MB, free: 53.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08223/0.08319, allocations: 52.33 MB / 468.2 MB, free: 1.555 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard): time 0.003278/0.08652, allocations: 2.262 MB / 470.4 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002383/0.08679, allocations: 135.5 kB / 470.6 MB, free: 15.14 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.656e-05/0.08686, allocations: 7.938 kB / 470.6 MB, free: 15.13 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.08701, allocations: 27.91 kB / 470.6 MB, free: 15.11 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 5.963e-05/0.08709, allocations: 3.938 kB / 470.6 MB, free: 15.1 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.08729, allocations: 35.97 kB / 470.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.08741, allocations: 71.78 kB / 470.7 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.688e-05/0.08751, allocations: 24.19 kB / 470.7 MB, free: 14.97 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.044e-05/0.08757, allocations: 35.84 kB / 470.8 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.215e-05/0.08763, allocations: 27.84 kB / 470.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.08765, allocations: 4 kB / 470.8 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.631e-05/0.08772, allocations: 20 kB / 470.8 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.847e-05/0.08777, allocations: 23.86 kB / 470.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.722e-05/0.08784, allocations: 43.73 kB / 470.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.088, allocations: 103.6 kB / 471 MB, free: 14.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.08802, allocations: 4 kB / 471 MB, free: 14.71 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.08802, allocations: 0 / 471 MB, free: 14.71 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.08803, allocations: 0 / 471 MB, free: 14.71 MB / 314.7 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.000428/0.08847, allocations: 447 kB / 471.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.0885, allocations: 8.031 kB / 471.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.08855, allocations: 16.75 kB / 471.5 MB, free: 14.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001904/0.08875, allocations: 196.1 kB / 471.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.08877, allocations: 12.38 kB / 471.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.08879, allocations: 12.38 kB / 471.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003638/0.08916, allocations: 253.4 kB / 471.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.08919, allocations: 4 kB / 471.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.0892, allocations: 7.984 kB / 471.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.731e-05/0.08923, allocations: 8 kB / 471.9 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.934e-05/0.08933, allocations: 59.97 kB / 472 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003268/0.08966, allocations: 301.5 kB / 472.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001776/0.08986, allocations: 136.4 kB / 472.4 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.285e-05/0.08996, allocations: 69.77 kB / 472.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.08998, allocations: 0 / 472.5 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.09002, allocations: 46.55 kB / 472.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.09002, allocations: 0 / 472.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003705/0.0904, allocations: 259.3 kB / 472.8 MB, free: 12.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.09047, allocations: 140.5 kB / 472.9 MB, free: 12.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.09057, allocations: 121.7 kB / 473 MB, free: 12.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.09059, allocations: 29.7 kB / 473.1 MB, free: 12.37 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.167e-05/0.09065, allocations: 92.48 kB / 473.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.09068, allocations: 23.8 kB / 473.2 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/0.09074, allocations: 41.7 kB / 473.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.943e-05/0.09084, allocations: 326.8 kB / 473.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.879e-05/0.09091, allocations: 31.97 kB / 473.6 MB, free: 11.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.09103, allocations: 149.2 kB / 473.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002248/0.09126, allocations: 311.8 kB / 474 MB, free: 11.24 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.09127, allocations: 0 / 474 MB, free: 11.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002898/0.09157, allocations: 248.6 kB / 474.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.145e-05/0.09162, allocations: 63.39 kB / 474.3 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.09163, allocations: 7.938 kB / 474.3 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.09165, allocations: 8.625 kB / 474.3 MB, free: 10.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-05/0.09175, allocations: 27.94 kB / 474.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.09177, allocations: 15.91 kB / 474.4 MB, free: 10.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.764e-05/0.09185, allocations: 19.84 kB / 474.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.09187, allocations: 15.94 kB / 474.4 MB, free: 10.81 MB / 314.7 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.000174/0.09205, allocations: 195.4 kB / 474.6 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.0922, allocations: 125.4 kB / 474.7 MB, free: 10.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.775e-05/0.09224, allocations: 8.844 kB / 474.7 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.09225, allocations: 11.94 kB / 474.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.09226, allocations: 4 kB / 474.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.09227, allocations: 3.984 kB / 474.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.09243, allocations: 193.5 kB / 475 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.09244, allocations: 0 / 475 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.088e-05/0.09246, allocations: 4 kB / 475 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.09247, allocations: 4 kB / 475 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.09248, allocations: 0 / 475 MB, free: 10.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.09249, allocations: 3.938 kB / 475 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.0925, allocations: 4 kB / 475 MB, free: 10.19 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00058/0.09308, allocations: 0.9271 MB / 475.9 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-05/0.09313, allocations: 88.95 kB / 476 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.09316, allocations: 8 kB / 476 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.278e-05/0.09321, allocations: 7.938 kB / 476 MB, free: 9.066 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.686e-05/0.09325, allocations: 3.984 kB / 476 MB, free: 9.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.09326, allocations: 8 kB / 476 MB, free: 9.055 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.879e-05/0.09332, allocations: 99.75 kB / 476.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09332, allocations: 0 / 476.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003952/0.09372, allocations: 32 kB / 476.1 MB, free: 8.926 MB / 314.7 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.0004568/0.09419, allocations: 276.9 kB / 476.4 MB, free: 8.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002544/0.09445, allocations: 240.3 kB / 476.6 MB, free: 8.465 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.09446, allocations: 0 / 476.6 MB, free: 8.465 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.679e-05/0.09453, allocations: 122.8 kB / 476.8 MB, free: 8.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.09487, allocations: 80.14 kB / 476.8 MB, free: 8.242 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005663/0.09545, allocations: 465.1 kB / 477.3 MB, free: 7.742 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002337/0.09569, allocations: 0.7161 MB / 478 MB, free: 7 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.584e-05/0.09576, allocations: 16.86 kB / 478 MB, free: 6.984 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.896e-05/0.09578, allocations: 11.44 kB / 478 MB, free: 6.973 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.09579, allocations: 0 / 478 MB, free: 6.973 MB / 314.7 MB Notification: Performance of Templates: time 0.003628/0.09942, allocations: 1.554 MB / 479.6 MB, free: 5.426 MB / 314.7 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 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboard.pipe 2>&1)