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.001111/0.001111, allocations: 109.5 kB / 16.57 MB, free: 6.723 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.001022/0.001022, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.394/1.394, allocations: 222.9 MB / 241.2 MB, free: 13.77 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.05264/0.05264, allocations: 12.04 MB / 303.3 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 60.12 kB / 366.4 MB, free: 4.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1769, allocations: 52.33 MB / 418.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.ClockedBlocks.Examples.TestInputKeyboardKey): time 0.002756/0.1797, allocations: 2.278 MB / 421 MB, free: 19.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002651/0.1799, allocations: 197.9 kB / 421.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.899e-05/0.18, allocations: 0 / 421.2 MB, free: 18.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.1801, allocations: 19.94 kB / 421.2 MB, free: 18.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.1803, allocations: 34.16 kB / 421.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001385/0.1804, allocations: 39.89 kB / 421.3 MB, free: 18.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.554e-05/0.1805, allocations: 67.78 kB / 421.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.475e-05/0.1806, allocations: 28.22 kB / 421.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.665e-05/0.1806, allocations: 35.77 kB / 421.4 MB, free: 18.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.853e-05/0.1807, allocations: 31.86 kB / 421.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.666e-05/0.1807, allocations: 0 / 421.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.1808, allocations: 135.9 kB / 421.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.837e-05/0.1808, allocations: 15.86 kB / 421.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.645e-05/0.1809, allocations: 31.8 kB / 421.7 MB, free: 18.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001199/0.181, allocations: 99.78 kB / 421.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.181, allocations: 0 / 421.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.181, allocations: 0 / 421.7 MB, free: 18.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.181, allocations: 0 / 421.7 MB, free: 18.3 MB / 302.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.0003258/0.1813, allocations: 436.7 kB / 422.2 MB, free: 17.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.737e-05/0.1814, allocations: 16.03 kB / 422.2 MB, free: 17.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.685e-05/0.1814, allocations: 16.73 kB / 422.2 MB, free: 17.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.1816, allocations: 203.6 kB / 422.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.1816, allocations: 4.375 kB / 422.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.385e-05/0.1816, allocations: 12.31 kB / 422.4 MB, free: 17.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.1819, allocations: 149.5 kB / 422.6 MB, free: 17.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.1819, allocations: 4.188 kB / 422.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.1819, allocations: 3.938 kB / 422.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1819, allocations: 0 / 422.6 MB, free: 17.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.899e-05/0.182, allocations: 31.92 kB / 422.6 MB, free: 17.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002372/0.1822, allocations: 297.6 kB / 422.9 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.1824, allocations: 154.2 kB / 423 MB, free: 16.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.641e-05/0.1824, allocations: 37.78 kB / 423.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.1825, allocations: 4 kB / 423.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.159e-05/0.1825, allocations: 30.56 kB / 423.1 MB, free: 16.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.1825, allocations: 0 / 423.1 MB, free: 16.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002665/0.1828, allocations: 168.9 kB / 423.3 MB, free: 16.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.1828, allocations: 132.5 kB / 423.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.262e-05/0.1829, allocations: 137.6 kB / 423.5 MB, free: 16.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.1829, allocations: 29.7 kB / 423.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.953e-05/0.1829, allocations: 96.03 kB / 423.7 MB, free: 16.09 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.1829, allocations: 15.84 kB / 423.7 MB, free: 16.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.369e-05/0.183, allocations: 25.7 kB / 423.7 MB, free: 16.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.675e-05/0.183, allocations: 322.8 kB / 424 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.29e-05/0.1831, allocations: 15.98 kB / 424 MB, free: 15.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.887e-05/0.1831, allocations: 54.02 kB / 424.1 MB, free: 15.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.282e-05/0.1832, allocations: 188.6 kB / 424.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1832, allocations: 0 / 424.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001453/0.1834, allocations: 152.9 kB / 424.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1834, allocations: 63.61 kB / 424.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.1834, allocations: 8 kB / 424.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1834, allocations: 0 / 424.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.56e-05/0.1834, allocations: 8 kB / 424.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.1835, allocations: 8 kB / 424.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.574e-05/0.1835, allocations: 4 kB / 424.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.1835, allocations: 8.25 kB / 424.5 MB, free: 15.12 MB / 302.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 6.652e-05/0.1836, allocations: 181.3 kB / 424.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.615e-05/0.1837, allocations: 65.53 kB / 424.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.1837, allocations: 20.3 kB / 424.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1837, allocations: 0 / 424.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1837, allocations: 4 kB / 424.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1837, allocations: 0 / 424.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001146/0.1839, allocations: 193.4 kB / 425 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.1839, allocations: 0 / 425 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.192e-05/0.1839, allocations: 7.938 kB / 425 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1839, allocations: 0 / 425 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.1839, allocations: 4 kB / 425 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1839, allocations: 0 / 425 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1839, allocations: 0 / 425 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001755/0.1841, allocations: 263.6 kB / 425.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.1841, allocations: 81.11 kB / 425.3 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.1841, allocations: 7.984 kB / 425.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.109e-05/0.1842, allocations: 0 / 425.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.564e-05/0.1842, allocations: 8 kB / 425.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.1842, allocations: 4 kB / 425.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.66e-05/0.1843, allocations: 99.2 kB / 425.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1843, allocations: 4 kB / 425.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1846, allocations: 27.91 kB / 425.5 MB, free: 14.04 MB / 302.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.0004797/0.185, allocations: 298.5 kB / 425.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001597/0.1852, allocations: 158.7 kB / 425.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1852, allocations: 448 / 425.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.59e-05/0.1853, allocations: 130.7 kB / 426.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.1855, allocations: 34.14 kB / 426.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.1859, allocations: 245 kB / 426.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.741e-05/0.186, allocations: 0.6973 MB / 427 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.689e-05/0.186, allocations: 15.44 kB / 427 MB, free: 12.44 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.186, allocations: 3.938 kB / 427 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Templates: time 0.002904/0.1889, allocations: 2.237 MB / 429.3 MB, free: 10.2 MB / 302.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)