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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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.001047/0.001047, allocations: 172.3 kB / 16.8 MB, free: 5.027 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.227/1.227, allocations: 223.3 MB / 240.8 MB, free: 11.73 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.000738/0.0007382, allocations: 109.3 kB / 292 MB, free: 10.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.05233/0.05234, allocations: 12.04 MB / 355.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003633, allocations: 12.78 kB / 419.2 MB, free: 53.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08779, allocations: 53.35 MB / 472.5 MB, free: 260 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2827/0.3705, allocations: 81.55 MB / 0.5411 GB, free: 40 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.3707, allocations: 71.97 kB / 0.5411 GB, free: 15.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004593/0.3754, allocations: 1.731 MB / 0.5428 GB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3754, allocations: 0 / 0.5428 GB, free: 14.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.3754, allocations: 8 kB / 0.5428 GB, free: 14.25 MB / 362.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.0003908/0.3758, allocations: 426.7 kB / 0.5433 GB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3759, allocations: 8.031 kB / 0.5433 GB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.764e-05/0.3759, allocations: 12.84 kB / 0.5433 GB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002095/0.3761, allocations: 200.1 kB / 0.5435 GB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.3762, allocations: 4.375 kB / 0.5435 GB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.3762, allocations: 8.375 kB / 0.5435 GB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004002/0.3766, allocations: 266.8 kB / 0.5437 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.3766, allocations: 0 / 0.5437 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.3766, allocations: 4 kB / 0.5437 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.3766, allocations: 8 kB / 0.5437 GB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.3768, allocations: 59.95 kB / 0.5438 GB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003467/0.3771, allocations: 309.5 kB / 0.5441 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.3773, allocations: 129.3 kB / 0.5442 GB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.3774, allocations: 77.8 kB / 0.5443 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.3774, allocations: 4 kB / 0.5443 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.3775, allocations: 34.56 kB / 0.5443 GB, free: 12.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.362e-06/0.3775, allocations: 0 / 0.5443 GB, free: 12.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003777/0.3778, allocations: 252.8 kB / 0.5446 GB, free: 12.26 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/0.3779, allocations: 142.5 kB / 0.5447 GB, free: 12.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.595e-05/0.378, allocations: 121.9 kB / 0.5448 GB, free: 11.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.3781, allocations: 29.7 kB / 0.5448 GB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.368e-05/0.3781, allocations: 88.42 kB / 0.5449 GB, free: 11.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.3781, allocations: 19.89 kB / 0.545 GB, free: 11.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-06/0.3781, allocations: 4 kB / 0.545 GB, free: 11.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.196e-05/0.3782, allocations: 322.8 kB / 0.5453 GB, free: 11.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.807e-05/0.3783, allocations: 27.98 kB / 0.5453 GB, free: 11.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.3784, allocations: 157.1 kB / 0.5454 GB, free: 11.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.3787, allocations: 308.8 kB / 0.5457 GB, free: 10.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3787, allocations: 0 / 0.5457 GB, free: 10.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003179/0.379, allocations: 256.8 kB / 0.546 GB, free: 10.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.379, allocations: 59.41 kB / 0.546 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3791, allocations: 4 kB / 0.546 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.3791, allocations: 4 kB / 0.546 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.416e-05/0.3792, allocations: 31.92 kB / 0.5461 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.3792, allocations: 17.17 kB / 0.5461 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.537e-05/0.3793, allocations: 15.78 kB / 0.5461 GB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.3793, allocations: 16.38 kB / 0.5461 GB, free: 10.43 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.3794, allocations: 199.4 kB / 0.5463 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.3796, allocations: 121.4 kB / 0.5464 GB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.181e-05/0.3796, allocations: 16.83 kB / 0.5464 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.247e-05/0.3796, allocations: 8 kB / 0.5465 GB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/0.3797, allocations: 3.938 kB / 0.5465 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3797, allocations: 0 / 0.5465 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001603/0.3798, allocations: 185.6 kB / 0.5466 GB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3798, allocations: 0 / 0.5466 GB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.39e-05/0.3799, allocations: 11.98 kB / 0.5466 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3799, allocations: 0 / 0.5466 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.3799, allocations: 4 kB / 0.5466 GB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3799, allocations: 0 / 0.5466 GB, free: 9.816 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3799, allocations: 3.938 kB / 0.5467 GB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.3802, allocations: 328.7 kB / 0.547 GB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.205e-05/0.3802, allocations: 97.11 kB / 0.5471 GB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.3803, allocations: 11.98 kB / 0.5471 GB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.039e-05/0.3803, allocations: 3.938 kB / 0.5471 GB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/0.3804, allocations: 8 kB / 0.5471 GB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-06/0.3804, allocations: 4 kB / 0.5471 GB, free: 9.324 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.666e-05/0.3804, allocations: 91.27 kB / 0.5472 GB, free: 9.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3804, allocations: 0 / 0.5472 GB, free: 9.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002951/0.3807, allocations: 39.94 kB / 0.5472 GB, free: 9.195 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) * 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 (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.0005025/0.3812, allocations: 262.6 kB / 0.5475 GB, free: 9.004 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003125/0.3816, allocations: 250.4 kB / 0.5477 GB, free: 8.734 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3816, allocations: 1.25 kB / 0.5477 GB, free: 8.734 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.958e-05/0.3817, allocations: 122.8 kB / 0.5478 GB, free: 8.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.382, allocations: 88.55 kB / 0.5479 GB, free: 8.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.3831, allocations: 475 kB / 0.5484 GB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.3834, allocations: 0.7197 MB / 0.5491 GB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.502e-05/0.3835, allocations: 20.94 kB / 0.5491 GB, free: 7.242 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.3835, allocations: 15.44 kB / 0.5491 GB, free: 7.227 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3835, allocations: 4 kB / 0.5491 GB, free: 7.223 MB / 362.7 MB Notification: Performance of Templates: time 0.003936/0.3874, allocations: 1.435 MB / 0.5505 GB, free: 5.793 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)