Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.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.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008697/0.0008697, allocations: 171.8 kB / 16.8 MB, free: 5.016 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.263/1.263, allocations: 223.3 MB / 240.8 MB, free: 9.969 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.00082/0.0008199, allocations: 103.7 kB / 292 MB, free: 10.55 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.05411/0.05411, allocations: 12.05 MB / 355.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.000333, allocations: 17.28 kB / 419.2 MB, free: 53.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07854/0.07888, allocations: 53.34 MB / 472.5 MB, free: 216 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2843/0.3632, allocations: 81.73 MB / 0.5413 GB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.3635, allocations: 76.58 kB / 0.5413 GB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005439/0.3689, allocations: 1.943 MB / 0.5432 GB, free: 13.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.369, allocations: 0 / 0.5432 GB, free: 13.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.369, allocations: 4 kB / 0.5432 GB, free: 13.82 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003922/0.3694, allocations: 426.8 kB / 0.5436 GB, free: 13.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.3694, allocations: 8.031 kB / 0.5436 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.3695, allocations: 9.031 kB / 0.5437 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.3697, allocations: 200.1 kB / 0.5438 GB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.3697, allocations: 4.375 kB / 0.5438 GB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.3698, allocations: 12.31 kB / 0.5439 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.3701, allocations: 158.1 kB / 0.544 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.3701, allocations: 192 / 0.544 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.3701, allocations: 7.938 kB / 0.544 GB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3701, allocations: 0 / 0.544 GB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.718e-05/0.3702, allocations: 27.98 kB / 0.544 GB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003598/0.3706, allocations: 297.6 kB / 0.5443 GB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.3708, allocations: 154.3 kB / 0.5445 GB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.692e-05/0.3709, allocations: 33.69 kB / 0.5445 GB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.3709, allocations: 11.98 kB / 0.5445 GB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.976e-05/0.3709, allocations: 30.56 kB / 0.5445 GB, free: 12.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.3709, allocations: 4 kB / 0.5446 GB, free: 12.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003202/0.3712, allocations: 165.8 kB / 0.5447 GB, free: 12.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/0.3713, allocations: 132.5 kB / 0.5448 GB, free: 11.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.3715, allocations: 136.5 kB / 0.545 GB, free: 11.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.3715, allocations: 25.7 kB / 0.545 GB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.3715, allocations: 96.05 kB / 0.5451 GB, free: 11.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.3716, allocations: 15.83 kB / 0.5451 GB, free: 11.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.3716, allocations: 4 kB / 0.5451 GB, free: 11.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3717, allocations: 318.9 kB / 0.5454 GB, free: 11.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/0.3717, allocations: 15.98 kB / 0.5454 GB, free: 11.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.549e-05/0.3718, allocations: 57.95 kB / 0.5455 GB, free: 11.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001395/0.3719, allocations: 180.8 kB / 0.5456 GB, free: 10.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3719, allocations: 0 / 0.5456 GB, free: 10.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000189/0.3721, allocations: 156.9 kB / 0.5458 GB, free: 10.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.775e-05/0.3722, allocations: 67.55 kB / 0.5459 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3722, allocations: 4 kB / 0.5459 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3722, allocations: 4 kB / 0.5459 GB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.444e-05/0.3723, allocations: 4 kB / 0.5459 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3723, allocations: 4 kB / 0.5459 GB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.125e-05/0.3723, allocations: 12.19 kB / 0.5459 GB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.3724, allocations: 8 kB / 0.5459 GB, free: 10.69 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 6 (synchronizeRealtime.initialized,keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.keyStateInt,keyboardKeyInput.keyState,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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.000118/0.3725, allocations: 181.2 kB / 0.5461 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3726, allocations: 69.45 kB / 0.5461 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.293e-05/0.3727, allocations: 16.3 kB / 0.5462 GB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.3727, allocations: 4 kB / 0.5462 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3727, allocations: 0 / 0.5462 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3727, allocations: 0 / 0.5462 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001769/0.3729, allocations: 181.6 kB / 0.5463 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3729, allocations: 0 / 0.5463 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-05/0.3729, allocations: 4 kB / 0.5463 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3729, allocations: 0 / 0.5463 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3729, allocations: 8 kB / 0.5463 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3729, allocations: 0 / 0.5463 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3729, allocations: 0 / 0.5463 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002422/0.3732, allocations: 264 kB / 0.5466 GB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-05/0.3732, allocations: 93 kB / 0.5467 GB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.054e-05/0.3733, allocations: 4 kB / 0.5467 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.848e-05/0.3733, allocations: 0 / 0.5467 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.3734, allocations: 8 kB / 0.5467 GB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.3734, allocations: 4 kB / 0.5467 GB, free: 9.746 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.06e-05/0.3734, allocations: 99.25 kB / 0.5468 GB, free: 9.648 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3734, allocations: 4 kB / 0.5468 GB, free: 9.645 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002623/0.3737, allocations: 31.94 kB / 0.5468 GB, free: 9.613 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: 6 (synchronizeRealtime.initialized,assignClock1.u,assignClock1.y,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 1 (synchronizeRealtime.initialized) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0005637/0.3743, allocations: 310.7 kB / 0.5471 GB, free: 9.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002075/0.3745, allocations: 166.7 kB / 0.5473 GB, free: 9.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3745, allocations: 448 / 0.5473 GB, free: 9.195 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.595e-05/0.3746, allocations: 122.8 kB / 0.5474 GB, free: 9.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.3749, allocations: 32.52 kB / 0.5474 GB, free: 9.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001061/0.376, allocations: 426.3 kB / 0.5478 GB, free: 8.574 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.3762, allocations: 0.6926 MB / 0.5485 GB, free: 7.855 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.516e-05/0.3763, allocations: 12.66 kB / 0.5485 GB, free: 7.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.392e-05/0.3763, allocations: 11.44 kB / 0.5485 GB, free: 7.828 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3763, allocations: 0 / 0.5485 GB, free: 7.828 MB / 362.7 MB Notification: Performance of Templates: time 0.004168/0.3805, allocations: 1.593 MB / 0.5501 GB, free: 6.246 MB / 362.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey.pipe 2>&1)