Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.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.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001355, allocations: 171.7 kB / 16.8 MB, free: 4.902 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.354/1.354, allocations: 223.3 MB / 240.8 MB, free: 11.68 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.0007814/0.0007815, allocations: 103.5 kB / 292 MB, free: 10.77 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.05369/0.05369, allocations: 12.04 MB / 355.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003769, allocations: 8.844 kB / 419.2 MB, free: 53.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08172/0.08211, allocations: 53.34 MB / 472.5 MB, free: 252 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2977/0.3799, allocations: 81.35 MB / 0.5409 GB, free: 248 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.3801, allocations: 84.64 kB / 0.541 GB, free: 164 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005147/0.3853, allocations: 1.844 MB / 0.5428 GB, free: 14.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3853, allocations: 0 / 0.5428 GB, free: 14.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.3853, allocations: 8.188 kB / 0.5428 GB, free: 14.32 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003704/0.3857, allocations: 371.3 kB / 0.5431 GB, free: 13.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3857, allocations: 11.97 kB / 0.5431 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.3858, allocations: 8.844 kB / 0.5431 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.386, allocations: 188.2 kB / 0.5433 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.386, allocations: 8.375 kB / 0.5433 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.386, allocations: 384 / 0.5433 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/0.3862, allocations: 76.81 kB / 0.5434 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3862, allocations: 4.125 kB / 0.5434 GB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.3862, allocations: 8.688 kB / 0.5434 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3862, allocations: 0 / 0.5434 GB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.647e-05/0.3863, allocations: 23.97 kB / 0.5434 GB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003496/0.3867, allocations: 293.6 kB / 0.5437 GB, free: 13.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.3868, allocations: 77.08 kB / 0.5438 GB, free: 13.1 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.3868, allocations: 21.72 kB / 0.5438 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.3869, allocations: 0 / 0.5438 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/0.387, allocations: 93.12 kB / 0.5439 GB, free: 12.96 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.3871, allocations: 0 / 0.5439 GB, free: 12.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002176/0.3873, allocations: 93.52 kB / 0.544 GB, free: 12.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.537e-05/0.3873, allocations: 77.11 kB / 0.5441 GB, free: 12.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.3874, allocations: 125.8 kB / 0.5442 GB, free: 12.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.3875, allocations: 29.7 kB / 0.5442 GB, free: 12.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.3875, allocations: 92.05 kB / 0.5443 GB, free: 12.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.3876, allocations: 19.8 kB / 0.5443 GB, free: 12.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-06/0.3876, allocations: 0 / 0.5443 GB, free: 12.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3877, allocations: 322.8 kB / 0.5446 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.891e-05/0.3877, allocations: 15.98 kB / 0.5446 GB, free: 12.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.624e-05/0.3878, allocations: 65.62 kB / 0.5447 GB, free: 12.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.467e-05/0.3879, allocations: 64.27 kB / 0.5448 GB, free: 11.99 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3879, allocations: 0 / 0.5448 GB, free: 11.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001444/0.3881, allocations: 97.45 kB / 0.5449 GB, free: 11.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.3881, allocations: 4 kB / 0.5449 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.3881, allocations: 4 kB / 0.5449 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.3881, allocations: 0 / 0.5449 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.416e-05/0.3882, allocations: 11.94 kB / 0.5449 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.3882, allocations: 0 / 0.5449 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.592e-05/0.3883, allocations: 15.97 kB / 0.5449 GB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.3883, allocations: 8 kB / 0.5449 GB, free: 11.84 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,keyboardKeyInput.keyState,$PRE.keyboardKeyInput.keyStateInt,keyboardKeyInput.keyStateInt,$PRE.keyboardKeyInput.additionalKeyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.28e-05/0.3884, allocations: 121.8 kB / 0.545 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.3884, allocations: 7.906 kB / 0.545 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.041e-05/0.3885, allocations: 11.91 kB / 0.545 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3885, allocations: 0 / 0.545 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3885, allocations: 0 / 0.545 GB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.3885, allocations: 4 kB / 0.545 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.3886, allocations: 181.6 kB / 0.5452 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.257e-06/0.3886, allocations: 4 kB / 0.5452 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.974e-05/0.3887, allocations: 4 kB / 0.5452 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3887, allocations: 0 / 0.5452 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.3887, allocations: 3.984 kB / 0.5452 GB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.3887, allocations: 3.938 kB / 0.5452 GB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3887, allocations: 4.328 kB / 0.5452 GB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002105/0.3889, allocations: 133.8 kB / 0.5454 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/0.389, allocations: 85.3 kB / 0.5454 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.389, allocations: 15.91 kB / 0.5455 GB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.682e-05/0.3891, allocations: 7.984 kB / 0.5455 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.087e-05/0.3891, allocations: 7.984 kB / 0.5455 GB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.3891, allocations: 0 / 0.5455 GB, free: 11.15 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.307e-05/0.3892, allocations: 100.8 kB / 0.5456 GB, free: 11.05 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3892, allocations: 0 / 0.5456 GB, free: 11.05 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002327/0.3894, allocations: 28 kB / 0.5456 GB, free: 11.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (synchronizeRealtime.dummyState) * Number of discrete variables: 4 ($whenCondition1,keyboardKeyInput.keyState,keyboardKeyInput.keyStateInt,keyboardKeyInput.additionalKeyStateInt) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0005688/0.39, allocations: 309.9 kB / 0.5459 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001717/0.3902, allocations: 81.55 kB / 0.546 GB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3902, allocations: 0 / 0.546 GB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.437e-05/0.3903, allocations: 45.7 kB / 0.546 GB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.3904, allocations: 12.67 kB / 0.546 GB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.3915, allocations: 413.9 kB / 0.5464 GB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.3918, allocations: 0.6887 MB / 0.5471 GB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.759e-05/0.3918, allocations: 12.66 kB / 0.5471 GB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.767e-05/0.3919, allocations: 23.42 kB / 0.5471 GB, free: 9.461 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3919, allocations: 3.938 kB / 0.5471 GB, free: 9.457 MB / 362.7 MB Notification: Performance of Templates: time 0.00367/0.3956, allocations: 1.394 MB / 0.5485 GB, free: 8.074 MB / 362.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestInputKeyboardKey.pipe 2>&1)