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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009724/0.0009724, allocations: 105.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 186.4 kB / 17.39 MB, free: 5.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05152/0.05152, allocations: 12.05 MB / 303.3 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 63.89 kB / 420.1 MB, free: 17.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09133, allocations: 52.31 MB / 472.4 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.0035/0.09487, allocations: 2.25 MB / 474.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003086/0.0952, allocations: 171.5 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.454e-05/0.09527, allocations: 4 kB / 474.8 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.09542, allocations: 19.81 kB / 474.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.09557, allocations: 43.8 kB / 474.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.09574, allocations: 43.89 kB / 474.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.09588, allocations: 83.7 kB / 475 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.096, allocations: 36.19 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.908e-05/0.09606, allocations: 31.84 kB / 475 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.503e-05/0.09611, allocations: 31.84 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.09613, allocations: 4 kB / 475.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001664/0.0963, allocations: 131.9 kB / 475.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.292e-05/0.09633, allocations: 15.91 kB / 475.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.455e-05/0.09638, allocations: 35.8 kB / 475.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.0966, allocations: 139.6 kB / 475.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.09661, allocations: 0 / 475.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.09662, allocations: 4 kB / 475.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.09663, allocations: 0 / 475.4 MB, free: 9.793 MB / 350.1 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.0004326/0.09707, allocations: 450.6 kB / 475.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.09711, allocations: 8.031 kB / 475.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.119e-05/0.09715, allocations: 16.69 kB / 475.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.09737, allocations: 196.2 kB / 476.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.0974, allocations: 4.375 kB / 476.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.64e-05/0.09742, allocations: 8.375 kB / 476.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.0977, allocations: 153.5 kB / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.09772, allocations: 192 / 476.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.09773, allocations: 3.938 kB / 476.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.09774, allocations: 4 kB / 476.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.402e-05/0.09782, allocations: 31.92 kB / 476.3 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003264/0.09816, allocations: 305.6 kB / 476.6 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.09834, allocations: 150.2 kB / 476.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.665e-05/0.09842, allocations: 45.72 kB / 476.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.09844, allocations: 0 / 476.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.614e-05/0.09848, allocations: 34.56 kB / 476.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.09849, allocations: 0 / 476.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003035/0.0988, allocations: 164.9 kB / 476.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.09887, allocations: 132.5 kB / 477.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.09898, allocations: 130.1 kB / 477.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.09901, allocations: 33.7 kB / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.09906, allocations: 96.06 kB / 477.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.407e-05/0.09908, allocations: 11.91 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.09913, allocations: 25.7 kB / 477.4 MB, free: 7.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.09923, allocations: 322.8 kB / 477.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.845e-05/0.09927, allocations: 15.98 kB / 477.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.612e-05/0.09934, allocations: 57.94 kB / 477.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.09947, allocations: 184.7 kB / 477.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.09948, allocations: 0 / 477.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001793/0.09966, allocations: 160.8 kB / 478.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.09971, allocations: 63.41 kB / 478.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.09972, allocations: 3.984 kB / 478.1 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.09974, allocations: 4.094 kB / 478.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.064e-05/0.09978, allocations: 7.938 kB / 478.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.09979, allocations: 4 kB / 478.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.931e-05/0.09984, allocations: 7.938 kB / 478.2 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.09985, allocations: 4 kB / 478.2 MB, free: 6.602 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001093/0.09997, allocations: 189.5 kB / 478.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.768e-05/0.1001, allocations: 61.59 kB / 478.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.1001, allocations: 12.3 kB / 478.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.1001, allocations: 4 kB / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.257e-06/0.1001, allocations: 0 / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1001, allocations: 0 / 478.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.1003, allocations: 189.5 kB / 478.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1003, allocations: 320 / 478.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.167e-05/0.1003, allocations: 7.938 kB / 478.6 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1004, allocations: 8 kB / 478.6 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.1004, allocations: 4 kB / 478.6 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1004, allocations: 3.938 kB / 478.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1004, allocations: 0 / 478.6 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.1006, allocations: 259.6 kB / 478.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.1007, allocations: 81.02 kB / 479 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.954e-05/0.1007, allocations: 4 kB / 479 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.395e-05/0.1007, allocations: 7.984 kB / 479 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.267e-05/0.1008, allocations: 8 kB / 479 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/0.1008, allocations: 4 kB / 479 MB, free: 5.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.523e-05/0.1008, allocations: 97.94 kB / 479.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1009, allocations: 0 / 479.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000269/0.1011, allocations: 35.94 kB / 479.1 MB, free: 5.52 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005449/0.1017, allocations: 298.7 kB / 479.4 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002585/0.1019, allocations: 166.7 kB / 479.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.102, allocations: 0 / 479.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.353e-05/0.102, allocations: 122.8 kB / 479.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1023, allocations: 34.59 kB / 479.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003264/0.1027, allocations: 174.8 kB / 479.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.1029, allocations: 0.7084 MB / 480.6 MB, free: 4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.571e-05/0.1029, allocations: 12.66 kB / 480.6 MB, free: 3.988 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.151e-05/0.103, allocations: 11.44 kB / 480.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.103, allocations: 0 / 480.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of Templates: time 0.004059/0.107, allocations: 1.649 MB / 482.3 MB, free: 2.336 MB / 350.1 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)