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.00103/0.00103, allocations: 181.4 kB / 13.23 MB, free: 2.086 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.329/1.329, allocations: 221.4 MB / 235.1 MB, free: 14.38 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.0008639/0.0008638, allocations: 106.5 kB / 286.1 MB, free: 12.98 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.05476/0.05476, allocations: 11.9 MB / 348.9 MB, free: 14.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.603e-05/3.605e-05, allocations: 0 / 410.1 MB, free: 58.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09791, allocations: 53.35 MB / 463.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3946/0.4926, allocations: 81.47 MB / 0.5322 GB, free: 1.777 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002023/0.4928, allocations: 78.83 kB / 0.5322 GB, free: 1.738 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004483/0.4973, allocations: 1.716 MB / 0.5339 GB, free: 248 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4973, allocations: 0 / 0.5339 GB, free: 248 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.4974, allocations: 0 / 0.5339 GB, free: 248 kB / 346.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.0004859/0.4979, allocations: 422.5 kB / 0.5343 GB, free: 15.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.4979, allocations: 11.97 kB / 0.5343 GB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.722e-05/0.498, allocations: 15.81 kB / 0.5343 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.4983, allocations: 193.4 kB / 0.5345 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.4983, allocations: 7.312 kB / 0.5345 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.4983, allocations: 8 kB / 0.5345 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004618/0.4988, allocations: 271.3 kB / 0.5348 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.4988, allocations: 0 / 0.5348 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.4989, allocations: 0 / 0.5348 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/0.4989, allocations: 8 kB / 0.5348 GB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.499, allocations: 68.78 kB / 0.5349 GB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.4994, allocations: 289.8 kB / 0.5351 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002102/0.4997, allocations: 133.2 kB / 0.5353 GB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.44e-05/0.4998, allocations: 69.7 kB / 0.5353 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.312e-05/0.4998, allocations: 4.031 kB / 0.5353 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.4999, allocations: 38 kB / 0.5354 GB, free: 14.69 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.442e-06/0.4999, allocations: 0 / 0.5354 GB, free: 14.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003201/0.5002, allocations: 195.3 kB / 0.5356 GB, free: 14.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.754e-05/0.5003, allocations: 139.5 kB / 0.5357 GB, free: 14.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.5004, allocations: 118.8 kB / 0.5358 GB, free: 14.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.5004, allocations: 25.7 kB / 0.5358 GB, free: 14.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.749e-05/0.5005, allocations: 92.02 kB / 0.5359 GB, free: 14.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.5005, allocations: 22.83 kB / 0.5359 GB, free: 14.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.5005, allocations: 3.562 kB / 0.5359 GB, free: 14.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.5007, allocations: 322.5 kB / 0.5363 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.414e-05/0.5007, allocations: 31.12 kB / 0.5363 GB, free: 13.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.5009, allocations: 154.9 kB / 0.5364 GB, free: 13.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001007/0.501, allocations: 114.6 kB / 0.5365 GB, free: 13.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.501, allocations: 7.984 kB / 0.5365 GB, free: 13.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002963/0.5013, allocations: 243 kB / 0.5368 GB, free: 13.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.163e-05/0.5014, allocations: 59.41 kB / 0.5368 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.5014, allocations: 4 kB / 0.5368 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.5014, allocations: 12.61 kB / 0.5368 GB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.282e-05/0.5015, allocations: 27.44 kB / 0.5369 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.462e-05/0.5015, allocations: 19.91 kB / 0.5369 GB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.288e-05/0.5016, allocations: 11.91 kB / 0.5369 GB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.5016, allocations: 11.56 kB / 0.5369 GB, free: 13.05 MB / 362.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.5018, allocations: 193.5 kB / 0.5371 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.5019, allocations: 118.5 kB / 0.5372 GB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.502, allocations: 15.61 kB / 0.5372 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.502, allocations: 8 kB / 0.5372 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.502, allocations: 4 kB / 0.5372 GB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.502, allocations: 3.938 kB / 0.5372 GB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.5022, allocations: 192.1 kB / 0.5374 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.5022, allocations: 0 / 0.5374 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.098e-05/0.5022, allocations: 3.562 kB / 0.5374 GB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.5023, allocations: 4 kB / 0.5374 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.5023, allocations: 0 / 0.5374 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.5023, allocations: 8 kB / 0.5374 GB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.5023, allocations: 3.984 kB / 0.5374 GB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003426/0.5026, allocations: 335.2 kB / 0.5378 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-05/0.5027, allocations: 88.92 kB / 0.5379 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.5027, allocations: 7.438 kB / 0.5379 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.422e-05/0.5028, allocations: 0 / 0.5379 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.5028, allocations: 7.984 kB / 0.5379 GB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.5028, allocations: 7.375 kB / 0.5379 GB, free: 12.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.351e-05/0.5029, allocations: 86.72 kB / 0.538 GB, free: 11.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.044e-06/0.5029, allocations: 4 kB / 0.538 GB, free: 11.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002885/0.5032, allocations: 46.86 kB / 0.538 GB, free: 11.9 MB / 362.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006638/0.5039, allocations: 257.1 kB / 0.5382 GB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002887/0.5042, allocations: 238.3 kB / 0.5385 GB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5042, allocations: 0 / 0.5385 GB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.697e-05/0.5043, allocations: 122.2 kB / 0.5386 GB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.5046, allocations: 80.83 kB / 0.5387 GB, free: 11.28 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009986/0.5056, allocations: 389 kB / 0.539 GB, free: 10.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.506, allocations: 0.7199 MB / 0.5397 GB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.359e-05/0.506, allocations: 16.81 kB / 0.5398 GB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.149e-05/0.5061, allocations: 11.44 kB / 0.5398 GB, free: 10.16 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5061, allocations: 0 / 0.5398 GB, free: 10.16 MB / 362.7 MB Notification: Performance of Templates: time 0.004792/0.5109, allocations: 1.454 MB / 0.5412 GB, free: 8.711 MB / 362.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)