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.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.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.0009174/0.0009171, allocations: 181 kB / 15.8 MB, free: 6.34 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.179/1.179, allocations: 223.2 MB / 239.7 MB, free: 1.762 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008338/0.0008338, allocations: 98.14 kB / 290.9 MB, free: 13.94 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.05116/0.05116, allocations: 12.05 MB / 354 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002918/0.0002918, allocations: 10.31 kB / 417.9 MB, free: 87.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08292/0.08323, allocations: 53.35 MB / 471.2 MB, free: 37.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2778/0.3611, allocations: 81.7 MB / 0.54 GB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.3613, allocations: 74.66 kB / 0.5401 GB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005118/0.3664, allocations: 1.962 MB / 0.542 GB, free: 31.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3665, allocations: 0.875 kB / 0.542 GB, free: 31.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.3665, allocations: 7.812 kB / 0.542 GB, free: 31.12 MB / 378.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.0002877/0.3668, allocations: 420.1 kB / 0.5424 GB, free: 30.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.3668, allocations: 7.812 kB / 0.5424 GB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.3669, allocations: 11.53 kB / 0.5424 GB, free: 30.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.367, allocations: 195.9 kB / 0.5426 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.3671, allocations: 11.81 kB / 0.5426 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.904e-05/0.3671, allocations: 3.875 kB / 0.5426 GB, free: 30.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.3674, allocations: 152.8 kB / 0.5427 GB, free: 30.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.3674, allocations: 11.83 kB / 0.5428 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.3674, allocations: 2.75 kB / 0.5428 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3674, allocations: 0 / 0.5428 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.625e-05/0.3675, allocations: 30.88 kB / 0.5428 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002753/0.3678, allocations: 282.6 kB / 0.5431 GB, free: 30.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001463/0.3679, allocations: 165.4 kB / 0.5432 GB, free: 29.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.3679, allocations: 8.875 kB / 0.5432 GB, free: 29.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.247e-05/0.368, allocations: 34.53 kB / 0.5433 GB, free: 29.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.753e-06/0.368, allocations: 3.984 kB / 0.5433 GB, free: 29.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003054/0.3683, allocations: 240.7 kB / 0.5435 GB, free: 29.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.3683, allocations: 138.5 kB / 0.5436 GB, free: 29.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.528e-05/0.3684, allocations: 130 kB / 0.5437 GB, free: 29.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.3684, allocations: 25.7 kB / 0.5438 GB, free: 29.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.271e-05/0.3685, allocations: 96.86 kB / 0.5439 GB, free: 29.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.129e-05/0.3685, allocations: 11.78 kB / 0.5439 GB, free: 29.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.3685, allocations: 3.938 kB / 0.5439 GB, free: 29.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.871e-05/0.3685, allocations: 318.5 kB / 0.5442 GB, free: 29.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.232e-05/0.3686, allocations: 16.22 kB / 0.5442 GB, free: 29.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.83e-05/0.3686, allocations: 61.89 kB / 0.5443 GB, free: 28.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.264e-05/0.3687, allocations: 71.62 kB / 0.5443 GB, free: 28.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.3687, allocations: 4 kB / 0.5443 GB, free: 28.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001437/0.3688, allocations: 156.6 kB / 0.5445 GB, free: 28.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.3689, allocations: 64.77 kB / 0.5445 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.3689, allocations: 3.875 kB / 0.5445 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.3689, allocations: 0 / 0.5445 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.29e-05/0.3689, allocations: 11.7 kB / 0.5446 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.369, allocations: 0 / 0.5446 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.799e-05/0.369, allocations: 8.031 kB / 0.5446 GB, free: 28.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.369, allocations: 7.938 kB / 0.5446 GB, free: 28.71 MB / 378.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 7.254e-05/0.3691, allocations: 184.1 kB / 0.5447 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.3692, allocations: 62.05 kB / 0.5448 GB, free: 28.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.467e-05/0.3692, allocations: 9.359 kB / 0.5448 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3692, allocations: 3.969 kB / 0.5448 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3692, allocations: 0 / 0.5448 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3692, allocations: 0 / 0.5448 GB, free: 28.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.3694, allocations: 182.6 kB / 0.545 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3694, allocations: 0 / 0.545 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-05/0.3694, allocations: 10.52 kB / 0.545 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.3694, allocations: 7.891 kB / 0.545 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.3694, allocations: 3.938 kB / 0.545 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3694, allocations: 0 / 0.545 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3694, allocations: 5.641 kB / 0.545 GB, free: 28.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001826/0.3696, allocations: 263.9 kB / 0.5453 GB, free: 28.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.459e-05/0.3697, allocations: 95.22 kB / 0.5454 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.3697, allocations: 0 / 0.5454 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.061e-05/0.3698, allocations: 7.25 kB / 0.5454 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.656e-05/0.3698, allocations: 5.672 kB / 0.5454 GB, free: 27.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.275e-06/0.3698, allocations: 1.734 kB / 0.5454 GB, free: 27.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.78e-05/0.3698, allocations: 101.1 kB / 0.5455 GB, free: 27.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3698, allocations: 0 / 0.5455 GB, free: 27.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002633/0.3701, allocations: 36.14 kB / 0.5455 GB, free: 27.89 MB / 378.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.0005231/0.3706, allocations: 302.7 kB / 0.5458 GB, free: 27.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.3708, allocations: 171.1 kB / 0.546 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3708, allocations: 3.844 kB / 0.546 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.086e-05/0.3709, allocations: 116.8 kB / 0.5461 GB, free: 27.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001813/0.3711, allocations: 29.91 kB / 0.5461 GB, free: 27.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009344/0.372, allocations: 418.7 kB / 0.5465 GB, free: 27.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.3723, allocations: 0.6973 MB / 0.5472 GB, free: 26.61 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.093e-05/0.3724, allocations: 18.8 kB / 0.5472 GB, free: 26.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.165e-05/0.3724, allocations: 17.17 kB / 0.5472 GB, free: 26.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3724, allocations: 0 / 0.5472 GB, free: 26.59 MB / 378.7 MB Notification: Performance of Templates: time 0.00351/0.3759, allocations: 1.59 MB / 0.5488 GB, free: 26.4 MB / 378.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)